/* Momentum Solvers Technologies — plain CSS version of v7 (was Tailwind + React).
   Dark espresso, warm ivory type, gold accent. Arabic lives at /ar/ with dir="rtl". */

:root {
  --background: oklch(0.13 0.008 50);
  --foreground: oklch(0.93 0.02 75);
  --card: oklch(0.18 0.015 50);
  --primary: oklch(0.74 0.11 68);
  --primary-foreground: oklch(0.14 0.01 50);
  --muted-foreground: oklch(0.66 0.025 70);
  --body-text: oklch(0.82 0.02 72);   /* paragraphs under headings: brighter than muted, softer than headings */
  --accent: oklch(0.3 0.045 55);
  --destructive: oklch(0.62 0.2 27);
  --border: oklch(0.93 0.02 75 / 12%);
  --input: oklch(0.93 0.02 75 / 18%);
  --espresso: oklch(0.2 0.035 45);
  --bronze: oklch(0.62 0.1 55);
  --gradient-gold: linear-gradient(120deg, oklch(0.84 0.09 80), oklch(0.66 0.11 60) 50%, oklch(0.84 0.09 80));
  --gradient-espresso: radial-gradient(ellipse at 30% 20%, oklch(0.28 0.05 50 / 0.9), transparent 60%), radial-gradient(ellipse at 80% 90%, oklch(0.24 0.06 40 / 0.7), transparent 55%);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: 24px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 48px; } }
