/* ==========================================================================
   Asraab — shared design system
   A warm, dark, editorial surface for two Windows tools.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Page transitions ---------- */
/* Cross-document View Transitions: the header stays put while the page
   content cross-fades, so moving between pages feels like one app rather
   than five documents. Browsers without support just navigate as before. */
@view-transition {
  navigation: auto;
}
.site-header {
  view-transition-name: asraab-header;
}
::view-transition-old(asraab-header),
::view-transition-new(asraab-header) {
  animation: none;
}
/* The app icon travels from the card to the page it opens. */
.app-card[data-app="majra"] .app-icon {
  view-transition-name: app-icon-majra;
}
.app-card[data-app="droidcrate"] .app-icon {
  view-transition-name: app-icon-droidcrate;
}
html[data-page="majra"] .hero-icon {
  view-transition-name: app-icon-majra;
}
html[data-page="droidcrate"] .hero-icon {
  view-transition-name: app-icon-droidcrate;
}
::view-transition-group(app-icon-majra),
::view-transition-group(app-icon-droidcrate) {
  animation-duration: 0.52s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) {
  animation: vt-out 0.24s ease both;
}
::view-transition-new(root) {
  animation: vt-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes vt-out {
  to {
    opacity: 0;
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ---------- Tokens ---------- */
:root {
  --bg: #07080c;
  --bg-soft: #0b0d14;
  --bg-raise: #10131c;
  --ink: #f6f2ea;
  --ink-soft: #d8d3c8;
  --muted: #a09c93;
  --muted-dim: #7c786f;
  --line: rgba(246, 242, 234, 0.1);
  --line-strong: rgba(246, 242, 234, 0.18);

  --gold: #f2b46d;
  --amber: #e8a35f;
  --amber-deep: #b45309;
  --jade: #54b39c;
  --jade-deep: #1f7d5c;
  --violet: #8b83f6;
  --rose: #e88a8a;

  --grad-warm: linear-gradient(102deg, #f8d3a4 0%, #f2b46d 32%, #e8a35f 62%, #c9741f 100%);
  --grad-cool: linear-gradient(102deg, #b7f0e2 0%, #54b39c 45%, #2e9276 100%);
  --grad-text: linear-gradient(100deg, #fff4e4 0%, #f2b46d 45%, #e8a35f 70%, #f6c98f 100%);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-soft: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --shadow-card: 0 30px 80px -40px rgba(0, 0, 0, 0.95);

  --font-display: "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Manrope", "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "Cascadia Code", monospace;

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70rem 42rem at 82% -8%, rgba(232, 163, 95, 0.14), transparent 62%),
    radial-gradient(52rem 38rem at 4% 8%, rgba(84, 179, 156, 0.1), transparent 60%),
    radial-gradient(48rem 48rem at 50% 120%, rgba(139, 131, 246, 0.08), transparent 65%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: rgba(242, 180, 109, 0.28);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 200;
  translate: -50% -160%;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  transition: translate 0.2s ease;
}
.skip-link:focus-visible {
  translate: -50% 0;
}
/* The skip link sends focus to <main>; the ring belongs on real controls. */
main:focus {
  outline: none;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}
.nowrap {
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px -10px rgba(232, 163, 95, 0.55);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.brand-text span {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline-start: auto;
}
.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
/* A short preview of the section under the pointer, so the row reads as a
   table of contents instead of four words. The card is visual only; the link
   keeps its normal click and keyboard behaviour. */
.nav-preview {
  --np-accent: var(--gold);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: min(332px, calc(100vw - 24px));
  padding: 0.95rem 1rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%),
    linear-gradient(180deg, rgba(18, 21, 30, 0.97), rgba(8, 9, 14, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 30px 70px -38px rgba(0, 0, 0, 0.98),
    0 0 60px -34px var(--np-accent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px) scale(0.985);
  transform-origin: 50% 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.18s ease;
}
.nav-preview.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-preview::before {
  content: "";
  position: absolute;
  top: -5px;
  left: var(--np-caret, 50%);
  width: 9px;
  height: 9px;
  translate: -50% 0;
  rotate: 45deg;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: #12151d;
}
.nav-preview__kicker {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--np-accent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-preview__kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--np-accent);
  box-shadow: 0 0 9px 1px var(--np-accent);
}
.nav-preview__title {
  margin: 0.38rem 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: 0.005em;
}
.nav-preview__body {
  margin: 0.32rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.nav-preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.68rem;
}
.nav-preview__chips span {
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.nav-preview[data-accent="jade"] {
  --np-accent: var(--jade, #54b39c);
}
@media (hover: none), (max-width: 899px) {
  .nav-preview {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-preview {
    transition: opacity 0.01s linear;
    transform: none;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-inline-start: 0.4rem;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 38px;
  padding-inline: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lang-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: rgba(242, 180, 109, 0.08);
}
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  place-items: center;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
}
.menu-btn span::before {
  transform: translateY(-5px);
}
.menu-btn span::after {
  transform: translateY(5px);
}
body.nav-open .menu-btn span {
  background: transparent;
}
body.nav-open .menu-btn span::before {
  transform: rotate(45deg);
}
body.nav-open .menu-btn span::after {
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  --btn-bg: linear-gradient(100deg, #f6c98f, #e8a35f 55%, #d98b41);
  --btn-fg: #201305;
  --btn-line: transparent;
  box-shadow: 0 18px 40px -18px rgba(232, 163, 95, 0.7);
}
.btn-primary:hover {
  box-shadow: 0 24px 54px -18px rgba(232, 163, 95, 0.85);
}
.btn-jade {
  --btn-bg: linear-gradient(100deg, #8fe0cd, #54b39c 55%, #3a9c83);
  --btn-fg: #04231b;
  --btn-line: transparent;
  box-shadow: 0 18px 40px -18px rgba(84, 179, 156, 0.65);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
}
.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn-block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)) 0 clamp(3rem, 7vw, 5rem);
  overflow: clip;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-copy {
  max-width: 40rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  padding: 0.42rem 0.9rem 0.42rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 180, 109, 0.14);
}
.eyebrow .dot.jade {
  background: var(--jade);
  box-shadow: 0 0 0 4px rgba(84, 179, 156, 0.14);
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display .line {
  display: block;
}
.lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  margin-top: 1.75rem;
  color: var(--muted-dim);
  font-size: 0.8rem;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}
.hero-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-dim);
}

/* ---------- Scene frame ---------- */
.scene-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: min(66svh, 620px);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(75% 75% at 50% 42%, rgba(232, 163, 95, 0.13), transparent 66%),
    radial-gradient(60% 60% at 78% 82%, rgba(84, 179, 156, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  isolation: isolate;
}
.scene-frame.jade {
  background:
    radial-gradient(72% 72% at 52% 40%, rgba(84, 179, 156, 0.16), transparent 68%),
    radial-gradient(55% 55% at 20% 85%, rgba(139, 131, 246, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.scene-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000 100%);
  opacity: 0.5;
}
.scene-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 90px 20px rgba(7, 8, 12, 0.55);
}
.scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  touch-action: pan-y;
}
.scene canvas {
  width: 100% !important;
  height: 100% !important;
}
.scene-tag {
  position: absolute;
  z-index: 5;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.55);
  backdrop-filter: blur(10px);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scene-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 10px var(--jade);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.scene-badge {
  position: absolute;
  z-index: 5;
  right: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.5);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scene-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background:
    radial-gradient(45% 45% at 50% 50%, rgba(232, 163, 95, 0.24), transparent 70%);
}
.scene-frame.is-fallback .scene-tag {
  display: none;
}
.scene-fallback img {
  width: 34%;
  max-width: 150px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
  opacity: 0.9;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}
.section.tight {
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-head.center .kicker::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-lede {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  max-width: 38rem;
}
.section-head.center .section-lede {
  margin-inline: auto;
}
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}

/* ---------- App cards ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  perspective: 1400px;
}
.app-card {
  --accent: var(--gold);
  --accent-soft: rgba(242, 180, 109, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.app-card.jade {
  --accent: var(--jade);
  --accent-soft: rgba(84, 179, 156, 0.14);
}
.app-card:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: 0 40px 90px -45px color-mix(in srgb, var(--accent) 55%, transparent);
}
.app-card__top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transform: translateZ(26px);
}
.app-icon {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 19px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 40px -18px color-mix(in srgb, var(--accent) 60%, transparent);
}
.app-card__id {
  min-width: 0;
}
.app-card__id h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.app-card__id p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.app-tagline {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  transform: translateZ(18px);
}
.app-desc {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  transform: translateZ(12px);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.3rem;
  transform: translateZ(14px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.app-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.7rem;
  transform: translateZ(20px);
}
.app-card__actions .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}
.app-card__actions .link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.app-card__actions .link-arrow:hover svg {
  transform: translateX(4px);
}
.app-card__glow {
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 70%;
  background: radial-gradient(50% 60% at 50% 50%, var(--accent-soft), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.app-card__index {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
  letter-spacing: 0.1em;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
}
.feature {
  position: relative;
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  background: linear-gradient(180deg, #0b0d13, #090a10);
  transition: background 0.3s ease;
}
.feature:hover {
  background: linear-gradient(180deg, #10131c, #0b0d13);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--gold);
}
.feature.jade .feature-icon {
  color: var(--jade);
}
.feature-icon svg {
  width: 20px;
  height: 20px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.feature p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}
.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Anchor targets land below the fixed header instead of under it. */
:target {
  scroll-margin-top: 6rem;
}

/* ---------- Stats / facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--line);
}
.fact:last-child {
  border-right: 0;
}
.fact dt {
  color: var(--muted-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fact dd {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.fact dd small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  counter-reset: step;
}
.steps.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step {
  position: relative;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -0.9rem;
  left: 0;
  padding-right: 0.6rem;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.step code,
.inline-code {
  padding: 0.12em 0.4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--ink-soft);
}

/* ---------- Screenshot frames ---------- */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.shot {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0d0f17, #090a10);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  /* One owner for `transform`: the reveal, the hover lift and the pointer
     tilt all feed these custom properties, so nothing overwrites anything. */
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --zoom: 1;
  --img-x: 0px;
  --img-y: 0px;
  --img-zoom: 1;
  --mx: 50%;
  --my: 50%;
  transform: perspective(1150px) translate3d(0, var(--lift), 0) rotateX(var(--rx)) rotateY(var(--ry))
    scale(var(--zoom));
  transform-origin: 50% 46%;
  transition: border-color 0.25s ease, box-shadow 0.5s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.shot:hover,
.shot:focus-within {
  --lift: -7px;
  --zoom: 1.008;
  border-color: var(--line-strong);
  will-change: transform;
}
.shot.is-peeking {
  transition: border-color 0.25s ease, box-shadow 0.45s ease, transform 0.12s ease-out;
}
.shot .shot-open {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 7px;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  transform: translate3d(var(--img-x), var(--img-y), 0)
    scale(calc(var(--img-zoom) * var(--cine-z, 1)));
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
}
.shot.is-peeking img {
  --img-zoom: 1.075;
  transition: transform 0.22s ease-out;
}
/* A glare that follows the pointer makes the tilt read as a lit surface. */
.shot .shot-open::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  pointer-events: none;
  background:
    radial-gradient(
      34% 40% at var(--mx, 50%) var(--my, 50%),
      rgba(255, 247, 235, 0.09),
      rgba(255, 255, 255, 0.03) 44%,
      transparent 70%
    ),
    radial-gradient(80% 60% at var(--mx, 50%) var(--my, 50%), rgba(242, 180, 109, 0.07), transparent 66%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.shot:hover .shot-open::after {
  opacity: 1;
}
/* One quiet hint that the frame opens the full-size view. */
.shot .shot-open::before {
  content: "";
  position: absolute;
  top: 15px;
  inset-inline-end: 15px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 8, 12, 0.66)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff4e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H4v5M15 20h5v-5M20 9V4h-5M4 15v5h5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.shot:hover .shot-open::before {
  opacity: 1;
  transform: none;
}
/* A rim light that follows the cursor around the frame edge. */
.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(242, 180, 109, 0.95),
    rgba(255, 255, 255, 0.24) 38%,
    transparent 68%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.shot:hover::before {
  opacity: 1;
}
/* The inset highlight doubles as the light that sweeps across on reveal. */
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    104deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 48%,
    rgba(242, 180, 109, 0.12) 52%,
    transparent 62%
  );
  background-size: 240% 100%;
  background-position: 135% 0;
  opacity: 0;
}
html.has-js .shot.is-in::after {
  animation: shot-sweep 1.25s cubic-bezier(0.33, 0.6, 0.25, 1) 0.1s 1 backwards;
}
@keyframes shot-sweep {
  from {
    opacity: 0;
    background-position: 135% 0;
  }
  22% {
    opacity: 1;
  }
  to {
    opacity: 0;
    background-position: -35% 0;
  }
}
.shot figcaption {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
  transition: color 0.3s ease, background 0.3s ease;
}
.shot:hover figcaption {
  color: var(--ink);
  background: rgba(242, 180, 109, 0.05);
}
.shot figcaption::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242, 180, 109, 0.75);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.shot:hover figcaption::before {
  transform: scale(1.7);
  box-shadow: 0 0 16px rgba(242, 180, 109, 0.95);
}
[data-page="droidcrate"] .shot figcaption::before {
  background: var(--jade);
  box-shadow: 0 0 10px rgba(84, 179, 156, 0.75);
}
/* Touch screens have no pointer to follow, so the peek stays off there. */
@media (hover: none) {
  .shot:hover,
  .shot:focus-within {
    --lift: 0px;
    --zoom: 1;
    border-color: var(--line);
  }
  .shot:hover .shot-open::after,
  .shot:hover::before,
  .shot:hover .shot-open::before {
    opacity: 0;
  }
  .shot:hover figcaption {
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.02);
  }
  .shot:hover figcaption::before {
    transform: none;
  }
}
.shot-stack {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery.duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.gallery.single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-inline: auto;
}
.gallery .shot figcaption {
  font-size: 0.76rem;
  padding: 0.7rem 0.9rem;
}
.shot-open {
  cursor: zoom-in;
}

/* ---------- Split / diagram ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* Grid children default to min-width: auto, so one wide child (a code block,
   a long hash) can push a whole column past the viewport on a phone. */
.split > *,
.download > *,
.showcase > *,
.steps > * {
  min-width: 0;
}
.split.reverse > :first-child {
  order: 2;
}
.panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(242, 180, 109, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.panel.jade {
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(84, 179, 156, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.flow {
  display: grid;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.flow-row .flow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.flow-row.gold .flow-dot {
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
}
.flow-row.jade .flow-dot {
  background: var(--jade);
  box-shadow: 0 0 14px var(--jade);
}
.flow-row.violet .flow-dot {
  background: var(--violet);
  box-shadow: 0 0 14px var(--violet);
}
.flow-row span:last-child {
  margin-inline-start: auto;
  color: var(--muted);
}
.flow-merge {
  display: grid;
  place-items: center;
  padding: 0.35rem;
  color: var(--muted-dim);
}
.flow-target {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 12px;
  background: rgba(242, 180, 109, 0.08);
  color: var(--ink);
}
.flow-target .cube {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--gold);
  rotate: 45deg;
}

/* ---------- Checklist / limits ---------- */
.limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.limit {
  display: flex;
  gap: 0.8rem;
  padding: 1.15rem 1.25rem;
  background: #0a0b11;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}
.limit svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.15rem;
  color: var(--gold);
  opacity: 0.85;
}
.limit strong {
  color: var(--ink-soft);
  font-weight: 700;
}
.limits.jade .limit svg {
  color: var(--jade);
}

/* ---------- Callout ---------- */
.callout {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border: 1px solid rgba(242, 180, 109, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(242, 180, 109, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.02);
}
.callout.jade {
  border-color: rgba(84, 179, 156, 0.3);
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(84, 179, 156, 0.13), transparent 60%),
    rgba(255, 255, 255, 0.02);
}
.callout-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(242, 180, 109, 0.12);
  color: var(--gold);
}
.callout.jade .callout-icon {
  background: rgba(84, 179, 156, 0.12);
  color: var(--jade);
}
.callout-icon svg {
  width: 21px;
  height: 21px;
}
.callout h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.callout p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.callout ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.callout li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.callout li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.callout.jade li::before {
  background: var(--jade);
}
.callout strong {
  color: var(--ink-soft);
}

/* ---------- Download block ---------- */
.download {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.8rem, 4.5vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(242, 180, 109, 0.16), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(84, 179, 156, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.download.jade {
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(84, 179, 156, 0.17), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(139, 131, 246, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}
.download h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.download p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 34rem;
}
.download-meta {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.55rem;
}
.download-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted-dim);
}
.download-meta span:last-child {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-align: right;
  word-break: break-all;
}
/* The published hash is long enough that retyping it is a real chore, so it
   ships with a copy button of its own. The label gets its own line; the hash
   and the button share the next one. */
.download-meta .hash-row {
  display: block;
}
.download-meta .hash-row > span:first-child {
  display: block;
  margin-bottom: 0.4rem;
}
.download-meta .hash-row .sha {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
}
.download-meta .hash-row .sha code {
  min-width: 0;
  font: inherit;
  color: var(--ink-soft);
  text-align: start;
  word-break: break-all;
  user-select: all;
}
.sha-copy {
  flex: none;
  margin-top: 0.1rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: normal;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.sha-copy:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}
.sha-copy.is-done {
  color: var(--jade);
  border-color: rgba(84, 179, 156, 0.5);
}
.download-side {
  display: grid;
  gap: 0.8rem;
  justify-items: stretch;
}
.download-side .btn {
  width: 100%;
}
.download-side .note {
  color: var(--muted-dim);
  font-size: 0.74rem;
  text-align: center;
  line-height: 1.5;
}

/* ---------- Code block ---------- */
.code-block {
  position: relative;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #06070a;
  overflow-x: auto;
}
.code-block code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: #d9d3c6;
  white-space: pre;
}
.code-block .c-comment {
  color: #6f6b63;
}
.code-block .c-key {
  color: var(--gold);
}
.copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.copy-btn.is-done {
  color: var(--jade);
  border-color: rgba(84, 179, 156, 0.5);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq details[open] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}
/* Native details snap open. Where the browser can interpolate to auto, the
   answer unfolds instead; everywhere else it simply appears as before. */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.34s cubic-bezier(0.16, 1, 0.3, 1),
      content-visibility 0.34s allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content {
    transition: none;
  }
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-inline-start: auto;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  rotate: 45deg;
  transition: rotate 0.25s ease;
  flex: none;
}
.faq details[open] summary::after {
  rotate: 225deg;
}
.faq .faq-a {
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.7;
}
.faq .faq-a a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto 0 -60% 0;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 100%, rgba(232, 163, 95, 0.16), transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.cta-band p {
  position: relative;
  margin: 0.8rem auto 1.7rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.cta-band .btn-row {
  position: relative;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.footer-brand p {
  max-width: 22rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}
.footer-col h3 {
  color: var(--muted-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-col ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.footer-col a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 0.76rem;
}

/* ---------- Page hero (app pages) ---------- */
.page-hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: clip;
}
.page-hero .hero-inner {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge.gold {
  border-color: rgba(242, 180, 109, 0.35);
  background: rgba(242, 180, 109, 0.1);
  color: #f8d3a4;
}
.badge.jade {
  border-color: rgba(84, 179, 156, 0.35);
  background: rgba(84, 179, 156, 0.1);
  color: #b7f0e2;
}
.badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.page-hero .display {
  font-size: clamp(2.5rem, 5.6vw, 4.7rem);
}
.page-hero .lede {
  margin-top: 1.3rem;
}
.hero-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 0 1px var(--line), 0 18px 36px -16px rgba(0, 0, 0, 0.8);
}
.hero-icon.jade {
  box-shadow: 0 0 0 1px var(--line), 0 18px 36px -16px rgba(84, 179, 156, 0.55);
}

/* ---------- Tabs / workbench ---------- */
.tabs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.tab-card {
  position: relative;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.tab-card:hover {
  border-color: rgba(84, 179, 156, 0.4);
  background: linear-gradient(180deg, rgba(84, 179, 156, 0.07), rgba(255, 255, 255, 0.012));
  transform: translateY(-3px);
}
.tab-card__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted-dim);
  letter-spacing: 0.1em;
}
.tab-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tab-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--jade);
}
.tab-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ---------- Legal ---------- */
.legal {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
}
.legal .wrap {
  max-width: 52rem;
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.legal .legal-meta {
  margin-top: 0.8rem;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.legal h2 {
  margin-top: 2.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal p,
.legal li {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}
.legal ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}
.legal a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal strong {
  color: var(--ink-soft);
}
.legal .legal-box {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  text-align: center;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 24vw, 15rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.error-page p {
  margin: 0.7rem auto 1.8rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Written-in text ---------- */
/* The sentence lives in aria-label; the split copy is decorative and is the
   only part that animates. Characters appear at once, like a typewriter: the
   travelling caret is what makes the cadence readable. */
.tw-visual {
  display: inline;
}
.tw {
  display: inline-block;
  white-space: nowrap;
}
.tc {
  display: inline-block;
}
html.tw-on .tw-visual--chars .tc,
html.tw-on .tw-visual--words .tw {
  opacity: 0;
}
.tw-caret {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 1em;
  border-radius: 1px;
  background: currentColor;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  will-change: transform, opacity;
}
.tw-caret.is-live {
  opacity: 0.8;
  animation: tw-caret 1.05s steps(1, end) infinite;
}
@keyframes tw-caret {
  0%,
  49% {
    opacity: 0.8;
  }
  50%,
  100% {
    opacity: 0;
  }
}
/* No GSAP: one pass of CSS reveals, still letter by letter / word by word. */
html.tw-fallback .tw-visual--chars .tc,
html.tw-fallback .tw-visual--words .tw {
  opacity: 0;
  transform: translateY(0.28em);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
html.tw-fallback .tw-visual--chars.is-in .tc,
html.tw-fallback .tw-visual--words.is-in .tw {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.tw-on .tw-visual--chars .tc,
  html.tw-on .tw-visual--words .tw,
  html.tw-fallback .tw-visual--chars .tc,
  html.tw-fallback .tw-visual--words .tw {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tw-caret {
    display: none;
  }
}

/* ---------- Reveal ---------- */
/* Visible by default so the page works without JavaScript. The `has-js` class
   is added in the document head; site.js then reveals elements on scroll. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
html.has-js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(26px);
}
html.has-js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-scale {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
html.has-js .reveal-scale:not(.shot):not(.is-in) {
  opacity: 0;
  transform: scale(0.96);
}
html.has-js .reveal-scale:not(.shot).is-in {
  opacity: 1;
  transform: none;
}

/* A screenshot unfolds out of depth: it starts smaller, tipped back and
   blurred, then settles square while a band of light crosses it. */
html.has-js .shot.reveal-scale:not(.is-in) {
  opacity: 0;
  transform: perspective(1150px) translate3d(0, 56px, -130px) rotateX(15deg) scale(0.92);
  filter: blur(9px) saturate(0.7) brightness(0.82);
}
html.has-js .shot.reveal-scale.is-in {
  animation: shot-unfold 1.05s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) backwards;
}
/* Last-resort reveal: the page head adds `reveal-fallback` if site.js never
   starts. Content must never be left invisible by a blocked or broken script. */
html.has-js.reveal-fallback .reveal,
html.has-js.reveal-fallback .reveal-scale {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
  transition: none !important;
}
@keyframes shot-unfold {
  from {
    opacity: 0;
    transform: perspective(1150px) translate3d(0, 56px, -130px) rotateX(15deg) scale(0.92);
    filter: blur(9px) saturate(0.7) brightness(0.82);
  }
  55% {
    opacity: 1;
    filter: blur(0) saturate(1) brightness(1);
  }
  to {
    opacity: 1;
    transform: perspective(1150px) translate3d(0, 0, 0) rotateX(0) rotateY(0) scale(1);
    filter: none;
  }
}

/* ---------- Screenshot viewer ---------- */
/* The picture flies out of the frame that was clicked, a pool of light opens
   where the hand was, and the rest of the gallery waits on a glass shelf
   below. The frame itself is treated as an object: thickness, a lit rim, a
   sheen that follows the pointer, a soft reflection under it, and a shelf
   that lifts toward the reader. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: clamp(0.8rem, 2.2vh, 1.5rem);
  padding: clamp(3.8rem, 8vh, 5.4rem) clamp(0.9rem, 3.4vw, 2.4rem) clamp(0.8rem, 2.2vh, 1.4rem);
  --lb-accent: var(--gold);
  --lb-progress: 0%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at var(--lb-x, 50%) var(--lb-y, 50%), rgba(242, 180, 109, 0.2), transparent 52%),
    radial-gradient(120% 70% at 50% 108%, color-mix(in srgb, var(--lb-accent) 15%, transparent), transparent 64%),
    radial-gradient(circle at 50% 0%, rgba(84, 179, 156, 0.08), transparent 58%),
    radial-gradient(140% 110% at 50% 46%, transparent 34%, rgba(0, 0, 0, 0.6) 100%),
    rgba(4, 5, 8, 0.93);
  backdrop-filter: blur(18px) saturate(0.82);
  -webkit-backdrop-filter: blur(18px) saturate(0.82);
  clip-path: circle(0% at var(--lb-x, 50%) var(--lb-y, 50%));
  transition: clip-path 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.is-open .lightbox-scrim {
  clip-path: circle(150% at var(--lb-x, 50%) var(--lb-y, 50%));
}
.lightbox-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  perspective: 2000px;
  perspective-origin: 50% 40%;
}
/* The shadow the picture would cast if it were standing on a table. */
.lightbox-floor {
  position: absolute;
  left: 50%;
  bottom: 3%;
  z-index: -1;
  width: min(80%, 960px);
  height: clamp(48px, 9vh, 110px);
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0) 72%);
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
  transform: translate3d(var(--lb-floor-x, 0px), 0, 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-frame {
  --lb-rx: 0deg;
  --lb-ry: 0deg;
  --lb-mx: 50%;
  --lb-my: 38%;
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 13%, rgba(0, 0, 0, 0.3)),
    linear-gradient(180deg, #191d29, #090a10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 22px 54px -26px rgba(0, 0, 0, 0.95),
    0 70px 130px -50px rgba(0, 0, 0, 1),
    0 0 110px -42px var(--lb-accent);
  transform: rotateX(var(--lb-rx)) rotateY(var(--lb-ry));
  transform-style: preserve-3d;
  touch-action: none;
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease 0.14s,
    box-shadow 0.4s ease;
}
.lightbox.is-open .lightbox-frame {
  opacity: 1;
}
/* The sheen of glass: a soft highlight that follows the pointer across the
   picture, so the surface reads as lit rather than printed. */
.lightbox-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    42% 62% at var(--lb-mx) var(--lb-my),
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.03) 46%,
    transparent 72%
  );
  mix-blend-mode: screen;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
/* The slab has a bottom edge: a few pixels of thickness under the bezel, so
   the frame reads as a solid object rather than a printed border. */
.lightbox-frame::before {
  content: "";
  position: absolute;
  inset-inline: 6px;
  top: calc(100% - 1px);
  z-index: -1;
  height: 7px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #14171f, #04050a);
  box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}
/* A thin rim light, the same language as the frames on the page. */
.lightbox-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.22),
    transparent 30%,
    transparent 64%,
    color-mix(in srgb, var(--lb-accent) 26%, transparent)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* The picture sits in a crop that only clips once someone zooms in, so the
   opening flight is never cut by its own frame. */
.lightbox-crop {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 12px;
  overflow: visible;
  background: #05060a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65);
}
.lightbox.is-zoomed .lightbox-crop {
  overflow: hidden;
}
.lightbox img {
  display: block;
  max-width: min(100%, 1400px);
  max-height: 58svh;
  border-radius: 12px;
  transform: translate3d(
      calc(var(--lb-px, 0px) + var(--lb-tx, 0px)),
      calc(var(--lb-py, 0px) + var(--lb-ty, 0px)),
      0
    )
    scale(var(--lb-zoom, 1));
  transform-origin: 50% 50%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* Zooming and panning want a tighter follow than the entrance tilt. */
.lightbox.is-zoomed img {
  transition: transform 0.18s ease-out;
}
.lightbox.is-dragging img {
  transition: none;
  cursor: grabbing;
}
/* A real reflection under the shelf: the bottom slice of the same picture,
   flipped and faded, so the frame sits in a room instead of on a slide. */
.lightbox-reflection {
  position: absolute;
  inset-inline: 10px;
  top: calc(100% + 7px);
  z-index: 0;
  height: 24%;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  opacity: 0.15;
  pointer-events: none;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 72%);
}
.lightbox-reflection img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  object-position: bottom center;
  transform: none;
  will-change: auto;
  filter: saturate(0.75) brightness(0.75);
}
@media (hover: hover) and (pointer: fine) {
  .lightbox-frame {
    cursor: zoom-in;
  }
  .lightbox.is-zoomed .lightbox-frame {
    cursor: grab;
  }
  .lightbox.is-dragging .lightbox-frame {
    cursor: grabbing;
  }
}
/* ---------- The shelf under the picture ---------- */
.lightbox-dock {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  width: min(94vw, 1080px);
  padding: 0.7rem 0.85rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 62%),
    linear-gradient(180deg, rgba(20, 23, 32, 0.88), rgba(8, 9, 14, 0.94));
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 26px 60px -38px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.34s ease 0.18s, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.18s,
    border-color 0.3s ease;
}
.lightbox.is-open .lightbox-dock {
  opacity: 1;
  transform: none;
}
.lightbox.is-zoomed .lightbox-dock {
  border-color: color-mix(in srgb, var(--lb-accent) 34%, transparent);
}
.lightbox-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease 0.22s, transform 0.32s ease 0.22s;
}
.lightbox.is-open .lightbox-bar {
  opacity: 1;
  transform: none;
}
.lightbox-caption {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
  letter-spacing: 0.005em;
  text-align: center;
  justify-self: center;
  text-wrap: pretty;
}
.lb-word {
  display: inline-block;
}
.lightbox-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22rem;
  flex: none;
  padding: 0.16rem 0.52rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.lightbox-count b {
  color: var(--ink);
  font-weight: 600;
}
.lightbox-count i {
  color: var(--muted-dim);
  font-style: normal;
}
.lightbox-count:empty {
  display: none;
}
.lightbox-hint {
  flex: none;
  justify-self: end;
  padding: 0.18rem 0.56rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lightbox-hint[hidden] {
  display: none;
}
.lightbox.is-zoomed .lightbox-hint {
  color: var(--gold-soft, var(--ink-soft));
  border-color: rgba(242, 180, 109, 0.34);
}
.lightbox-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* A hairline that fills as the gallery is read. */
.lightbox-progress {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.lightbox-progress[hidden] {
  display: none;
}
.lightbox-progress i {
  display: block;
  width: var(--lb-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--lb-accent);
  box-shadow: 0 0 10px 0 var(--lb-accent);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-strip {
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 0.42rem;
  min-width: 0;
  padding: 0.15rem 0 0.05rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 10px,
    #000 calc(100% - 10px),
    transparent
  );
  mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.34s ease 0.26s, transform 0.34s ease 0.26s;
}
.lightbox.is-open .lightbox-strip {
  opacity: 1;
  transform: none;
}
.lightbox-strip::-webkit-scrollbar {
  display: none;
}
.lightbox-strip[hidden] {
  display: none;
}
.lightbox-thumb {
  flex: none;
  width: 88px;
  height: 55px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  overflow: hidden;
  background: #0b0d14;
  opacity: 0.62;
  filter: saturate(0.6) brightness(0.92);
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.9);
  transition: opacity 0.25s ease, filter 0.25s ease, border-color 0.25s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.lightbox-thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  transform: none;
  will-change: auto;
}
.lightbox-thumb:hover {
  opacity: 0.88;
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.lightbox-thumb.is-active {
  opacity: 1;
  filter: none;
  border-color: color-mix(in srgb, var(--lb-accent) 68%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--lb-accent) 52%, transparent),
    0 0 24px -9px var(--lb-accent),
    0 16px 28px -18px rgba(0, 0, 0, 0.95);
  transform: translateY(-3px);
}
/* ---------- Viewer chrome ---------- */
.lightbox-brand {
  position: absolute;
  top: clamp(1rem, 2.4vw, 1.6rem);
  inset-inline-start: clamp(1rem, 2.6vw, 2rem);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
  pointer-events: none;
}
.lightbox-brand::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lb-accent);
  box-shadow: 0 0 10px 1px var(--lb-accent);
}
.lightbox-brand b {
  color: var(--ink-soft);
  font-weight: 600;
}
.lightbox-brand em {
  font-style: normal;
  color: var(--muted-dim);
}
.lightbox.is-open .lightbox-brand {
  opacity: 1;
  transform: none;
}
.lightbox-zoom {
  position: absolute;
  top: clamp(1rem, 2.4vw, 1.6rem);
  left: 50%;
  z-index: 3;
  translate: -50% 0;
  padding: 0.2rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.lightbox.is-zoomed .lightbox-zoom {
  opacity: 1;
  transform: none;
}
.lightbox-close {
  position: absolute;
  top: clamp(0.9rem, 2.2vw, 1.4rem);
  inset-inline-end: clamp(0.9rem, 2.2vw, 1.6rem);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(12, 14, 20, 0.62);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 14px 30px -20px rgba(0, 0, 0, 0.95);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  transform: rotate(90deg);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  margin-top: -23px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(12, 14, 20, 0.58);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px -22px rgba(0, 0, 0, 0.95);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: color-mix(in srgb, var(--lb-accent) 45%, rgba(255, 255, 255, 0.3));
  transform: scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px color-mix(in srgb, var(--lb-accent) 34%, transparent),
    0 0 26px -8px var(--lb-accent);
}
.lightbox-prev {
  inset-inline-start: clamp(0.5rem, 2vw, 1.4rem);
}
.lightbox-next {
  inset-inline-end: clamp(0.5rem, 2vw, 1.4rem);
}
.lightbox-nav[hidden] {
  display: none;
}
/* The room steps back while the picture is in the air. */
html.lb-locked {
  overflow: hidden;
}
html.lb-locked body {
  padding-inline-end: var(--lb-gap, 0px);
}
main,
.site-footer {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}
html.lb-open main,
html.lb-open .site-footer {
  transform: scale(0.968);
  transform-origin: 50% 0;
  filter: brightness(0.6) saturate(0.85);
}
@media (max-height: 620px) {
  .lightbox img {
    max-height: 44svh;
  }
  .lightbox-reflection {
    display: none;
  }
}
@media (max-width: 620px) {
  .lightbox {
    gap: 0.6rem;
    padding-top: clamp(3.4rem, 9vh, 4.4rem);
  }
  .lightbox-frame {
    padding: 7px;
    border-radius: 16px;
  }
  .lightbox-crop,
  .lightbox img {
    border-radius: 10px;
  }
  .lightbox-dock {
    width: 94vw;
    padding: 0.55rem 0.6rem 0.5rem;
    border-radius: 16px;
  }
  .lightbox-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
  }
  .lightbox-caption {
    order: 1;
    flex: 1 0 100%;
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .lightbox-count {
    order: 2;
    font-size: 0.62rem;
    padding: 0.14rem 0.44rem;
  }
  .lightbox-hint {
    order: 3;
    margin-inline-start: auto;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    padding: 0.16rem 0.44rem;
  }
  .lightbox-thumb {
    width: 70px;
    height: 46px;
  }
  .lightbox-nav {
    width: 38px;
    height: 38px;
    margin-top: -19px;
  }
  .lightbox-brand {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }
  .lightbox-close {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 420px) {
  .lightbox-brand em {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-frame,
  .lightbox-dock,
  .lightbox-bar,
  .lightbox-strip,
  .lightbox-brand,
  .lightbox-zoom,
  .lightbox-thumb,
  .lightbox-floor,
  .lightbox-progress i {
    transition: none;
  }
}
/* ---------- View cursor ---------- */
/* Hovering a screenshot swaps the arrow for a disc that names the action.
   Touch and reduced-motion visitors never see it. */
html.has-view-cursor .shot-open {
  cursor: none;
}
.view-cursor {
  --vc-accent: var(--gold);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-200px, -200px, 0);
  transition: opacity 0.18s ease;
  will-change: transform, opacity;
}
html[data-page="droidcrate"] .view-cursor {
  --vc-accent: var(--jade);
}
.view-cursor.is-on {
  opacity: 1;
}
html.lb-open .view-cursor {
  opacity: 0 !important;
}
.view-cursor__disc {
  display: grid;
  place-items: center;
  gap: 1px;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  border: 1px solid rgba(242, 180, 109, 0.5);
  border-color: color-mix(in srgb, var(--vc-accent) 55%, transparent);
  background: rgba(7, 8, 12, 0.7);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  color: var(--vc-accent);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.9);
  transform: scale(0.55);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.view-cursor.is-on .view-cursor__disc {
  transform: scale(1);
}
.view-cursor__label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Chapter rail ---------- */
/* A quiet index on the edge: the section under the reading line is lit, and
   the names appear when the rail itself is hovered. */
.chapters {
  position: fixed;
  inset-inline-end: clamp(0.7rem, 1.6vw, 1.5rem);
  top: 50%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.chapters:hover,
.chapters:focus-within {
  background: rgba(7, 8, 12, 0.78);
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.95), inset 0 0 0 1px var(--line);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.chapters__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.15rem;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: color 0.25s ease;
}
.chapters__dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  transition: opacity 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.chapters__label {
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.chapters:hover .chapters__label,
.chapters__link:focus-visible .chapters__label {
  opacity: 1;
  transform: none;
}
.chapters__link:hover {
  color: var(--ink-soft);
}
.chapters__link.is-active {
  color: var(--gold);
}
.chapters__link.is-active .chapters__dot {
  opacity: 1;
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(242, 180, 109, 0.14);
}
html[data-page="droidcrate"] .chapters__link.is-active {
  color: var(--jade);
}
html[data-page="droidcrate"] .chapters__link.is-active .chapters__dot {
  box-shadow: 0 0 0 4px rgba(84, 179, 156, 0.16);
}
.chapters--still .chapters__label,
.chapters--still .chapters__dot {
  transition: none;
}
html.lb-open .chapters {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1279px) {
  .chapters {
    display: none;
  }
}

/* ---------- Arabic / RTL ---------- */
html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", var(--font-body);
  letter-spacing: 0;
}
html[lang="ar"] .display,
html[lang="ar"] .h2,
html[lang="ar"] .app-tagline,
html[lang="ar"] .app-card__id h3,
html[lang="ar"] .feature h3,
html[lang="ar"] .step h3,
html[lang="ar"] .download h2,
html[lang="ar"] .cta-band h2,
html[lang="ar"] .faq summary,
html[lang="ar"] .tab-card h3,
html[lang="ar"] .legal h1,
html[lang="ar"] .legal h2,
html[lang="ar"] .error-page h1 {
  font-family: "IBM Plex Sans Arabic", var(--font-display);
  letter-spacing: 0;
  line-height: 1.22;
}
html[lang="ar"] .display {
  line-height: 1.16;
}
html[lang="ar"] .eyebrow,
html[lang="ar"] .kicker,
html[lang="ar"] .badge,
html[lang="ar"] .fact dt,
html[lang="ar"] .footer-col h3,
html[lang="ar"] .scene-tag,
html[lang="ar"] .scene-badge {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.78rem;
}
html[lang="ar"] .brand-text span {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.72rem;
}
html[dir="rtl"] .app-card__actions .link-arrow svg,
html[dir="rtl"] .hero-meta svg {
  transform: scaleX(-1);
}
html[dir="rtl"] .faq summary::after {
  margin-inline-start: auto;
}
html[dir="rtl"] .fact {
  border-right: 0;
  border-left: 1px solid var(--line);
}
html[dir="rtl"] .fact:last-child {
  border-left: 0;
}
html[dir="rtl"] .step::before {
  left: auto;
  right: 0;
  padding-right: 0;
  padding-left: 0.6rem;
}
html[dir="rtl"] .step {
  text-align: right;
}
html[dir="rtl"] .callout li {
  padding-left: 0;
  padding-right: 1.1rem;
}
html[dir="rtl"] .callout li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .code-block code {
  direction: ltr;
  display: block;
}
html[dir="rtl"] .flow-row span:last-child,
html[dir="rtl"] .download-meta span:last-child {
  text-align: left;
}
html[dir="rtl"] .error-code {
  letter-spacing: 0;
}
html[dir="rtl"] .scene-tag {
  left: auto;
  right: 1rem;
}
html[dir="rtl"] .scene-badge {
  right: auto;
  left: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.4rem;
    background: rgba(7, 8, 12, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }
  body.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    padding: 0.8rem 0.6rem;
    border-radius: 10px;
    font-size: 1rem;
  }
  .header-actions {
    margin-inline-start: auto;
  }
  .menu-btn {
    display: grid;
    position: relative;
  }
  .hero,
  .page-hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 2.5rem);
  }
  .hero-inner,
  .page-hero .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-copy {
    max-width: 100%;
  }
  .scene-frame {
    max-width: 520px;
    max-height: none;
    aspect-ratio: 1 / 1;
  }
  .split,
  .download,
  .showcase {
    grid-template-columns: 1fr;
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .steps.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step::before {
    top: -0.8rem;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fact:nth-child(2) {
    border-right: 0;
  }
  .fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .tabs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .display {
    font-size: clamp(2.35rem, 11.5vw, 3.4rem);
  }
  .page-hero .display {
    font-size: clamp(2.25rem, 10.5vw, 3.1rem);
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .feature-grid,
  .feature-grid.three,
  .limits,
  .tabs-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
  .steps.four {
    grid-template-columns: 1fr;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .fact {
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .fact:last-child {
    border-bottom: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-meta {
    gap: 0.4rem 0.8rem;
    font-size: 0.74rem;
  }
  .hero-meta .sep {
    display: none;
  }
  .scene-tag {
    font-size: 0.6rem;
  }
  .download {
    padding: 1.4rem;
  }
  .download-meta div {
    flex-direction: column;
    gap: 0.2rem;
  }
  .download-meta span:last-child {
    text-align: left;
  }
  .app-card__index {
    display: none;
  }
  .brand-text span {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .btn {
    min-height: 46px;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
  }
}

/* ---------- Download dock (phones) ---------- */
/* The header download button is hidden on narrow screens; this bar appears
   once the hero has passed, and steps aside for the real download section. */
.dock {
  display: none;
}
@media (max-width: 900px) {
  .dock {
    position: fixed;
    z-index: 95;
    inset-inline: 0.7rem;
    bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.5rem 0.45rem 0.65rem;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: rgba(9, 10, 16, 0.92);
    box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    opacity: 0;
    transform: translateY(calc(100% + 1.4rem));
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }
  .dock.is-on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  html.lb-open .dock,
  html.nav-open .dock {
    opacity: 0;
    transform: translateY(calc(100% + 1.4rem));
    pointer-events: none;
  }
  .dock img {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .dock-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
  }
  .dock-meta strong {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .dock-meta small {
    color: var(--muted);
    font-size: 0.71rem;
    white-space: nowrap;
  }
  .dock .btn {
    flex: none;
    margin-inline-start: auto;
    min-height: 40px;
    padding: 0.5rem 0.9rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-contrast: more) {
  :root {
    --muted: #c6c0b5;
    --muted-dim: #aba499;
    --line: rgba(246, 242, 234, 0.26);
    --line-strong: rgba(246, 242, 234, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .dock {
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Motion layer ---------- */
/* Smooth scroll, scroll progress, cursor light, 3D entrances and page
   transitions. Everything degrades to the plain layout above when JS or
   motion is unavailable. */

html.lenis {
  scroll-behavior: auto;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 130;
  height: 2px;
  background: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--jade), var(--gold) 70%, #f8d3a4);
  box-shadow: 0 0 14px rgba(242, 180, 109, 0.55);
  will-change: transform;
}
html[dir="rtl"] .scroll-progress span {
  transform-origin: 100% 50%;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(242, 180, 109, 0.11),
    rgba(84, 179, 156, 0.07) 45%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.cursor-glow.is-on {
  opacity: 1;
}

/* --- Hero visual: a real 3D plane around the WebGL frame --- */
.hero-visual {
  perspective: 1500px;
  transform-style: preserve-3d;
}
.hero-visual .scene-frame {
  transform-style: preserve-3d;
  transform-origin: 50% 62%;
  will-change: transform;
}
html.motion-ready .hero-visual.reveal-scale {
  transition: opacity 0.85s ease, transform 1.05s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
  transition-delay: var(--d, 0ms);
}
html.motion-ready .hero-visual.reveal-scale:not(.is-in) {
  opacity: 0;
  transform: perspective(1500px) rotateY(-7deg) translateY(34px) scale(0.955);
  filter: blur(4px);
}
html.motion-ready .hero-visual.reveal-scale.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --- Deeper reveals --- */
html.motion-ready .reveal[data-reveal="3d"] {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease;
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}
html.motion-ready .reveal[data-reveal="3d"]:not(.is-in) {
  opacity: 0;
  transform: perspective(1200px) translate3d(0, 46px, -70px) rotateX(9deg);
  transform-origin: 50% 100%;
  filter: blur(6px);
}
html.motion-ready .reveal[data-reveal="3d"].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* App cards keep their pointer tilt, so their entrance is handled here. */
html.motion-ready .app-card.reveal {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transition-delay: var(--d, 0ms);
}
html.motion-ready .app-card.reveal:not(.is-in) {
  opacity: 0;
  transform: perspective(1400px) translate3d(0, 48px, -60px) rotateX(8deg);
  transform-origin: 50% 100%;
  filter: blur(5px);
}

/* --- Spotlight sheen for tilted cards --- */
.app-card::after,
.cross-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.1),
    transparent 62%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.app-card.is-tilting::after,
.cross-card.is-tilting::after {
  opacity: 1;
}

/* --- Cross-app band --- */
.cross-band {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
  overflow: clip;
}
.cross-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -55% -10%;
  height: 115%;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 22% 70%, rgba(84, 179, 156, 0.14), transparent 70%),
    radial-gradient(38% 50% at 78% 80%, rgba(242, 180, 109, 0.13), transparent 72%);
}
.cross-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  perspective: 1400px;
}
.cross-band__copy .section-lede {
  max-width: 34rem;
}
.cross-band__copy .btn-row {
  margin-top: 1.6rem;
}
.cross-card-wrap {
  perspective: 1200px;
}
.cross-card {
  --accent: var(--gold);
  --accent-soft: rgba(242, 180, 109, 0.16);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.cross-card.jade {
  --accent: var(--jade);
  --accent-soft: rgba(84, 179, 156, 0.16);
}
.cross-card:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: 0 44px 96px -46px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cross-card__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateZ(34px);
}
.cross-card__icon {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 22px 44px -20px color-mix(in srgb, var(--accent) 62%, transparent);
}
.cross-card__index {
  margin-inline-start: auto;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.cross-card__name {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transform: translateZ(26px);
}
.cross-card__meta {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  transform: translateZ(18px);
}
.cross-card__tagline {
  margin-top: 1rem;
  max-width: 22rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  transform: translateZ(14px);
}
.cross-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.8rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  transform: translateZ(24px);
}
.cross-card__arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.cross-card:hover .cross-card__arrow svg {
  transform: translateX(4px);
}
html[dir="rtl"] .cross-card__arrow svg {
  transform: scaleX(-1);
}
html[dir="rtl"] .cross-card:hover .cross-card__arrow svg {
  transform: scaleX(-1) translateX(4px);
}
.cross-card__glow {
  position: absolute;
  inset: auto -25% -50% -25%;
  height: 75%;
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 50%, var(--accent-soft), transparent 70%);
  filter: blur(18px);
}
html[lang="ar"] .cross-card__name,
html[lang="ar"] .cross-card__tagline {
  font-family: "IBM Plex Sans Arabic", var(--font-display);
  letter-spacing: 0;
}

/* --- Cross-document page transitions --- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: asraab-vt-out 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
}
::view-transition-new(root) {
  animation: asraab-vt-in 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes asraab-vt-out {
  to {
    opacity: 0;
    transform: scale(0.992);
    filter: blur(4px);
  }
}
@keyframes asraab-vt-in {
  from {
    opacity: 0;
    transform: scale(1.008);
    filter: blur(6px);
  }
}
.app-card[data-app="majra"],
.page-hero .scene-frame[data-app="majra"] {
  view-transition-name: app-majra;
}
.app-card[data-app="droidcrate"],
.page-hero .scene-frame[data-app="droidcrate"] {
  view-transition-name: app-droidcrate;
}
::view-transition-group(app-majra),
::view-transition-group(app-droidcrate) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 900px) {
  .cross-band__inner {
    grid-template-columns: 1fr;
  }
  .cross-card-wrap {
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
  }
  .cross-card {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  html.motion-ready .reveal[data-reveal="3d"]:not(.is-in) {
    transform: translate3d(0, 26px, -30px);
    filter: blur(3px);
  }
  html.motion-ready .app-card.reveal:not(.is-in) {
    transform: translate3d(0, 30px, -30px);
    filter: blur(3px);
  }
  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .cursor-glow {
    display: none;
  }
  html.motion-ready .reveal[data-reveal="3d"],
  html.motion-ready .reveal[data-reveal="3d"].is-in,
  html.motion-ready .app-card.reveal:not(.is-in),
  html.motion-ready .hero-visual.reveal-scale:not(.is-in) {
    opacity: 1;
    transform: none;
    filter: none;
  }
  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-group(app-majra),
  ::view-transition-group(app-droidcrate) {
    animation: none !important;
  }
}

/* ---------- Depth system ---------- */
/* A second 3D layer over the motion layer: a WebGL backdrop, floating HUD
   chips, layered cards, a fanned gallery deck and 3D headings. The backdrop
   runs everywhere (lighter on phones, one static frame for reduced motion);
   the tilt and deck work is switched off on small screens and reduced motion. */

.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
}
.ambient-scene canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* No WebGL? The same room is painted with gradients and a CSS floor. */
.ambient-scene.is-fallback {
  background:
    radial-gradient(62rem 40rem at 80% -8%, rgba(242, 180, 109, 0.1), transparent 62%),
    radial-gradient(54rem 36rem at 6% 18%, rgba(84, 179, 156, 0.09), transparent 64%);
}
.ambient-scene.is-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.085) 1px, transparent 1px);
  background-size: 62px 62px;
  transform: perspective(620px) rotateX(58deg) scale(2.4);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 72%);
  opacity: 0.75;
}

/* --- Hero HUD chips --- */
.orbit-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transform-style: preserve-3d;
}
.orbit-chip {
  position: absolute;
  left: var(--ox, 10%);
  top: var(--oy, 20%);
  padding: 0.32rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 8, 12, 0.6);
  backdrop-filter: blur(8px);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translate3d(0, 0, var(--oz, 40px));
  animation: orbit-float 7.5s ease-in-out infinite;
  will-change: transform;
}
.orbit-chip:nth-child(2) {
  animation-delay: -2.5s;
}
.orbit-chip:nth-child(3) {
  animation-delay: -5s;
}
@keyframes orbit-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

/* --- Layered cards --- */
.depth-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.depth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.1),
    transparent 62%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.depth-card.is-tilting::after {
  opacity: 1;
}

