/* Product website of Nebuchadnezzar CRM — the look of the website film: a dark, rain-soaked cyberpunk night,
   polished metal and dark glass. The accent colour follows the film's story, chapter by chapter (body[data-ch]):
   1 ignition = cold cyan · 2 the swarm = red alert · 3 escape = electric blue · 4 control = white-blue after the
   shock wave · 5 arrival = sunrise gold. js/site.js sets data-ch; @property lets the colour glide from one to the next.
   Everything is written with logical properties (inline-start / inline-end) so Arabic (dir="rtl") mirrors by itself. */
/* fonts:start — written by tools/fonts.js (our own copies of the Google fonts, SIL OFL 1.1; do not edit by hand) */
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/chakra-petch-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/chakra-petch-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/chakra-petch-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/chakra-petch-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/chakra-petch-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/chakra-petch-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-400-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-500-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-600-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-700-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/michroma-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/michroma-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* fonts:end */

@property --accent { syntax: '<color>'; inherits: true; initial-value: #3fe0ff; }
@property --accent-2 { syntax: '<color>'; inherits: true; initial-value: #4f8cff; }

:root {
  --bg: #04060b;
  --ink: #e9eef6;
  --ink-2: #aab5c7;
  --ink-3: #6f7c92;
  --line: rgba(170, 200, 240, .14);
  --line-2: rgba(170, 200, 240, .24);
  --glass: rgba(9, 14, 24, .58);
  --glass-2: rgba(6, 10, 18, .74);
  --alert: #ff4a3d;
  --gold: #ffbe5c;
  --accent: #3fe0ff;
  --accent-2: #4f8cff;
  --font-head: 'Chakra Petch', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'Inter', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --font-brand: 'Michroma', 'Chakra Petch', sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --head-h: 68px;
  --zoom: 1;
}
body { transition: --accent 1.1s ease, --accent-2 1.1s ease; }
body[data-ch="2"] { --accent: #ff5a3c; --accent-2: #ff9a3d; }
body[data-ch="3"] { --accent: #4fa3ff; --accent-2: #3fe0ff; }
body[data-ch="4"] { --accent: #c4e8ff; --accent-2: #7cc4ff; }
body[data-ch="5"] { --accent: #ffbe5c; --accent-2: #ffdc95; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html { overflow-x: clip; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: #fff; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: #03070d; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- metal lettering ---------- */
.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #e8eef6 36%, #9eabbf 50%, #dbe3ee 66%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 22px rgba(0, 0, 0, .55));
}
.chrome-warm { background-image: linear-gradient(180deg, #fffaf0 0%, #ffe7bf 36%, #c9935a 50%, #ffdca6 66%, #fff8ec 100%); }

/* ================= the film stage ================= */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000 url('/film/poster/ch1.webp?v=21') center / cover no-repeat; }
.stage-v {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform: scale(calc(var(--zoom) * var(--enter, 1)));
  transition: opacity .9s ease, transform 1.3s cubic-bezier(.16, .8, .2, 1), filter 1.3s ease;
}
.stage-v.is-front { opacity: 1; }
.stage-v.enter { --enter: 1.09; filter: brightness(1.7) blur(3px); }
.stage-v.leaving { --enter: 1.14; filter: blur(8px) brightness(.6); }
.stage-shade {
  position: absolute; inset: 0; transition: opacity 1s ease;
  background:
    linear-gradient(180deg, rgba(4, 6, 11, .55) 0%, rgba(4, 6, 11, 0) 22%, rgba(4, 6, 11, 0) 62%, rgba(4, 6, 11, .8) 100%),
    linear-gradient(90deg, rgba(4, 6, 11, .82) 0%, rgba(4, 6, 11, .42) 38%, rgba(4, 6, 11, .08) 66%, rgba(4, 6, 11, .35) 100%);
}
[dir="rtl"] .stage-shade {
  background:
    linear-gradient(180deg, rgba(4, 6, 11, .55) 0%, rgba(4, 6, 11, 0) 22%, rgba(4, 6, 11, 0) 62%, rgba(4, 6, 11, .8) 100%),
    linear-gradient(270deg, rgba(4, 6, 11, .82) 0%, rgba(4, 6, 11, .42) 38%, rgba(4, 6, 11, .08) 66%, rgba(4, 6, 11, .35) 100%);
}
.stage::before { /* extra darkness while reading the plans, questions and form */
  content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(3, 5, 9, .62); opacity: 0; transition: opacity 1s ease; pointer-events: none;
}
body.deep .stage::before { opacity: 1; }
.stage-shade, .stage-grain, .stage-scan, .pulse { z-index: 2; pointer-events: none; }
.stage-grain {
  position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }
.stage-scan { position: absolute; inset: 0; opacity: .18; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px); }

/* the shock wave (chapter 4): a ring of light sweeps the screen and knocks the cockpit read-outs out for a moment */
.pulse {
  position: absolute; left: 50%; top: 46%; width: 24vmax; height: 24vmax; margin: -12vmax 0 0 -12vmax; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(235, 248, 255, .9) 0%, rgba(140, 210, 255, .45) 32%, rgba(80, 160, 255, .12) 56%, transparent 70%);
  box-shadow: 0 0 0 2px rgba(200, 238, 255, .7), 0 0 120px 30px rgba(120, 200, 255, .45);
}
body.emp .pulse { animation: pulse 1.5s cubic-bezier(.15, .75, .2, 1) forwards; }
@keyframes pulse { 0% { transform: scale(.08); opacity: 1; } 65% { opacity: .65; } 100% { transform: scale(9); opacity: 0; } }
body.emp .hud, body.emp .top, body.emp .rail, body.emp .stage-shade { animation: blackout 1.7s steps(1, end) forwards; }
@keyframes blackout { 0% { opacity: 0; } 35% { opacity: .9; } 45% { opacity: 0; } 70% { opacity: 1; } 78% { opacity: .2; } 100% { opacity: 1; } }

/* ================= cockpit read-outs ================= */
.hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; font: 500 11px/1.4 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 80%, white); }
.hud-corner { position: absolute; width: 26px; height: 26px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); opacity: .8; }
.hud-tl { top: 14px; inset-inline-start: 14px; border-width: 1px 0 0 1px; }
.hud-tr { top: 14px; inset-inline-end: 14px; border-width: 1px 1px 0 0; }
.hud-bl { bottom: 14px; inset-inline-start: 14px; border-width: 0 0 1px 1px; }
.hud-br { bottom: 14px; inset-inline-end: 14px; border-width: 0 1px 1px 0; }
[dir="rtl"] .hud-tl { border-width: 1px 1px 0 0; } [dir="rtl"] .hud-tr { border-width: 1px 0 0 1px; }
[dir="rtl"] .hud-bl { border-width: 0 1px 1px 0; } [dir="rtl"] .hud-br { border-width: 0 0 1px 1px; }
.hud-seq { /* the current chapter, in the header bar */
  display: flex; align-items: center; gap: .5em; padding-inline-start: 18px; border-inline-start: 1px solid var(--line-2); white-space: nowrap;
  font: 500 11px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 80%, white);
}
.hud-seq b { font-weight: 500; color: #fff; }
.hud-seq em { font-style: normal; color: var(--ink-2); margin-inline-start: .6em; }
html[lang="ar"] .hud-seq em { font-family: 'IBM Plex Sans Arabic', var(--font-body); letter-spacing: 0; font-size: 12px; }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hud-geo { position: absolute; bottom: 22px; inset-inline-start: 50px; color: var(--ink-3); }
.hud-geo b { color: var(--ink-2); font-weight: 500; margin-inline: .8em; }
.hud-vel { position: absolute; bottom: 22px; inset-inline-end: 50px; display: flex; align-items: center; gap: .6em; color: var(--ink-3); }
.hud-vel b { color: #fff; font-weight: 500; min-width: 3ch; text-align: end; font-variant-numeric: tabular-nums; }
.hud-bar { display: block; width: 90px; height: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width .2s linear; }
.hud-alert {
  position: absolute; top: calc(var(--head-h) + 14px); left: 50%; transform: translateX(-50%); padding: 6px 14px;
  border: 1px solid rgba(255, 74, 61, .6); background: rgba(60, 6, 4, .45); color: #ff8a7a; opacity: 0; transition: opacity .5s;
}
.hud-alert::before { content: '▲ '; }
body[data-ch="2"] .hud-alert { opacity: 1; animation: blink 1.4s steps(2, jump-none) infinite; }
.hud-reboot { /* on the open side of the screen, away from the chapter's title */
  position: absolute; top: 30%; inset-inline-end: 7vw; text-align: end; opacity: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12px; color: var(--ink-2);
}
.hud-reboot b { font: 600 clamp(18px, 2.4vw, 30px)/1 var(--font-head); letter-spacing: .3em; color: #fff; }
body.rebooted .hud-reboot { animation: reboot 3.2s ease forwards; }
@keyframes reboot { 0% { opacity: 0; letter-spacing: .6em; } 15% { opacity: 1; letter-spacing: .18em; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* ================= header ================= */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--head-h); display: flex; align-items: center; gap: 24px;
  padding: 0 var(--pad); transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s;
}
.top.scrolled { background: rgba(5, 8, 14, .62); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-name { font: 400 13px/1 var(--font-brand); letter-spacing: .16em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.brand-name b { font-weight: 400; color: var(--accent); }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; font: 500 12px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.top .btn { flex-shrink: 0; }
.nav a:hover { color: #fff; }
.nav .nav-signin { color: #fff; border-inline-start: 1px solid var(--line-2); margin-inline-start: 6px; padding-inline-start: 18px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
/* the language menu: a real <select> (the phone's own picker on mobile), dressed like the header's glass buttons */
.lang-pick { position: relative; display: block; }
.lang {
  appearance: none; -webkit-appearance: none; border-radius: 0;
  font: 500 14px/1 'IBM Plex Sans Arabic', var(--font-body); color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--line-2); padding: 8px 30px 8px 12px; transition: border-color .2s, color .2s;
}
[dir="rtl"] .lang { padding: 8px 12px 8px 30px; }
.lang-pick::after { /* the little arrow */
  content: ''; position: absolute; top: 50%; inset-inline-end: 12px; width: 6px; height: 6px; margin-top: -5px; pointer-events: none;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg);
}
.lang:hover, .lang:focus-visible { border-color: var(--accent); color: #fff; }
.lang option { background: #0b1220; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 1.5px; background: #fff; transition: transform .3s, opacity .3s; }

/* ================= buttons ================= */
.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 16px 24px; border: 1px solid transparent;
  font: 600 13px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .3s, color .3s, transform .2s, filter .3s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 65%, white) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 80%, black) 100%); color: #03070d; }
.btn-primary:hover { filter: brightness(1.12) saturate(1.1); }
.btn-glass {
  color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(rgba(10, 16, 28, .55), rgba(10, 16, 28, .55)) padding-box,
              linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, transparent), rgba(255, 255, 255, .12) 60%, color-mix(in srgb, var(--accent) 50%, transparent)) border-box;
}
.btn-glass:hover { background: linear-gradient(color-mix(in srgb, var(--accent) 16%, rgba(10, 16, 28, .6)), color-mix(in srgb, var(--accent) 16%, rgba(10, 16, 28, .6))) padding-box, linear-gradient(135deg, var(--accent), rgba(255, 255, 255, .2)) border-box; }
.btn-sm { padding: 11px 16px; font-size: 11px; --cut: 7px; }
.btn-full { width: 100%; }
.play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--accent); }
[dir="rtl"] .play { transform: scaleX(-1); }
.dur { font: 500 11px/1 var(--font-mono); color: var(--ink-3); letter-spacing: .08em; }