[dir="rtl"] {
  --font-display: "Noto Naskh Arabic", "Amiri", serif;
  --font-sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; font-weight: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
::selection { background: var(--primary); color: var(--primary-foreground); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--primary); color: var(--primary-foreground); }
.skip:focus { top: 14px; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.display { font-family: var(--font-display); }
.light { font-weight: 300; }
.muted { color: var(--muted-foreground); }
.primary { color: var(--primary); }
.caps { font-size: 11px; text-transform: uppercase; letter-spacing: .3em; }
.caps-wide { font-size: 11px; text-transform: uppercase; letter-spacing: .4em; }
[dir="rtl"] .caps, [dir="rtl"] .caps-wide { font-size: 14px; letter-spacing: 0; text-transform: none; }
.gold { background: var(--gradient-gold); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; animation: shimmer 8s linear infinite; }
[dir="rtl"] .gold { font-style: normal; }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4%, -3%) scale(1.08); } }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gutter);
  background: linear-gradient(to bottom, var(--background), color-mix(in oklab, var(--background) 80%, transparent), transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.logo { display: block; flex: none; transition: opacity .3s ease; }
.logo:hover { opacity: .8; }
/* logo.svg is a wide one-line lockup (297×48), so it is sized by width */
.logo img { width: 168px; height: auto; }
@media (min-width: 768px) { .logo img { width: 212px; } }
.nav { display: none; gap: 40px; }
.nav a { opacity: .7; transition: opacity .3s ease; }
.nav a:hover { opacity: 1; }
@media (min-width: 768px) { .nav { display: flex; } }
.header-end { display: flex; align-items: center; gap: 16px; }
@media (min-width: 768px) { .header-end { gap: 24px; } }
.lang { border: 1px solid var(--border); padding: 6px 12px; font-size: 12px; transition: border-color .3s ease, color .3s ease; }
.lang:hover { border-color: var(--primary); color: var(--primary); }
.lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang[lang="en"] { font-family: "Manrope", sans-serif; }
.book { display: none; color: var(--primary); }
@media (min-width: 640px) { .book { display: inline; } }

/* ---------- Hero (sticky; holds the 3D scene behind everything) ---------- */
.hero { position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; background-image: var(--gradient-espresso); }
.hero-blob { position: absolute; left: -25%; top: 25%; width: 70vmax; height: 70vmax; border-radius: 50%; background: color-mix(in oklab, var(--bronze) 15%, transparent); filter: blur(120px); animation: drift 18s ease-in-out infinite; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 0 var(--gutter) 112px; will-change: transform, opacity, filter; }
@media (min-width: 768px) { .hero-inner { padding-bottom: 128px; } }
.hero-kicker { margin-bottom: 32px; }
.hero-title { max-width: 14ch; font-family: var(--font-display); font-weight: 300; font-size: 13vw; line-height: .9; letter-spacing: -.025em; }
@media (min-width: 768px) { .hero-title { font-size: 8vw; } }
[dir="rtl"] .hero-title { max-width: 16ch; font-size: 11vw; }
@media (min-width: 768px) { [dir="rtl"] .hero-title { font-size: 6.5vw; } }
/* Two equal statements, one per line (same size, weight and colour) */
.hero-title--lines { max-width: none; font-size: 11.5vw; line-height: .98; }
.hero-title--lines .line { display: block; }
@media (min-width: 768px) { .hero-title--lines { font-size: 6.6vw; } }
[dir="rtl"] .hero-title--lines { max-width: none; font-size: 9.5vw; line-height: 1.25; }
@media (min-width: 768px) { [dir="rtl"] .hero-title--lines { font-size: 4.6vw; } }
.hero-foot { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-sub { max-width: 32rem; font-size: 17px; line-height: 1.65; color: var(--body-text); }
[dir="rtl"] .hero-sub { font-size: 18px; }

/* ---------- Stacked panels ---------- */
main { position: relative; z-index: 10; }
.panel { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh;
  padding: 128px var(--gutter); border-top: 1px solid var(--border); border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -30px 60px -20px var(--background);
  /* slightly translucent, so the 3D scene glows through; a covered panel fades further (JS sets --pa) */
  background-color: color-mix(in oklab, var(--pb) calc(var(--pa, .62) * 100%), transparent); }
@media (min-width: 768px) { .panel { padding-block: 192px; } }
.panel--base { --pb: var(--background); }
.panel--espresso { --pb: var(--espresso); }
.panel-inner { transform-origin: top; will-change: transform; }
.label { display: flex; align-items: center; gap: 16px; }
.label b { font-weight: inherit; color: var(--primary); }
.label i { display: block; width: 48px; height: 1px; background: color-mix(in oklab, var(--primary) 50%, transparent); }

/* Manifesto */
.manifesto-text { margin-top: 48px; max-width: 64rem; font-family: var(--font-display); font-weight: 300; font-size: 36px; line-height: 1.15; }
@media (min-width: 768px) { .manifesto-text { font-size: 60px; } }
.manifesto-sub { margin-top: 32px; max-width: 46rem; font-size: 17px; line-height: 1.7; color: var(--body-text); }
@media (min-width: 768px) { .manifesto-sub { font-size: 19px; } }
[dir="rtl"] .manifesto-sub { font-size: 19px; line-height: 1.9; }
@media (min-width: 768px) { [dir="rtl"] .manifesto-sub { font-size: 21px; } }
.pillars { display: grid; gap: 1px; margin-top: 80px; overflow: hidden; border: 1px solid var(--border); background: var(--border); }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
/* Each pillar spans 3 rows of the parent grid (marker · heading · text) via subgrid,
   so headings and text line up across a row even when one heading wraps. */
.pillar { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 40px; background: var(--background); }
.pillar .no { font-family: var(--font-display); color: var(--primary); line-height: 1.5; }
.pillar .no .icon { width: 18px; height: 18px; vertical-align: -3px; }
.pillar h3 { margin-top: 24px; font-family: var(--font-display); font-size: 24px; line-height: 1.3; }
.pillar p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--body-text); }
[dir="rtl"] .pillar p { font-size: 17px; line-height: 1.8; }
.pillar p a { color: var(--primary); border-bottom: 1px solid color-mix(in oklab, var(--primary) 40%, transparent); transition: border-color .3s ease; }
.pillar p a:hover { border-color: var(--primary); }

/* Services */
.section-title { margin-top: 40px; max-width: 48rem; font-family: var(--font-display); font-weight: 300; font-size: 48px; line-height: 1.05; }
@media (min-width: 768px) { .section-title { font-size: 72px; } }
#services .section-title { max-width: 66rem; }
/* Two equal service cards (web design · AI advisory), each with one supporting detail */
.cards { display: grid; gap: 1px; margin-top: 80px; border: 1px solid var(--border); background: var(--border); }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
/* Cards share 5 rows (top · title · text · detail · tags) through subgrid, so the dividers and
   detail headings line up across both cards. */