.feature.depth-card .feature-icon {
  transform: translateZ(34px);
  box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.feature.depth-card h3 {
  transform: translateZ(20px);
}
.feature.depth-card p {
  transform: translateZ(8px);
}

.step.depth-card::before {
  z-index: 3;
}
.step.depth-card h3 {
  transform: translateZ(22px);
}
.step.depth-card p {
  transform: translateZ(8px);
}

.tab-card.depth-card .tab-card__num {
  display: inline-block;
  transform: translateZ(24px);
}
.tab-card.depth-card h3 {
  transform: translateZ(18px);
}
.tab-card.depth-card p {
  transform: translateZ(8px);
}

.limits.depth-card .limit {
  transform: translateZ(14px);
}
.facts.depth-card .fact {
  transform: translateZ(16px);
}
.facts.depth-card .fact dd {
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.panel.depth-card .facts {
  transform: translateZ(18px);
}
.download.depth-card > * {
  transform: translateZ(16px);
}
.faq details.depth-card summary {
  transform: translateZ(14px);
}
.callout.depth-card > * {
  transform: translateZ(12px);
}

/* Cards float over the moving backdrop, so they keep a dark floor under their
   own gradient. Without it the wireframes read through the text. */
.feature.depth-card,
.step.depth-card,
.tab-card.depth-card,
.callout.depth-card,
.panel.depth-card,
.faq details.depth-card {
  background-color: rgba(9, 10, 15, 0.62);
}

/* --- 3D headings --- */
html.motion-ready .h2,
html.motion-ready .cta-band h2,
html.motion-ready .download h2 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 0 rgba(0, 0, 0, 0.32),
    0 18px 42px rgba(0, 0, 0, 0.5);
}
html.motion-ready .display .line:not(.grad-text) {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28), 0 20px 46px rgba(0, 0, 0, 0.45);
}

