/* GenieDev site stylesheet, "negro y dorado" variant.
   Dark-only page (locked by brief), near-black surfaces, gold gradient accent, hairline borders.
   Radius rule: cards and inputs 12px, buttons pill. One accent (gold). */

/* ---------- Fonts (self-hosted). El Messiri: display, calligraphic Arabic-Latin. Cairo: body. ---------- */
@font-face {
  font-family: "El Messiri";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/el-messiri-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "El Messiri";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/el-messiri-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "El Messiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/el-messiri-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "El Messiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/el-messiri-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cairo-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cairo-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cairo-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cairo-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cairo-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cairo-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cairo-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cairo-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cairo-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cairo-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- Tokens (dark only) ---------- */
:root {
  color-scheme: dark;

  --bg: #0a0b10;
  --bg-2: #0e1017;
  --surface: #12141c;
  --surface-2: #181b25;
  --text: #f4f2ec;
  --muted: #a7a59c;
  --line: rgb(251 207 69 / 0.14);
  --line-strong: rgb(251 207 69 / 0.3);

  --gold: #fbcf45;
  --gold-light: #fde68a;
  --gold-deep: #c9961a;
  --gold-ink: #17130a;
  --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  --gold-text-gradient: linear-gradient(90deg, var(--gold-light), var(--gold) 55%, #e0a82e);
  --gold-glow: rgb(251 207 69 / 0.18);
  --frame: linear-gradient(160deg, var(--gold-light), var(--gold-deep) 55%, var(--gold));

  --link: var(--gold);
  --danger: #ff8a80;
  --danger-bg: #3a1c1a;

  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.5);
  --shadow-gold: 0 10px 30px rgb(251 207 69 / 0.25);

  --font: "Cairo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "El Messiri", "Cairo", Georgia, serif;

  --sand: #e9c46a;
  --sand-deep: #8a5a12;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --r-card: 12px;
  --r-btn: 999px;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;

  --container: 1200px;
  --gutter: 1.5rem;
  --nav-h: 72px;
  --section-pad: clamp(4rem, 8vw, 6rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-size-adjust: from-font;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.125rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.375rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: var(--s-4);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a,
button,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: var(--r-btn);
  font-weight: 500;
}

.skip-link:focus {
  top: var(--s-4);
}

/* Sand grain over the whole page: fixed layer, never repaints on scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.055;
  mix-blend-mode: screen;
}

/* Gold gradient text, used on the hero emphasis only */
.gradient-text {
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
}

.section::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 6px rgb(251 207 69 / 0.7));
}

.section::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  /* a faint gold rule across the whole width, plus a glint that travels along it and fades out at both edges */
  background:
    linear-gradient(90deg, transparent, #fff8dc 40%, #fff 50%, #fff8dc 60%, transparent) no-repeat -30% 0 / 30% 100%,
    linear-gradient(90deg, transparent, rgb(251 207 69 / 0.45) 12%, rgb(251 207 69 / 0.7) 50%, rgb(251 207 69 / 0.45) 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.cta::after {
  display: none;
}

.cta::before {
  display: none;
}

.section-head {
  max-width: 65ch;
  margin-bottom: var(--s-7);
}

.cta h2 {
  color: var(--gold);
}

.section-head p {
  margin-top: var(--s-4);
  color: var(--muted);
  font-size: 1.125rem;
}

.split {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 7fr 5fr;
    gap: var(--s-8);
  }

  .split--5-7 {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.prose {
  max-width: 65ch;
}

.prose p {
  font-size: 1.125rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

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

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.btn--primary {
  background: var(--gold-gradient);
  color: var(--gold-ink);
  box-shadow: inset 0 0 0 1px rgb(23 19 10 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.35), 0 0 0 3px var(--bg), 0 0 0 4px rgb(251 207 69 / 0.45);
}

.btn--primary:hover {
  box-shadow: inset 0 0 0 1px rgb(23 19 10 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.35), 0 0 0 3px var(--bg), 0 0 0 4px var(--gold), var(--shadow-gold);
}

.btn--outline {
  background: rgb(255 255 255 / 0.03);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line);
}

.btn--outline:hover {
  background: rgb(251 207 69 / 0.08);
  border-color: var(--gold);
}

/* Dark button on the gold CTA band */
.btn--ink {
  background: var(--gold-ink);
  color: var(--gold-light);
  box-shadow: 0 0 0 3px rgb(251 207 69 / 0.6), 0 0 0 4px var(--gold-ink);
}

.btn--ink:hover {
  background: #000;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}

/* ---------- Header + nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--text);
  container-type: scroll-state;
  container-name: site-header;
}

.site-header__bar {
  background: rgb(10 10 11 / 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

@media (prefers-reduced-transparency: reduce) {
  .site-header__bar {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--nav-h);
}

@container site-header scroll-state(stuck: top) {
  .site-header__bar {
    border-bottom-color: var(--line);
  }
}

.site-header.is-stuck .site-header__bar {
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 220px;
  height: auto;
}

.nav {
  position: relative;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.75rem;
  cursor: pointer;
}

.nav__toggle .icon + .icon {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon + .icon {
  display: block;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav__link {
  display: inline-block;
  padding: var(--s-2) 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text);
}

.nav__link[aria-current="true"] {
  color: var(--gold);
}

@media (max-width: 899px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__list {
    position: absolute;
    top: calc(100% + var(--s-3));
    right: 0;
    min-width: 240px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-md);
  }

  .nav__list[hidden] {
    display: none;
  }

  .nav__link {
    padding: var(--s-3) var(--s-4);
    color: var(--text);
    border-radius: 8px;
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    background: rgb(255 255 255 / 0.06);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
}

/* Desert wind: the sand canvas fills the hero behind the content, faded at the edges */
.sand {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 55% 50%, #000 40%, transparent 92%);
  mask-image: radial-gradient(ellipse 85% 80% at 55% 50%, #000 40%, transparent 92%);
}

/* faint dune horizon at the base */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgb(138 90 18 / 0.16));
  pointer-events: none;
}

.hero .container {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  align-content: center;
  padding-block: var(--s-8);
}

.hero__copy {
  max-width: 40rem;
}

.hero__lead {
  margin-top: var(--s-5);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 30rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* The lamp: a square canvas where the grains draw the lamp and each wish */
.lamp {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  aspect-ratio: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.lamp.is-ready {
  opacity: 1;
}

.lamp__canvas {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
}

@media (max-width: 899px) {
  .hero .container {
    min-height: 0;
    padding-block: var(--s-7);
  }

  .lamp {
    width: min(100%, 380px);
  }
}

/* ---------- About: a turning seal beside the statement ---------- */
.about .split {
  align-items: center;
}

/* the turning ring's box can poke past very narrow viewports; clip it, never scroll */
.about {
  overflow-x: clip;
}

.about__lead {
  margin-top: var(--s-5);
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 52ch;
}

.about__wish {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  max-width: 30ch;
  padding-bottom: 0.1em;
}

.seal {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(251 207 69 / 0.12), transparent 60%), #0d0e14;
  border: 1px solid rgb(251 207 69 / 0.55);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.5), inset 0 0 0 8px #0a0b10, inset 0 0 0 9px rgb(251 207 69 / 0.3), inset 0 0 0 44px #0a0b10, inset 0 0 0 45px rgb(251 207 69 / 0.3);
}

.seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seal__mark {
  width: 44%;
  aspect-ratio: 2 / 1;
  fill: var(--gold);
  filter: drop-shadow(0 0 12px rgb(251 207 69 / 0.55));
}

/* ---------- Data Analytics (why-us): headline, accordion and an astrolabe ---------- */
.why {
  overflow: clip;
}

/* a faint graduated arc across the section, like the rim of a measuring instrument */
.why::before {
  z-index: 1;
}

.why .container {
  position: relative;
}

.why .split {
  align-items: center;
}

.why h2 {
  max-width: 16ch;
}

.why h2 .gradient-text {
  display: block;
  padding-bottom: 0.1em;
}

.why__lead {
  margin-top: var(--s-4);
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 60ch;
}

/* Astrolabe: nested gold rings, a graduated scale, a slowly turning rete of stars and a sweeping rule */
.astrolabe {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.astrolabe > * {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.astrolabe__mater {
  background:
    radial-gradient(circle at 50% 50%, rgb(251 207 69 / 0.1), transparent 62%),
    #0d0e14;
  border: 1px solid rgb(251 207 69 / 0.6);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55), inset 0 0 0 10px #0a0b10, inset 0 0 0 11px rgb(251 207 69 / 0.35);
}

/* 72 ticks around the rim, every sixth one longer */
.astrolabe__scale {
  inset: 14px;
  background:
    repeating-conic-gradient(from 0deg, var(--gold) 0deg 0.5deg, transparent 0.5deg 5deg),
    repeating-conic-gradient(from 0deg, var(--gold-light) 0deg 0.9deg, transparent 0.9deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 22px), #000 calc(50% - 21px) calc(50% - 6px), transparent calc(50% - 5px));
  mask: radial-gradient(circle, transparent 0 calc(50% - 22px), #000 calc(50% - 21px) calc(50% - 6px), transparent calc(50% - 5px));
  opacity: 0.9;
}

.astrolabe__ring {
  inset: 24%;
  border: 1px solid rgb(251 207 69 / 0.5);
  box-shadow: inset 0 0 0 1px rgb(251 207 69 / 0.12), 0 0 0 24px rgb(251 207 69 / 0.04);
}

/* the rete: a thin ring carrying six star pointers */
.astrolabe__rete {
  inset: 11%;
  border: 1px solid rgb(251 207 69 / 0.35);
}

.astrolabe__rete span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 6px rgb(251 207 69 / 0.8));
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1));
}

.astrolabe__rete span:nth-child(1) { --a: 0deg; --r: 50cqw; }
.astrolabe__rete span:nth-child(2) { --a: 61deg; --r: 50cqw; }
.astrolabe__rete span:nth-child(3) { --a: 118deg; --r: 50cqw; }
.astrolabe__rete span:nth-child(4) { --a: 172deg; --r: 50cqw; }
.astrolabe__rete span:nth-child(5) { --a: 236deg; --r: 50cqw; }
.astrolabe__rete span:nth-child(6) { --a: 301deg; --r: 50cqw; }

.astrolabe__rete {
  container-type: size;
}

/* the alidade: a rule across the disc with a pointer at one end */
.astrolabe__alidade {
  inset: 8%;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 0 4%, rgb(251 207 69 / 0.35) 4% 46%, var(--gold) 46% 54%, rgb(251 207 69 / 0.9) 54% 96%, transparent 96%) center / 100% 2px no-repeat,
    radial-gradient(circle at 96% 50%, var(--gold-light) 0 4px, transparent 5px);
  transform: rotate(-28deg);
}

