@charset "utf-8";
/* ShamashCyber v6 - monochrome.
   Black and white are the only colours in the system. Depth, emphasis and state
   are carried by inversion, borders, opacity and 3D, never by hue.

   Component anatomy follows shadcn/ui (tokens, button, tabs, sheet, accordion,
   sidebar). Depth and motion follow Aceternity UI primitives (container scroll,
   3D card, card spotlight, moving border, card stack, tracing beam, sticky
   scroll reveal, dot background, encrypted text, resizable navbar). Timing is
   GSAP (ScrollTrigger, matchMedia, quickTo) and Anime.js v4 (createTimeline,
   stagger, svg.createDrawable, utils). Nothing else. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Shamash Ar Display";
  src: url("/assets/shamash-ar-display.3bf075b051.woff2") format("woff2");
  font-weight: 500 800; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Shamash Ar Text";
  src: url("/assets/shamash-ar-text-400.800dbf80bd.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Shamash Ar Text";
  src: url("/assets/shamash-ar-text-600.ac11130a92.woff2") format("woff2");
  font-weight: 500 800; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

/* ------------------------------------------------------------------ tokens */
/* shadcn/ui token naming: a surface token and its -fg pair. Neutral only. */
:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --card: #101014;
  --card-2: #16161b;
  --fg: #fafafa;
  --fg-2: #d4d4d8;
  --muted-fg: #8b8b93;
  --faint-fg: #7f7f88;
  --border: rgba(250, 250, 250, 0.10);
  --border-2: rgba(250, 250, 250, 0.20);
  --border-3: rgba(250, 250, 250, 0.38);
  --ring: rgba(250, 250, 250, 0.65);
  --on: #ffffff;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;

  --r: 10px;      /* shadcn --radius */
  --r-sm: 6px;
  --r-lg: 16px;
  --gut: 20px;
  --wrap: 1200px;
  --nav: 60px;
  --tap: 46px;
  --sect: 76px;
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);
}
@media (min-width: 640px) { :root { --gut: 26px; --sect: 96px; } }
@media (min-width: 900px) { :root { --nav: 68px; --sect: 104px; } }
@media (min-width: 1180px) { :root { --gut: 36px; --sect: 116px; } }

/* The inverted band: white paper, black ink. Same tokens, flipped. */
.invert {
  --bg: #fafafa;
  --bg-2: #f2f2f2;
  --card: #ffffff;
  --card-2: #f4f4f5;
  --fg: #08080a;
  --fg-2: #26262b;
  --muted-fg: #5c5c64;
  --faint-fg: #67676f;
  --border: rgba(8, 8, 10, 0.12);
  --border-2: rgba(8, 8, 10, 0.24);
  --border-3: rgba(8, 8, 10, 0.42);
  --ring: rgba(8, 8, 10, 0.7);
  --on: #08080a;
  background: var(--bg);
  color: var(--fg);
}

html[lang="ar"] { --sans: "Shamash Ar Text", ui-sans-serif, system-ui, "Segoe UI", Tahoma, sans-serif; }

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: #08080a;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: #fafafa; color: #08080a; }
.invert ::selection { background: #08080a; color: #fafafa; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 3px; }

.u-skip {
  position: absolute; inset-inline-start: var(--gut); top: 8px; z-index: 300;
  padding: 10px 14px; background: var(--fg); color: var(--bg);
  border-radius: var(--r-sm); font-size: 13px; transform: translateY(-200%);
}
.u-skip:focus { transform: none; }
.u-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.u-ltr { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] code, html[dir="rtl"] pre { direction: ltr; text-align: start; unicode-bidi: isolate; }

/* --------------------------------------------------------------- typography */
.t-display { font-size: clamp(36px, 8.6vw, 78px); line-height: 1.02; letter-spacing: -0.038em; font-weight: 600; text-wrap: balance; }
.t-h2 { font-size: clamp(27px, 4.8vw, 46px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.t-h3 { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 580; }
.t-lede { font-size: clamp(16.5px, 2.1vw, 19px); line-height: 1.65; color: var(--muted-fg); max-width: 62ch; }
.t-body { color: var(--muted-fg); max-width: 66ch; }
code, kbd, samp, pre { font-family: var(--mono); }

html[lang="ar"] .t-display, html[lang="ar"] .t-h2, html[lang="ar"] .t-h3 {
  font-family: "Shamash Ar Display", var(--sans); letter-spacing: 0; font-weight: 700;
}
html[lang="ar"] .t-display { font-size: clamp(31px, 7.4vw, 64px); line-height: 1.22; }
html[lang="ar"] .t-h2 { font-size: clamp(24px, 4.3vw, 40px); line-height: 1.3; }
html[lang="ar"] .t-h3 { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; }
html[lang="ar"] body, html[lang="ar"] .t-lede, html[lang="ar"] .t-body { line-height: 1.85; }

/* -------------------------------------------------------------- primitives */
.u-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.u-sect { padding-block: var(--sect); position: relative; }
.rule-top { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint-fg);
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--border-3); }
html[lang="ar"] .eyebrow { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 13px; }

.chip {
  display: inline-block; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--card); font-family: var(--mono); font-size: 12px;
  line-height: 1.5; color: var(--fg-2); max-width: 100%; overflow-wrap: anywhere;
}

