/* ORYX ML — site styles. Monochrome brand system; logical properties for LTR/RTL. */

@font-face { font-family: "DejaVu Sans"; src: url("../fonts/DejaVuSans.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DejaVu Sans"; src: url("../fonts/DejaVuSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DejaVu Sans Mono"; src: url("../fonts/DejaVuSansMono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face {
  font-family: "Noto Sans Arabic"; src: url("../fonts/noto-ar-400.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Sans Arabic"; src: url("../fonts/noto-ar-600.woff2") format("woff2"); font-weight: 600; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Sans Arabic"; src: url("../fonts/noto-ar-700.woff2") format("woff2"); font-weight: 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --carbon: #111111;
  --graphite: #2b2b2b;
  --steel: #8c8c8c;
  --chalk: #f2f2f2;
  --white: #ffffff;

  --font-sans: "DejaVu Sans", "Noto Sans Arabic", system-ui, sans-serif;
  --font-mono: "DejaVu Sans Mono", "Noto Sans Arabic", ui-monospace, monospace;

  --gutter: 64px;
  --maxw: 1312px;
  --header-h: 88px;
  --radius-ctl: 4px;
  --radius-card: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-in: 220ms;
  --t-layer: 320ms;
  color-scheme: dark;
}
html[lang="ar"] {
  --font-sans: "Noto Sans Arabic", "DejaVu Sans", system-ui, sans-serif;
}

/* Surfaces: each section declares its tone; components read the variables. */
.s-dark {
  --bg: var(--carbon); --fg: var(--white); --muted: #c4c4c4; --label: var(--steel);
  --line: #333333; --card-bg: #171717; --card-line: #333333;
  --btn-bg: var(--white); --btn-fg: var(--carbon); --focus-a: var(--white); --focus-b: var(--carbon);
  background: var(--bg); color: var(--fg);
}
.s-graphite {
  --bg: var(--graphite); --fg: var(--white); --muted: #d0d0d0; --label: #a8a8a8;
  --line: #444444; --card-bg: #333333; --card-line: #474747;
  --btn-bg: var(--white); --btn-fg: var(--carbon); --focus-a: var(--white); --focus-b: var(--graphite);
  background: var(--bg); color: var(--fg);
}
.s-light {
  --bg: var(--chalk); --fg: var(--carbon); --muted: #4a4a4a; --label: #5c5c5c;
  --line: #d4d4d4; --card-bg: var(--white); --card-line: #dcdcdc;
  --btn-bg: var(--carbon); --btn-fg: var(--white); --focus-a: var(--carbon); --focus-b: var(--chalk);
  background: var(--bg); color: var(--fg);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--carbon); color: var(--white);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 28px; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
bdi { unicode-bidi: isolate; }

:focus-visible {
  outline: 2px solid var(--focus-a, #fff);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-b, #111);
  border-radius: 2px;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -64px; z-index: 100;
  background: var(--white); color: var(--carbon); padding: 12px 16px; border-radius: var(--radius-ctl);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -0.015em; max-width: 12ch; }
.h2 { font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -0.01em; max-width: 22ch; }
.h3 { font-size: 22px; line-height: 30px; font-weight: 700; }
.h4 { font-size: 18px; line-height: 26px; font-weight: 700; }
html[lang="ar"] .display { font-size: 52px; line-height: 72px; letter-spacing: 0; max-width: 14ch; }
html[lang="ar"] .h2 { font-size: 34px; line-height: 52px; letter-spacing: 0; }
html[lang="ar"] .h3 { line-height: 36px; }
html[lang="ar"] .h4 { line-height: 30px; }

.label {
  font-family: var(--font-mono); font-size: 12px; line-height: 16px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--label);
}
html[lang="ar"] .label, html[lang="ar"] .placeholder-text, html[lang="ar"] .scale { font-family: var(--font-sans); }
html[lang="ar"] .label { letter-spacing: 0; text-transform: none; font-size: 13px; line-height: 20px; }
html[lang="ar"] .label bdi { font-family: "DejaVu Sans Mono", monospace; font-size: 12px; letter-spacing: 0.06em; }
.label-strong { color: var(--fg); }
.index { font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: 12px; line-height: 16px; letter-spacing: 0.06em; color: var(--label); }

.lead { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 52ch; }
html[lang="ar"] .lead { line-height: 32px; }
.intro { color: var(--muted); max-width: 62ch; }
.note { font-size: 14px; line-height: 20px; color: var(--label); }
.placeholder-text { font-family: var(--font-mono); font-size: 16px; line-height: 26px; color: var(--label); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--radius-ctl);
  font-size: 15px; line-height: 20px; font-weight: 700; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-dark { background: var(--carbon); color: var(--white); }
.btn-dark:hover { background: var(--graphite); }
.btn-secondary { background: transparent; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent;
}
.link-cta:hover { border-bottom-color: currentColor; }
.i-arrow { flex: none; transition: transform 180ms var(--ease); }
.link-cta:hover .i-arrow, .btn:hover .i-arrow { transform: translateX(3px); }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }
[dir="rtl"] .link-cta:hover .i-arrow, [dir="rtl"] .btn:hover .i-arrow { transform: scaleX(-1) translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: var(--white); padding-block: 12px; flex: none; }
.brand-logo { width: 180px; height: auto; aspect-ratio: 1865 / 632; }
.brand-symbol { display: none; height: 40px; width: auto; aspect-ratio: 381 / 632; }
.nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  font-size: 15px; text-decoration: none; color: #d6d6d6; border-radius: var(--radius-ctl);
}
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--white); }
.nav-list a[aria-current="true"] { box-shadow: inset 0 -1px 0 var(--white); border-radius: 0; }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }

