/* أبو هارون — Royal Midnight Celestial & Imperial Gold page styles. */
:root {
  --bg-950: #060814;
  --bg-900: #0b0f21;
  --bg-800: #131a36;
  --bg-700: #1c264c;
  --gold-200: #ffefc2;
  --gold-500: #ebb949;
  --gold-600: #f7cd63;
  --rose-700: #dc2655;
  --emerald-600: #0f8f5c;
  --emerald-500: #14ad70;
  --ink: #fbf7ee;
  --ink-muted: #b8c0da;
  --on-gold: #0b0f21;
  --line: #ebb94959;
  --line-soft: #ebb9492b;
  --shadow-card: 0 26px 52px -26px rgba(0, 0, 0, .82);
  --shadow-gold: 0 14px 36px -12px rgba(235, 185, 73, .55);
  --shadow-emerald: 0 14px 34px -12px rgba(20, 173, 112, .55);
  --shadow-float: 0 12px 30px -8px rgba(0, 0, 0, .75);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 72px; --space-9: 112px;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --content-max: 1140px; --measure: 36em; --tap-min: 48px; --fab-size: 60px;
  --font-display: "Aref Ruqaa", "Amiri", "Noto Naskh Arabic", serif;
  --font-heading: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --fs-display: clamp(40px, 11vw, 52px);
  --fs-closing: clamp(36px, 10.5vw, 46px);
  --fs-headline: 30px;
  --fs-title: 22px;
  --fs-gem: 24px;
  --fs-quote: 21px;
  --fs-lead: 18px;
  --fs-body: 17px;
  --fs-label: 17px;
  --fs-pill: 16px;
  --fs-meta: 15px;
  --fs-small: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --dur-press: 100ms; --dur-release: 200ms; --dur-ui: 240ms; --dur-reveal: 600ms;
  --gutter: var(--space-4);
  --sec: var(--space-8);
  --sec-seam: 42px;
  color-scheme: dark;
  scrollbar-color: var(--gold-500) var(--bg-950);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 74px; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg-900); color: var(--ink);
  font: 400 var(--fs-body)/1.8 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--gold-500); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-950); }
::-webkit-scrollbar-thumb { background: #ebb94973; border-radius: 99px; }

.num { unicode-bidi: isolate; direction: ltr; font-variant-numeric: lining-nums tabular-nums; }
.wrap { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: var(--space-4); top: -60px; z-index: 100; background: var(--gold-500); color: var(--on-gold); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; }
.skip:focus { top: var(--space-3); }

/* ---------- ornaments ---------- */
.star { width: 18px; height: 18px; flex: none; display: block; --star-fill: none; --star-stroke: currentColor; --star-sw: 2.4; }
.star--rose { --star-fill: var(--rose-700); --star-stroke: var(--gold-500); --star-sw: 2.6; }
.star--gold { color: var(--gold-500); --star-fill: var(--gold-500); --star-stroke: none; }
.star--dot { width: 10px; height: 10px; color: var(--gold-500); --star-fill: var(--gold-500); --star-stroke: none; }
.star--mark { --star-fill: var(--rose-700); --star-stroke: var(--gold-500); --star-sw: 3; }
.star--lg { width: 32px; height: 32px; }

.divider { display: flex; align-items: center; gap: var(--space-3); max-width: 300px; margin: 0 auto; color: var(--gold-500); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--gold-500)); transform-origin: left center; }
.divider::after { background: linear-gradient(to right, transparent, var(--gold-500)); transform-origin: right center; }
.divider .star { width: 16px; height: 16px; }