/* Aceternity: Grid and Dot Backgrounds - masked so it fades into the page. */
.dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 22px 22px;
  color: rgba(250, 250, 250, 0.16);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(75% 60% at 50% 30%, #000 0%, transparent 78%);
}
.invert .dots { color: rgba(8, 8, 10, 0.16); }
.u-above { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ button */
/* shadcn button anatomy. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: var(--tap); padding: 11px 20px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: 15px; font-weight: 550; line-height: 1.25; text-align: center;
  cursor: pointer; overflow-wrap: anywhere;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--fg-2); }
.btn--ghost { border-color: var(--border-2); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--border-3); background: var(--card); }
.btn__arrow { flex: 0 0 auto; width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
html[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(3px); }

/* Aceternity: Moving Border. A single white segment orbits the edge. */
.mb { position: relative; padding: 1px; border-radius: calc(var(--r) + 1px); overflow: hidden; isolation: isolate; display: inline-flex; max-width: 100%; }
.mb::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%;
  width: 180%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0turn, transparent 0.62turn, var(--fg) 0.78turn, transparent 0.9turn);
  animation: mb-orbit 4s linear infinite;
}
.mb::after { content: ""; position: absolute; z-index: -1; inset: 1px; border-radius: var(--r); background: var(--bg); }
.mb > .btn { flex: 1 1 auto; }
@keyframes mb-orbit { to { rotate: 1turn; } }

.btn-row { display: grid; gap: 10px; }
.btn-row > * { min-width: 0; }
@media (min-width: 560px) { .btn-row { grid-auto-flow: column; justify-content: start; gap: 12px; align-items: center; } }

/* ------------------------------------------------------------------ navbar */
/* Aceternity: Resizable Navbar. Full width at rest, contracts to a bordered
   pill once the page scrolls. */