.lang-switch { display: inline-flex; align-items: center; font-size: 15px; }
.lang-switch button { background: none; border: 0; margin: 0; font: inherit; cursor: pointer; }
.lang-switch button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding-inline: 8px; text-decoration: none; color: #bdbdbd; border-radius: var(--radius-ctl);
}
.lang-switch button[lang="ar"] { font-family: "Noto Sans Arabic", sans-serif; }
.lang-switch button[lang="en"] { font-family: "DejaVu Sans Mono", monospace; letter-spacing: 0.06em; }
.lang-switch button:hover { color: var(--white); }
.lang-switch button[aria-pressed="true"] { color: var(--white); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.lang-sep { color: var(--steel); }

.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-ctl); color: var(--white); cursor: pointer;
}
.menu-toggle path { fill: none; stroke: currentColor; stroke-width: 1.75; }
.menu-toggle .m-close { display: none; }
.menu-toggle[aria-expanded="true"] .m-open { display: none; }
.menu-toggle[aria-expanded="true"] .m-close { display: block; }

/* ---------- Sections ---------- */
.section { padding-block: 120px; }
.section-head { display: grid; gap: 20px; align-content: start; }
.section-head .label { margin-bottom: 4px; }
.subblock { margin-top: 80px; display: grid; gap: 24px; align-content: start; }
.subhead { display: grid; gap: 12px; }
.section-cta { margin-top: 64px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split-wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

.card { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: var(--radius-card); }

/* ---------- Hero ---------- */
.hero { padding-block: 96px 112px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy .actions { margin-top: 16px; }
.hero-art { position: relative; aspect-ratio: 700 / 560; }
.stream { width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .stream { transform: scaleX(-1); }
.stream-line { fill: none; stroke: var(--steel); stroke-width: 1.5; }
.stream-line.is-strong { stroke: var(--white); stroke-width: 1.8; }
.stream-node { fill: var(--steel); }
.stream-node.is-strong { fill: var(--white); }
.stream-label {
  position: absolute; font-family: "DejaVu Sans Mono", monospace; font-size: 12px; line-height: 16px;
  letter-spacing: 0.08em; color: var(--white); white-space: nowrap;
}

/* ---------- Directions ---------- */
.directions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.direction { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.direction-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.direction .index { font-size: 14px; color: var(--carbon); }
.glyph { width: 48px; height: 48px; }
.glyph path { fill: none; stroke: var(--carbon); stroke-width: 1.5; stroke-linejoin: miter; }
[dir="rtl"] .glyph { transform: scaleX(-1); }
.role { font-weight: 700; color: var(--muted); font-size: 16px; }
.direction .ticks { margin-top: 8px; }
.direction .link-cta { margin-top: auto; padding-top: 16px; }

.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.i-tick { flex: none; margin-top: 4px; }
html[lang="ar"] .i-tick { margin-top: 6px; }

/* ---------- AI ---------- */
.caps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.cap { display: grid; gap: 12px; align-content: start; padding: 32px 24px 8px; border-inline-start: 1px solid var(--line); }
.cap:first-child { border-inline-start: 0; padding-inline-start: 0; }
.cap p { color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.tiles li { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--bg); min-height: 104px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.scale { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--label); text-transform: uppercase; letter-spacing: 0.08em; }
html[lang="ar"] .scale { text-transform: none; letter-spacing: 0; font-size: 13px; }
.scale-line { flex: 1; display: flex; align-items: center; color: var(--label); }
.scale-line::before { content: ""; flex: 1; height: 1px; background: var(--line); }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.level { display: grid; gap: 12px; align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); position: relative; }
.level p:last-child { color: var(--muted); }
.level-meter { display: flex; gap: 4px; margin-bottom: 8px; }
.level-meter span { width: 28px; height: 6px; border: 1px solid var(--steel); transform: skewX(-30deg); }
[dir="rtl"] .level-meter span { transform: skewX(30deg); }
.level-meter span.on { color: var(--white); border-color: var(--white); }

/* ---------- Virt ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value { order: -1; }
.stat-value { font-family: "DejaVu Sans Mono", monospace; font-size: 32px; line-height: 36px; text-align: start; }
[dir="rtl"] .stat-value { text-align: start; unicode-bidi: isolate; }
.stat-value-text { font-family: var(--font-sans); font-weight: 700; }
.stat-label { font-size: 14px; line-height: 20px; color: var(--muted); }
.notes { display: grid; gap: 6px; font-size: 14px; color: var(--label); }

.layers { display: grid; gap: 16px; padding: 32px; background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius-card); }
.layers ol { display: grid; gap: 4px; }
.layers li { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 20px; padding-inline-start: calc(var(--k) * 22px); }
.plane { width: 132px; height: 44px; overflow: visible; }
.plane path { fill: var(--white); stroke: var(--carbon); stroke-width: 1.25; stroke-linejoin: miter; }
[dir="rtl"] .plane { transform: scaleX(-1); }
.layer-text { display: grid; gap: 2px; }
.layer-desc { font-size: 15px; line-height: 22px; }
html[lang="ar"] .layer-desc { line-height: 26px; }

.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.cap-list li { display: flex; gap: 16px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--line); }

.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.model { display: grid; gap: 16px; align-content: start; padding: 32px; }
.model > p:not(.label) { color: var(--muted); }

/* ---------- Hardware ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.product { overflow: hidden; display: flex; flex-direction: column; }
.product-visual { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--card-line); display: grid; place-items: center; background: var(--carbon); }
.product-art { width: 100%; height: 100%; }
.product-art path { fill: none; stroke: var(--white); stroke-width: 1.25; stroke-linejoin: miter; }
.product-art path.thin { stroke: var(--steel); stroke-width: .9; }
.product-body { display: grid; gap: 12px; padding: 28px; }
.product-name { font-family: "DejaVu Sans Mono", monospace; letter-spacing: 0.08em; font-size: 24px; text-align: start; }
[dir="rtl"] .product-name { text-align: right; }
.product-body p:not(.label):not(.note) { color: var(--muted); }

.two-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.rows { border-top: 1px solid var(--line); }
.rows li { padding-block: 14px; border-bottom: 1px solid var(--line); }

/* ---------- Approach ---------- */
.principles-title { margin-top: 24px; }
.stack { display: grid; gap: 12px; }
.stack ol { display: grid; gap: 12px; }
.stack-layer, .stack-base {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 24px; border: 1px solid var(--carbon); border-radius: var(--radius-card); background: var(--white);
}
.stack-layer:nth-child(2) { margin-inline-start: 24px; }
.stack-layer:nth-child(3) { margin-inline-start: 48px; }
.stack-base { margin-inline-start: 72px; background: var(--carbon); color: var(--white); align-items: center; }
.stack-base .index { color: var(--steel); }
.stack-name { font-size: 20px; line-height: 28px; font-weight: 700; text-align: start; }
[dir="rtl"] .stack-name { text-align: right; }
.stack-text { color: var(--muted); margin-top: 6px; }

/* ---------- Deployment ---------- */
.grid-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.grid-points li { display: flex; gap: 16px; align-items: baseline; padding: 24px; background: var(--bg); }

/* ---------- Contact ---------- */
.contact-head .actions { margin-top: 16px; }
.form-card { padding: 40px; position: relative; }
.form { display: grid; gap: 24px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field-label { font-size: 14px; line-height: 20px; font-weight: 700; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--white); color: var(--carbon);
  border: 1px solid #8c8c8c; border-radius: var(--radius-ctl);
  font-size: 16px; line-height: 24px;
}
textarea { resize: vertical; min-height: 132px; }
input::placeholder, textarea::placeholder { color: #6b6b6b; }
input:hover, select:hover, textarea:hover { border-color: var(--carbon); }
input[dir="ltr"] { text-align: left; }
[dir="rtl"] input[dir="ltr"]::placeholder { text-align: right; }
.select { position: relative; }
select { appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--carbon); border-bottom: 1.5px solid var(--carbon);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
[aria-invalid="true"] { border-color: var(--carbon) !important; box-shadow: 0 0 0 1px var(--carbon), inset 4px 0 0 var(--carbon); }
[dir="rtl"] [aria-invalid="true"] { box-shadow: 0 0 0 1px var(--carbon), inset -4px 0 0 var(--carbon); }
.field-error { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--carbon); }
.field-error::before {
  content: "!"; flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px;
  background: var(--carbon); color: var(--white); border-radius: 2px; font-family: "DejaVu Sans Mono", monospace; font-size: 13px;
}
.field-error[hidden] { display: none; }

.segmented { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.segmented legend { width: 100%; margin-bottom: 8px; padding: 0; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px solid #8c8c8c; border-radius: var(--radius-ctl); font-size: 15px;
}
.segmented span::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--carbon); }
.segmented input:checked + span { background: var(--carbon); color: var(--white); border-color: var(--carbon); }
.segmented input:checked + span::before { background: var(--white); border-color: var(--white); }
.segmented input:focus-visible + span { outline: 2px solid var(--carbon); outline-offset: 2px; }

.field-check { grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.field-check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--carbon); cursor: pointer; }
.field-check label { font-size: 14px; line-height: 22px; }
html[lang="ar"] .field-check label { line-height: 26px; }
.field-check a { font-weight: 700; }
.field-check .field-error { grid-column: 1 / -1; }
.form-note { font-size: 14px; color: var(--label); }

.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { display: grid; gap: 4px; padding: 16px 20px; border: 2px solid var(--carbon); border-radius: var(--radius-ctl); background: var(--chalk); }
.form-alert[hidden] { display: none; }
.form-alert strong { display: flex; gap: 8px; align-items: center; }
.form-alert strong::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--carbon); color: var(--white); border-radius: 2px; font-family: "DejaVu Sans Mono", monospace; font-size: 13px; }
.form-alert button { justify-self: start; margin-top: 8px; }