.astrolabe__mark {
  inset: auto;
  width: 22%;
  aspect-ratio: 2 / 1;
  border-radius: 0;
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgb(251 207 69 / 0.5));
}

@media (max-width: 899px) {
  .astrolabe {
    width: min(100%, 340px);
  }
}

.faq {
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  font-weight: 500;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: var(--s-3);
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.7;
}

.faq summary {
  justify-content: flex-start;
}

.faq summary .icon {
  margin-left: auto;
}

.faq summary:hover {
  color: var(--gold);
}

.faq summary .icon {
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq__body {
  padding-bottom: var(--s-5);
  color: var(--muted);
  max-width: 60ch;
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
}

/* ---------- Services: feature rows (big title, demo stage, caption) ---------- */
.features {
  display: grid;
  gap: 0;
}

.feature {
  padding-block: var(--s-8);
  border-top: 1px solid var(--line);
}

.feature:first-child {
  border-top: 0;
  padding-top: var(--s-4);
}

.feature__title {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: var(--s-6);
}

.feature__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

@media (min-width: 900px) {
  .feature__grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--s-8);
  }

  .feature:nth-child(even) .feature__demo {
    order: 2;
  }
}

.feature__caption {
  max-width: 44ch;
  color: var(--muted);
  display: grid;
  gap: var(--s-4);
}

.feature__lead {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.45;
}

.feature__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.feature__link:hover {
  text-decoration: underline;
}

/* Services as chips: press one and it lights up, its card unfolds out of it (built by services.js) */
.svc {
  display: grid;
  gap: var(--s-6);
}

.svc__rail {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
}

.svc__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2) var(--s-3);
  max-width: 960px;
}

.svc__tab {
  --lift: 0px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.65rem 1.15rem 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(18 20 28 / 0.8);
  color: var(--muted);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transform: translateY(var(--lift));
  transition:
    transform 0.35s var(--ease),
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.4s var(--ease);
}

/* the gold fill that "switches on" the chip, grown from its centre */
.svc__tab::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--gold-gradient);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}

.svc__tab:hover {
  --lift: -2px;
  color: var(--text);
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.4);
}

.svc__tab:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.svc__tab[aria-selected="true"] {
  --lift: -3px;
  color: var(--gold-ink);
  border-color: var(--gold-light);
  font-weight: 700;
  box-shadow: 0 10px 30px rgb(251 207 69 / 0.35), 0 0 0 4px rgb(251 207 69 / 0.12);
}

.svc__tab[aria-selected="true"]::before {
  opacity: 1;
  transform: none;
}

.svc__icon {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: rgb(251 207 69 / 0.1);
  color: var(--gold);
  fill: currentColor;
  transition: background-color 0.3s, color 0.3s;
}

.svc__tab[aria-selected="true"] .svc__icon {
  background: var(--gold-ink);
  color: var(--gold);
}

.svc__num {
  display: none;
}