.nav { position: sticky; top: 0; z-index: 120; background: var(--bg); }
.nav__in {
  display: flex; align-items: center; gap: 14px; min-height: var(--nav);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease);
}
@media (min-width: 900px) {
  .nav { top: 12px; padding-top: 6px; background: transparent; }
  .nav__in {
    max-width: calc(var(--wrap) + 24px); margin-inline: auto; padding-inline: 16px;
    border: 1px solid transparent; border-radius: 999px;
    background: transparent;
    transition: max-width 0.45s var(--ease), background-color 0.35s var(--ease),
                border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }
  .nav[data-shrunk="true"] .nav__in {
    max-width: 900px;
    border-color: var(--border-2);
    background: color-mix(in srgb, var(--bg) 76%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-inline-end: auto; }
.brand__mark { width: 26px; height: 26px; flex: 0 0 auto; }
.brand__name { font-size: 16px; font-weight: 620; letter-spacing: -0.02em; }
.nav__links { display: none; }
.nav__side { display: flex; align-items: center; gap: 8px; }
.nav__lang {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 13px;
  transition: border-color 0.18s var(--ease);
}
.nav__lang:hover { border-color: var(--border-3); }
.nav__cta { display: none; }
.nav__burger {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: transparent; cursor: pointer;
}
.nav__burger svg { width: 17px; height: 17px; }

@media (min-width: 900px) {
  .nav__burger { display: none; }
  .nav__cta { display: inline-flex; }
  .nav__links { display: flex; align-items: center; gap: 2px; margin-inline-end: 10px; }
  .nav__links a {
    position: relative; padding: 8px 13px; font-size: 14.5px; color: var(--muted-fg);
    border-radius: 999px; transition: color 0.18s var(--ease);
  }
  .nav__links a::before {
    content: ""; position: absolute; inset: 0; border-radius: 999px;
    background: var(--card-2); opacity: 0; transition: opacity 0.18s var(--ease);
  }
  .nav__links a > span { position: relative; }
  .nav__links a:hover { color: var(--fg); }
  .nav__links a:hover::before { opacity: 1; }
  .nav__links a[aria-current="page"] { color: var(--fg); }
  .nav__links a[aria-current="page"]::before { opacity: 1; }
}

/* shadcn Sheet, phone only */
.sheet {
  position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--bg); visibility: hidden; opacity: 0;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}
.sheet[data-open="true"] { visibility: visible; opacity: 1; }
.sheet__top { display: flex; align-items: center; min-height: var(--nav); border-bottom: 1px solid var(--border); }
.sheet__close {
  margin-inline-start: auto; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: transparent; cursor: pointer;
}
.sheet__close svg { width: 15px; height: 15px; }
.sheet__nav { align-self: start; padding-block: 8px; overflow-y: auto; }
.sheet__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 62px; padding-block: 6px; border-bottom: 1px solid var(--border);
  font-size: 25px; font-weight: 580; letter-spacing: -0.02em;
}
html[lang="ar"] .sheet__nav a { font-family: "Shamash Ar Display", var(--sans); letter-spacing: 0; }
.sheet__nav a span { font-family: var(--mono); font-size: 11px; color: var(--faint-fg); letter-spacing: 0; font-weight: 400; }
.sheet__foot { padding-bottom: 26px; display: grid; gap: 10px; }
.sheet__foot .btn, .sheet__foot .mb { width: 100%; }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; padding-block: 40px 0; overflow: hidden; }
@media (min-width: 900px) { .hero { padding-block: 64px 0; } }
.hero__copy { position: relative; z-index: 2; }
.hero__h1 { margin-top: 20px; }
.hero__h1 .sub { display: block; color: var(--muted-fg); font-weight: 400; font-size: 0.44em; line-height: 1.3; margin-top: 0.5em; letter-spacing: -0.01em; }
html[lang="ar"] .hero__h1 .sub { font-size: 0.42em; line-height: 1.6; }
.hero__lede { margin-top: 22px; }
.hero__cta { margin-top: 28px; }
.hero__facts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint-fg); }
.hero__facts i { width: 4px; height: 4px; border-radius: 50%; background: var(--border-3); flex: 0 0 auto; }
@media (min-width: 1000px) {
  .hero__copy { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: end; }
  .hero__aside { padding-bottom: 6px; }
  .hero__lede { margin-top: 0; }
}

/* Aceternity: Text Generate Effect. Words are pre-split at build time; the
   pre-state only exists while html.has-motion is set. */
.gen > span { display: inline-block; }
.has-motion .gen > span {
  opacity: 0; filter: blur(7px); transform: translateY(0.22em);
  transition: opacity 0.62s var(--ease) var(--d, 0s), filter 0.62s var(--ease) var(--d, 0s),
              transform 0.62s var(--ease) var(--d, 0s);
}
.has-motion .gen.is-in > span { opacity: 1; filter: blur(0); transform: none; }

/* --------------------------------------------- Aceternity: Container Scroll */
/* The hero device. A single plane that rotates from a tilted rest state to flat
   as the page scrolls, carrying the real terminal. Desktop and tablet only. */
.device { display: none; }
@media (min-width: 760px) {
  .device {
    display: block; position: relative; z-index: 1;
    margin-top: 56px; padding-bottom: var(--sect);
    perspective: 1400px; perspective-origin: 50% 0%;
  }
  /* Numeric custom properties so GSAP can interpolate them directly. Defaults
     are the flat, fully readable state: the tilt is only ever added by script. */
  .device__inner {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg))
               scale(var(--sc, 1)) translateY(calc(var(--ty, 0) * 1px));
    transform-origin: 50% 0%;
    will-change: transform;
  }
  .device__screen {
    position: relative; border: 1px solid var(--border-2); border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--card-2), var(--card));
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(250, 250, 250, 0.08);
    overflow: hidden;
  }
  .device__bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    font-family: var(--mono); font-size: 11px; color: var(--faint-fg);
  }
  .device__bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .device__dots { display: inline-flex; gap: 6px; }
  .device__dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--border-2); }
  .device__body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 330px; }
  .device__rail { border-inline-end: 1px solid var(--border); padding: 14px 10px; }
  .device__rail b { display: block; padding-inline: 8px; margin-bottom: 10px; font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--faint-fg); letter-spacing: 0.1em; }
  .device__rail li { display: flex; align-items: center; gap: 8px; min-height: 30px; padding-inline: 8px; border-radius: var(--r-sm); font-family: var(--mono); font-size: 11.5px; color: var(--muted-fg); }
  .device__rail li[data-on="true"] { color: var(--fg); background: var(--card-2); }
  .device__rail em { width: 5px; height: 5px; border-radius: 1px; background: var(--border-3); flex: 0 0 auto; }
  .device__main { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  /* Layered children, lifted on Z. Aceternity 3D Card Effect. */
  .device__float {
    position: absolute; z-index: 3; padding: 12px 14px;
    border: 1px solid var(--border-2); border-radius: var(--r);
    background: color-mix(in srgb, var(--card) 88%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
    transform: translateZ(70px);
  }
  .device__float small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--faint-fg); }
  .device__float strong { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 560; }
  .device__float--a { top: 8%; inset-inline-end: -2%; }
  .device__float--b { bottom: 14%; inset-inline-start: -3%; transform: translateZ(95px); }
}
@media (min-width: 1000px) { .device__body { min-height: 380px; } }