.form-result { display: grid; gap: 16px; justify-items: start; padding-block: 24px; }
.form-result[hidden] { display: none; }
.form-result .i-tick { width: 40px; height: 40px; padding: 8px; background: var(--carbon); color: var(--white); border-radius: var(--radius-ctl); margin: 0; }
.form-result p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 72px 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 3.4fr) repeat(4, minmax(0, 2fr)); gap: 40px; }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 32ch; }
.brand-footer { padding: 0; }
.footer-grid h2 { margin-bottom: 16px; }
.footer-list { display: grid; gap: 4px; }
.footer-list li { display: grid; gap: 2px; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; color: #d6d6d6; }
.footer-list a:hover { color: var(--white); }
.footer-list .label { margin-top: 4px; }
.lang-footer { margin-inline-start: -8px; }
.footer-bottom-wrap { margin-top: 56px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

.legal { min-height: 60vh; }
.legal .container { display: grid; gap: 24px; justify-items: start; }


/* ================= Landings ================= */
.section-tight { padding-block: 72px; }
.muted { display: block; color: var(--muted); margin-top: 4px; font-weight: 400; }
.badge {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; flex: none;
  border: 1px solid currentColor; border-radius: 2px; font-family: "DejaVu Sans Mono", monospace; font-size: 12px; line-height: 16px; letter-spacing: 0.04em; color: var(--label);
}
html[lang="ar"] .badge:not([dir="ltr"]) { font-family: var(--font-sans); letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-ctl); font-size: 14px; line-height: 20px; }
.back-link { margin-bottom: 8px; color: var(--muted); }
.i-back { transform: none; }
[dir="rtl"] .i-back { transform: scaleX(-1); }
.link-cta:hover .i-back { transform: translateX(-3px); }
[dir="rtl"] .link-cta:hover .i-back { transform: scaleX(-1) translateX(-3px); }

/* hero variants */
.stats-hero { margin-top: 32px; border-top-color: var(--line); }
.hero-art-layers { aspect-ratio: 700 / 520; }
.layers-art { width: 100%; height: 100%; overflow: visible; }
.layers-art .lp { fill: var(--carbon); stroke: var(--steel); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.layers-art .lp.is-strong { stroke: var(--white); stroke-width: 1.5; }
[dir="rtl"] .layers-art { transform: scaleX(-1); }
.hero-media { position: relative; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: #0b0b0b; aspect-ratio: 4 / 3; }
.hero-media-art { display: grid; place-items: center; }
.hero-media-art .product-art { max-height: 100%; }
.media-video { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.media-caption { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; color: var(--white); background: rgba(17,17,17,.72); padding: 4px 8px; border-radius: 2px; }

/* AI: comparison */
.compare { display: grid; gap: 8px; margin-top: 48px; }
.compare-row { display: grid; grid-template-columns: 48px minmax(0, 4fr) minmax(0, 5fr) auto; gap: 24px; align-items: center; padding: 20px 24px; border: 1px solid var(--card-line); border-radius: var(--radius-card); background: var(--card-bg); }
.compare-name { font-weight: 700; font-size: 18px; line-height: 26px; }
.compare-note { color: var(--muted); }
.compare-row .level-meter { margin: 0; }
.compare-row .level-meter span { border-color: var(--carbon); }
.compare-row .level-meter span.on { color: var(--carbon); border-color: var(--carbon); }
.compare-row.is-ours { background: var(--carbon); color: var(--white); border-color: var(--carbon); }
.compare-row.is-ours .compare-note { color: #c4c4c4; }
.compare-row.is-ours .index { color: var(--steel); }
.compare-row.is-ours .level-meter span.on { color: var(--white); border-color: var(--white); }
.caps-grid-flush { margin-top: 0; }
.level-sub { font-weight: 700; color: var(--fg) !important; font-size: 16px; }

/* AI: cases */
.cases { display: grid; gap: 12px; margin-top: 56px; }
.case { padding: 0; }
.case summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 24px; gap: 20px; align-items: center; padding: 22px 28px; cursor: pointer; list-style: none; min-height: 72px; }
.case summary::-webkit-details-marker { display: none; }
.case summary:focus-visible { border-radius: var(--radius-card); }
.case-head { display: grid; gap: 4px; }
.case-title { font-size: 18px; line-height: 26px; font-weight: 700; }
html[lang="ar"] .case-title { line-height: 30px; }
.case-toggle { width: 24px; height: 24px; position: relative; }
.case-toggle::before, .case-toggle::after { content: ""; position: absolute; inset-inline-start: 4px; top: 11px; width: 16px; height: 1.5px; background: currentColor; }
.case-toggle::after { transform: rotate(90deg); transition: transform 180ms var(--ease); }
.case[open] .case-toggle::after { transform: rotate(0); }
.case-body { display: grid; gap: 28px; padding: 4px 28px 28px; border-top: 1px solid var(--card-line); padding-top: 28px; }
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
.flow li { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px 28px 16px 16px; background: var(--chalk); border: 1px solid var(--card-line); font-size: 16px; line-height: 24px; }
html[lang="ar"] .flow li { line-height: 26px; }
.flow li + li { border-inline-start: 0; }
.flow li:first-child { border-start-start-radius: var(--radius-ctl); border-end-start-radius: var(--radius-ctl); }
.flow li:last-child { border-start-end-radius: var(--radius-ctl); border-end-end-radius: var(--radius-ctl); }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: -7px; width: 12px; height: 12px; z-index: 1;
  background: var(--chalk); border-top: 1px solid var(--carbon); border-inline-end: 1px solid var(--carbon); transform: translateY(-50%) rotate(45deg);
}
[dir="rtl"] .flow li:not(:last-child)::after { transform: translateY(-50%) rotate(-45deg); }
.case-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.case-cols > div { display: grid; gap: 8px; align-content: start; }
.case-cols > div:first-child p { color: var(--muted); }
.case-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-end; }
.case-foot > div { display: grid; gap: 10px; }
.case-effect { padding: 12px 16px; border-inline-start: 3px solid var(--carbon); background: var(--chalk); }
.case-effect p { font-weight: 700; }

.grid-points-rich li { align-items: start; }
.grid-points-rich strong { display: block; }

.risk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.risk { display: grid; gap: 12px; align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.risk p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.step { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 2px solid var(--carbon); }
.step p { color: var(--muted); }
.step-num { font-family: "DejaVu Sans Mono", monospace; font-size: 28px; line-height: 32px; }
.step-arrow { position: absolute; top: -13px; inset-inline-end: -30px; color: var(--carbon); background: var(--bg); padding-inline: 2px; }

/* Virt */
.ticks-lg li { font-size: 18px; line-height: 28px; }
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.group { display: grid; gap: 14px; align-content: start; padding: 24px; }
.arch { display: grid; gap: 12px; margin-top: 56px; }
.arch-portal { padding: 16px 20px; border: 1px solid var(--white); border-radius: var(--radius-ctl); font-weight: 700; text-align: center; }
.arch-servers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.srv { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--card-line); border-radius: var(--radius-card); background: var(--card-bg); }
.srv-vms { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; min-height: 76px; align-content: start; }
@media (max-width: 760px) { .srv-vms { min-height: 0; } }
.srv-vms span { display: grid; place-items: center; min-height: 34px; border: 1px solid var(--steel); border-radius: 2px; font-family: "DejaVu Sans Mono", monospace; font-size: 12px; }
.srv-drives { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.srv-drives span { padding: 6px 0; text-align: center; font-family: "DejaVu Sans Mono", monospace; font-size: 11px; background: var(--graphite); border: 1px solid var(--line); border-radius: 2px; }
.srv-gpu { padding: 6px; text-align: center; font-family: "DejaVu Sans Mono", monospace; font-size: 12px; border: 1px dashed var(--steel); border-radius: 2px; }
.srv-os { padding: 8px; text-align: center; font-family: "DejaVu Sans Mono", monospace; font-size: 12px; background: var(--white); color: var(--carbon); border-radius: 2px; }
.arch-soft { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; background: var(--white); color: var(--carbon); border-radius: var(--radius-ctl); }
.arch-soft .label { color: #5c5c5c; }
.arch-soft-item { padding: 4px 12px; border: 1px solid var(--carbon); border-radius: 2px; font-weight: 700; }

/* Hardware */
.product-light { background: var(--white); border-color: var(--card-line); }
.product-light .product-visual { background: var(--carbon); border-bottom-color: var(--card-line); }
.product-visual { display: block; overflow: hidden; }
.product-visual .media-video { transition: transform 200ms var(--ease); }
@media (hover: hover) { .product:hover .media-video { transform: scale(1.02); } }
.product-visual-art { width: 100%; height: 100%; display: grid; place-items: center; }
.product-light .product-body p:not(.label) { color: var(--muted); }
.product-light .link-cta { margin-top: 8px; }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; padding: 16px 20px; border: 1px dashed #b5b5b5; border-radius: var(--radius-card); }
.soon-item { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 700; }
.soon-item .note { font-weight: 400; }
.seg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.seg { display: grid; gap: 12px; align-content: start; padding: 28px; background: var(--bg); }
.seg .badge { justify-self: start; }
.seg p { color: var(--muted); }
.certs { border-top: 1px solid var(--line); }
.cert { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) auto; gap: 24px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); }
.cert-code { font-family: "DejaVu Sans Mono", monospace; font-size: 14px; font-weight: 700; text-align: start; }
html[lang="ar"] .cert-code:not(:has(bdi)) { font-family: var(--font-sans); }
.cert-text { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.status-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--carbon); border-radius: 2px; font-size: 13px; line-height: 1; }
.status-valid .status-icon { background: var(--carbon); color: var(--white); }
.status-pending .status-icon { border-style: dashed; }

/* Product page */
.stats-band { padding-block: 0 72px; }
.stats-band-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.stats-band-grid .stat-value { font-size: 28px; line-height: 34px; }
.overview { display: grid; gap: 16px; }
.overview > p { color: var(--muted); max-width: 62ch; }
.overview > p:first-child { color: var(--fg); font-size: 18px; line-height: 28px; }
.check-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.check-steps li { display: grid; gap: 12px; align-content: start; padding: 24px; background: var(--bg); min-height: 132px; }
.specs { border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { color: var(--muted); }
.subblock-flush { margin-top: 0; }
.rows-indexed li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; }
.deck-split { align-items: center; }
.deck { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px; text-decoration: none; max-width: 520px; }
.deck img { width: 160px; height: auto; border-radius: 2px; border: 1px solid var(--card-line); filter: grayscale(1); }
.deck:hover img { filter: none; }
.deck-meta { display: grid; gap: 8px; }

/* Cross-links */
.others-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.other { display: grid; gap: 10px; padding: 24px; text-decoration: none; color: var(--carbon); }
.other .direction-top { margin-bottom: 4px; }
.other:hover { border-color: var(--carbon); }
.other .link-cta { min-height: 32px; }

/* Reveal hooks for new layered figures */
.js [data-reveal="layers"] .lp, .js [data-reveal="layers"] .arch-portal, .js [data-reveal="layers"] .srv, .js [data-reveal="layers"] .arch-soft {
  opacity: 0; transition: opacity var(--t-layer) var(--ease), transform var(--t-layer) var(--ease); transition-delay: calc(var(--k) * 90ms);
}
.js [data-reveal="layers"] .srv { transform: translate(-12px, 12px); }
.js[dir="rtl"] [data-reveal="layers"] .srv { transform: translate(12px, 12px); }
.js [data-reveal="layers"].is-in .lp, .js [data-reveal="layers"].is-in .arch-portal, .js [data-reveal="layers"].is-in .srv, .js [data-reveal="layers"].is-in .arch-soft { opacity: 1; transform: none; }

/* ---------- Motion (diagonal entrance, sequential layers) ---------- */
.js [data-reveal] { opacity: 0; transform: translate(-10px, 10px); transition: opacity var(--t-in) var(--ease), transform var(--t-in) var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.js[dir="rtl"] [data-reveal] { transform: translate(10px, 10px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="lines"] { opacity: 1; transform: none; }
.js [data-reveal="lines"] .stream-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 400ms var(--ease); transition-delay: calc(var(--i) * 25ms); }
.js [data-reveal="lines"] .stream-node, .js [data-reveal="lines"] .stream-label { opacity: 0; transition: opacity 240ms var(--ease) 420ms; }
.js [data-reveal="lines"].is-in .stream-line { stroke-dashoffset: 0; }
.js [data-reveal="lines"].is-in .stream-node, .js [data-reveal="lines"].is-in .stream-label { opacity: 1; }
.js [data-reveal="layers"] { opacity: 1; transform: none; }
.js [data-reveal="layers"] li, .js [data-reveal="layers"] .stack-base { opacity: 0; transform: translate(-12px, 12px); transition: opacity var(--t-layer) var(--ease), transform var(--t-layer) var(--ease); transition-delay: calc(var(--k) * 90ms); }
.js[dir="rtl"] [data-reveal="layers"] li, .js[dir="rtl"] [data-reveal="layers"] .stack-base { transform: translate(12px, 12px); }
.js [data-reveal="layers"].is-in li, .js [data-reveal="layers"].is-in .stack-base { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Static final state: only reveal-related transforms are reset; brand mirroring stays. */
  html.js[dir] :is([data-reveal], [data-reveal] li, [data-reveal] .stack-base, .stream-line, .stream-node, .stream-label, .lp, .arch-portal, .srv, .arch-soft) {
    opacity: 1 !important; transform: none !important; transition: none !important; stroke-dashoffset: 0 !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-list a { padding-inline: 8px; font-size: 14px; }
  .header-inner { gap: 20px; }
  .caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .cap:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Tablet: collapsible navigation, language switcher stays in the header */
@media (max-width: 1023px) {
  :root { --gutter: 40px; --header-h: 76px; }
  .brand-logo { width: 180px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-inner { justify-content: space-between; }
  .js .nav {
    position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0; z-index: 49;
    display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 24px var(--gutter) 40px; background: var(--carbon); border-top: 1px solid var(--line); overflow-y: auto;
  }
  .js .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { min-height: 56px; font-size: 20px; padding-inline: 0; color: var(--white); border-bottom: 1px solid var(--line); width: 100%; border-radius: 0; }
  .nav-list a[aria-current="true"] { box-shadow: none; }
  .nav-cta { display: inline-flex; min-height: 56px; }
  .no-scroll { overflow: hidden; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-art { max-width: 640px; }
  .directions { grid-template-columns: minmax(0, 1fr); }
  .direction { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 16px; }
  .direction > * { grid-column: 1; }
  .direction > .ticks { grid-column: 2; grid-row: 2 / span 4; margin-top: 0; align-self: start; }
  .direction-top { grid-column: 1 / -1; }
  .direction .link-cta { grid-column: 1 / -1; }
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .products .product-body { padding: 20px; }
  .products .product-name { font-size: 20px; }
  .levels { grid-template-columns: minmax(0, 1fr); }
  .two-lists { gap: 40px; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; --header-h: 68px; }
  .section { padding-block: 80px; }
  .hero { padding-block: 56px 72px; }
  .display { font-size: 40px; line-height: 46px; }
  html[lang="ar"] .display { font-size: 38px; line-height: 56px; }
  .h2 { font-size: 30px; line-height: 36px; }
  html[lang="ar"] .h2 { font-size: 28px; line-height: 44px; }
  .lead { font-size: 17px; line-height: 26px; }
  .header-actions { gap: 8px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { min-height: 56px; }
  .section-cta .btn { width: 100%; min-height: 56px; }
  .directions, .products { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .direction { display: flex; padding: 24px; }
  .caps-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .cap, .cap:first-child, .cap:nth-child(3) { border-inline-start: 0; padding-inline: 0; }
  .cap:nth-child(n + 2) { border-top: 1px solid var(--line); margin-top: 16px; }
  .tiles, .tiles-3 { grid-template-columns: minmax(0, 1fr); }
  .tiles li { min-height: 0; flex-direction: row; gap: 16px; align-items: baseline; padding: 16px; }
  .cap-list, .models, .two-lists, .grid-points, .field-row { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .stat { flex-direction: row; align-items: baseline; gap: 16px; }
  .stat-value { font-size: 28px; min-width: 3.5em; }
  .layers { padding: 20px; }
  .layers li { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding-inline-start: calc(var(--k) * 10px); }
  .plane { width: 76px; height: 26px; }
  .stack-layer, .stack-base { padding: 18px; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .stack-layer:nth-child(2) { margin-inline-start: 12px; }
  .stack-layer:nth-child(3) { margin-inline-start: 24px; }
  .stack-base { margin-inline-start: 36px; }
  .form-card { padding: 24px; }
  .subblock { margin-top: 56px; }
  .level { padding: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .stream-label { font-size: 11px; letter-spacing: 0.04em; }
}

/* Very narrow screens: the symbol replaces the wordmark in the header (brand rule: compact logo needs 180 px). */
@media (max-width: 479px) {
  .site-header .brand-logo { display: none; }
  .site-header .brand-symbol { display: block; }
  .lang-switch button { padding-inline: 6px; }
  .display { font-size: 36px; line-height: 42px; }
  html[lang="ar"] .display { font-size: 34px; line-height: 50px; }
}

/* Revealed without animation (skipped by an anchor jump, small screens, reduced motion). */
.js .reveal-instant, .js .reveal-instant * { transition: none !important; }
.top-anchor { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; }

/* ================= Motion additions ================= */
@keyframes oryx-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes oryx-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes oryx-step { from { opacity: 0; transform: translate(var(--dx, -8px), 6px); } to { opacity: 1; transform: none; } }
[dir="rtl"] { --dx: 8px; }

/* Hover feedback parity with buttons */
.card { transition: border-color 160ms var(--ease); }
input[type="text"], input[type="email"], select, textarea { transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }

/* Form: errors, alerts and the success panel appear instead of cutting in */
.form-alert:not([hidden]), .form-result:not([hidden]), .field-error:not([hidden]) { animation: oryx-appear 200ms var(--ease) both; }

/* Mobile menu opens with a short drop */
@media (max-width: 1023px) { .js .nav.is-open { animation: oryx-drop 200ms var(--ease) both; } }

/* Autonomy meters fill segment by segment: human control → agent autonomy */
.level-meter span { position: relative; overflow: hidden; }
.level-meter span.on::before { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: left center; }
[dir="rtl"] .level-meter span.on::before { transform-origin: right center; }
.js [data-reveal] .level-meter span.on::before { transform: scaleX(0); transition: transform 200ms var(--ease); transition-delay: calc(160ms + var(--s, 0) * 80ms); }
.js [data-reveal].is-in .level-meter span.on::before { transform: scaleX(1); }

/* Use cases: the process flow plays step by step when a case is revealed or opened */
.case[open] .case-body { animation: oryx-appear 240ms var(--ease) both; }
.js .case[data-reveal]:not(.is-in) .flow li { opacity: 0; }
.case[open].is-in .flow li { animation: oryx-step 220ms var(--ease) both; animation-delay: calc(80ms + var(--j, 0) * 60ms); }

/* Virt architecture assembles in order: portal → servers → their rows → software */
.js [data-reveal="layers"] .srv-row { opacity: 0; transform: translateY(6px); transition: opacity 160ms var(--ease), transform 160ms var(--ease); transition-delay: calc(var(--k) * 90ms + 120ms + var(--r) * 40ms); }
.js [data-reveal="layers"].is-in .srv-row { opacity: 1; transform: none; }

/* Hardware contour illustrations draw themselves once */
.js [data-reveal="lines"] .product-art path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 320ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal="lines"].is-in .product-art path { stroke-dashoffset: 0; }

/* PTME check: nine steps light up in reading order */
.js .check-steps li[data-reveal] { transition-delay: calc(var(--d, 0) * 45ms); }

/* Video pause / play control (WCAG 2.2.2) */
.product-visual-wrap { position: relative; }
.media-toggle {
  position: absolute; inset-block-end: 12px; inset-inline-end: 12px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: rgba(17, 17, 17, .72); color: var(--white); border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius-ctl);
  cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.media-toggle:hover { background: var(--carbon); border-color: var(--white); }
.media-toggle:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 5px var(--carbon); }
.media-toggle svg { fill: currentColor; }
.media-toggle .i-play, .media-toggle[data-state="paused"] .i-pause { display: none; }
.media-toggle[data-state="paused"] .i-play { display: block; }

@media (prefers-reduced-motion: reduce) {
  .form-alert, .form-result, .field-error, .js .nav.is-open, .case[open] .case-body, .case[open].is-in .flow li { animation: none !important; }
  .js .case[data-reveal] .flow li { opacity: 1 !important; }
  html.js[dir] :is(.srv-row, .product-art path) { opacity: 1 !important; transform: none !important; transition: none !important; stroke-dashoffset: 0 !important; }
  .js [data-reveal] .level-meter span.on::before { transform: none !important; transition: none !important; }
  .card, input, select, textarea, .media-toggle, .case-toggle::after { transition: none !important; }
}

/* ================= Motion round 2 (review ideas) ================= */
@keyframes oryx-draw { to { stroke-dashoffset: 0; } }
@keyframes oryx-progress { to { transform: scaleX(1); } }

/* Page-to-page: cross-document View Transition; the header stays put, content crossfades */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: var(--ease); }

/* Eyebrow blade: a short line cuts in before each section label */
.section-head > .label, .hero-copy > .label { display: flex; align-items: center; gap: 10px; }
.section-head > .label::before, .hero-copy > .label::before { content: ""; flex: none; width: 20px; height: 1px; background: currentColor; transform-origin: left center; }
[dir="rtl"] .section-head > .label::before, [dir="rtl"] .hero-copy > .label::before { transform-origin: right center; }
.js [data-reveal] > .label::before { transform: scaleX(0); transition: transform 240ms var(--ease) 120ms; }
.js [data-reveal].is-in > .label::before { transform: scaleX(1); }

/* Hero Split Stream: hovering a bundle label isolates its three lines */
.stream-label { pointer-events: auto; cursor: default; padding: 6px; margin: -6px; }
.hero-art.is-settled .stream-line, .hero-art.is-settled .stream-node, .hero-art.is-settled .stream-label { transition: opacity 180ms var(--ease); }
.js .hero-art.is-settled[data-focus] :is(.stream-line, .stream-node, .stream-label) { opacity: .22; }
.js .hero-art.is-settled[data-focus="0"] [data-g="0"], .js .hero-art.is-settled[data-focus="1"] [data-g="1"], .js .hero-art.is-settled[data-focus="2"] [data-g="2"] { opacity: 1; }

/* Direction glyphs nudge along the horn diagonal on hover / focus */
.glyph { transition: transform 180ms var(--ease); }
.direction:focus-within .glyph, .other:focus-visible .glyph { transform: translate(3px, -3px); }
[dir="rtl"] .direction:focus-within .glyph, [dir="rtl"] .other:focus-visible .glyph { transform: scaleX(-1) translate(3px, -3px); }
@media (hover: hover) {
  .direction:hover .glyph, .other:hover .glyph { transform: translate(3px, -3px); }
  [dir="rtl"] .direction:hover .glyph, [dir="rtl"] .other:hover .glyph { transform: scaleX(-1) translate(3px, -3px); }
}

/* SPECTR card: ICAO crop marks tighten around the frame */
.crop { position: absolute; inset: 12% 22%; pointer-events: none; }
.crop i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--white); opacity: 0; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
.crop i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; transform: translate(-10px, -10px); }
.crop i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; transform: translate(10px, -10px); transition-delay: 35ms; }
.crop i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; transform: translate(-10px, 10px); transition-delay: 35ms; }
.crop i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; transform: translate(10px, 10px); transition-delay: 70ms; }
.product:focus-within .crop i { opacity: 1; transform: none; }
@media (hover: hover) { .product:hover .crop i { opacity: 1; transform: none; } }

/* PEGAS card: one diagonal "read" line crosses the frame per hover / focus */
.sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sweep::before { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, transparent 49.4%, rgba(255, 255, 255, .85) 49.8%, rgba(255, 255, 255, .85) 50.2%, transparent 50.6%); transform: translateX(-100%); }
[dir="rtl"] .sweep::before { transform: translateX(100%) scaleX(-1); }
.product:focus-within .sweep::before { transform: translateX(100%); transition: transform 400ms var(--ease); }
[dir="rtl"] .product:focus-within .sweep::before { transform: translateX(-100%) scaleX(-1); }
@media (hover: hover) {
  .product:hover .sweep::before { transform: translateX(100%); transition: transform 400ms var(--ease); }
  [dir="rtl"] .product:hover .sweep::before { transform: translateX(-100%) scaleX(-1); }
}

/* Success tick draws itself after the panel appears */
.form-result:not([hidden]) .tick-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: oryx-draw 320ms var(--ease) 180ms forwards; }

/* Specs table: a blade marks the row under the pointer */
.specs div { position: relative; }
.specs div::before { content: ""; position: absolute; inset-block: 12px; inset-inline-start: -14px; width: 2px; background: var(--carbon); transform: scaleY(0); transition: transform 160ms var(--ease); }
@media (hover: hover) { .specs div:hover::before { transform: scaleY(1); } }

/* Deck card: offset pages (Virtual Layers) slide out along the diagonal */
.deck-thumb { position: relative; display: block; isolation: isolate; }
.deck-thumb::before, .deck-thumb::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white); border: 1px solid var(--card-line); border-radius: 2px; transition: transform 200ms var(--ease); }
.deck-thumb::before { transform: translate(4px, -4px); }
.deck-thumb::after { transform: translate(8px, -8px); }
[dir="rtl"] .deck-thumb::before { transform: translate(-4px, -4px); }
[dir="rtl"] .deck-thumb::after { transform: translate(-8px, -8px); }
@media (hover: hover) {
  .deck:hover .deck-thumb::before { transform: translate(7px, -7px); }
  .deck:hover .deck-thumb::after { transform: translate(14px, -14px); }
  [dir="rtl"] .deck:hover .deck-thumb::before { transform: translate(-7px, -7px); }
  [dir="rtl"] .deck:hover .deck-thumb::after { transform: translate(-14px, -14px); }
}