.cards > div { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
.card { position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; padding: 40px; background: color-mix(in oklab, var(--espresso) 70%, transparent); transition: background-color .5s ease; }
@media (min-width: 768px) { .card { padding: 48px; } }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
[dir="rtl"] .card::before { transform-origin: right; }
.card:hover, .card:focus-visible { background: color-mix(in oklab, var(--accent) 45%, transparent); }
.card:hover::before, .card:focus-visible::before { transform: scaleX(1); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card .no { font-family: var(--font-display); color: var(--primary); }
.card .arrow { width: 24px; height: 24px; color: var(--primary); transition: translate .5s var(--ease-out); }
.card:hover .arrow { translate: 0 -4px; }
.card h3 { margin-top: 32px; font-family: var(--font-display); font-weight: 300; font-size: 34px; line-height: 1.15; transition: transform .5s var(--ease-out); }
@media (min-width: 768px) { .card h3 { font-size: 44px; } }
.card:hover h3 { transform: translateX(8px); }
[dir="rtl"] .card:hover h3 { transform: translateX(-8px); }
.card > p { margin-top: 20px; font-size: 17px; line-height: 1.7; color: var(--body-text); }
[dir="rtl"] .card > p { font-size: 18px; line-height: 1.9; }
.card-extra { display: flex; flex-direction: column; gap: 8px; padding-top: 40px; }
.card-extra > :first-child { padding-top: 24px; border-top: 1px solid var(--border); font-size: 11px; }
.card-extra strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.3; }
.card-extra span:last-child { font-size: 16px; line-height: 1.65; color: var(--body-text); }
[dir="rtl"] .card-extra > :first-child { font-size: 13px; }
[dir="rtl"] .card-extra span:last-child { font-size: 17px; line-height: 1.8; }
.tags { display: flex; flex-wrap: wrap; align-content: start; gap: 8px; margin-top: 8px; }
.tag { margin-top: 16px; padding: 4px 12px; border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent); color: var(--primary); font-size: 10px; text-transform: uppercase; letter-spacing: .25em; }
[dir="rtl"] .tag { font-size: 12px; letter-spacing: 0; }

/* Lab / Faa */
.panel--lab { position: relative; overflow: hidden; }
.lab-blob { position: absolute; right: 0; top: 0; width: 60vmax; height: 60vmax; border-radius: 50%; background: color-mix(in oklab, var(--primary) 10%, transparent); filter: blur(140px); pointer-events: none; }
.lab-grid { position: relative; display: grid; gap: 64px; margin-top: 64px; }
@media (min-width: 1024px) { .lab-grid { grid-template-columns: 1fr 1fr; } }
.faa-title { margin-top: 24px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 300; font-size: 60px; line-height: 1; }
@media (min-width: 768px) { .faa-title { font-size: 96px; } }
[dir="rtl"] .faa-title { text-align: right; }
.faa-title .gold { font-style: italic; }
.faa-body { margin-top: 32px; max-width: 34rem; font-size: 17px; line-height: 1.7; color: var(--body-text); }
.faa-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; padding-bottom: 4px; border-bottom: 1px solid var(--primary); color: var(--primary); font-size: 14px; text-transform: uppercase; letter-spacing: .25em; }
.features { display: grid; gap: 1px; align-self: start; border: 1px solid var(--border); background: var(--border); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { padding: 32px; background: var(--card); }
.feature .icon { width: 20px; height: 20px; color: var(--primary); }
.feature h3 { margin-top: 24px; font-family: var(--font-display); font-size: 24px; line-height: 1.3; }
.feature p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--body-text); }