/* --- Screenshot presentation --- */
/* Crisp product frames with a real sense of depth: the frame lifts and leans,
   the picture inside drifts against it, and the light follows the pointer. */
.gallery,
.showcase {
  perspective: none;
  transform-style: flat;
}
html.has-js .gallery .shot,
html.has-js .showcase > .shot {
  transition: border-color 0.25s ease, box-shadow 0.5s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery .shot,
.showcase > .shot {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 28px 60px -34px rgba(0, 0, 0, 0.9);
}
html.has-js .gallery .shot:hover,
html.has-js .showcase > .shot:hover {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 46px 96px -38px rgba(0, 0, 0, 0.98);
}
/* While the pointer is inside, the tilt has to follow it without lag. */
html.has-js .gallery .shot.is-peeking,
html.has-js .showcase > .shot.is-peeking {
  transition: transform 0.12s ease-out, border-color 0.25s ease, box-shadow 0.45s ease;
}
html[data-page="majra"] .showcase > .shot {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 110px -58px rgba(242, 180, 109, 0.45);
}
html.has-js[data-page="majra"] .showcase > .shot:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 44px 100px -44px rgba(242, 180, 109, 0.5);
}
html.has-js[data-page="droidcrate"] .gallery .shot:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 90px -42px rgba(84, 179, 156, 0.45);
}