/* Aceternity: Card Stack. The phone scene, built for the phone. */
.stack { position: relative; margin-top: 40px; padding-bottom: var(--sect); }
@media (min-width: 760px) { .stack { display: none; } }
.stack__space { position: relative; height: 300px; perspective: 900px; }
.stack__card {
  position: absolute; inset-inline: 0; top: 0;
  border: 1px solid var(--border-2); border-radius: var(--r);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9);
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--i, 0) * 14px)) translateZ(calc(var(--i, 0) * -26px)) scale(calc(1 - var(--i, 0) * 0.03));
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
  overflow: hidden;
}
.stack__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 10.5px; color: var(--faint-fg);
}
.stack__body { padding: 14px; }
.stack__body .term__body { padding: 0; }
.stack__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; font-family: var(--mono); font-size: 11.5px; color: var(--muted-fg); }
.stack__row + .stack__row { border-top: 1px solid var(--border); }
.stack__row b { color: var(--fg); font-weight: 500; }
.stack__nav { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.stack__nav button {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  font-family: var(--mono); font-size: 11px; color: var(--muted-fg); cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.stack__nav button[aria-pressed="true"] { border-color: var(--border-3); color: var(--fg); }

/* --------------------------------------------------------------- terminal */
.term { border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.term__live { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); }
.term__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); flex: 0 0 auto; }
.term__body {
  padding: 14px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.95; direction: ltr; text-align: left; unicode-bidi: isolate;
  color: var(--muted-fg); -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) { .term__body { padding: 16px 18px; font-size: 13px; } }
.term__l { white-space: pre; }
.term__l::before { content: "  "; color: var(--faint-fg); }
.term__l[data-k="in"] { color: var(--fg); }
.term__l[data-k="in"]::before { content: "$ "; color: var(--faint-fg); }
.term__l[data-k="ok"] { color: var(--fg); }
.term__l[data-k="ok"]::before { content: "> "; color: var(--faint-fg); }
.device .term { border: 0; border-radius: 0; background: transparent; }

/* ----------------------------------------------------- the preview address */
.addr { --fs: clamp(15px, 4.6vw, 30px); }
.addr__line {
  font-family: var(--mono); font-size: var(--fs); line-height: 1.7;
  letter-spacing: -0.02em; color: var(--faint-fg);
  direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere;
}
.addr__seg { color: var(--fg); }
.addr__sep { color: var(--muted-fg); }
.addr__seg[data-on="true"] { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.addr__keys { margin-top: 22px; border-top: 1px solid var(--border); }
.addr__keys li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--border);
}
.addr__k { font-size: 14px; color: var(--muted-fg); }
.addr__v { font-family: var(--mono); font-size: 13.5px; color: var(--fg-2); }
.addr__keys li[data-on="true"] .addr__k, .addr__keys li[data-on="true"] .addr__v { color: var(--fg); }
.addr__note { margin-top: 24px; font-size: 15px; color: var(--muted-fg); max-width: 60ch; }
@media (min-width: 900px) {
  .addr--aligned .addr__line { white-space: nowrap; }
  .addr--aligned .addr__keys { position: relative; height: 64px; margin-top: 4px; border: 0; }
  .addr--aligned .addr__keys li {
    position: absolute; top: 0; left: var(--x, 0); transform: translateX(-50%);
    display: block; padding: 0; border: 0; text-align: center; white-space: nowrap;
  }
  .addr--aligned .addr__keys li::before { content: ""; display: block; width: 1px; height: 18px; margin: 0 auto 9px; background: var(--border-2); }
  .addr--aligned .addr__v { display: none; }
  .addr--aligned .addr__k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--faint-fg); }
  html[lang="ar"] .addr--aligned .addr__k { font-family: var(--sans); letter-spacing: 0; font-size: 13px; }
}