/* the tour's progress: a dark ink line filling along the bottom of the lit chip */
.svc__meter {
  position: absolute;
  inset: auto 1.1rem 5px 3rem;
  height: 2px;
  border-radius: 2px;
  background: rgb(23 19 10 / 0.55);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.svc.is-touring .svc__tab[aria-selected="true"] .svc__meter.is-running {
  opacity: 1;
  animation: svc-meter var(--svc-dwell, 7s) linear forwards;
}

.svc.is-paused .svc__meter.is-running {
  animation-play-state: paused;
}

@keyframes svc-meter {
  to {
    transform: scaleX(1);
  }
}

.svc__tour {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.svc__tour:hover {
  color: var(--gold);
}

.svc__tour:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.svc__tour .icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* group heading inside the chip cloud: a full-width row with gold hairlines on both sides */
.svc__group {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-2);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.svc__group:first-child {
  margin-top: 0;
}

.svc__group::before,
.svc__group::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.svc__group::after {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* phones: the chips become a 3-column grid of tiles, icon over name, so they fit in one glance */
@media (max-width: 599px) {
  .svc__group {
    grid-column: 1 / -1;
  }

  .svc__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-2);
    width: 100%;
  }

  .svc__tab {
    flex-direction: column;
    justify-content: center;
    gap: var(--s-1);
    padding: 0.7rem 0.35rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8125rem;
    white-space: normal;
    text-align: center;
  }

  .svc__meter {
    inset: auto 14px 5px 14px;
  }
}

/* every card sits in the same cell; the tallest sets the height so the page never jumps */
.svc__panels {
  display: grid;
  min-width: 0;
  overflow: clip;
}

.svc__panels > .feature {
  position: relative;
  grid-area: 1 / 1;
  padding: 0;
  border: 0;
  min-width: 0;
}

.svc__panels > .feature.is-active {
  z-index: 1;
}

/* parked cards leave the viewport sideways, so their canvas demos stop drawing */
.svc__panels > .feature:not(.is-active, .is-leaving) {
  visibility: hidden;
  translate: -300vw 0;
}

.svc__panels > .feature:focus {
  outline: none;
}

.svc__panels .feature__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  margin-bottom: var(--s-5);
}

@media (min-width: 900px) {
  .svc__panels .feature:nth-child(even) .feature__demo {
    order: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* the chip's icon pops and a ring of light ripples out when it is switched on */
  .svc__tab.is-lit .svc__icon {
    animation: svc-pop 0.5s var(--ease);
  }

  .svc__tab.is-lit::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 2px solid var(--gold);
    pointer-events: none;
    animation: svc-ring 0.8s var(--ease) forwards;
  }

  .svc__tab[aria-selected="true"] {
    animation: svc-glow 2.8s ease-in-out 0.8s infinite alternate;
  }
}

@keyframes svc-pop {
  40% {
    transform: scale(1.3) rotate(-10deg);
  }
}

@keyframes svc-ring {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.35, 1.9);
  }
}

@keyframes svc-glow {
  to {
    box-shadow: 0 12px 38px rgb(251 207 69 / 0.5), 0 0 0 6px rgb(251 207 69 / 0.08);
  }
}

/* The stage: a dark panel every demo sits on */
.stage {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgb(251 207 69 / 0.12), transparent 70%),
    var(--surface);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(251 207 69 / 0.3);
}

/* Web frame: an abstract page built from the site's own motifs, no fake text */
.webframe {
  position: relative;
  width: min(100%, 560px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgb(251 207 69 / 0.4);
  background: #0d0e14;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.04);
  transform: translateY(22px);
}

.webframe__bar {
  display: flex;
  justify-content: center;
  padding: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.webframe__pill {
  width: 42%;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.webframe__page {
  padding: 4% 5% 5%;
  display: grid;
  gap: 5%;
}

.webframe__nav {
  display: flex;
  align-items: center;
  gap: 4%;
}

.webframe__nav span {
  width: 9%;
  height: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
}

.webframe__nav span:first-of-type {
  margin-left: auto;
}

.webframe__logo {
  width: 11%;
  aspect-ratio: 2 / 1;
  fill: var(--gold);
}

.webframe__hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8%;
  align-items: center;
}

.webframe__copy {
  display: grid;
  gap: 8%;
}

.webframe__title {
  display: block;
  height: 12px;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #f4f2ec, #d9d4c6);
}

.webframe__title--short {
  width: 62%;
  background: var(--gold-text-gradient);
}

.webframe__line {
  display: block;
  height: 5px;
  width: 92%;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
}

.webframe__line--short {
  width: 70%;
}

.webframe__btn {
  display: block;
  width: 36%;
  height: 16px;
  margin-top: 2%;
  border-radius: 999px;
  background: var(--gold-gradient);
}

.webframe__arch {
  clip-path: url(#arch);
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgb(251 207 69 / 0.28), transparent 70%),
    linear-gradient(180deg, #1a1c26, #10121a);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgb(251 207 69 / 0.4);
}

.webframe__mark {
  width: 58%;
  aspect-ratio: 2 / 1;
  fill: var(--gold);
  filter: drop-shadow(0 0 8px rgb(251 207 69 / 0.5));
}

.webframe__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5%;
}

.webframe__cards span {
  clip-path: url(#arch);
  aspect-ratio: 5 / 4;
  background: linear-gradient(180deg, rgb(251 207 69 / 0.16), rgb(251 207 69 / 0.04)), #12141c;
}

/* gold sheen sweeping across the window on hover */
.webframe__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgb(251 207 69 / 0.18) 50%, transparent 65%);
  transform: translateX(-100%);
  pointer-events: none;
}

.stage:hover .webframe__sheen {
  transition: transform 1.1s var(--ease);
  transform: translateX(100%);
}

/* Network map canvas for the infrastructure demo */
.netmap {
  position: relative;
  width: min(92%, 520px);
  aspect-ratio: 5 / 3.6;
}

.netmap__canvas {
  position: absolute;
  inset: 0;
  display: block;
}

/* AI agent: a small conversation panel where a request arrives, the agent works through
   three steps (each lights up in turn) and answers. Loops on its own; static without motion. */
.agent {
  width: min(100%, 400px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgb(251 207 69 / 0.4);
  background: #0d0e14;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.04);
}

.agent__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.agent__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, rgb(251 207 69 / 0.28), transparent 70%), var(--surface-2);
  box-shadow: inset 0 0 0 1px rgb(251 207 69 / 0.4);
}

.agent__avatar svg {
  width: 22px;
  height: 11px;
  fill: var(--gold);
  filter: drop-shadow(0 0 6px rgb(251 207 69 / 0.5));
}

.agent__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.agent__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.agent__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.agent__chat {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 0.9rem 1.1rem;
  min-height: 250px;
  align-content: start;
}

.agent__msg {
  max-width: 82%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--text);
}

.agent__msg--in {
  justify-self: start;
  background: rgb(255 255 255 / 0.08);
  border-bottom-left-radius: 4px;
}

.agent__msg--out {
  justify-self: end;
  background: var(--gold-gradient);
  color: var(--gold-ink);
  border-bottom-right-radius: 4px;
}

.agent__trace {
  list-style: none;
  margin: 0.1rem 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.agent__trace li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.agent__trace li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* hero: the secondary "see services" link sits on the button's baseline */
.hero__actions {
  align-items: center;
}

/* Passport: a dark booklet whose page edge shines like foil */
.passport {
  position: relative;
  width: min(62%, 250px);
  aspect-ratio: 360 / 480;
  display: flex;
  transform: rotate(-6deg);
  transition: transform 0.6s var(--ease);
  cursor: pointer;
  outline: 0;
}

.passport:hover,
.passport:focus-visible {
  transform: rotate(-2deg) translateY(-6px);
}

.passport__spine {
  width: 4px;
  flex: none;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, var(--gold-deep), var(--gold), var(--gold-deep));
}

.passport__cover {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.1rem 1rem;
  border-radius: 0 10px 10px 0;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.06), transparent 40%),
    #0d0e14;
  border: 1px solid rgb(251 207 69 / 0.35);
  border-left: 0;
  box-shadow: 0 30px 50px rgb(0 0 0 / 0.55);
}