/* ================= chapter rail ================= */
.rail { position: fixed; z-index: 15; top: 50%; inset-inline-start: 26px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 22px; padding-inline-start: 14px; }
.rail::before { content: ''; position: absolute; inset-inline-start: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line-2); }
.rail-fill { position: absolute; inset-inline-start: 0; top: 4px; width: 1px; height: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: height .15s linear; }
.rail a { position: relative; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-3); font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.rail a::before { content: ''; position: absolute; inset-inline-start: -17px; width: 7px; height: 7px; border: 1px solid var(--ink-3); background: var(--bg); transform: rotate(45deg); transition: all .3s; }
.rail a span { opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
[dir="rtl"] .rail a span { transform: translateX(6px); }
.rail a:hover span, .rail a.on span { opacity: 1; transform: none; }
.rail a.on { color: #fff; }
.rail a.on::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ================= chapters ================= */
main { position: relative; z-index: 10; }
.ch { position: relative; padding: calc(var(--head-h) + 12vh) var(--pad) 18vh; padding-inline-start: calc(var(--pad) + 110px); }
.ch > * { max-width: 1240px; }
.seq { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 500 12px/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.seq b { font-weight: 500; color: #fff; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.seq::after { content: ''; width: 72px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
[dir="rtl"] .seq::after { background: linear-gradient(270deg, var(--accent), transparent); }
.seq-sm { margin-bottom: 12px; }
.seq-sm::after { width: 40px; }
.ch-head { max-width: 760px; margin-bottom: clamp(48px, 9vh, 96px); }
.ch-head h2 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: 1.02; }
.lede { margin-top: 22px; max-width: 620px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; color: var(--ink-2); }
.lede-sm { font-size: 16px; margin-top: 14px; }
.h3 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; text-transform: uppercase; }

/* glass panels */
.glass {
  position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, var(--glass), var(--glass-2));
  backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.glass::before { /* polished-metal top edge */
  content: ''; position: absolute; inset: -1px -1px auto -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55) 30%, color-mix(in srgb, var(--accent) 70%, white) 50%, rgba(255, 255, 255, .45) 70%, transparent);
}