/* Back to top: the arrow lifts */
.to-top .i-up { transition: transform 180ms var(--ease); }
.to-top:hover .i-up, .to-top:focus-visible .i-up { transform: translateY(-3px); }

/* Reading progress: a hairline under the sticky header follows the page scroll */
@supports (animation-timeline: scroll()) {
  .site-header::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left center; animation: oryx-progress linear both; animation-timeline: scroll(root block); }
  [dir="rtl"] .site-header::after { transform-origin: right center; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .section-head > .label::before, .hero-copy > .label::before { transform: none !important; transition: none !important; }
  .glyph, .crop i, .specs div::before, .deck-thumb::before, .deck-thumb::after, .to-top .i-up, .stream-line, .stream-node, .stream-label { transition: none !important; }
  .sweep { display: none; }
  .form-result .tick-draw path { animation: none !important; stroke-dashoffset: 0 !important; }
  .site-header::after { display: none; }
}

/* ---------- Landings: responsive ---------- */
@media (max-width: 1180px) {
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .flow { grid-auto-flow: row; grid-auto-columns: auto; }
  .flow li { padding: 14px 16px; }
  .flow li + li { border-inline-start: 1px solid var(--card-line); border-top: 0; }
  .flow li:first-child { border-radius: var(--radius-ctl) var(--radius-ctl) 0 0; }
  .flow li:last-child { border-radius: 0 0 var(--radius-ctl) var(--radius-ctl); }
  .flow li:not(:last-child)::after, [dir="rtl"] .flow li:not(:last-child)::after { top: auto; bottom: -7px; inset-inline-end: auto; inset-inline-start: 24px; transform: rotate(135deg); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .step-arrow { display: none; }
  .stats-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-media { max-width: 640px; }
}
@media (max-width: 760px) {
  .compare-row { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 12px; padding: 16px; }
  .compare-row .compare-note, .compare-row .level-meter { grid-column: 2; }
  .case summary { grid-template-columns: minmax(0, 1fr) 24px; gap: 12px; padding: 18px 16px; }
  .case summary > .index { display: none; }
  .case summary .badge { grid-column: 1; grid-row: 2; justify-self: start; }
  .case summary .case-toggle { grid-column: 2; grid-row: 1; }
  .case-body { padding: 20px 16px; }
  .case-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .risk-grid, .groups, .seg-grid, .check-steps, .others-grid, .arch-servers { grid-template-columns: minmax(0, 1fr); }
  .risk, .seg, .group { padding: 20px; }
  .cert { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .specs div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stats-band-grid { grid-template-columns: minmax(0, 1fr); }
  .deck { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .deck img { width: 96px; }
  .soon { gap: 8px 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Saved Arabic choice: hide the English markup until site.js swaps it in (no flash). */
.lang-pending #app { visibility: hidden; }

/* ---------- Review fixes: tablets, phones ---------- */
@media (max-width: 760px) {
  .stream-line { stroke-width: 2.4; }
  .stream-line.is-strong { stroke-width: 2.8; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .section { padding-block: 88px; }
  .hero { padding-block: 64px 88px; }
}
@media (max-width: 760px) {
  .stats-band-grid .stat { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 479px) {
  .site-header .brand { min-width: 44px; min-height: 44px; justify-content: center; padding-inline: 10px; margin-inline-start: -10px; }
}

/* ---------- Review fixes: short landscape screens (phones on their side) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 60px; }
  .brand { padding-block: 6px; }
  .hero { padding-block: 24px 40px; }
  .hero-copy { gap: 12px; }
  .display, html[lang="ar"] .display { font-size: 32px; line-height: 38px; max-width: 22ch; }
  html[lang="ar"] .display { line-height: 48px; }
  .lead { font-size: 16px; line-height: 24px; }
  .hero-copy .actions { margin-top: 4px; flex-direction: row; }
  .hero-copy .actions .btn { min-height: 44px; }
  .js .nav { padding-block: 12px 24px; gap: 12px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
  .nav-list a { min-height: 44px; font-size: 17px; }
  .nav-cta { min-height: 44px; }
}

/* ---------- Review fixes: desktop nav between 1024 and 1180 px (iPad landscape, small laptops) ---------- */
.nav-list a, .header-cta, .lang-switch button { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1180px) {
  :root { --gutter: 40px; }
  .header-inner { gap: 16px; }
  .nav-list { gap: 0; }
  .nav-list a { padding-inline: 7px; font-size: 14px; }
  .header-actions { gap: 10px; }
  .lang-switch button { min-width: 40px; padding-inline: 6px; font-size: 14px; }
  .header-cta { padding-inline: 14px; font-size: 14px; }
}