/* Contact */
.contact-grid { display: grid; gap: 80px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-title { margin-top: 40px; font-family: var(--font-display); font-weight: 300; font-size: 48px; line-height: 1.05; }
@media (min-width: 768px) { .contact-title { font-size: 72px; } }
.contact-sub { margin-top: 32px; max-width: 30rem; font-size: 17px; line-height: 1.7; color: var(--body-text); }
/* Form labels: brighter and a touch larger than the generic .caps.muted */
.form .field > .caps { color: var(--body-text); font-size: 12px; }
[dir="rtl"] .form .field > .caps { font-size: 15px; letter-spacing: 0; }
.wa-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px 24px; border: 1px solid var(--primary); color: var(--primary); font-size: 14px; text-transform: uppercase; letter-spacing: .2em; transition: background-color .3s ease, color .3s ease; }
.wa-btn:hover { background: var(--primary); color: var(--primary-foreground); }
.wa-btn .icon { width: 16px; height: 16px; }
[dir="rtl"] .wa-btn, [dir="rtl"] .faa-link, [dir="rtl"] .submit { letter-spacing: 0; text-transform: none; font-size: 15px; }
.form { display: grid; gap: 40px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .wide { grid-column: 1 / -1; } }
.field { display: block; }
.field-input { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--input); background: transparent; color: var(--foreground); transition: border-color .3s ease; resize: none; }
.field-input::placeholder { color: color-mix(in oklab, var(--muted-foreground) 60%, transparent); }
.field-input:focus { outline: none; border-color: var(--primary); }
[dir="rtl"] .field-input { text-align: right; }
[dir="rtl"] .field-input[type="email"] { text-align: left; }
.field-error { display: block; margin-top: 4px; font-size: 12px; color: var(--destructive); }
.field-error:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* spam trap; clipped, not pushed off-screen (that would scroll sideways in RTL) */
.submit { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 32px; border: 0; background: var(--primary); color: var(--primary-foreground); font-size: 14px; text-transform: uppercase; letter-spacing: .25em; cursor: pointer; transition: filter .3s ease; }
.submit:hover { filter: brightness(1.1); }
.submit:disabled { opacity: .6; cursor: progress; }
.submit .icon { width: 20px; height: 20px; transition: translate .4s var(--ease-out); }
.submit:hover .icon { translate: 0 -4px; }
.form-error { font-size: 14px; color: var(--destructive); }
.form-error:empty { display: none; }
.thanks { padding: 48px; border: 1px solid var(--border); }
.thanks h3 { font-family: var(--font-display); font-size: 36px; }
.thanks p { margin-top: 16px; color: var(--body-text); }