/* ---------- 01 hero ---------- */
/* the bottom keeps room for "Scroll to fly" (5vh from the bottom, ~70 px tall): on short laptop screens 14vh was
   not enough and it sat on the chips (owner, Oct 2026) */
.ch-1 { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--head-h) + 6vh); padding-bottom: max(14vh, calc(5vh + 110px)); }
.hero { max-width: 1120px; }
.hero .lede { max-width: 640px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; font: 500 12px/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.kicker-dot { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform: rotate(45deg); }
.title { font-size: clamp(54px, min(8.6vw, 15vh), 150px); font-weight: 700; line-height: .88; text-transform: uppercase; letter-spacing: -.015em; }
.title-line { display: block; }
.title-line + .title-line { padding-inline-start: .55em; }
.ch-1 .lede { margin-top: 30px; font-size: clamp(17px, 1.4vw, 20px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; font: 500 12px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.chips li { display: flex; align-items: center; gap: 9px; }
.chips li::before { content: ''; width: 5px; height: 5px; background: var(--accent); }
.scroll-cue {
  position: absolute; bottom: 5vh; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; font: 500 11px/1 var(--font-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2);
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(180deg, var(--accent), transparent); animation: drop 2.2s cubic-bezier(.6, 0, .4, 1) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 02 the swarm ---------- */
.ch-2 { padding-top: 26vh; }
.threats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; gap: 16px; max-width: 1100px; }
.threat { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; border-color: rgba(255, 90, 60, .22); }
.threat:nth-child(3n + 2) { margin-top: 36px; }
.threat-tag { display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: #ff8a7a; }
.threat-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 10px var(--alert); animation: blink 1.4s ease-in-out infinite; }
.threat strong { font: 600 19px/1.3 var(--font-head); color: #fff; }
.threat > span:last-child { color: var(--ink-2); font-size: 15px; }
.threat::after { /* lock-on brackets */
  content: ''; position: absolute; inset: 8px; pointer-events: none; opacity: .7;
  background:
    linear-gradient(var(--alert), var(--alert)) top left / 12px 1px no-repeat, linear-gradient(var(--alert), var(--alert)) top left / 1px 12px no-repeat,
    linear-gradient(var(--alert), var(--alert)) bottom right / 12px 1px no-repeat, linear-gradient(var(--alert), var(--alert)) bottom right / 1px 12px no-repeat;
}
.ch-close { margin-top: 90px; font: 600 clamp(22px, 2.4vw, 32px)/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: #fff; }

/* ---------- 03 escape ---------- */
.ch-3 { padding-top: 34vh; }
.moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1240px; }
.move { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .4s, transform .4s; }
.move:nth-child(3n + 2) { transform: translateY(56px); }
.move:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.move-id { position: absolute; top: 18px; inset-inline-end: 20px; font: 500 11px/1 var(--font-mono); letter-spacing: .2em; color: var(--ink-3); }
.ic { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
.move h3 { font-size: 20px; color: #fff; margin-top: 6px; }
.move p { color: var(--ink-2); font-size: 15px; }
.spec { margin-top: auto !important; padding-top: 10px; border-top: 1px dashed var(--line-2); font: 500 11px/1.5 var(--font-mono) !important; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 75%, white) !important; }

/* ---------- 04 control ---------- */
.ch-4 { padding-top: 40vh; }
.console { max-width: 1000px; overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 11px/1 var(--font-mono); color: var(--ink-3); letter-spacing: .08em; }
.console-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.console-bar span { margin-inline-start: 10px; }
.console-body { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; }
.console-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; border-inline-end: 1px solid var(--line); }
.console-side b { width: 22px; height: 22px; border: 1px solid var(--line-2); }
.console-side b.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent); }
.console-main { padding: 20px; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto 1fr; gap: 18px; }
.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis div { padding: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); display: flex; flex-direction: column; gap: 4px; }
.kpis small, .pipe small, .board small { font: 500 10px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.kpis strong { font: 600 30px/1 var(--font-head); color: #fff; }
.kpis em { font: 500 11px/1 var(--font-mono); font-style: normal; color: var(--ink-3); }
.kpis em.up { color: #6ef2b0; }
.pipe, .board { padding: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 8px; }
.pipe-bars { display: flex; flex-direction: column; gap: 6px; }
.pipe-bars span { position: relative; height: 18px; display: flex; align-items: center; }
.pipe-bars span::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w, 50%); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); transform-origin: left; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
[dir="rtl"] .pipe-bars span::before { background: linear-gradient(270deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); transform-origin: right; }
.pipe-bars span:nth-child(1) { --w: 92%; } .pipe-bars span:nth-child(2) { --w: 48%; } .pipe-bars span:nth-child(3) { --w: 70%; } .pipe-bars span:nth-child(4) { --w: 34%; }
.pipe-bars span:nth-child(5) { --w: 26%; } .pipe-bars span:nth-child(6) { --w: 58%; } .pipe-bars span:nth-child(7) { --w: 44%; } .pipe-bars span:nth-child(8) { --w: 30%; }
.pipe-bars b { position: relative; padding-inline-start: 8px; font: 500 11px/1 var(--font-body); color: #fff; }
html.js .console:not(.in) .pipe-bars span::before { transform: scaleX(0); }
.board-row { display: grid; grid-template-columns: 28px auto 1fr auto; align-items: center; gap: 10px; font-size: 12px; }
.board-row b { font-weight: 600; color: #fff; }
.board-row > i { height: 4px; background: rgba(255, 255, 255, .08); }
.board-row > i i { display: block; height: 100%; background: var(--accent); }
.board-row .w1 { width: 100%; } .board-row .w2 { width: 78%; } .board-row .w3 { width: 64%; }
.board-row em { font: 500 11px/1 var(--font-mono); font-style: normal; color: var(--ink-2); }
.av { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); font: 600 10px/1 var(--font-mono); color: var(--ink-2); }
.toast {
  position: absolute; inset-inline-end: 20px; bottom: 20px; display: flex; gap: 12px; align-items: flex-start; max-width: 330px; padding: 14px 16px;
  background: rgba(6, 12, 20, .92); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 40px -10px var(--accent);
  transition: transform .8s .6s cubic-bezier(.2, .8, .2, 1), opacity .8s .6s;
}
html.js .console:not(.in) .toast { transform: translateY(30px); opacity: 0; }
.toast-dot { width: 10px; height: 10px; flex-shrink: 0; margin-top: 4px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.toast p { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); }
.toast b { color: #fff; font-size: 13px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin-top: 18px; }
.pillar { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pillar h3 { font-size: 19px; color: #fff; }
.pillar p { color: var(--ink-2); font-size: 15px; }

/* ---------- 05 arrival ---------- */
.ch-5 { padding-top: 46vh; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1100px; }
.step { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.step-n { font: 700 44px/1 var(--font-head); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 80%, white); }
.step h3 { font-size: 21px; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.step p { color: var(--ink-2); font-size: 15px; }
.block { margin-top: clamp(90px, 14vh, 150px); max-width: 1100px; }
.block-head { margin-bottom: 34px; max-width: 720px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-size: 26px; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.plan-for { color: var(--ink-2); font-size: 14px; }
.price { margin: 14px 0 6px; font: 500 13px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.plan ul { list-style: none; margin: 10px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; margin-top: 9px; background: var(--accent); transform: rotate(45deg); }
.plan .btn { margin-top: auto; }
.plan-best { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 60px -20px var(--accent), 0 30px 80px -30px rgba(0, 0, 0, .7); }
.ribbon { position: absolute; top: -1px; inset-inline-end: 22px; padding: 6px 10px; background: var(--accent); color: #140c02; font: 600 10px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; }
.trial { margin-top: 16px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.trial p { color: var(--ink-2); max-width: 640px; }
.trial b { color: #fff; font-weight: 600; }
.faq { padding: 6px 26px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font: 600 17px/1.35 var(--font-head); color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; font: 400 22px/1 var(--font-mono); color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 760px; }
.demo { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks li::before { content: ''; width: 16px; height: 9px; border-inline-start: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }
[dir="rtl"] .ticks li::before { transform: rotate(45deg) translateY(-3px) scaleX(-1); }

/* form */
.form { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form label > span, .kind legend { font: 500 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 0; background: rgba(255, 255, 255, .04);
  color: #fff; font: 400 16px/1.3 var(--font-body); transition: border-color .2s, box-shadow .2s, background .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
[dir="rtl"] .form select { background-position: 18px 55%, 13px 55%; }
.form select option { background: #0b1220; color: #fff; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: rgba(255, 255, 255, .06); }
.f2, .f3 { display: grid; gap: 14px; }
.f2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kind { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kind legend { float: inline-start; margin-inline-end: 6px; padding: 0; }
.kind label { flex-direction: row; cursor: pointer; }
.kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind label span { padding: 10px 16px; border: 1px solid var(--line-2); font: 600 12px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); transition: all .2s; }
.kind input:checked + span { border-color: var(--accent); color: #fff; background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: 0 0 18px -6px var(--accent); }
.kind input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-note { font-size: 13px; color: var(--ink-3); }
.form-note a { color: var(--ink-2); }
.form-msg { min-height: 1.4em; font-size: 15px; }
.form-msg.ok { color: #6ef2b0; }
.form-msg.err { color: #ff8a7a; }

/* ================= footer ================= */
.foot { position: relative; z-index: 10; padding: 46px var(--pad) 40px; padding-inline-start: calc(var(--pad) + 110px); border-top: 1px solid var(--line); background: rgba(3, 5, 9, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.foot-in { max-width: 1240px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 36px; }
.foot-tag { font: 600 13px/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot-nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: #fff; }
.copy { grid-column: 1 / -1; font: 400 12px/1.5 var(--font-mono); color: var(--ink-3); letter-spacing: .06em; }
/* the page in each language (owner, Oct 2026): plain links, so search engines reach every language from any page */
.foot-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.foot-langs a { color: var(--ink-3); text-decoration: none; font: 500 12px/1.5 var(--font-mono); letter-spacing: .06em; }
.foot-langs a:hover, .foot-langs a[aria-current="page"] { color: #fff; }
.foot-langs a[lang="ar"] { font-family: 'IBM Plex Sans Arabic', var(--font-body); font-size: 13px; letter-spacing: 0; }

/* ================= the whole film ================= */
.filmbox { width: min(1280px, 94vw); max-width: none; padding: 0; border: 1px solid var(--line-2); background: #000; color: #fff; overflow: visible; }
.filmbox::backdrop { background: rgba(2, 3, 6, .88); backdrop-filter: blur(6px); }
.filmbox video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.filmbox-close { position: absolute; top: -46px; inset-inline-end: 0; padding: 10px 14px; border: 1px solid var(--line-2); background: rgba(10, 16, 28, .8); color: #fff; font: 600 12px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }

/* ================= privacy notice page (privacy.html) ================= */
.doc-page { background: radial-gradient(ellipse at 30% 0%, #0d1830 0%, var(--bg) 60%) fixed; }
.doc-back { margin-inline-start: auto; }
.doc { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; max-width: 860px; margin: 0 auto; padding: calc(var(--head-h) + 48px) var(--pad) 80px; }
.doc-card { padding: clamp(24px, 4vw, 44px); }
.doc-card h1 { margin-bottom: 8px; }
.doc-card h2 { margin: 28px 0 8px; font-size: 17px; color: #fff; letter-spacing: .02em; }
/* the notice's title in the other languages: one <h1> per page for search engines, the same look as the English one */
.doc-card h2.doc-h { margin: 0 0 8px; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.01em; color: transparent; }
.doc-card p { color: var(--ink-2); }
.doc-date { font: 500 12px/1 var(--font-mono); color: var(--ink-3) !important; letter-spacing: .08em; }
.doc-card[dir="rtl"], .doc-card[dir="rtl"] h1, .doc-card[dir="rtl"] h2, .doc-card[dir="rtl"] .seq, .doc-card[dir="rtl"] .doc-date { font-family: 'IBM Plex Sans Arabic', var(--font-body); letter-spacing: 0; text-transform: none; }
.doc-card[dir="rtl"] .seq::after { background: linear-gradient(270deg, var(--accent), transparent); }
.doc-page .foot { padding-inline-start: var(--pad); }

/* ================= appearing on scroll ================= */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s ease, transform 1s cubic-bezier(.16, .8, .2, 1), filter 1s ease; transition-delay: calc(var(--i, 0) * 90ms); }
html.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
html.js .move:nth-child(3n + 2)[data-reveal].in { transform: translateY(56px); }

/* ================= Arabic ================= */
html[lang="ar"] body { font-family: 'IBM Plex Sans Arabic', var(--font-body); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .btn, html[lang="ar"] .nav a, html[lang="ar"] .seq,
html[lang="ar"] .kicker, html[lang="ar"] .chips, html[lang="ar"] .threat-tag, html[lang="ar"] .spec, html[lang="ar"] .price,
html[lang="ar"] .form label > span, html[lang="ar"] .kind legend, html[lang="ar"] .kind label span, html[lang="ar"] .ribbon,
html[lang="ar"] .faq summary, html[lang="ar"] .ch-close, html[lang="ar"] .foot-tag, html[lang="ar"] .rail a span, html[lang="ar"] .scroll-cue,
html[lang="ar"] .hud span, html[lang="ar"] .hud b, html[lang="ar"] .kpis small, html[lang="ar"] .pipe small, html[lang="ar"] .board small, html[lang="ar"] .filmbox-close {
  font-family: 'IBM Plex Sans Arabic', var(--font-body); letter-spacing: 0; text-transform: none;
}
html[lang="ar"] .title { font-size: clamp(52px, 9vw, 140px); line-height: 1.12; font-weight: 700; }
html[lang="ar"] .ch-head h2 { line-height: 1.3; }
html[lang="ar"] .lede { line-height: 1.9; }

/* ================= smaller screens ================= */
/* the header needs the room for its menu — Spanish, French, German and Italian words are longer than English ones */
@media (max-width: 1720px) { .hud-seq { display: none; } }
@media (max-width: 1440px) { .nav { gap: 2px; } .nav a { padding: 8px 9px; letter-spacing: .1em; } .top { gap: 18px; } }
@media (max-width: 1240px) { .nav a { padding: 8px 7px; letter-spacing: .06em; font-size: 11px; } .brand-name { font-size: 12px; letter-spacing: .12em; } }
/* tablets held sideways: the header's "Request a demo" goes (the same button is in the middle of the first screen) */
@media (max-width: 1200px) and (min-width: 981px) { .top-actions .btn { display: none; } }
@media (max-width: 1180px) {
  .ch, .foot { padding-inline-start: var(--pad); }
  .rail, .hud-seq { display: none; }
  .moves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .move:nth-child(3n + 2), html.js .move:nth-child(3n + 2)[data-reveal].in { transform: none; }
  .move:nth-child(even), html.js .move:nth-child(even)[data-reveal].in { transform: translateY(40px); }
}
@media (max-width: 980px) {
  .nav { display: none; position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; gap: 0; padding: 12px var(--pad) 24px; background: rgba(4, 7, 12, .96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .nav a { padding: 16px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
  .nav .nav-signin { border-inline-start: 0; margin: 0; padding-inline-start: 0; }
  body.nav-open .nav { display: flex; }
  .burger { display: flex; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .console-main { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars, .steps, .plans { grid-template-columns: 1fr; max-width: 640px; }
  .demo { grid-template-columns: 1fr; }
  .toast { position: relative; inset: auto; margin: 0 20px 20px; max-width: none; }
  .hud-vel { display: none; }
}
@media (max-width: 760px) {
  :root { --head-h: 60px; }
  .top { gap: 10px; }
  .top-actions { margin-inline-start: auto; gap: 8px; }
  .brand { gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 10px; letter-spacing: .06em; }
  .lang { padding: 7px 24px 7px 9px; font-size: 13px; max-width: 104px; }
  [dir="rtl"] .lang { padding: 7px 9px 7px 24px; }
  .lang-pick::after { inset-inline-end: 9px; }
  .hide-xs { display: none; }
  .hud-geo, .hud-alert, .hud-reboot, .scroll-cue { display: none; }
  .hud-corner { width: 16px; height: 16px; }
  .ch { padding-top: calc(var(--head-h) + 8vh); padding-bottom: 12vh; }
  .ch-2, .ch-3, .ch-4, .ch-5 { padding-top: 32vh; }
  .title-line + .title-line { padding-inline-start: 0; }
  .moves { grid-template-columns: 1fr; }
  .move:nth-child(even), html.js .move:nth-child(even)[data-reveal].in { transform: none; }
  .threat:nth-child(3n + 2) { margin-top: 0; }
  .f2, .f3 { grid-template-columns: 1fr; }
  .form, .faq { padding-inline: 18px; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
  .scroll-cue { bottom: 3vh; }
}

@media (max-width: 380px) {
  .top { gap: 8px; padding-inline: 12px; }
  .top-actions { gap: 6px; }
  .brand { gap: 7px; }
  .brand img { width: 26px; height: 26px; }
  .brand-name { font-size: 8.5px; letter-spacing: .02em; }
  .lang { max-width: 92px; padding-inline-start: 8px; font-size: 12px; }
  .burger { width: 38px; height: 38px; padding: 10px 9px; }
}
/* the logo (owner, Oct 2026: the ship drawing): the whole ship beside the name on wider screens, the square tile on phones */
.brand img.brand-ship { width: auto; height: 34px; }
.foot .brand img.brand-ship { height: 28px; }
.brand img.brand-tile { display: none; }
@media (max-width: 760px) { .brand img.brand-ship { display: none; } .brand img.brand-tile { display: block; } }
/* the smallest phones (320 px): the name alone, so the language menu and the menu button still fit */
@media (max-width: 359px) { .top .brand img, .top .brand img.brand-tile { display: none; } }

/* visitors who asked for less motion: still pictures, no flicker, no grain */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-grain, .scroll-cue i { animation: none; }
  .stage-v, html.js [data-reveal] { transition: opacity .4s ease; transform: none !important; filter: none !important; }
  body.emp .pulse, body.emp .hud, body.emp .top, body.emp .rail, body.rebooted .hud-reboot { animation: none; }
  .hud-dot, .threat-tag i, body[data-ch="2"] .hud-alert { animation: none; }
}

/* ================= guides (product-site/…/guides/…, made by tools/guides.js) ================= */
.guide { line-height: 1.75; }
.guide p, .guide li { color: var(--ink-2); font-size: 16px; }
.guide .guide-lede { font-size: 18px; color: #e8eef6; margin: 18px 0; }
.guide p + p { margin-top: 14px; }
.guide h2 { margin: 38px 0 10px; font-size: 21px; color: #fff; letter-spacing: .01em; }
.guide h3 { margin: 24px 0 6px; font-size: 17px; color: #fff; }
.guide ul, .guide ol { padding-inline-start: 22px; margin: 10px 0; display: grid; gap: 7px; }
.guide strong { color: #fff; font-weight: 600; }
.guide a:not(.btn) { color: var(--accent); }
.guide-crumbs { margin-bottom: 16px; font: 500 12px/1.4 var(--font-mono); color: var(--ink-3); letter-spacing: .04em; }
.guide .guide-crumbs a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.guide-box { margin: 22px 0; padding: 16px 20px; border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); background: rgba(63, 224, 255, .05); }
.guide-box p { margin: 0; }
.guide-table { overflow-x: auto; margin: 14px 0; }
.guide table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.guide th, .guide td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; line-height: 1.5; }
.guide th { color: #fff; font-weight: 600; }
.guide details { border-top: 1px solid var(--line); padding: 12px 0; }
.guide details:last-of-type { border-bottom: 1px solid var(--line); }
.guide summary { cursor: pointer; color: #fff; font-weight: 600; }
.guide details p { margin: 8px 0 0; }
.guide-cta { margin-top: 36px; padding: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.guide-cta p { margin: 0; color: #fff; flex: 1 1 320px; }
.guide-more small { color: var(--ink-3); }
.guide-list { list-style: none; padding: 0 !important; display: grid; gap: 14px; margin-top: 18px; }
.guide-list a { display: block; padding: 18px 20px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.guide-list a:hover { border-color: var(--accent); }
.guide-list em { display: block; margin-bottom: 6px; font: 500 11px/1 var(--font-mono); font-style: normal; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.guide-list b { display: block; margin-bottom: 6px; color: #fff; font-size: 17px; line-height: 1.4; }
.guide-list span { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.guide[dir="rtl"] h3, .guide-list a[dir="rtl"] b, .guide-list a[dir="rtl"] span { font-family: 'IBM Plex Sans Arabic', var(--font-body); }
.doc-page .top-actions .btn-primary { white-space: nowrap; }
@media (max-width: 560px) { .doc-page .top-actions .btn-primary { display: none; } }   /* phones: the article ends with the same button */

/* M-10 "Made to measure" (owner, Oct 2026): the full width under the nine cards, clear of the shifted middle column */
.move-wide { grid-column: 1 / -1; margin-top: 56px; }
.move-wide p:not(.spec) { max-width: 880px; }
@media (max-width: 980px) { .move-wide { margin-top: 0; } .moves .move.move-wide, html.js .moves .move.move-wide[data-reveal].in { transform: none; } }