/* --- Floating app icons behind the closing CTA --- */
.cta-orbit {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  perspective: 1200px;
}
.cta-band .wrap {
  position: relative;
  z-index: 1;
}
.cta-float {
  position: absolute;
  left: var(--fx, 10%);
  top: var(--fy, 20%);
  width: var(--fs, 56px);
  height: var(--fs, 56px);
  border-radius: 16px;
  opacity: 0.5;
  filter: saturate(0.85);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.95);
  transform: translate3d(0, 0, var(--fz, 30px)) rotateY(var(--fr, 0deg));
  animation: cta-float 9s ease-in-out infinite;
  will-change: transform;
}
.cta-float:nth-child(2) {
  animation-delay: -4.5s;
}
@keyframes cta-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

/* --- Floating app icon on the app pages --- */
html.motion-ready .page-hero .hero-copy {
  perspective: 900px;
}
html.motion-ready .page-hero .hero-icon {
  transform: translateZ(46px) rotateX(7deg) rotateY(-9deg);
  box-shadow: 0 0 0 1px var(--line), 0 34px 64px -24px rgba(0, 0, 0, 0.95);
  animation: icon-float 8s ease-in-out infinite;
}
html[dir="rtl"].motion-ready .page-hero .hero-icon {
  transform: translateZ(46px) rotateX(7deg) rotateY(9deg);
}
@keyframes icon-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