/* ---------- type ---------- */
.h2 { font: 700 var(--fs-headline)/1.45 var(--font-heading); color: var(--ink); text-wrap: balance; }
.h3 { font: 700 var(--fs-title)/1.5 var(--font-heading); color: var(--ink); }
.body { color: var(--ink); max-width: var(--measure); }
.intro { font-size: var(--fs-lead); line-height: 1.8; color: var(--ink-muted); margin-top: var(--space-2); max-width: var(--measure); text-wrap: pretty; }
.head { text-align: center; margin-bottom: var(--space-6); }
.head .intro { margin-inline: auto; }
.section { padding-block: var(--sec); }
.services { padding-bottom: var(--sec-seam); }
.stones { padding-top: var(--sec-seam); }
.steps-sec { padding-block: calc(var(--sec) - var(--space-4)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px; padding: 0 var(--space-5); border-radius: var(--radius-pill);
  font: 700 var(--fs-label)/1.3 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform var(--dur-release) var(--ease-out);
}
.btn:active { transform: scale(.97); transition: background-color 200ms ease, border-color 200ms ease, transform var(--dur-press) var(--ease-out); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa {
  background: linear-gradient(180deg, var(--emerald-500), var(--emerald-600));
  color: var(--ink);
  border-color: var(--gold-500);
  box-shadow: inset 0 1px 0 #ffffff33, inset 0 -1px 0 #00000040, var(--shadow-emerald);
}
.btn--wa svg { fill: var(--gold-200); }
.btn--ghost {
  background: rgba(19, 26, 54, .72);
  color: var(--gold-200);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.cta-row .btn { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--wa:hover { background: linear-gradient(180deg, #18c27d, var(--emerald-500)); border-color: var(--gold-200); box-shadow: inset 0 1px 0 #ffffff47, var(--shadow-emerald), var(--shadow-gold); transform: translateY(-1px); }
  .btn--ghost:hover { background: var(--bg-700); border-color: var(--gold-500); color: var(--ink); transform: translateY(-1px); }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, -webkit-backdrop-filter var(--dur-ui) ease, backdrop-filter var(--dur-ui) ease;
}
.topbar.is-solid { background: #0b0f21c9; border-bottom-color: var(--line-soft); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.wordmark:active { opacity: .75; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 62px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-2); font: 700 24px/1.2 var(--font-display); color: var(--gold-200); text-decoration: none; padding-block: 4px; min-height: var(--tap-min); }
.wordmark .star { width: 16px; height: 16px; }
.wordmark--sm { font-size: 22px; }
.topnav { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; margin-top: -63px; padding-top: 86px; overflow: hidden; }
.hero-sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(62% 52% at 50% 24%, rgba(235, 185, 73, .22), transparent 70%),
    radial-gradient(48% 44% at 20% 60%, rgba(20, 173, 112, .16), transparent 72%),
    radial-gradient(50% 45% at 82% 38%, rgba(56, 102, 235, .18), transparent 72%),
    linear-gradient(to bottom, rgba(6, 8, 20, .35), var(--bg-900) 94%),
    url("assets/celestial-sky.png") 50% 20% / cover no-repeat,
    var(--bg-950);
}
.hero-sky::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23EBB949' stroke-width='1' stroke-opacity='.11'%3E%3Cpolygon points='32,12 37.9,17.9 46.1,17.9 46.1,26.1 52,32 46.1,37.9 46.1,46.1 37.9,46.1 32,52 26.1,46.1 17.9,46.1 17.9,37.9 12,32 17.9,26.1 17.9,17.9 26.1,17.9'/%3E%3Cpath d='M32 0v12M32 52v12M0 32h12M52 32h12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px;
  -webkit-mask-image: radial-gradient(85% 46% at 50% 56%, #000 10%, transparent 78%);
  mask-image: radial-gradient(85% 46% at 50% 56%, #000 10%, transparent 78%);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-in { display: grid; justify-items: center; text-align: center; gap: var(--space-5); padding-bottom: var(--space-6); }
.hero-emblem {
  position: relative; width: min(290px, 74vw); aspect-ratio: 3 / 4;
  border-radius: 28px; overflow: hidden;
  border: 1.5px solid rgba(235, 185, 73, .62);
  background: radial-gradient(circle at 50% 35%, #1c264c, #060814);
  box-shadow: 0 28px 60px -18px rgba(0, 0, 0, .9), 0 0 56px -12px rgba(235, 185, 73, .42), inset 0 1px 0 rgba(255, 239, 194, .28);
}
.hero-emblem::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 25%, transparent 55%, rgba(6, 8, 20, .55) 100%);
}
.hero-emblem img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.hero-copy { display: grid; justify-items: center; gap: var(--space-3); max-width: 38rem; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; justify-content: center;
  padding: 6px var(--space-4); border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(28, 38, 76, .85), rgba(11, 15, 33, .85));
  border: 1px solid var(--line);
  font: 600 var(--fs-small)/1.5 var(--font-body); color: var(--gold-200);
}
.name { font: 700 var(--fs-display)/1.25 var(--font-display); color: var(--gold-200); text-wrap: balance; text-shadow: 0 6px 28px rgba(235, 185, 73, .28); }
.name-rule { display: flex; align-items: center; gap: var(--space-2); width: min(220px, 64%); color: var(--gold-500); margin-block: 2px; }
.name-rule::before, .name-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--gold-500)); }
.name-rule::after { background: linear-gradient(to right, transparent, var(--gold-500)); }
.hero-title { font-size: var(--fs-lead); line-height: 1.75; color: var(--ink); max-width: 28em; text-wrap: balance; }
.hero .cta-row { width: 100%; max-width: 440px; margin-top: var(--space-2); }

/* ---------- marquee (bead strings & galleries) ---------- */
.badges { display: grid; gap: var(--space-3); padding-bottom: var(--space-6); }
.marquee { display: flex; flex-wrap: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(to left, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to left, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: inline-flex; flex: none; gap: var(--space-3); padding-inline-end: var(--space-3); animation: glide var(--speed, 40s) linear infinite; will-change: transform; }
.marquee--rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee:active .marquee-track { animation-play-state: paused; }
@keyframes glide { from { transform: translateX(0); } to { transform: translateX(100%); } }

.pill {
  display: inline-flex; flex: none; align-items: center; gap: var(--space-2); white-space: nowrap;
  min-height: 44px; padding: 6px var(--space-4); border-radius: var(--radius-pill);
  background: linear-gradient(to bottom, #1c264c, #111834); border: 1px solid var(--line);
  font: 600 var(--fs-pill)/1.4 var(--font-body); color: var(--ink);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .7);
}
.pill--flag img { width: 24px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px #0004; object-fit: cover; }
.pill--all { background: linear-gradient(135deg, #1b2854, #0f1630); color: var(--gold-200); border-color: var(--gold-500); font: 700 var(--fs-quote)/1.5 var(--font-heading); min-height: 50px; padding-inline: var(--space-5); box-shadow: var(--shadow-gold); }
.pill--all .star--dot { --star-fill: var(--rose-700); }

/* ---------- about ---------- */
.about { display: grid; gap: var(--space-6); align-items: center; }
.about-img {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 4 / 5;
  border: 1.5px solid rgba(235, 185, 73, .55);
  box-shadow: var(--shadow-card), 0 0 42px -16px rgba(154, 92, 235, .42);
  background: var(--bg-800);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.about-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 8, 20, .38), transparent 40%); pointer-events: none; }
.about-copy { display: grid; gap: var(--space-4); }
.pillars { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-1); }
.pillar {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(28, 38, 76, .9), rgba(15, 22, 48, .95));
  border: 1px solid var(--line);
  font: 600 var(--fs-meta)/1.4 var(--font-body); color: var(--gold-200);
}
.closing { display: flex; align-items: center; gap: var(--space-3); font: 700 var(--fs-quote)/1.8 var(--font-heading); color: var(--gold-500); padding-top: var(--space-1); }
.closing .star { width: 15px; height: 15px; }

/* ---------- services / 19 jewel-toned open cards ---------- */
.cases-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.case-card {
  --c-bg1: #164438; --c-bg2: #0b241d; --c-border: #34d399; --c-accent: #6ee7b7; --c-glow: rgba(52, 211, 153, .32);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--c-bg1), var(--c-bg2));
  border: 1.5px solid var(--c-border);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .85), 0 0 24px -12px var(--c-glow);
  overflow: hidden;
  transition: transform var(--dur-release) var(--ease-out), box-shadow var(--dur-release) ease, border-color var(--dur-release) ease;
}
.case-card:active { transform: scale(.98); transition-duration: var(--dur-press); }
@media (hover: hover) and (pointer: fine) {
  .case-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .9), 0 0 32px -8px var(--c-glow); }
}
.case-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 82px; padding: 16px 18px; text-decoration: none;
  border-inline-start: 5px solid var(--c-accent);
}
.case-star {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 12px; background: rgba(6, 8, 20, .38); border: 1px solid var(--c-border); color: var(--c-accent);
}
.case-star .star { width: 16px; height: 16px; --star-fill: var(--c-accent); --star-stroke: none; }
.case-body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.case-title { font: 700 18px/1.5 var(--font-body); color: #fbf7ee; }
.note {
  justify-self: start; padding: 2px 10px; border-radius: var(--radius-sm);
  background: rgba(6, 8, 20, .42); border: 1px solid var(--c-border);
  font-size: 13px; font-weight: 600; line-height: 1.7; color: var(--gold-200);
}
.case-cta {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(6, 8, 20, .36); border: 1px solid rgba(255, 255, 255, .24);
  font: 700 13px/1.3 var(--font-body); color: var(--gold-200); white-space: nowrap;
}

/* 19 distinct vibrant jewel-tone palettes */
.case-card[data-tone="1"]  { --c-bg1: #134e3e; --c-bg2: #0a2920; --c-border: #34d399; --c-accent: #6ee7b7; --c-glow: rgba(52, 211, 153, .36); }
.case-card[data-tone="2"]  { --c-bg1: #5c4311; --c-bg2: #2e2007; --c-border: #f59e0b; --c-accent: #fcd34d; --c-glow: rgba(245, 158, 11, .36); }
.case-card[data-tone="3"]  { --c-bg1: #4d225c; --c-bg2: #271030; --c-border: #e879f9; --c-accent: #f0abfc; --c-glow: rgba(232, 121, 249, .34); }
.case-card[data-tone="4"]  { --c-bg1: #6b1d3d; --c-bg2: #360d1f; --c-border: #fb7185; --c-accent: #fda4af; --c-glow: rgba(251, 113, 133, .36); }
.case-card[data-tone="5"]  { --c-bg1: #1b3872; --c-bg2: #0d1c3d; --c-border: #60a5fa; --c-accent: #93c5fd; --c-glow: rgba(96, 165, 250, .36); }
.case-card[data-tone="6"]  { --c-bg1: #134a59; --c-bg2: #09252e; --c-border: #22d3ee; --c-accent: #67e8f9; --c-glow: rgba(34, 211, 238, .35); }
.case-card[data-tone="7"]  { --c-bg1: #3b2a70; --c-bg2: #1d143b; --c-border: #a78bfa; --c-accent: #c4b5fd; --c-glow: rgba(167, 139, 250, .36); }
.case-card[data-tone="8"]  { --c-bg1: #6b2626; --c-bg2: #381111; --c-border: #f87171; --c-accent: #fca5a5; --c-glow: rgba(248, 113, 113, .36); }
.case-card[data-tone="9"]  { --c-bg1: #663315; --c-bg2: #361909; --c-border: #fb923c; --c-accent: #fdba74; --c-glow: rgba(251, 146, 60, .36); }
.case-card[data-tone="10"] { --c-bg1: #244a1f; --c-bg2: #11260e; --c-border: #4ade80; --c-accent: #86efac; --c-glow: rgba(74, 222, 128, .35); }
.case-card[data-tone="11"] { --c-bg1: #164949; --c-bg2: #0a2626; --c-border: #2dd4bf; --c-accent: #5eead4; --c-glow: rgba(45, 212, 191, .36); }
.case-card[data-tone="12"] { --c-bg1: #4c236e; --c-bg2: #26103a; --c-border: #c084fc; --c-accent: #d8b4fe; --c-glow: rgba(192, 132, 252, .36); }
.case-card[data-tone="13"] { --c-bg1: #1d3669; --c-bg2: #0e1b38; --c-border: #818cf8; --c-accent: #a5b4fc; --c-glow: rgba(129, 140, 248, .36); }
.case-card[data-tone="14"] { --c-bg1: #691b4c; --c-bg2: #360c27; --c-border: #f472b6; --c-accent: #f9a8d4; --c-glow: rgba(244, 114, 182, .36); }
.case-card[data-tone="15"] { --c-bg1: #164266; --c-bg2: #0a2236; --c-border: #38bdf8; --c-accent: #7dd3fc; --c-glow: rgba(56, 189, 248, .36); }
.case-card[data-tone="16"] { --c-bg1: #4b4714; --c-bg2: #262409; --c-border: #eab308; --c-accent: #fde047; --c-glow: rgba(234, 179, 8, .36); }
.case-card[data-tone="17"] { --c-bg1: #63242f; --c-bg2: #331117; --c-border: #fb7185; --c-accent: #fecdd3; --c-glow: rgba(251, 113, 133, .36); }
.case-card[data-tone="18"] { --c-bg1: #3b2669; --c-bg2: #1e1238; --c-border: #c084fc; --c-accent: #e9d5ff; --c-glow: rgba(192, 132, 252, .36); }
.case-card[data-tone="19"] { --c-bg1: #164b3b; --c-bg2: #0b261e; --c-border: #34d399; --c-accent: #a7f3d0; --c-glow: rgba(52, 211, 153, .36); }

/* ---------- moving photo galleries ---------- */
.gallery-block { margin-top: var(--space-7); }
.gallery-block--stones { margin-top: var(--space-5); }
.gallery-sub { text-align: center; font: 700 24px/1.45 var(--font-heading); color: var(--gold-200); margin-bottom: var(--space-4); }
.media-marquee { padding-block: var(--space-2); }
.media-marquee .marquee-track { gap: var(--space-4); padding-inline-end: var(--space-4); }
.media-card {
  position: relative; flex: none; width: clamp(190px, 46vw, 248px); aspect-ratio: 3 / 4;
  border-radius: 18px; overflow: hidden; padding: 0; cursor: pointer;
  background: var(--bg-800); border: 1.5px solid #ebb94970;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .85), 0 0 24px -12px rgba(235, 185, 73, .35);
  transition: transform var(--dur-release) var(--ease-out), border-color var(--dur-release) ease, box-shadow var(--dur-release) ease;
}
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease-out); }
.media-card:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .media-card:hover { transform: translateY(-4px); border-color: var(--gold-200); box-shadow: 0 22px 42px -16px rgba(0, 0, 0, .92), var(--shadow-gold); }
  .media-card:hover img { transform: scale(1.04); }
}

.services-cta { display: grid; justify-items: center; padding-top: var(--space-6); }
.services-cta .btn { width: auto; }

/* ---------- stones ---------- */
.stones { background: linear-gradient(to bottom, var(--bg-900), var(--bg-950) 35%, var(--bg-950) 65%, var(--bg-900)); }
.gem {
  display: inline-flex; flex: none; align-items: center; gap: var(--space-3); white-space: nowrap;
  min-height: 82px; padding: var(--space-4) var(--space-6); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #182348, #0f1630); border: 1.5px solid var(--line);
  font: 700 var(--fs-gem)/1.4 var(--font-heading); color: var(--gold-200);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .85);
}
.gem:nth-child(5n+1) { background: linear-gradient(135deg, #124537, #0b261e); border-color: #34d39999; }
.gem:nth-child(5n+2) { background: linear-gradient(135deg, #1a336b, #0e1b3b); border-color: #60a5fa99; }
.gem:nth-child(5n+3) { background: linear-gradient(135deg, #43205e, #220f33); border-color: #c084fc99; }
.gem:nth-child(5n+4) { background: linear-gradient(135deg, #631b3a, #330d1e); border-color: #fb718599; }
.gem:nth-child(5n+5) { background: linear-gradient(135deg, #543d11, #2b1e07); border-color: #ebb949b3; }
.star--gem { width: 20px; height: 20px; color: var(--gold-500); --star-fill: #ebb94947; --star-stroke: var(--gold-500); --star-sw: 2.2; }
.gems .marquee-track { gap: var(--space-4); padding-inline-end: var(--space-4); padding-block: var(--space-2); }
.stones-cta { display: grid; justify-items: center; padding-top: var(--space-6); }
.stones-cta .btn { width: auto; }

/* ---------- reach ---------- */
.reach-bands { display: grid; gap: var(--space-3); }
.reach-all { display: flex; justify-content: center; margin-top: var(--space-6); padding-inline: var(--gutter); }

/* ---------- steps ---------- */
.steps { display: grid; position: relative; max-width: 30rem; margin-inline: auto; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: var(--space-4); padding-bottom: var(--space-6); }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 31.5px; top: 72px; bottom: 8px; width: 1px; background: repeating-linear-gradient(to bottom, var(--gold-500) 0 6px, transparent 6px 12px); opacity: .55; transform-origin: top center; }
.step-n { grid-row: 1 / span 2; position: relative; display: grid; place-items: center; width: 64px; height: 64px; color: var(--gold-500); }
.step .h3, .step-d { grid-column: 2; }
.step .h3 { padding-top: 14px; }
.step-n .star { position: absolute; inset: 0; width: 100%; height: 100%; }
.star--badge { --star-fill: var(--bg-800); --star-stroke: var(--gold-500); --star-sw: 1.5; }
.step-n .num { position: relative; font: 700 var(--fs-title)/1 var(--font-body); color: var(--gold-200); }
.step-d { color: var(--ink-muted); max-width: 22em; margin-top: var(--space-1); }

/* ---------- final ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--space-9) var(--space-8); text-align: center; }
.final-sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--bg-900), rgba(6, 8, 20, .35) 35%, rgba(11, 15, 33, .85) 85%, var(--bg-950)),
    radial-gradient(56% 48% at 50% 55%, rgba(235, 185, 73, .22), transparent 72%),
    radial-gradient(45% 42% at 25% 65%, rgba(20, 173, 112, .16), transparent 72%),
    url("assets/celestial-sky.png") 50% 50% / cover no-repeat,
    var(--bg-950);
}
.final-in { display: grid; justify-items: center; gap: var(--space-3); }
.final-h { font-size: var(--fs-closing); line-height: 1.35; color: var(--gold-200); }
.final-b { font-size: var(--fs-lead); color: var(--ink); margin-bottom: var(--space-3); }
.cta-row--center { width: 100%; max-width: 420px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-soft); padding-block: var(--space-7) calc(var(--space-7) + var(--fab-size)); background: var(--bg-950); }
.foot-in { display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.foot-copy { font-size: var(--fs-small); color: var(--ink-muted); }

/* ---------- floating whatsapp ---------- */
.fab {
  position: fixed; inset-inline-end: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); z-index: 50;
  display: grid; place-items: center; width: var(--fab-size); height: var(--fab-size); border-radius: 50%;
  background: linear-gradient(180deg, var(--emerald-500), var(--emerald-600));
  color: var(--gold-200); border: 1.5px solid var(--gold-500);
  box-shadow: inset 0 1px 0 #ffffff33, var(--shadow-float), var(--shadow-emerald);
  transition: transform 420ms var(--ease-drawer), opacity 240ms ease, background-color 200ms ease;
}
.fab svg { width: 30px; height: 30px; fill: currentColor; }
.fab::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; border: 2px solid var(--gold-500); opacity: 0; animation: pulse 7s var(--ease-out) infinite 3s; }
.fab:active { transform: scale(.94); transition: transform var(--dur-press) var(--ease-out), background-color 200ms ease; }
.fab.is-away { transform: translateY(calc(100% + var(--space-4) + env(safe-area-inset-bottom))); opacity: 0; pointer-events: none; transition: transform 260ms var(--ease-out), opacity 180ms ease; }
.fab.is-away::after { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .fab:hover { background: #18c27d; border-color: var(--gold-200); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 20%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- lightbox dialog ---------- */
.lightbox {
  border: 0; padding: 0; margin: auto; max-width: min(560px, 92vw); width: 100%;
  background: transparent; color: var(--ink); overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 6, 16, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox-card {
  position: relative; display: grid; gap: var(--space-4); padding: var(--space-4);
  border-radius: 24px; background: linear-gradient(160deg, var(--bg-800), var(--bg-950));
  border: 1.5px solid var(--gold-500); box-shadow: 0 32px 64px -20px rgba(0, 0, 0, .95), var(--shadow-gold);
}
.lightbox-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(6, 8, 20, .82); color: var(--gold-200);
  font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox-media { display: grid; place-items: center; border-radius: 16px; overflow: hidden; background: var(--bg-950); }
.lightbox-media img { width: 100%; max-height: 68vh; object-fit: contain; }
.lightbox-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.lightbox-title { font: 700 22px/1.4 var(--font-heading); color: var(--gold-200); }
.lightbox-foot .btn { min-height: 46px; padding-inline: var(--space-4); font-size: 15px; }

/* ---------- motion ---------- */
.js .hero-emblem { animation: emblem-in 1.2s var(--ease-out) .05s backwards; }
.js .hero-copy > * { animation: rise-blur 700ms var(--ease-out) backwards; }
.js .hero-copy > :nth-child(1) { animation-delay: .12s; }
.js .hero-copy > :nth-child(2) { animation-delay: .19s; }
.js .hero-copy > :nth-child(3) { animation-delay: .26s; }
.js .hero-copy > :nth-child(4) { animation-delay: .33s; }
.js .hero-copy > :nth-child(5) { animation-delay: .40s; }
.js .hero .badges { animation: rise-in 700ms var(--ease-out) .5s backwards; }

.js .reveal:not(.is-in), .js .stagger:not(.is-in) .rise { opacity: 0; }
.js .reveal.is-in { animation: rise-in var(--dur-reveal) var(--ease-out) calc(min(var(--i, 0), 8) * 45ms) backwards; }
.js .head.reveal.is-in { animation-name: rise-blur; }
.js .stagger.is-in .rise { animation: rise-in var(--dur-reveal) var(--ease-out) calc(var(--i, 0) * 60ms) backwards; }

.js .divider.draw::before, .js .divider.draw::after { transform: scaleX(0); transition: transform 900ms var(--ease-in-out) 100ms; }
.js .divider.draw .star { opacity: 0; transform: rotate(-45deg) scale(.6); transition: opacity 400ms ease, transform 700ms var(--ease-out); }
.js .divider.draw.is-in::before, .js .divider.draw.is-in::after, .js .divider.draw.is-in .star { opacity: 1; transform: none; }
.js .step:not(:last-child)::after { transform: scaleY(0); transition: transform 700ms var(--ease-in-out) 350ms; }
.js .step.is-in::after { transform: none; }
.js .steps::before { transform: scaleX(0); transform-origin: right center; transition: transform 1.1s var(--ease-in-out) 200ms; }
.js .steps.is-in::before { transform: none; }

@keyframes emblem-in { from { opacity: 0; transform: scale(.96) translateY(12px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes rise-blur { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  :root { --gutter: var(--space-6); --fs-headline: 34px; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cta-row .btn { width: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); max-width: none; }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-bottom: 0; }
  .step:not(:last-child)::after { display: none; }
  .step-n { grid-row: auto; margin-bottom: var(--space-3); }
  .step .h3, .step-d { grid-column: auto; }
  .step .h3 { padding-top: 0; }
  .step-d { margin-inline: auto; }
  .steps::before { content: ""; position: absolute; top: 32px; inset-inline: 16%; height: 1px; background: repeating-linear-gradient(to left, var(--gold-500) 0 6px, transparent 6px 14px); opacity: .5; }
}

@media (min-width: 900px) {
  :root {
    --fs-display: clamp(56px, 6vw, 78px);
    --fs-closing: clamp(48px, 4.6vw, 64px);
    --fs-headline: 40px;
    --fs-lead: 20px;
    --fs-pill: 17px;
    --fs-gem: 28px;
    --sec: var(--space-9);
    --sec-seam: var(--space-7);
  }
  .topbar-in { justify-content: flex-start; }
  .topnav { display: flex; gap: var(--space-5); margin-inline-start: var(--space-6); }
  .topnav a { font-size: var(--fs-meta); color: var(--ink-muted); text-decoration: none; padding-block: var(--space-2); transition: color var(--dur-release) ease; }

  .hero { padding-top: 108px; }
  .hero-in {
    grid-template-columns: 1.15fr .85fr; align-items: center; justify-items: start;
    text-align: start; gap: var(--space-8); min-height: clamp(520px, 68svh, 640px); padding-block: var(--space-5) var(--space-7);
  }
  .hero-emblem { order: 2; justify-self: center; width: min(410px, 36vw); }
  .hero-copy { order: 1; justify-items: start; max-width: 38rem; }
  .hero-eyebrow { justify-content: flex-start; }
  .name-rule { margin-inline: 0; }
  .hero .cta-row { justify-content: flex-start; max-width: none; }
  .cta-row .btn { padding-inline: var(--space-6); min-height: 54px; }

  .marquee:not(.marquee--always) { -webkit-mask-image: none; mask-image: none; justify-content: center; }
  .marquee:not(.marquee--always) .marquee-track { flex: 0 1 auto; animation: none; flex-wrap: wrap; justify-content: center; padding: 0; }
  .marquee:not(.marquee--always) .marquee-track--copy { display: none; }
  .gems .marquee, .media-marquee { -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); }
  .badges { padding-bottom: var(--space-8); }

  .reach-bands { max-width: 840px; margin-inline: auto; padding-inline: var(--gutter); gap: var(--space-3); }
  .reach-all { margin-top: var(--space-5); }
  .pill { min-height: 48px; padding: 8px var(--space-5); }

  .about { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .about-img { order: 2; max-width: 480px; }

  .gem { min-height: 94px; padding-inline: var(--space-7); }
  .final { padding-block: 148px 120px; }
}

@media (min-width: 980px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .topnav a:hover { color: var(--gold-200); }
}

@media (max-width: 380px) {
  :root { --fs-headline: 28px; --fs-label: 16px; --fs-pill: 15px; --fs-gem: 22px; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar.is-solid { background: var(--bg-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: #ebb94999; --line-soft: #ebb94966; --ink-muted: #dce2f5; }
  .topbar.is-solid { background: var(--bg-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