.passport__head {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.passport__head ul {
  display: grid;
  gap: 0.15rem;
  text-align: right;
}

.passport__head [lang="ar"] {
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.passport__mark {
  width: 46%;
  height: auto;
  aspect-ratio: 2 / 1;
  align-self: center;
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgb(251 207 69 / 0.5));
}

.passport__foot {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* page block: the stack of pages peeking out on the right */
.passport__edge {
  position: absolute;
  z-index: 1;
  top: 3%;
  right: -7px;
  width: 12px;
  height: 94%;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(180deg, #f0e6c8 0 1.5px, #c9bd9b 1.5px 3px);
}

/* the foil glow behind the edge, revealed on hover */
.passport__glow {
  position: absolute;
  z-index: 0;
  top: 8%;
  right: -22px;
  width: 44px;
  height: 84%;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.passport__glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fde68a, #fbcf45 30%, #ff9a3c 55%, #fde68a 80%, #f8f3d6);
  filter: blur(18px);
}

.passport__ellipse {
  position: absolute;
  inset: 0 auto 0 -10px;
  width: 100%;
  border-radius: 100%;
  background: linear-gradient(90deg, #ffdc30, #ff7a1a);
  mix-blend-mode: screen;
  filter: blur(20px);
  transform-origin: center;
}

.passport:hover .passport__glow,
.passport:focus-visible .passport__glow {
  opacity: 1;
  transition-duration: 1s;
}

@media (hover: none) {
  .passport__glow {
    opacity: 0.8;
  }
}

/* Ledger: a sand chart drawn on canvas, bars that fill like an hourglass */
.ledger {
  position: relative;
  width: min(84%, 440px);
  height: 250px;
}

.ledger__canvas {
  position: absolute;
  inset: 0;
  display: block;
}

/* Phone frame with the brand mark */
.phone {
  width: min(56%, 230px);
  aspect-ratio: 9 / 19;
  padding: 8px;
  border-radius: 30px;
  background: #0d0e14;
  border: 1px solid rgb(251 207 69 / 0.45);
  box-shadow: 0 30px 50px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.05);
  transform: translateY(28px) rotate(4deg);
  transition: transform 0.6s var(--ease);
}

.stage:hover .phone {
  transform: translateY(20px) rotate(0deg);
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgb(251 207 69 / 0.14), transparent 70%),
    linear-gradient(180deg, #14161e, #0a0b10);
}

.phone__canvas {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.phone__screen.is-ready .phone__canvas {
  opacity: 1;
}

/* ---------- CTA band: the same desert as the hero ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--bg-2);
  color: var(--text);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.cta .sand {
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
}

.cta__inner {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

@media (min-width: 900px) {
  .cta__inner {
    grid-template-columns: 1fr auto;
    gap: var(--s-8);
  }
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta p {
  margin-top: var(--s-4);
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 55ch;
}

/* ---------- Contact ---------- */
.contact__info {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.contact__info h2 {
  margin-bottom: var(--s-2);
}

.contact__info > p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 40ch;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.contact__row .icon {
  font-size: 1.5rem;
  color: var(--gold);
}

.contact__row span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact__row a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.contact__row a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* the lamp beside the form: dim until someone starts writing, then it lights up and smokes */
.contact__lamp {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 2 / 1.2;
  margin-top: var(--s-6);
  display: grid;
  place-items: end center;
}

.contact__mark {
  width: 100%;
  aspect-ratio: 2 / 1;
  fill: var(--gold-deep);
  opacity: 0.55;
  transition: fill 0.6s var(--ease), opacity 0.6s var(--ease), filter 0.6s var(--ease);
}

.contact__wisp {
  position: absolute;
  left: 9%;
  top: 22%;
  width: 10px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(253 230 138 / 0.9), rgb(251 207 69 / 0));
  opacity: 0;
}

.contact:focus-within .contact__mark,
.contact__lamp:hover .contact__mark {
  fill: var(--gold);
  opacity: 1;
  filter: drop-shadow(0 0 16px rgb(251 207 69 / 0.7));
}

.form {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  outline: 1px solid var(--line);
  outline-offset: 5px;
}

.form__row {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: var(--s-2);
}

.field label {
  font-weight: 500;
}

.hint {
  font-size: 0.875rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(251 207 69 / 0.3);
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.error-msg {
  display: none;
  font-size: 0.875rem;
  color: var(--danger);
}

.field input:user-invalid,
.field textarea:user-invalid,
.field input.user-invalid-fallback,
.field textarea.user-invalid-fallback {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.field input:user-invalid ~ .error-msg,
.field textarea:user-invalid ~ .error-msg,
.field input.user-invalid-fallback ~ .error-msg,
.field textarea.user-invalid-fallback ~ .error-msg {
  display: block;
}

.form__actions {
  display: flex;
  justify-content: flex-end;
}

/* SweetAlert2 result dialog picks up the theme */
.swal2-popup {
  font-family: var(--font) !important;
  border-radius: var(--r-card) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

.swal2-confirm.swal2-styled {
  background: var(--gold) !important;
  color: var(--gold-ink) !important;
  border-radius: var(--r-btn) !important;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-block: var(--s-6);
}

.site-footer {
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.site-footer a {
  color: var(--text);
}

/* ---------- Privacy page ---------- */
.legal {
  max-width: 72ch;
}

.legal h1 {
  margin-bottom: var(--s-6);
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
}

/* Brand kit: a brand board (logo on its construction guides, type pair, palette, business card
   and a label) that assembles as it scrolls into view. Complete and static without motion. */
.brandkit {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
}

.brandkit > div {
  border-radius: 12px;
  border: 1px solid rgb(251 207 69 / 0.28);
  background: #0d0e14;
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.45), inset 0 0 0 1px rgb(255 255 255 / 0.03);
}

.brandkit > .brandkit__logo {
  grid-row: 1 / 3;
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 60%, rgb(251 207 69 / 0.18), transparent 65%), #0d0e14;
}

/* dashed construction circle with its axes, like a logo on its grid */
.brandkit__guide {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px dashed rgb(251 207 69 / 0.35);
}

.brandkit__guide::before,
.brandkit__guide::after {
  content: "";
  position: absolute;
  background: rgb(251 207 69 / 0.16);
}

.brandkit__guide::before {
  left: 50%;
  top: -18%;
  bottom: -18%;
  width: 1px;
}

.brandkit__guide::after {
  top: 50%;
  left: -18%;
  right: -18%;
  height: 1px;
}

.brandkit__mark {
  position: relative;
  width: 62%;
  aspect-ratio: 2 / 1;
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgb(251 207 69 / 0.5));
}

.brandkit__type {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 10px;
}

.brandkit__aa {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
  color: var(--text);
}

.brandkit__aa--display {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brandkit__swatches {
  display: flex;
  gap: 6px;
  padding: 10px;
}

.brandkit__swatches span {
  flex: 1 1 0;
  min-height: 52px;
  border-radius: 8px;
  transition: flex-grow 0.6s var(--ease);
}

.brandkit__swatches span:nth-child(1) { background: var(--gold-light); }
.brandkit__swatches span:nth-child(2) { background: var(--gold); }
.brandkit__swatches span:nth-child(3) { background: var(--gold-deep); }
.brandkit__swatches span:nth-child(4) { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* on hover the palette spreads, as if the main color were being picked */
.stage:hover .brandkit__swatches span:nth-child(2) {
  flex-grow: 2.4;
}

.brandkit__card {
  aspect-ratio: 1.75;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 7px;
  padding: 10% 9%;
}

.brandkit__card-mark {
  width: 30%;
  aspect-ratio: 2 / 1;
  fill: var(--gold);
}

.brandkit__card span {
  display: block;
  height: 5px;
  width: 64%;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.2);
}

.brandkit__card span + span {
  width: 42%;
  background: rgb(251 207 69 / 0.4);
}

.brandkit__pack {
  display: grid;
  place-items: center;
  padding: 10px;
}

/* the label: the site's arch shape in gold with the mark punched in ink */
.brandkit__pack::before {
  content: "";
  grid-area: 1 / 1;
  width: 52%;
  aspect-ratio: 4 / 5;
  clip-path: url(#arch);
  background: var(--gold-gradient);
}

.brandkit__pack-mark {
  grid-area: 1 / 1;
  position: relative;
  top: 10%;
  width: 34%;
  aspect-ratio: 2 / 1;
  fill: var(--gold-ink);
}

/* Prototype: a wireframe screen and its finished version. A cursor taps the wireframe's button
   and the high-fidelity screen lights up piece by piece. Static: both screens side by side. */
.proto {
  width: min(100%, 460px);
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  padding-bottom: 28px;
}

.proto__screen {
  position: relative;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px 12px;
  border-radius: 18px;
  background: #0d0e14;
}

.proto__screen--wire {
  border: 1.5px dashed rgb(255 255 255 / 0.24);
}

.proto__screen--hifi {
  border: 1px solid rgb(251 207 69 / 0.4);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.04);
}

.proto__bar {
  align-self: center;
  width: 38%;
  height: 6px;
  margin-bottom: 4px;
  border-radius: 999px;
}

.proto__media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
}

.proto__line {
  display: block;
  width: 92%;
  height: 5px;
  border-radius: 999px;
}

.proto__line--short {
  width: 62%;
}

.proto__btn {
  position: relative;
  width: 58%;
  height: 16px;
  margin-top: 4px;
  border-radius: 999px;
}

.proto__cards {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.proto__cards span {
  aspect-ratio: 1;
  border-radius: 6px;
}

.proto__label {
  position: absolute;
  left: 50%;
  bottom: -28px;
  translate: -50% 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* wireframe: grey outlines, the image placeholder crossed like on paper */
.proto__screen--wire :is(.proto__bar, .proto__line) {
  background: rgb(255 255 255 / 0.16);
}

.proto__screen--wire :is(.proto__media, .proto__btn, .proto__cards span) {
  border: 1px dashed rgb(255 255 255 / 0.3);
}

.proto__screen--wire .proto__media {
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), rgb(255 255 255 / 0.18) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to top left, transparent calc(50% - 0.5px), rgb(255 255 255 / 0.18) 50%, transparent calc(50% + 0.5px));
}

/* high fidelity: the same layout dressed with the brand */
.proto__screen--hifi .proto__bar {
  background: rgb(255 255 255 / 0.2);
}

.proto__screen--hifi .proto__media {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgb(251 207 69 / 0.32), transparent 70%),
    linear-gradient(180deg, #1a1c26, #10121a);
  box-shadow: inset 0 0 0 1px rgb(251 207 69 / 0.4);
}

.proto__mark {
  width: 46%;
  aspect-ratio: 2 / 1;
  fill: var(--gold);
  filter: drop-shadow(0 0 8px rgb(251 207 69 / 0.5));
}

.proto__screen--hifi .proto__line {
  background: linear-gradient(90deg, #f4f2ec, #d9d4c6);
}

.proto__screen--hifi .proto__line--short {
  background: var(--gold-text-gradient);
}

.proto__screen--hifi .proto__btn {
  background: var(--gold-gradient);
  box-shadow: 0 6px 16px rgb(251 207 69 / 0.3);
}

.proto__screen--hifi .proto__cards span {
  background: linear-gradient(180deg, rgb(251 207 69 / 0.2), rgb(251 207 69 / 0.05)), #12141c;
  box-shadow: inset 0 0 0 1px rgb(251 207 69 / 0.2);
}

/* the dashed link between both screens, with its arrow tip */
.proto__flow {
  position: relative;
  height: 2px;
  margin-inline: 8px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px);
}

.proto__flow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  translate: 0 -50%;
  border: 5px solid transparent;
  border-left: 7px solid var(--gold);
  border-right: 0;
}

/* cursor resting on the wireframe's button; the ring is the tap */
.proto__cursor {
  position: absolute;
  left: 58%;
  top: 40%;
  width: 22px;
  height: 22px;
  fill: var(--text);
  stroke: #0a0b10;
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.6));
  z-index: 1;
}

.proto__screen--wire .proto__btn::after {
  content: "";
  position: absolute;
  left: 58%;
  top: 40%;
  width: 30px;
  height: 30px;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
}

/* Reel: a post preview with its edit timeline below. The playhead sweeps the clips while the
   preview's progress bar fills. Static: paused mid-edit. */
.reel {
  width: min(100%, 440px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgb(251 207 69 / 0.4);
  background: #0d0e14;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.04);
}

.reel__preview {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgb(251 207 69 / 0.3), transparent 70%),
    linear-gradient(180deg, #1a1c26, #10121a);
}

.reel__mark {
  width: 32%;
  aspect-ratio: 2 / 1;
  fill: var(--gold);
  filter: drop-shadow(0 0 12px rgb(251 207 69 / 0.55));
}

.reel__play {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.45);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.reel__play::before {
  content: "";
  margin-left: 2px;
  border: 5px solid transparent;
  border-left: 8px solid var(--gold);
  border-right: 0;
}

.reel__progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.15);
  overflow: hidden;
}

.reel__progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-gradient);
}