/* ------------------------------------------------ Aceternity: Card Spotlight */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.3s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(250, 250, 250, 0.10), transparent 62%);
}
.invert .spot::before { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(8, 8, 10, 0.07), transparent 62%); }
.spot:hover::before, .spot:focus-within::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* ------------------------------------------- Aceternity: 3D Card Effect grid */
.cards { display: grid; gap: 12px; margin-top: 42px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.card3d { perspective: 1000px; }
.card3d__in {
  height: 100%; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--card); transform-style: preserve-3d;
  transform: rotateX(calc(var(--crx, 0) * 1deg)) rotateY(calc(var(--cry, 0) * 1deg));
  transition: border-color 0.25s var(--ease);
}
.card3d__in:hover { border-color: var(--border-2); }
@media (min-width: 700px) { .card3d__in { padding: 30px; min-height: 260px; display: flex; flex-direction: column; } }
.card3d__tok { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--faint-fg); transform: translateZ(24px); }
.card3d__h { margin-top: 16px; transform: translateZ(42px); }
.card3d__p { margin-top: 10px; color: var(--muted-fg); font-size: 15px; transform: translateZ(18px); }

/* ------------------------------------------- the architecture, in real depth */
.arch { margin-top: 46px; display: grid; gap: 34px; }
@media (min-width: 1000px) { .arch { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 56px; align-items: center; } }
.arch__list { display: grid; }
.arch__item {
  width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px;
  padding: 16px 4px; border: 0; border-bottom: 1px solid var(--border);
  background: transparent; text-align: start; cursor: pointer;
  transition: opacity 0.25s var(--ease);
}
/* Dimming only applies once script is actually driving the selection, so a page
   without it shows all four layers at full contrast. */
[data-sync] .arch__item { opacity: 0.62; }
[data-sync] .arch__item[data-on="true"] { opacity: 1; }
.arch__item:first-child { border-top: 1px solid var(--border); }
.arch__item > span { display: block; min-width: 0; }
.arch__item > span > b { display: block; font-size: 16px; font-weight: 580; }
.arch__item > span > span { display: block; margin-top: 5px; font-size: 14px; color: var(--muted-fg); }
.arch__item i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--faint-fg); padding-top: 4px; }

.arch__scene { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.arch__space {
  position: relative; aspect-ratio: 4 / 3.4; perspective: 1100px; perspective-origin: 50% 42%;
}
@media (min-width: 1000px) { .arch__space { aspect-ratio: 4 / 3.2; } }
.arch__inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(calc(var(--az, -38) * 1deg));
  will-change: transform;
}
.arch__plane {
  position: absolute; left: 50%; top: 50%; width: 56%; aspect-ratio: 1;
  margin: -28% 0 0 -28%;
  border: 1px solid var(--border-2); border-radius: 14px;
  background: linear-gradient(150deg, rgba(250, 250, 250, 0.055), rgba(250, 250, 250, 0.012));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transform: translateZ(calc(var(--i, 0) * var(--gap, 46) * 1px));
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.invert .arch__plane { background: linear-gradient(150deg, rgba(8, 8, 10, 0.06), rgba(8, 8, 10, 0.015)); }
.arch__plane[data-on="true"] { border-color: var(--border-3); }
.arch__plane::before {
  content: ""; position: absolute; inset: 10px; border-radius: 9px;
  background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 26px 26px; color: rgba(250, 250, 250, 0.08);
}
.invert .arch__plane::before { color: rgba(8, 8, 10, 0.08); }
.arch__tag {
  position: absolute; inset-inline-start: 14px; top: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fg-2);
  transform: translateZ(1px);
}

@media (min-width: 1000px) { .arch__plane { --gap: 54; width: 52%; margin: -26% 0 0 -26%; } }

/* ---------------------------------------- Aceternity: Tracing Beam (session) */
.beam { position: relative; margin-top: 42px; padding-inline-start: 30px; }
@media (min-width: 900px) { .beam { padding-inline-start: 40px; } }
.beam__rail { position: absolute; inset-inline-start: 5px; top: 6px; bottom: 18px; width: 1px; }
.beam__track { position: absolute; inset: 0; background: var(--border-2); }
.beam__draw {
  position: absolute; inset: 0; background: var(--fg);
  transform: scaleY(1); transform-origin: top; will-change: transform;
}
.beam__dot {
  position: absolute; top: 0; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--fg); opacity: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 14%, transparent);
  will-change: transform;
}
.beam__step { padding-bottom: 34px; position: relative; opacity: 0.55; transition: opacity 0.35s var(--ease); }
.beam__step[data-on="true"] { opacity: 1; }
.beam__step:last-child { padding-bottom: 0; }
.beam__n { font-family: var(--mono); font-size: 12px; color: var(--faint-fg); }
.beam__h { margin-top: 5px; }
.beam__p { margin-top: 8px; color: var(--muted-fg); max-width: 54ch; }
.beam__code { margin-top: 14px; }
@media (min-width: 900px) {
  .beam__step { display: grid; grid-template-columns: 44px minmax(0, 30rem) max-content; gap: 28px; align-items: start; padding-bottom: 46px; }
  .beam__h { margin-top: 0; }
  .beam__n { padding-top: 4px; }
  .beam__code { margin-top: 2px; }
}