/* --- Brand mark leans in --- */
html.motion-ready .brand img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
html.motion-ready .brand:hover img {
  transform: perspective(400px) rotateY(20deg) rotateX(-8deg);
}

/* --- Footer depth --- */
html.motion-ready .footer-grid > * {
  transform-style: preserve-3d;
}

@media (max-width: 900px) {
  .orbit-layer {
    display: none;
  }
  .gallery.duo {
    grid-template-columns: 1fr;
  }
  .cta-float {
    transform: none;
  }
  .depth-card,
  .depth-card * {
    transform-style: flat;
  }
  html.motion-ready .page-hero .hero-icon {
    transform: none;
    animation: none;
  }
  .feature.depth-card .feature-icon,
  .feature.depth-card h3,
  .feature.depth-card p,
  .step.depth-card h3,
  .step.depth-card p,
  .tab-card.depth-card .tab-card__num,
  .tab-card.depth-card h3,
  .tab-card.depth-card p,
  .limits.depth-card .limit,
  .facts.depth-card .fact,
  .panel.depth-card .facts,
  .download.depth-card > *,
  .faq details.depth-card summary,
  .callout.depth-card > * {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-layer,
  .cta-orbit {
    display: none;
  }
  .depth-card {
    transform: none !important;
  }
  .shot,
  .shot:hover,
  .shot:focus-within,
  .shot.is-peeking,
  .shot img,
  .shot.is-peeking img,
  .shot:hover img {
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }
  .shot .shot-open::after,
  .shot::before,
  .shot::after {
    opacity: 0 !important;
    animation: none !important;
  }
  .depth-card::after {
    display: none;
  }
  html.motion-ready .page-hero .hero-icon {
    transform: none;
    animation: none;
  }
  /* Zoom still works without motion: it just snaps instead of easing. */
  .lightbox img {
    transition: none;
  }
}

/* ---------- Print ---------- */
@media print {
  body::before,
  body::after,
  .site-header,
  .scene-frame,
  .site-footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
}