.reel__tracks {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.reel__track {
  position: relative;
  height: 20px;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.04);
}

.reel__track span {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: calc(var(--x) * 1%);
  width: calc(var(--w) * 1% - 3px);
  border-radius: 4px;
  border: 1px solid rgb(251 207 69 / 0.45);
  background: linear-gradient(180deg, rgb(251 207 69 / 0.32), rgb(251 207 69 / 0.12));
}

.reel__track--fx span {
  border-color: rgb(255 255 255 / 0.24);
  background: rgb(255 255 255 / 0.09);
}

/* audio: a waveform of bars of different heights, drawn once and repeated */
.reel__track--audio span {
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='20' fill='%23fbcf45' fill-opacity='.65'%3E%3Crect x='0' y='7.0' width='2' height='6' rx='1'/%3E%3Crect x='4' y='4.5' width='2' height='11' rx='1'/%3E%3Crect x='8' y='2.0' width='2' height='16' rx='1'/%3E%3Crect x='12' y='5.5' width='2' height='9' rx='1'/%3E%3Crect x='16' y='3.0' width='2' height='14' rx='1'/%3E%3Crect x='20' y='1.0' width='2' height='18' rx='1'/%3E%3Crect x='24' y='6.0' width='2' height='8' rx='1'/%3E%3Crect x='28' y='4.0' width='2' height='12' rx='1'/%3E%3Crect x='32' y='7.5' width='2' height='5' rx='1'/%3E%3Crect x='36' y='2.5' width='2' height='15' rx='1'/%3E%3Crect x='40' y='5.0' width='2' height='10' rx='1'/%3E%3Crect x='44' y='1.5' width='2' height='17' rx='1'/%3E%3Crect x='48' y='6.5' width='2' height='7' rx='1'/%3E%3Crect x='52' y='3.5' width='2' height='13' rx='1'/%3E%3Crect x='56' y='5.5' width='2' height='9' rx='1'/%3E%3Crect x='60' y='2.0' width='2' height='16' rx='1'/%3E%3C/svg%3E") left center / auto 100% repeat-x;
}