/* Select (styled like v7's "luxury select"; a real <select> stays in the form) */
.select { position: relative; }
.select-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--input); background: transparent; text-align: start; cursor: pointer; transition: border-color .3s ease; }
.select-trigger:hover { border-color: color-mix(in oklab, var(--primary) 60%, transparent); }
.select-trigger[aria-expanded="true"] { border-color: var(--primary); }
.select-trigger.is-placeholder #interest-value { color: color-mix(in oklab, var(--muted-foreground) 60%, transparent); }
.select-trigger[aria-invalid="true"] { border-color: var(--destructive); }
.select-chev { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent); color: var(--primary); transition: transform .5s var(--ease-out), border-color .3s ease, background-color .3s ease; }
.select-chev .icon { width: 16px; height: 16px; stroke-width: 1.5; }
.select-trigger:hover .select-chev { border-color: var(--primary); }
.select-trigger[aria-expanded="true"] .select-chev { transform: rotate(180deg); border-color: var(--primary); background: color-mix(in oklab, var(--primary) 10%, transparent); }
.select-list { position: absolute; inset-inline: 0; top: calc(100% + 10px); z-index: 60; margin: 0; padding: 8px; list-style: none; border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: color-mix(in oklab, var(--espresso) 95%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 60px -20px var(--background), 0 0 40px -20px var(--bronze); transform-origin: top; }
.select-list[hidden] { display: none; }
.select-list.open { animation: luxIn .45s var(--ease-out); }
.select-list.open li { animation: luxItem .5s var(--ease-out) both; }
@keyframes luxIn { from { opacity: 0; transform: translateY(-8px) scaleY(.96); filter: blur(4px); } }
@keyframes luxItem { from { opacity: 0; transform: translateY(6px); } }
.select-list li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; font-size: 14px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.select-list li > span { display: flex; align-items: center; gap: 16px; }
.select-list li small { font-family: var(--font-display); font-size: 12px; color: color-mix(in oklab, var(--primary) 60%, transparent); }
.select-list li::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 0; width: 1px; background: var(--primary); transform: scaleY(0); transition: transform .3s ease; }
.select-list li.active { background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.select-list li.active::before { transform: scaleY(1); }
.select-list li[aria-selected="true"] { color: var(--primary); }
.select-list li .icon { width: 16px; height: 16px; stroke-width: 1.5; visibility: hidden; }
.select-list li[aria-selected="true"] .icon { visibility: visible; }

/* Footer */
.footer { position: relative; z-index: 10; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 40px var(--gutter); border-top: 1px solid var(--border); background: var(--background); font-size: 12px; color: var(--muted-foreground); }
@media (min-width: 768px) { .footer { flex-direction: row; align-items: center; } }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* Keep footer text clear of the floating WhatsApp button (bottom-right) on pages that have it */
body:has(.wa-fab) .footer { padding-bottom: 104px; }
@media (min-width: 768px) { body:has(.wa-fab) .footer { padding-bottom: 40px; padding-right: calc(var(--gutter) + 80px); } }
.footer-brand img { width: 18px; height: 18px; opacity: .85; }

/* ---------- Floating bits ---------- */
.spotlight { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), color-mix(in oklab, var(--primary) 9%, transparent), transparent 60%); }
.wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5); transition: transform .3s ease; }
.wa-fab:hover { transform: scale(1.05); }
.wa-fab .icon { width: 24px; height: 24px; }
.dots { position: fixed; inset-inline-end: 24px; top: 50%; z-index: 40; display: none; flex-direction: column; align-items: center; gap: 16px; transform: translateY(-50%); }
@media (min-width: 768px) { .dots { display: flex; } }
.dots-count { margin-bottom: 8px; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .2em; color: var(--muted-foreground); writing-mode: vertical-rl; }
.dots-count b { font-weight: inherit; color: var(--foreground); }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--muted-foreground) 60%, transparent); background: none; cursor: pointer; transition: all .5s ease; }
.dots button:hover { border-color: var(--foreground); }
.dots button[aria-current="true"] { transform: scale(1.25); border-color: var(--primary); background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.hint { position: fixed; right: 24px; bottom: 96px; z-index: 40; pointer-events: none; transition: opacity .3s linear; }
@media (min-width: 768px) { .hint { right: auto; left: 50%; bottom: 32px; transform: translateX(-50%); } }
.mouse { display: flex; justify-content: center; width: 2rem; height: 3.25rem; padding-top: .55rem; border-radius: 9999px; border: 2px solid color-mix(in oklab, var(--foreground) 82%, transparent);
  box-shadow: 0 0 26px -2px color-mix(in oklab, var(--bronze) 70%, transparent), inset 0 0 16px -8px color-mix(in oklab, var(--bronze) 95%, transparent); }
.mouse > span { width: .25rem; height: .75rem; border-radius: 9999px; background: var(--primary); box-shadow: 0 0 14px 2px color-mix(in oklab, var(--bronze) 95%, transparent); animation: wheel 1.9s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
.swipe { position: relative; width: 1.6rem; height: 3.25rem; border-radius: 9999px; border: 2px solid color-mix(in oklab, var(--foreground) 82%, transparent); box-shadow: 0 0 26px -2px color-mix(in oklab, var(--bronze) 70%, transparent); }
.swipe > span { position: absolute; left: 50%; bottom: .4rem; width: .7rem; height: .7rem; margin-left: -.35rem; border-radius: 9999px; background: var(--primary); box-shadow: 0 0 14px 2px color-mix(in oklab, var(--bronze) 95%, transparent); animation: swipe 1.8s ease-in-out infinite; }
@keyframes swipe { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 75% { transform: translateY(-1.6rem); opacity: 1; } 100% { transform: translateY(-1.9rem); opacity: 0; } }
.hint .swipe { display: none; }
@media (hover: none) and (pointer: coarse) { .hint .mouse { display: none; } .hint .swipe { display: block; } }

/* Registration numbers sit on the brand line, in smaller type */
.footer-reg { font-size: 11px; letter-spacing: .03em; color: color-mix(in oklab, var(--muted-foreground) 80%, transparent); }
[dir="rtl"] .footer-reg { font-size: 12px; letter-spacing: 0; }

/* Footer legal links (home and policy pages) */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { transition: color .3s ease; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--primary); }
/* Privacy note under the enquiry form */
.form-note { font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }
.form-note a { color: var(--primary); border-bottom: 1px solid color-mix(in oklab, var(--primary) 40%, transparent); }

/* ---------- Legal pages (privacy / terms / cookies) ---------- */
html:has(.legal) { scroll-behavior: smooth; }
.legal { position: relative; overflow: clip; }
.legal-hero { position: relative; padding: 168px var(--gutter) 72px; border-bottom: 1px solid var(--border); background-image: var(--gradient-espresso); }
@media (min-width: 768px) { .legal-hero { padding-top: 208px; padding-bottom: 96px; } }
.legal-hero::after { content: ""; position: absolute; inset-inline-end: -10%; top: 10%; width: 50vmax; height: 50vmax; border-radius: 50%; background: color-mix(in oklab, var(--bronze) 14%, transparent); filter: blur(120px); pointer-events: none; }
.legal-hero > * { position: relative; z-index: 1; }
.legal-kicker { display: flex; align-items: center; gap: 12px; color: var(--primary); }
.legal-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.legal-hero h1 { margin-top: 28px; font-family: var(--font-display); font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -.02em; }
@media (min-width: 768px) { .legal-hero h1 { font-size: 96px; } }
.legal-intro { margin-top: 28px; max-width: 42rem; font-size: 19px; line-height: 1.6; color: var(--body-text); }
.legal-date { margin-top: 24px; }
.legal-layout { display: grid; gap: 48px; max-width: 1240px; padding: 72px var(--gutter) 120px; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 96px; } }
.toc { align-self: start; }
@media (min-width: 1024px) { .toc { position: sticky; top: 112px; } }
.toc ol { margin: 20px 0 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--border); }
.toc a { display: block; padding: 7px 16px; font-size: 14px; color: var(--muted-foreground); border-inline-start: 1px solid transparent; margin-inline-start: -1px; transition: color .3s ease, border-color .3s ease; }
.toc a:hover { color: var(--primary); border-color: var(--primary); }
[dir="rtl"] .toc a { font-size: 15px; }
.legal-body { max-width: 46rem; }
.legal-body section { scroll-margin-top: 112px; }
.legal-body section + section { margin-top: 64px; }
.legal-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.2; }
@media (min-width: 768px) { .legal-body h2 { font-size: 38px; } }
.legal-body h3 { margin-top: 32px; font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.legal-body p, .legal-body li { font-size: 17px; line-height: 1.75; color: var(--body-text); }
[dir="rtl"] .legal-body p, [dir="rtl"] .legal-body li { font-size: 18px; line-height: 1.9; }
.legal-body p { margin-top: 18px; }
.legal-body ul { margin: 18px 0 0; padding: 0; list-style: none; }
.legal-body li { position: relative; padding-inline-start: 24px; }
.legal-body li + li { margin-top: 10px; }
.legal-body li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .75em; width: 6px; height: 1px; background: var(--primary); }
.legal-body strong { font-weight: 500; color: var(--foreground); }
.legal-body a { color: var(--primary); border-bottom: 1px solid color-mix(in oklab, var(--primary) 40%, transparent); transition: border-color .3s ease; }
.legal-body a:hover { border-color: var(--primary); }
.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--border); }
.legal-body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.legal-body th { padding: 16px 20px; text-align: start; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--primary); background: color-mix(in oklab, var(--espresso) 60%, transparent); }
[dir="rtl"] .legal-body th { font-size: 13px; letter-spacing: 0; }
.legal-body td { padding: 16px 20px; vertical-align: top; color: var(--body-text); border-top: 1px solid var(--border); }
[dir="rtl"] .legal-body td { font-size: 16px; }
.legal-body td code { font-size: 14px; color: var(--foreground); }
.legal-body .legal-note { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted-foreground); }

/* ---------- Reveal motion (v5's long, soft ease-out) ---------- */
.reveal { opacity: 0; transform: translateY(46px); filter: blur(10px); transition: opacity .9s ease, transform 1.2s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
[dir="rtl"] .words .w { padding-bottom: .25em; }
.words .w > span { display: inline-block; transform: translateY(105%); opacity: 0; filter: blur(6px); transition: transform 1.2s var(--ease-out), opacity 1s ease, filter 1s var(--ease-out); }
.words.in .w > span { transform: none; opacity: 1; filter: none; }
.no-js .reveal, .no-js .words .w > span { opacity: 1; transform: none; filter: none; }
[dir="rtl"] h1, [dir="rtl"] h2 { line-height: 1.35 !important; }

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .words .w > span { opacity: 1; transform: none; filter: none; transition: none; }
  .gold, .hero-blob, .mouse > span, .swipe > span { animation: none; }
  .select-list.open, .select-list.open li { animation: none; }
}