/* ------------------------------------ Aceternity: Sticky Scroll Reveal (platform) */
.sticky { display: none; }
@media (min-width: 1000px) {
  .sticky { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 60px; align-items: start; margin-top: 52px; }
  .sticky__list { display: grid; gap: 4px; }
  .sticky__item {
    padding: 26px 0; border-top: 1px solid var(--border);
    opacity: 0.42; transition: opacity 0.35s var(--ease);
  }
  .sticky__item[data-on="true"] { opacity: 1; }
  .sticky__item h2 { margin-top: 10px; }
  .sticky__item > p { margin-top: 12px; color: var(--muted-fg); max-width: 46ch; }
  .sticky__stage {
    position: sticky; top: calc(var(--nav) + 40px);
    perspective: 1300px;
  }
  .sticky__deck { position: relative; transform-style: preserve-3d; min-height: 640px; }
  .sticky__panel {
    position: absolute; inset: 0; padding: 26px;
    border: 1px solid var(--border); border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
    opacity: 0; transform: translateZ(-60px) translateY(18px) rotateX(6deg);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
    pointer-events: none;
    overflow: auto;
  }
  .sticky__panel[data-on="true"] { opacity: 1; transform: none; pointer-events: auto; }
}
/* the same content, as a native accordion, on small screens */
.sticky__deck:not([data-ready]) { position: static; min-height: 0; display: grid; gap: 14px; }
.sticky__deck:not([data-ready]) .sticky__panel { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; }
.stack__space:not([data-ready]) { height: auto; display: grid; gap: 12px; perspective: none; }
.stack__space:not([data-ready]) .stack__card { position: relative; transform: none; }

.acc { margin-top: 34px; border-top: 1px solid var(--border); }
@media (min-width: 1000px) { .acc { display: none; } }
.acc__i { border-bottom: 1px solid var(--border); }
.acc__s {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) 22px; align-items: center; gap: 8px;
  min-height: 62px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 580;
}
.acc__s::-webkit-details-marker { display: none; }
.acc__s > span { font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--faint-fg); }
.acc__s::after {
  content: ""; width: 10px; height: 10px; justify-self: end;
  border-inline-end: 1.5px solid var(--muted-fg); border-block-end: 1.5px solid var(--muted-fg);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.22s var(--ease);
}
.acc__i[open] .acc__s::after { transform: rotate(225deg) translate(-2px, -2px); }
.acc__b { padding-bottom: 28px; }

/* panel body, shared by sticky deck and accordion */
.panel__h { margin-bottom: 12px; }
.panel__p { color: var(--muted-fg); max-width: 60ch; }
.panel__code { margin-top: 22px; }
.panel__pts { margin-top: 24px; border-top: 1px solid var(--border); }
.panel__pts li { padding-block: 14px; border-bottom: 1px solid var(--border); }
.panel__pts b { display: block; font-size: 14.5px; font-weight: 580; }
.panel__pts p { margin-top: 4px; font-size: 14.5px; color: var(--muted-fg); }
@media (min-width: 700px) {
  .panel__pts li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
  .panel__pts p { margin-top: 0; }
}
.limit { margin-top: 24px; padding: 16px 18px; border: 1px dashed var(--border-2); border-radius: var(--r); }
.limit b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint-fg); }
html[lang="ar"] .limit b { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 13px; }
.limit p { margin-top: 8px; font-size: 14.5px; color: var(--muted-fg); }