.reel__playhead {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: calc(12px + (100% - 24px) * 0.42);
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.reel__playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  translate: -50% 0;
  border: 5px solid transparent;
  border-top: 6px solid var(--gold);
  border-bottom: 0;
}

/* Legal documents (charter, contract): a dark sheet with a small monospace heading */
:is(.charter, .contract) {
  position: relative;
  width: min(100%, 380px);
  display: grid;
  border-radius: 12px;
  border: 1px solid rgb(251 207 69 / 0.4);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.05), transparent 40%), #0d0e14;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.04);
}

:is(.charter__eyebrow, .contract__eyebrow) {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Charter: the articles of incorporation. The company type cycles through the usual three,
   the clauses get written, the partners' shares fill and the notary seal stamps it.
   Static: the finished deed. */
.charter {
  gap: 10px;
  padding: 22px 22px 18px;
}

.charter__kind {
  display: grid;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  line-height: 1.1;
}

.charter__kind span {
  grid-area: 1 / 1;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.charter__kind span + span {
  opacity: 0;
}

.charter__line {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  transform-origin: left;
}

.charter__line--short {
  width: 64%;
}

.charter__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgb(251 207 69 / 0.25);
}

.charter__partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.charter__partners li {
  display: grid;
  grid-template-columns: 20px 1fr 3ch;
  align-items: center;
  gap: 10px;
}

/* a partner: head and shoulders in gold */
.charter__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgb(251 207 69 / 0.6) 0 22%, transparent 24%),
    radial-gradient(ellipse 55% 40% at 50% 100%, rgb(251 207 69 / 0.45) 0 90%, transparent 92%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.charter__share {
  height: 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  overflow: hidden;
}

.charter__share span {
  display: block;
  width: calc(var(--p) * 1%);
  height: 100%;
  border-radius: inherit;
  background: var(--gold-gradient);
  transform-origin: left;
}

.charter__partners b {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold-light);
  text-align: right;
}

/* notary seal: a double ring with the mark, stamped slightly askew */
.charter__seal {
  position: relative;
  width: 76px;
  aspect-ratio: 1;
  margin: 0 -8px -6px 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle, rgb(251 207 69 / 0.18), transparent 70%), #0d0e14;
  box-shadow: inset 0 0 0 4px #0d0e14, inset 0 0 0 5px rgb(251 207 69 / 0.5), 0 10px 24px rgb(0 0 0 / 0.5);
  rotate: -14deg;
}

.charter__seal::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px dashed rgb(251 207 69 / 0.4);
}

.charter__seal svg {
  width: 52%;
  aspect-ratio: 2 / 1;
  fill: var(--gold);
  filter: drop-shadow(0 0 6px rgb(251 207 69 / 0.5));
}

/* Registry: the mark goes from TM to ®, then the protection reaches country after country and
   each kind of right is checked off. Static: registered everywhere. */
.registry {
  width: min(100%, 400px);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.registry__orbit {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.registry__orbit::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px dashed rgb(251 207 69 / 0.35);
}

/* countries sit on the dashed ring (radius 41% of the orbit) */
.registry__node {
  position: absolute;
  left: calc(50% + 41% * sin(var(--a)));
  top: calc(50% - 41% * cos(var(--a)));
  z-index: 1;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-ink);
  background: var(--gold-gradient);
  box-shadow: 0 0 14px rgb(251 207 69 / 0.4);
}

.registry__pulse {
  position: absolute;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
}

.registry__medal {
  position: relative;
  width: 40%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgb(251 207 69 / 0.5);
  background: radial-gradient(circle at 50% 60%, rgb(251 207 69 / 0.22), transparent 65%), #0d0e14;
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.04);
}

.registry__mark {
  width: 60%;
  aspect-ratio: 2 / 1;
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgb(251 207 69 / 0.5));
}

.registry__tm,
.registry__r {
  position: absolute;
  top: 2%;
  right: 2%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.registry__tm {
  opacity: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--muted);
  background: #0d0e14;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.registry__r {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-ink);
  background: var(--gold-gradient);
  box-shadow: 0 6px 16px rgb(251 207 69 / 0.35);
}

.registry__rights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.registry__rights li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--text);
  font-size: 0.8125rem;
  box-shadow: 0 0 12px rgb(251 207 69 / 0.2);
}

/* a check drawn from two borders; shared by the rights and the contract clauses */
:is(.registry__rights li, .contract__clauses li)::after {
  content: "";
  width: 5px;
  height: 9px;
  margin: -3px 2px 0;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

.registry__rights li::after {
  order: -1;
}

/* Consent: a form with personal data. A scan runs down it and masks every value, the privacy
   notice gets accepted and the padlock closes. Static: protected. */
.consent {
  width: min(100%, 380px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgb(251 207 69 / 0.4);
  background: #0d0e14;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.04);
}

.consent__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--line);
}

.consent__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}

.consent__lock {
  position: relative;
  width: 16px;
  height: 12px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgb(251 207 69 / 0.45);
}

/* shackle */
.consent__lock::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2px);
  width: 10px;
  height: 9px;
  margin-left: -5px;
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

/* keyhole */
.consent__lock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 3px;
  height: 5px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-ink);
}

.consent__fields {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 1rem 0.95rem 0.6rem;
  overflow: hidden;
}

.consent__row {
  display: grid;
  gap: 4px;
}

.consent__label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.consent__value {
  display: grid;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: rgb(251 207 69 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(251 207 69 / 0.35);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--text);
}

.consent__value span {
  grid-area: 1 / 1;
}

.consent__value span:first-child {
  opacity: 0;
}

.consent__value span:last-child {
  color: var(--gold);
  letter-spacing: 0.06em;
}

.consent__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20% 80%, transparent);
  box-shadow: 0 0 14px 2px rgb(251 207 69 / 0.5);
  opacity: 0;
}

.consent__scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: linear-gradient(to top, rgb(251 207 69 / 0.14), transparent);
}

.consent__accept {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.6rem 0.95rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.consent__accept u {
  color: var(--gold-light);
  text-decoration-color: rgb(251 207 69 / 0.5);
  text-underline-offset: 3px;
}

.consent__box {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid var(--gold);
  background-color: var(--gold);
}

.consent__box::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 0.5px;
  width: 4px;
  height: 8px;
  border: solid var(--gold-ink);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

/* Contract: each clause is checked, both parties sign in turn and the deal is sealed.
   Static: signed. */
.contract {
  gap: 14px;
  padding: 22px 22px 26px;
}

.contract__clauses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: clause;
}

.contract__clauses li {
  counter-increment: clause;
  display: grid;
  grid-template-columns: 1.6em 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.04);
  font-size: 0.8125rem;
  color: var(--text);
}

.contract__clauses li::before {
  content: counter(clause) "ª";
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
}

.contract__signs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.contract__sign {
  display: grid;
  gap: 5px;
}

.contract__sign svg {
  width: 100%;
  height: auto;
  aspect-ratio: 120 / 36;
  overflow: visible;
  border-bottom: 1px solid rgb(255 255 255 / 0.25);
}

.contract__sign path {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.contract__sign span {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* the "signed" tag hangs off the bottom edge of the sheet */
.contract__done {
  position: absolute;
  right: 18px;
  bottom: -13px;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--gold-gradient);
  box-shadow: var(--shadow-gold);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-ink);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .hero__copy > * {
    animation: fade-up 0.7s var(--ease) both;
  }

  .hero__copy > :nth-child(2) {
    animation-delay: 0.1s;
  }

  .hero__copy > :nth-child(3) {
    animation-delay: 0.2s;
  }

  /* seal: the lettering ring turns slowly */
  .seal__ring {
    animation: turn 60s linear infinite;
  }

  /* contact lamp: wisps rise from the spout while a field is focused */
  @keyframes wisp-up {
    0% {
      opacity: 0;
      transform: translate(0, 0) scale(0.6);
    }
    25% {
      opacity: 0.9;
    }
    100% {
      opacity: 0;
      transform: translate(-6px, -44px) scale(1.6);
    }
  }

  .contact:focus-within .contact__wisp,
  .contact__lamp:hover .contact__wisp {
    animation: wisp-up 2.4s ease-out infinite;
  }

  .contact__wisp:nth-child(2) {
    animation-delay: 0.8s;
  }

  .contact__wisp:nth-child(3) {
    animation-delay: 1.6s;
  }

  /* astrolabe: the rete turns one way, the alidade sweeps the other, both very slowly */
  @keyframes turn {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes sweep {
    from {
      transform: rotate(-28deg);
    }
    to {
      transform: rotate(332deg);
    }
  }

  .astrolabe__rete {
    animation: turn 140s linear infinite;
  }

  .astrolabe__alidade {
    animation: sweep 48s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }

  /* dividers: the glint runs along the rule and the star twinkles */
  @keyframes glint {
    0% {
      background-position: -30% 0, 0 0;
    }
    100% {
      background-position: 130% 0, 0 0;
    }
  }

  @keyframes twinkle {
    0%,
    100% {
      transform: translateX(-50%) scale(0.9);
      filter: drop-shadow(0 0 4px rgb(251 207 69 / 0.5));
    }
    50% {
      transform: translateX(-50%) scale(1.15);
      filter: drop-shadow(0 0 10px rgb(251 207 69 / 0.95));
    }
  }

  .section::after {
    animation: glint 6s linear infinite;
  }

  .section:nth-of-type(even)::after {
    animation-delay: -3s;
  }

  .section::before {
    animation: twinkle 4.5s ease-in-out infinite;
  }

  /* passport foil: the ellipse breathes sideways while hovered */
  @keyframes foil-x {
    from {
      transform: scaleX(1);
    }
    to {
      transform: scaleX(1.5);
    }
  }

  .passport:hover .passport__ellipse,
  .passport:focus-visible .passport__ellipse {
    animation: foil-x 1.2s ease-in-out infinite alternate;
  }

  @media (hover: none) {
    .passport__ellipse {
      animation: foil-x 1.6s ease-in-out infinite alternate;
    }
  }

  /* web frame: the page assembles block by block as it scrolls into view */
  @keyframes block-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .webframe__page [style*="--i"] {
      animation: block-in 0.6s var(--ease) both;
      animation-timeline: view();
      animation-range: calc(entry 10% + var(--i) * 4%) calc(entry 45% + var(--i) * 4%);
    }
  }

  /* Agent demo: every piece pops in on its turn, holds, and the whole exchange restarts */
  @keyframes agent-pop {
    0% {
      opacity: 0;
      transform: translateY(8px);
    }
    6%,
    84% {
      opacity: 1;
      transform: none;
    }
    92%,
    100% {
      opacity: 0;
      transform: translateY(-4px);
    }
  }

  @keyframes agent-step {
    0%,
    5% {
      border-color: var(--line-strong);
      color: var(--muted);
    }
    9%,
    16% {
      border-color: var(--gold);
      color: var(--gold-light);
      box-shadow: 0 0 12px rgb(251 207 69 / 0.35);
    }
    22%,
    100% {
      border-color: var(--line-strong);
      color: var(--muted);
      box-shadow: none;
    }
  }

  .agent__msg,
  .agent__trace li {
    animation: agent-pop 11s var(--ease) infinite both;
    animation-delay: calc(0.4s + var(--i) * 1.1s);
  }

  .agent__trace li {
    animation-name: agent-pop, agent-step;
    animation-duration: 11s, 11s;
    animation-delay: calc(0.4s + var(--i) * 1.1s), calc(0.4s + var(--i) * 1.1s);
  }

  .agent__status::before {
    animation: twinkle 2.4s ease-in-out infinite;
  }

  /* Brand kit: the board assembles block by block as it scrolls in; the construction guide turns */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .brandkit [style*="--i"] {
      animation: block-in 0.6s var(--ease) both;
      animation-timeline: view();
      animation-range: calc(entry 10% + var(--i) * 5%) calc(entry 45% + var(--i) * 5%);
    }
  }

  .brandkit__guide {
    animation: turn 40s linear infinite;
  }

  /* Prototype: the cursor reaches the button and taps, then the finished screen lights up in turn */
  @keyframes proto-cursor {
    0% {
      opacity: 0;
      transform: translate(46px, 70px);
    }
    10% {
      opacity: 1;
    }
    30% {
      transform: none;
    }
    34% {
      transform: scale(0.82);
    }
    38%,
    78% {
      opacity: 1;
      transform: none;
    }
    90%,
    100% {
      opacity: 0;
      transform: translate(46px, 70px);
    }
  }

  @keyframes proto-tap {
    0%,
    33% {
      opacity: 0;
      scale: 0.5;
    }
    36% {
      opacity: 1;
    }
    52%,
    100% {
      opacity: 0;
      scale: 1.9;
    }
  }

  @keyframes proto-lit {
    0%,
    38% {
      opacity: 0.18;
      transform: translateY(4px);
    }
    46%,
    90% {
      opacity: 1;
      transform: none;
    }
    100% {
      opacity: 0.18;
      transform: translateY(4px);
    }
  }

  @keyframes proto-dash {
    to {
      background-position: 12px 0;
    }
  }

  .proto__cursor {
    animation: proto-cursor 8s var(--ease) infinite both;
  }

  .proto__screen--wire .proto__btn::after {
    animation: proto-tap 8s ease-out infinite both;
  }

  .proto__screen--hifi [style*="--i"] {
    animation: proto-lit 8s var(--ease) infinite both;
    animation-delay: calc(var(--i) * 0.14s);
  }

  .proto__flow {
    animation: proto-dash 0.8s linear infinite;
  }

  /* Reel: the playhead sweeps the timeline while the preview plays */
  @keyframes reel-play {
    from {
      left: 12px;
    }
    to {
      left: calc(100% - 14px);
    }
  }

  @keyframes reel-progress {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }

  @keyframes reel-breathe {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.07);
    }
  }

  .reel__playhead {
    animation: reel-play 7s linear infinite;
  }

  .reel__progress span {
    animation: reel-progress 7s linear infinite;
  }

  .reel__mark {
    animation: reel-breathe 1.75s ease-in-out infinite alternate;
  }

  /* Legal demos share a 10s beat. legal-lit dims a piece until its turn, keeps it lit, then
     dims it again; the pieces are staggered with animation-delay. */
  @keyframes legal-lit {
    0%,
    10% {
      filter: grayscale(1) brightness(0.4);
    }
    14%,
    80% {
      filter: none;
    }
    88%,
    100% {
      filter: grayscale(1) brightness(0.4);
    }
  }

  @keyframes legal-write {
    0%,
    6% {
      scale: 0 1;
    }
    16%,
    84% {
      scale: 1;
    }
    92%,
    100% {
      scale: 0 1;
    }
  }

  @keyframes legal-stamp {
    0%,
    46% {
      opacity: 0;
      scale: 1.7;
    }
    50% {
      opacity: 1;
      scale: 0.92;
    }
    53%,
    86% {
      opacity: 1;
      scale: 1;
    }
    94%,
    100% {
      opacity: 0;
      scale: 1;
    }
  }

  /* Charter: the company type cycles, the clauses and the shares fill, the seal stamps */
  @keyframes charter-kind {
    0% {
      opacity: 0;
      translate: 0 6px;
    }
    4%,
    30% {
      opacity: 1;
      translate: none;
    }
    34%,
    100% {
      opacity: 0;
      translate: 0 -6px;
    }
  }

  .charter__kind span {
    animation: charter-kind 9s var(--ease) infinite both;
    animation-delay: calc(var(--k) * 3s);
  }

  .charter__line,
  .charter__share span {
    animation: legal-write 10s var(--ease) infinite both;
    animation-delay: calc(var(--i) * 0.5s);
  }

  .charter__seal {
    animation: legal-stamp 10s var(--ease) infinite both;
    animation-delay: 1.4s;
  }

  /* Registry: TM turns into ®, the protection spreads country by country, rights get checked */
  @keyframes registry-tm {
    0%,
    8% {
      opacity: 1;
    }
    11%,
    86% {
      opacity: 0;
    }
    92%,
    100% {
      opacity: 1;
    }
  }

  @keyframes registry-r {
    0%,
    8% {
      opacity: 0;
      scale: 1.7;
    }
    11% {
      opacity: 1;
      scale: 0.92;
    }
    14%,
    86% {
      opacity: 1;
      scale: 1;
    }
    92%,
    100% {
      opacity: 0;
      scale: 1;
    }
  }

  @keyframes registry-pulse {
    from {
      opacity: 0.8;
      scale: 1;
    }
    to {
      opacity: 0;
      scale: 2.3;
    }
  }

  .registry__tm {
    animation: registry-tm 10s linear infinite both;
  }

  .registry__r {
    animation: registry-r 10s var(--ease) infinite both;
  }

  .registry__node {
    animation: legal-lit 10s var(--ease) infinite both;
    animation-delay: calc(0.4s + var(--i) * 0.6s);
  }

  .registry__rights li {
    animation: legal-lit 10s var(--ease) infinite both;
    animation-delay: calc(3.2s + var(--i) * 0.6s);
  }

  .registry__pulse {
    animation: registry-pulse 2.5s ease-out infinite;
  }

  .registry__orbit::before {
    animation: turn 60s linear infinite;
  }

  /* Consent: the scan masks each value as it passes, then the notice is accepted and it locks */
  @keyframes consent-scan {
    0%,
    12% {
      top: 0;
      opacity: 0;
    }
    14%,
    44% {
      opacity: 1;
    }
    46%,
    100% {
      top: 100%;
      opacity: 0;
    }
  }

  @keyframes consent-plain {
    0%,
    18% {
      opacity: 1;
    }
    21%,
    88% {
      opacity: 0;
    }
    92%,
    100% {
      opacity: 1;
    }
  }

  @keyframes consent-mask {
    0%,
    18% {
      opacity: 0;
    }
    21%,
    88% {
      opacity: 1;
    }
    92%,
    100% {
      opacity: 0;
    }
  }

  @keyframes consent-field {
    0%,
    18% {
      background-color: rgb(255 255 255 / 0.05);
      box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
    }
    21%,
    88% {
      background-color: rgb(251 207 69 / 0.06);
      box-shadow: inset 0 0 0 1px rgb(251 207 69 / 0.35);
    }
    92%,
    100% {
      background-color: rgb(255 255 255 / 0.05);
      box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
    }
  }

  @keyframes consent-tick {
    0%,
    50% {
      background-color: transparent;
    }
    54%,
    90% {
      background-color: var(--gold);
    }
    94%,
    100% {
      background-color: transparent;
    }
  }

  @keyframes consent-check {
    0%,
    51% {
      scale: 0;
    }
    55%,
    90% {
      scale: 1;
    }
    94%,
    100% {
      scale: 0;
    }
  }

  @keyframes consent-lock {
    0%,
    56% {
      translate: 0 -5px;
    }
    60%,
    90% {
      translate: none;
    }
    94%,
    100% {
      translate: 0 -5px;
    }
  }

  .consent__scan {
    animation: consent-scan 9s linear infinite both;
  }

  .consent__value {
    animation: consent-field 9s var(--ease) infinite both;
    animation-delay: calc(var(--i) * 0.9s);
  }

  .consent__value span:first-child {
    animation: consent-plain 9s var(--ease) infinite both;
    animation-delay: calc(var(--i) * 0.9s);
  }

  .consent__value span:last-child {
    animation: consent-mask 9s var(--ease) infinite both;
    animation-delay: calc(var(--i) * 0.9s);
  }

  .consent__box {
    animation: consent-tick 9s var(--ease) infinite both;
  }

  .consent__box::after {
    animation: consent-check 9s var(--ease) infinite both;
  }

  .consent__lock::before {
    animation: consent-lock 9s var(--ease) infinite both;
  }

  /* Contract: clauses are checked one by one, both parties sign, and it gets its tag */
  @keyframes contract-sign {
    0%,
    40% {
      stroke-dashoffset: 1;
    }
    52%,
    86% {
      stroke-dashoffset: 0;
    }
    92%,
    100% {
      stroke-dashoffset: 1;
    }
  }

  @keyframes contract-check {
    0%,
    10% {
      opacity: 0;
      scale: 0.4;
    }
    14%,
    82% {
      opacity: 1;
      scale: 1;
    }
    88%,
    100% {
      opacity: 0;
      scale: 1;
    }
  }

  .contract__clauses li::after {
    animation: contract-check 10s var(--ease) infinite both;
    animation-delay: calc(var(--i) * 0.6s);
  }

  .contract__sign path {
    animation: contract-sign 10s ease-in-out infinite both;
    animation-delay: calc(var(--i) * 1.2s);
  }

  .contract__done {
    animation: legal-stamp 10s var(--ease) infinite both;
    animation-delay: 1.8s;
  }

  /* Section reveal: native scroll-driven where supported, IntersectionObserver fallback otherwise */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }

  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