/* ------------------------------------------- Aceternity: Code Block (docs) */
.code { border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.code__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 13px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--faint-fg);
}
.code__copy {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: transparent; color: var(--muted-fg); font-family: var(--mono); font-size: 11px;
  cursor: pointer; transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.code__copy:hover { color: var(--fg); border-color: var(--border-3); }
.code pre {
  padding: 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.85;
  direction: ltr; text-align: left; unicode-bidi: isolate; color: var(--fg-2);
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) { .code pre { padding: 16px 18px; font-size: 13px; } }

/* ------------------------------------------------ shadcn sidebar-style docs */
.docs { padding-block: 30px var(--sect); }
.docs__jump { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--r); }
.docs__jump > summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); padding: 0 14px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 550; }
.docs__jump > summary::-webkit-details-marker { display: none; }
.docs__jump > summary::after { content: "+"; font-family: var(--mono); color: var(--muted-fg); }
.docs__jump[open] > summary::after { content: "-"; }
.docs__jump nav { padding: 4px 14px 14px; border-top: 1px solid var(--border); }
.docs__jump a { display: block; padding: 10px 0; font-size: 14.5px; color: var(--muted-fg); }
.docs__grp { display: block; margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint-fg); }
html[lang="ar"] .docs__grp { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12px; }
.docs__find { margin-top: 22px; }
.docs__find input {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--card); font-size: 15px; color: var(--fg);
}
.docs__find input::placeholder { color: var(--faint-fg); }
.docs__empty { margin-top: 20px; color: var(--muted-fg); font-size: 15px; }
.docs__side { display: none; }
@media (min-width: 1000px) {
  .docs__jump { display: none; }
  .docs__body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 64px; align-items: start; }
  .docs__side { display: block; position: sticky; top: calc(var(--nav) + 28px); max-height: calc(100vh - var(--nav) - 56px); overflow-y: auto; }
  .docs__side nav { margin-top: 8px; }
  .docs__side a {
    display: block; padding: 8px 0 8px 13px; border-inline-start: 1px solid var(--border);
    font-size: 14px; color: var(--muted-fg);
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
  }
  .docs__side a:hover { color: var(--fg); }
  .docs__side a[aria-current="true"] { color: var(--fg); border-color: var(--border-3); }
  .docs__find { margin-top: 0; }
}
.doc { padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--nav) + 26px); }
.doc:last-child { border-bottom: 0; margin-bottom: 0; }
.doc__h { display: flex; align-items: baseline; gap: 10px; font-size: clamp(23px, 3.4vw, 31px); line-height: 1.16; letter-spacing: -0.025em; font-weight: 600; }
html[lang="ar"] .doc__h { font-family: "Shamash Ar Display", var(--sans); letter-spacing: 0; line-height: 1.4; }
.doc__anchor { font-family: var(--mono); font-size: 15px; color: var(--faint-fg); opacity: 0; transition: opacity 0.15s var(--ease); }
.doc__h:hover .doc__anchor, .doc__anchor:focus-visible { opacity: 1; }
.doc > p { margin-top: 14px; color: var(--muted-fg); max-width: 68ch; }
.doc > .code, .doc > .note, .doc > .dtable, .doc > .issues, .doc > .addr, .doc > .callout { margin-top: 22px; }
.note { padding: 16px 18px; border: 1px solid var(--border); border-inline-start: 2px solid var(--border-3); border-radius: var(--r-sm); background: var(--card); }
.note b { display: block; font-size: 14.5px; }
.note p { margin-top: 6px; font-size: 14.5px; color: var(--muted-fg); }
.callout { padding: 16px 18px; border: 1px dashed var(--border-2); border-radius: var(--r-sm); font-size: 15px; color: var(--muted-fg); }
.doc code:not(pre code), .callout code, .note code, .panel__pts code, .limit code, .issues code:not(pre code), .arch__item code {
  padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--card); font-size: 0.87em; overflow-wrap: anywhere; color: var(--fg-2);
}
.dtable { border-top: 1px solid var(--border); }
.dtable > div { padding-block: 12px; border-bottom: 1px solid var(--border); }
.dtable b { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--fg); }
.dtable span { display: block; margin-top: 5px; font-size: 14.5px; color: var(--muted-fg); }
@media (min-width: 640px) {
  .dtable > div { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 22px; align-items: baseline; }
  .dtable span { margin-top: 0; }
}
.issues { border-top: 1px solid var(--border); }
.issues details { border-bottom: 1px solid var(--border); }
.issues summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 550; }
.issues summary::-webkit-details-marker { display: none; }
.issues summary::after { content: "+"; flex: 0 0 auto; font-family: var(--mono); color: var(--muted-fg); }
.issues details[open] summary::after { content: "-"; }
.issues__b { padding-bottom: 22px; }
.issues__b p { font-size: 14.5px; color: var(--muted-fg); max-width: 66ch; }
.issues__b .code { margin-top: 14px; }

/* ------------------------------------------------------------- section head */
.shead { display: grid; gap: 14px; }
.shead__h { max-width: 22ch; margin-top: 14px; }
.shead__p { color: var(--muted-fg); max-width: 62ch; }
@media (min-width: 900px) {
  .shead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .shead__p { padding-top: 10px; }
}

/* ---------------------------------------------------------------- security */
.contact { margin-top: 34px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); }
@media (min-width: 640px) { .contact { padding: 30px; } }
.contact__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint-fg); }
html[lang="ar"] .contact__k { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.contact__p { margin-top: 12px; color: var(--muted-fg); font-size: 15px; max-width: 58ch; }
.contact__mail {
  display: block; margin-top: 20px; padding-bottom: 10px;
  font-family: var(--mono); font-size: clamp(15px, 4.4vw, 26px); color: var(--fg);
  overflow-wrap: anywhere; border-bottom: 1px solid var(--border-2);
  transition: border-color 0.2s var(--ease);
}
.contact__mail:hover { border-color: var(--fg); }
.contact__row { margin-top: 22px; display: grid; gap: 10px; }
@media (min-width: 560px) { .contact__row { grid-auto-flow: column; justify-content: start; gap: 12px; align-items: center; } }
.policy > li { padding-block: 34px; border-top: 1px solid var(--border); }
.policy__p { margin-top: 10px; color: var(--muted-fg); max-width: 60ch; }
.policy__l { margin-top: 18px; display: grid; gap: 12px; }
.policy__l li { position: relative; padding-inline-start: 20px; font-size: 15px; color: var(--muted-fg); max-width: 70ch; }
.policy__l li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.66em; width: 8px; height: 1px; background: var(--border-3); }
.policy__l b { color: var(--fg); font-weight: 580; }
@media (min-width: 900px) {
  .policy > li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .policy__l { margin-top: 0; }
}
.note-block { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--border); display: grid; gap: 26px; }
@media (min-width: 900px) { .note-block { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.note-block h3 { font-size: 17px; font-weight: 580; }
.note-block p { margin-top: 9px; font-size: 14.5px; color: var(--muted-fg); }

/* ------------------------------------------------------------------- about */
.about__body { margin-top: 44px; border-top: 1px solid var(--border); }
.about__body > li { padding-block: 30px; border-bottom: 1px solid var(--border); }
.about__body p { margin-top: 10px; color: var(--muted-fg); max-width: 64ch; }
@media (min-width: 900px) {
  .about__body > li { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 56px; padding-block: 38px; }
  .about__body p { margin-top: 0; }
}

/* --------------------------------------------------------------------- end */
.end { padding-block: var(--sect); position: relative; overflow: hidden; }
.end__mark { display: flex; justify-content: center; margin-bottom: 34px; color: var(--fg); }
.end__disc { width: clamp(76px, 18vw, 132px); height: auto; }
.end__h { max-width: 20ch; }
.end__p { margin-top: 16px; color: var(--muted-fg); max-width: 54ch; }
.end__cta { margin-top: 30px; }

/* ------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--border); padding-block: 42px 30px; }
.foot__grid { display: grid; gap: 32px; }
.foot__note { margin-top: 14px; font-size: 14px; color: var(--muted-fg); max-width: 44ch; }
.foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.foot h2 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint-fg); font-weight: 400; }
html[lang="ar"] .foot h2 { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12px; }
.foot ul { margin-top: 12px; display: grid; gap: 9px; }
.foot ul a { font-size: 14.5px; color: var(--muted-fg); }
.foot ul a:hover { color: var(--fg); }
.foot__base { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 13px; color: var(--faint-fg); }
@media (min-width: 700px) {
  .foot__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 56px; }
  .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__base { grid-auto-flow: column; justify-content: space-between; }
}

/* ------------------------------------------------------------------ motion */
/* Pre-animation state exists only while html.has-motion is set. The head
   bootstrap sets it and a watchdog clears it, so a library that never arrives
   cannot leave anything invisible. */
.has-motion .mo,
.has-motion .mo-up {
  opacity: 0;
  transition: opacity 0.6s var(--ease) var(--d, 0s), transform 0.6s var(--ease) var(--d, 0s);
}
.has-motion .mo-up { transform: translateY(14px); }
.has-motion .mo.is-in, .has-motion .mo-up.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mo, .mo-up, .gen > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .mb::before { animation: none; }
  .device__inner { transform: none !important; }
  .arch__inner { transform: rotateX(56deg) rotateZ(-36deg) !important; }
}
@media (hover: none) and (pointer: coarse) {
  .card3d__in { transform: none !important; }
  .spot::before { display: none; }
}
@media print {
  .nav, .sheet, .end, .btn, .mb, .device, .stack, .arch__scene { display: none !important; }
  body { background: #fff; color: #000; }
}
