/* Mori website. Self-hosted type, no frameworks. Tokens mirror the app (web/src/components/kit.tsx). */
@font-face { font-family: "Newsreader"; font-weight: 300; font-style: normal; font-display: swap; src: url("/assets/fonts/newsreader-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 300; font-style: italic; font-display: swap; src: url("/assets/fonts/newsreader-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }

@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+0660-0669; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+0660-0669; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+0660-0669; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+0660-0669; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); }

:root {
  --paper: #f8f6f2;
  --paper-2: #f3f1ec;
  --white: #fcfbf8;
  --ink: #2b2926;
  --char: #34322f;
  --char-2: #232120;
  --stone: #625d56;
  --faint: #7a756c;
  --line: #e4e0d8;
  --soft: #cfcac2;
  --blue: #a7b7c9;
  --teal: #95b7be;
  --lime: #d8f888;
  --lime-soft: #ecfacb;
  --sky: #dce2eb;
  --mint: #d6e6e4;
  --apricot: #f4c29e;
  --coral: #e07fa0;
  --sun: #edcb5e;
  --green: #6fbf8e;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r-xl: 56px;
  --r-lg: 40px;
  --r-md: 28px;
  --r-sm: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --edge: 12px;
  --streak: linear-gradient(185deg, rgba(248, 246, 242, 0) 4%, rgba(167, 183, 201, 0.9) 28%, rgba(149, 183, 190, 0.88) 47%, rgba(216, 248, 136, 0.92) 66%, rgba(248, 246, 242, 0) 96%);
  --feature: linear-gradient(135deg, #ecfacb 0%, #d6e6e4 55%, #dce2eb 100%);
  /* semantic tokens: the dark theme redefines these */
  --fill: #34322f; --on-fill: #f8f6f2;
  --dk-bg: #34322f; --dk-fg: #f8f6f2; --dk-muted: #cbc6bd;
  --glass: var(--glass); --glass-strong: var(--glass-strong);
  --hair: rgba(43, 41, 38, 0.08); --shade: rgba(43, 41, 38, 0.1);
  --tag-bg: #ece9e3; --tag-fg: #6f6a63;
  --prose: #4a4742; --outline: #3a3835;
  --skel-a: #ebe8e1; --skel-b: #f6f4ef;
  color-scheme: light;
  --signature: linear-gradient(150deg, #a7b7c9 0%, #95b7be 45%, #c4e596 80%, #d8f888 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--fill); color: var(--on-fill); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.serif { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ Panels: every section has soft, rounded edges */
.panel { position: relative; margin: var(--edge); border-radius: var(--r-xl); overflow: hidden; isolation: isolate; }
.panel.paper { background: var(--paper); }
.panel.white { background: var(--white); box-shadow: 0 0 0 1px var(--line) inset; }
.panel.tint { background: var(--paper-2); }
.panel.dark { background: var(--dk-bg); color: var(--dk-fg); }
.panel.feature { background: var(--feature); }
.panel.signature { background: var(--signature); }
.panel-pad { padding: clamp(56px, 9vw, 120px) 0; }

/* ------------------------------------------------------------------ Header */
.nav-wrap { position: fixed; z-index: 100; top: 14px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; padding: 0 var(--edge); transition: transform 0.45s var(--ease); }
.nav-wrap.hide { transform: translateY(-120%); }
.nav { pointer-events: auto; width: 100%; max-width: 1120px; height: 62px; display: flex; align-items: center; gap: 18px; padding: 0 8px 0 22px; border-radius: 999px; background: var(--glass); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 0 0 1px rgba(43, 41, 38, 0.08), 0 14px 40px rgba(43, 41, 38, 0.08); }
.brand { display: flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; font-weight: 500; font-size: 22px; letter-spacing: -0.03em; }
.brand svg { height: 20px; width: auto; flex: none; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--stone); transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(43, 41, 38, 0.06); }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
/* Two short lines of different length (the longer one on top) that morph into an X. */
.menu-btn span { display: block; position: relative; width: 22px; height: 15px; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; inset-inline-end: 0; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform 0.38s var(--ease), width 0.38s var(--ease); }
.menu-btn span::before { top: 0; width: 22px; } .menu-btn span::after { bottom: 0; width: 14px; }
.menu-open .menu-btn span::before { transform: translateY(6.7px) rotate(45deg); }
.menu-open .menu-btn span::after { width: 22px; transform: translateY(-6.7px) rotate(-45deg); }
[dir="rtl"] .menu-open .menu-btn span::before { transform: translateY(6.7px) rotate(-45deg); } [dir="rtl"] .menu-open .menu-btn span::after { transform: translateY(-6.7px) rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .menu-btn span::before, .menu-btn span::after { transition: none; } }
.sheet { position: fixed; inset: 0; z-index: 90; background: var(--paper); padding: 96px var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px; transform: translateY(-100%); visibility: hidden; transition: transform 0.5s var(--ease), visibility 0s 0.5s; overflow-y: auto; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.menu-open .sheet { transform: none; visibility: visible; transition: transform 0.5s var(--ease); }
.sheet a.big { font-family: var(--serif); font-weight: 300; font-size: 34px; letter-spacing: -0.02em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 18px; align-self: flex-start; }

/* ------------------------------------------------------------------ Buttons (same pill + arrow circle as the app) */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; height: 50px; padding: 0 0 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font-family: var(--mono); font-size: 15px; text-decoration: none; color: var(--ink); transition: transform 0.15s var(--ease), background 0.25s, color 0.25s; white-space: nowrap; }
.btn .arr { width: 50px; height: 50px; margin: -1px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; flex: none; transition: background 0.25s, color 0.25s, transform 0.3s var(--ease); }
.btn .arr svg { width: 18px; height: 18px; }
.btn:hover .arr { background: var(--ink); color: var(--paper); transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn.sm { height: 42px; padding-left: 18px; font-size: 14px; } .btn.sm .arr { width: 42px; height: 42px; }
.btn.fill { background: var(--fill); color: var(--on-fill); border-color: var(--fill); } .btn.fill .arr { border-color: var(--on-fill); } .btn.fill:hover .arr { background: var(--on-fill); color: var(--fill); }
.btn.light { color: #f8f6f2; border-color: #f8f6f2; } .btn.light .arr { border-color: #f8f6f2; } .btn.light:hover .arr { background: #f8f6f2; color: #34322f; }
.btn.ghost { border-color: var(--soft); background: rgba(255, 255, 255, 0.45); }
.text-link { font-family: var(--mono); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--outline, #3a3835); font-family: var(--mono); font-size: 12.5px; background: transparent; }
.pill.soft { border-color: var(--soft); background: rgba(255, 255, 255, 0.5); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 500; background: var(--tag-bg); color: var(--tag-fg); }
.tag.green { background: #e2efe2; color: #2f6b44; } .tag.amber { background: #f6e3d0; color: #8a5a2b; }

/* ------------------------------------------------------------------ Type */
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -0.022em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.4vw, 108px); }
h2 { font-size: clamp(36px, 5vw, 68px); }
h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; }
h4 { font-size: 22px; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--stone); max-width: 560px; }
.dark .lede, .dark p { color: #cbc6bd; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--ink); }
.em { font-style: italic; background: var(--signature); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.center { text-align: center; } .center .lede { margin-left: auto; margin-right: auto; }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { align-items: center; }

/* ------------------------------------------------------------------ Reveal */
.rv { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
/* Reveal animation only when scripts run (the .js class is set in <head>), so no-JS readers always see everything. */
.js .rv:not(.in) { opacity: 0; transform: translateY(26px); }
.rv.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Ambient gradient */
.bloom { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.85; pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.bloom.b1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; right: -12%; top: -22%; background: radial-gradient(closest-side, rgba(167, 183, 201, 0.95), rgba(167, 183, 201, 0)); }
.bloom.b2 { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; right: 2%; top: 22%; background: radial-gradient(closest-side, rgba(149, 183, 190, 0.8), rgba(149, 183, 190, 0)); animation-delay: -5s; }
.bloom.b3 { width: 56vw; height: 56vw; max-width: 820px; max-height: 820px; right: -14%; bottom: -34%; background: radial-gradient(closest-side, rgba(216, 248, 136, 0.95), rgba(216, 248, 136, 0)); animation-delay: -9s; }
.bloom.b4 { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: -12%; bottom: -24%; background: radial-gradient(closest-side, rgba(216, 248, 136, 0.55), rgba(216, 248, 136, 0)); animation-delay: -3s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4%, 5%, 0) scale(1.08); } }

/* ------------------------------------------------------------------ Hero */
.hero { padding: 132px 0 0; min-height: min(100vh, 980px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.hero-copy { padding-bottom: 72px; position: relative; z-index: 2; }
.hero h1 { margin: 6px 0 26px; }
.hero .lede { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--stone); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--ink); }
.hero-stage { position: relative; height: min(760px, 78vw); min-height: 560px; margin-bottom: 112px; }
.hero-stage .phone { position: absolute; transition: transform 0.2s linear; }
.hero-stage .p-main { --w: min(300px, 26vw); left: 50%; top: 4%; margin-left: calc(var(--w) / -2); z-index: 3; }
.hero-stage .p-left { --w: min(262px, 23vw); left: 2%; top: 16%; transform: rotate(-9deg); z-index: 2; }
.hero-stage .p-right { --w: min(262px, 23vw); right: 0; top: 14%; transform: rotate(9deg); z-index: 2; }
.chip3d { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 20px; background: var(--glass-strong); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(43, 41, 38, 0.07), 0 18px 44px rgba(43, 41, 38, 0.14); font-size: 13.5px; line-height: 1.3; animation: bob 6s ease-in-out infinite; }
.chip3d b { display: block; font-weight: 500; font-size: 14px; }
.chip3d small { color: var(--stone); font-size: 12px; }
.chip3d .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-soft); flex: none; }
.chip3d .ic svg { width: 18px; height: 18px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.peek { position: absolute; z-index: 4; pointer-events: none; }
.peek svg { width: 100%; height: auto; overflow: visible; }

/* ------------------------------------------------------------------ iPhone mockup */
.phone { --w: 280px; width: var(--w); aspect-ratio: 393 / 852; position: relative; border-radius: calc(var(--w) * 0.168); padding: calc(var(--w) * 0.034); background: linear-gradient(140deg, #5b5955 0%, #1b1a19 22%, #3b3936 52%, #151413 78%, #55534f 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 40px 80px rgba(43, 41, 38, 0.28), 0 12px 28px rgba(43, 41, 38, 0.18); font-size: calc(var(--w) / 26); flex: none; }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2b2a28; }
.phone::before { left: -3px; top: 17%; height: 7%; box-shadow: 0 9.5% 0 #2b2a28, 0 17% 0 #2b2a28; }
.phone::after { right: -3px; top: 24%; height: 11%; }
.screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.136); overflow: hidden; background: var(--paper); }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen .shot { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); }
.screen .shot.on { opacity: 1; }
.island { position: absolute; z-index: 3; top: 1.9%; left: 50%; width: 27%; height: 3.5%; transform: translateX(-50%); border-radius: 999px; background: #0a0a0a; }
.sbar { position: absolute; z-index: 2; top: 1.6%; left: 0; right: 0; height: 4.4%; display: flex; align-items: center; justify-content: space-between; padding: 0 9%; font-size: 1.28em; font-weight: 600; color: #1a1918; letter-spacing: -0.01em; }
.sbar .ico { display: flex; gap: 0.5em; align-items: center; }
.sbar svg { height: 0.86em; width: auto; }
.homebar { position: absolute; z-index: 3; bottom: 1.3%; left: 50%; width: 34%; height: 0.55%; min-height: 3px; transform: translateX(-50%); border-radius: 999px; background: #1a1918; opacity: 0.85; }
.phone.tilt { transition: transform 0.5s var(--ease); }

/* ------------------------------------------------------------------ Marquee of animals */
.marquee { overflow: hidden; padding: 38px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 64px; align-items: flex-end; animation: slide 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.marquee figure svg { width: 112px; height: auto; overflow: visible; }
.marquee figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ Story (sticky phone) */
.story { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-phone { position: sticky; top: 96px; display: grid; place-items: center; height: calc(100vh - 120px); min-height: 560px; }
.story-phone .phone { --w: min(320px, 70vw, calc((100vh - 150px) * 0.4613)); }
.story-bloom { position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 248, 136, 0.7), rgba(149, 183, 190, 0.35) 55%, transparent); filter: blur(50px); z-index: -1; opacity: 0.9; transition: transform 1.2s var(--ease), background 1.2s; }
.story-steps { padding-bottom: 12vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: 0.32; transition: opacity 0.6s var(--ease); }
.step.on { opacity: 1; }
.step .num { font-family: var(--serif); font-weight: 300; font-size: clamp(80px, 11vw, 150px); line-height: 0.9; color: #9aa7b6; letter-spacing: -0.04em; }
.step .num span { background: var(--signature); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: clamp(30px, 3.4vw, 46px); max-width: 15ch; }
.step ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; color: var(--stone); font-size: 16px; }
.step li { display: flex; gap: 12px; align-items: flex-start; }
.step li svg { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--green); }
.step .inline-phone { display: none; }
.rail { position: absolute; right: -56px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.rail li { list-style: none; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--stone); transition: color 0.3s; }
.rail li i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--soft); display: grid; place-items: center; font-style: normal; font-size: 10.5px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
@media (max-width: 1279px) { .rail li span { display: none; } }
.rail li.on { color: var(--ink); } .rail li.on i { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }

/* ------------------------------------------------------------------ Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; gap: 12px; min-height: 420px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); isolation: isolate; }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(43, 41, 38, 0.1); }
.card.s2 { grid-column: span 2; } .card.s3 { grid-column: span 3; } .card.s4 { grid-column: span 4; }
.card.dark { background: var(--dk-bg); color: var(--dk-fg); } .card.apricot { background: #f6d3b6; } .card.feature { background: var(--feature); } .card.white { background: var(--white); box-shadow: 0 0 0 1px var(--line) inset; } .card.sky { background: linear-gradient(160deg, #cfdbe8, #e6ecf1); } .card.lime { background: linear-gradient(160deg, #e4f7b0, #f3fad8); } .card.sig { background: var(--signature); }
.card .label { display: flex; align-items: center; gap: 8px; opacity: 0.85; }
.card .label svg { width: 15px; height: 15px; }
.card h3 { max-width: 16ch; }
.card p { max-width: 38ch; font-size: 16px; color: var(--stone); }
.card.dark p { color: #bdb8af; }
.card .phone { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 38%); --w: 216px; }
.card.s2 { min-height: 600px; }
.card.s4 { min-height: 480px; }
.card.s4 .phone { left: auto; right: 6%; transform: translate(0, 30%); --w: 280px; }
.card.s4 .copy { max-width: 46%; }
.card .art-corner { position: absolute; right: 16px; top: 16px; width: 120px; z-index: -1; }
.stack { display: grid; gap: 8px; margin-top: auto; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); font-size: 14.5px; }
.card.white .mini-row, .card.lime .mini-row, .card.sky .mini-row { background: rgba(255, 255, 255, 0.7); }
.mini-row .t { font-family: var(--mono); font-size: 12px; opacity: 0.7; width: 46px; flex: none; }
.mini-row .ck { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; flex: none; }
.mini-row .ck svg { width: 12px; height: 12px; }
.mini-row .ck.o { background: transparent; border: 1px solid currentColor; opacity: 0.6; }

/* ------------------------------------------------------------------ Species */
.species { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sp { position: relative; border-radius: var(--r-lg); padding: 28px 24px 26px; min-height: 420px; display: flex; flex-direction: column; background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s; text-decoration: none; }
.sp:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line) inset, 0 30px 60px rgba(43, 41, 38, 0.1); }
.sp .art { position: relative; height: 210px; margin: 6px -10px 18px; }
.sp .art svg { position: absolute; width: 62%; height: auto; overflow: visible; transition: transform 0.6s var(--ease); }
.sp .art svg:nth-child(1) { left: -2%; bottom: 0; z-index: 2; } .sp .art svg:nth-child(2) { right: -4%; bottom: 14px; z-index: 1; width: 56%; } .sp .art svg:nth-child(3) { left: 30%; top: -4px; z-index: 0; width: 46%; opacity: 0.95; }
.sp:hover .art svg:nth-child(1) { transform: translate(6px, -6px) rotate(-2deg); } .sp:hover .art svg:nth-child(2) { transform: translate(-6px, -4px) rotate(2deg); }
.sp h3 { margin-bottom: 8px; font-size: 32px; }
.sp p { font-size: 15.5px; color: var(--stone); }
.sp .breeds { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.sp .breeds span { font-family: var(--mono); font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: rgba(43, 41, 38, 0.06); }
.sp.t1 { background: linear-gradient(180deg, #fbf1e1, var(--paper)); } .sp.t2 { background: linear-gradient(180deg, #e7edf3, var(--paper)); } .sp.t3 { background: linear-gradient(180deg, #e3f3df, var(--paper)); } .sp.t4 { background: linear-gradient(180deg, #efe7da, var(--paper)); }

/* ------------------------------------------------------------------ Local */
.local { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.emirates { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.emirates button { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font-family: var(--mono); font-size: 14px; transition: background 0.25s, color 0.25s, transform 0.15s; }
.emirates button:active { transform: scale(0.96); }
.emirates button[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.emirates button .n { opacity: 0.55; margin-left: 8px; font-size: 12px; }
.listings { border-radius: var(--r-lg); background: var(--glass); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(43, 41, 38, 0.06), 0 30px 70px rgba(43, 41, 38, 0.14); padding: 14px 22px 8px; min-height: 480px; display: flex; flex-direction: column; }
.listings header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.lrow { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); animation: rise 0.5s var(--ease) both; }
.lrow:last-child { border-bottom: 0; }
.lrow .th { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(150deg, #dce2eb, #e4eeea); display: grid; place-items: center; flex: none; overflow: hidden; }
.lrow .th svg { width: 52px; height: auto; }
.lrow .tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.lrow .tx b { font-weight: 500; font-size: 15.5px; }
.lrow .tx span { font-size: 13px; color: var(--stone); }
.listings .empty { margin: auto; text-align: center; max-width: 320px; color: var(--stone); padding: 40px 0; }
.listings footer { margin-top: auto; padding: 14px 0 12px; font-size: 12.5px; color: var(--stone); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.num-card { padding: 28px 8px 8px; border-top: 1px solid rgba(43, 41, 38, 0.25); }
.num-card .big { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 8vw, 116px); line-height: 0.95; letter-spacing: -0.04em; }
.num-card p { margin-top: 12px; max-width: 24ch; font-size: 15.5px; color: var(--stone); }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 24px 0; font-size: 20px; font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--soft); flex: none; background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .ans { padding: 0 52px 26px 0; color: var(--stone); font-size: 16.5px; animation: rise 0.5s var(--ease) both; }

/* ------------------------------------------------------------------ Coming soon banner */
.soon { padding: clamp(56px, 8vw, 104px) 0; }
.soon-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.soon h2 { margin-bottom: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.badge { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 16px; border-radius: 16px; background: #111; color: #fff; text-decoration: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 10px 24px rgba(0, 0, 0, 0.18); transition: transform 0.25s var(--ease); cursor: pointer; border: 0; text-align: left; }
.badge:hover { transform: translateY(-2px); }
.badge svg { width: 28px; height: 28px; flex: none; }
.badge small { display: block; font-size: 10.5px; opacity: 0.8; letter-spacing: 0.02em; line-height: 1.1; }
.badge b { display: block; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.badge i { position: absolute; top: -9px; right: -6px; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 3px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }
.soon-art { position: relative; min-height: 360px; }
.soon-art svg { position: absolute; overflow: visible; height: auto; }
.form { display: flex; gap: 8px; max-width: 520px; margin-top: 18px; padding: 6px; border-radius: 999px; background: var(--glass-strong); box-shadow: 0 0 0 1px var(--line) inset; }
.form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 18px; font: inherit; font-size: 16px; }
.form button { height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--fill); color: var(--on-fill); font-family: var(--mono); font-size: 14px; }
.fine { font-size: 13px; color: var(--stone); margin-top: 10px; }

/* ------------------------------------------------------------------ Footer */
.foot { margin: var(--edge); border-radius: var(--r-xl); background: var(--char-2); color: #f8f6f2; overflow: hidden; position: relative; isolation: isolate; }
.foot::before { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(closest-side, rgba(149, 183, 190, 0.35), transparent); z-index: -1; filter: blur(30px); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 0.7fr)); gap: 36px; padding: clamp(48px, 6vw, 84px) 0 40px; }
.foot h5 { margin: 0 0 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8e8981; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: #e4e0d8; font-size: 15.5px; transition: color 0.2s; }
.foot a:hover { color: var(--lime); }
.foot .blurb { color: #aaa59c; font-size: 15.5px; max-width: 34ch; margin: 18px 0 22px; }
.foot .brand { color: #f8f6f2; font-size: 26px; }
.foot-mid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13.5px; color: #8e8981; }
.wordmark-stage { perspective: 900px; padding: 10px 0 0; }
.wordmark { display: grid; margin: 0 auto; width: fit-content; font-family: var(--sans); font-weight: 600; letter-spacing: -0.06em; line-height: 0.82; font-size: clamp(150px, 31vw, 470px); user-select: none; transform-style: preserve-3d; transition: transform 0.25s ease-out; padding-bottom: 0.08em; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.5)); }
.wordmark > span { grid-area: 1 / 1; display: block; }
.wordmark .ext { color: #2c3b3d; text-shadow: var(--ext); }
.wordmark .face { color: transparent; background: linear-gradient(180deg, #f6ffd8 0%, #d8f888 28%, #95b7be 66%, #6f93a9 100%); -webkit-background-clip: text; background-clip: text; }
.wordmark .hl { color: transparent; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.7) 50%, transparent 62%) -140% 0 / 260% 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: shine 7s ease-in-out infinite; }
@keyframes shine { 0%, 55% { background-position: 160% 0; } 100% { background-position: -140% 0; } }
.camel-walk { position: absolute; bottom: 14px; left: -140px; width: 120px; animation: walk 38s linear infinite; opacity: 0.9; z-index: 2; pointer-events: none; }
@keyframes walk { to { transform: translateX(calc(100vw + 280px)); } }

/* ------------------------------------------------------------------ Modal */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(43, 41, 38, 0.38); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s 0.35s; }
.modal.open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.dialog { position: relative; width: min(840px, 100%); border-radius: var(--r-lg); background: var(--paper); display: grid; grid-template-columns: 0.8fr 1.2fr; overflow: hidden; transform: translateY(24px) scale(0.98); transition: transform 0.5s var(--ease); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3); }
.modal.open .dialog { transform: none; }
.dialog .side { background: var(--signature); position: relative; min-height: 300px; display: grid; place-items: center; padding: 20px; }
.dialog .side svg { width: 88%; height: auto; overflow: visible; }
.dialog .body { padding: clamp(28px, 4vw, 46px); }
.dialog h3 { margin-bottom: 14px; }
.x { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(43, 41, 38, 0.82); color: #f8f6f2; display: grid; place-items: center; z-index: 2; }
.x svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ Inner pages */
.page-hero { padding: 150px 0 clamp(48px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(42px, 6.2vw, 88px); max-width: 16ch; margin-bottom: 22px; }
.page-hero .art { position: absolute; right: 4%; bottom: 0; width: min(330px, 30vw); z-index: 0; }
.prose { font-size: 18px; color: var(--prose); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: 26px; margin-top: 1.6em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 0.5em; }
.prose a { text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: var(--r-md); background: var(--feature); font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.25; color: var(--ink); }
.notice { padding: 14px 18px; border-radius: var(--r-sm); background: #f6e3d0; color: #8a5a2b; font-size: 15px; }
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; }
.tile { padding: 30px; border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line) inset; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
a.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line) inset, 0 24px 50px rgba(43, 41, 38, 0.09); }
.tile .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--lime-soft); display: grid; place-items: center; }
.tile .ic svg { width: 24px; height: 24px; }
.tile .art { width: 120px; margin: -10px 0 0 -10px; }
.tile p { color: var(--stone); font-size: 16px; }
.tile.dark { background: var(--dk-bg); color: var(--dk-fg); box-shadow: none; } .tile.dark p { color: #bdb8af; }
.tile.feature { background: var(--feature); box-shadow: none; } .tile.sky { background: linear-gradient(160deg, #cfdbe8, #e6ecf1); box-shadow: none; } .tile.apricot { background: #f6d3b6; box-shadow: none; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .phones { display: flex; justify-content: center; gap: 18px; position: relative; min-height: 520px; align-items: center; }
.split .phones .phone { --w: min(250px, 38vw); }
.split .phones .phone + .phone { margin-top: 70px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--green); flex: none; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line) inset; text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line) inset, 0 28px 56px rgba(43, 41, 38, 0.1); }
.post-card .cover { height: 220px; display: grid; place-items: center; }
.post-card .cover svg { width: 200px; height: auto; overflow: visible; }
.post-card .info { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--stone); letter-spacing: 0.06em; text-transform: uppercase; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.swatch { border-radius: var(--r-md); overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line) inset; }
.swatch .c { height: 120px; } .swatch .m { padding: 14px 16px 16px; font-size: 14px; } .swatch b { display: block; font-weight: 500; font-size: 16px; } .swatch code { font-family: var(--mono); font-size: 12.5px; color: var(--stone); }
.logo-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.logo-box { height: 220px; border-radius: var(--r-lg); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line) inset; }
.logo-box svg { height: 26px; width: auto; }
.dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-form { display: grid; gap: 14px; max-width: 620px; }
.contact-form label { display: grid; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-form input, .contact-form textarea, .contact-form select { font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0; padding: 14px 20px; border-radius: 26px; border: 1px solid #3a3835; background: transparent; outline: 0; color: var(--ink); width: 100%; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-width: 1.5px; border-color: var(--ink); }
.help-search { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px; border-radius: 999px; border: 1px solid #3a3835; background: rgba(255, 255, 255, 0.6); max-width: 640px; }
.help-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; }
.help-search svg { width: 20px; height: 20px; color: var(--stone); }
.crumbs { display: flex; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--stone); margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.toc { position: sticky; top: 110px; font-size: 14.5px; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--stone); } .toc a:hover { color: var(--ink); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }

/* ------------------------------------------------------------------ Easter egg */
.paw { position: fixed; z-index: 300; bottom: -50px; pointer-events: none; animation: pawup var(--dur, 2.4s) var(--ease) forwards; }
@keyframes pawup { 0% { transform: translateY(0) rotate(var(--r, 0deg)) scale(0.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-112vh) rotate(calc(var(--r, 0deg) * 2)) scale(1); opacity: 0; } }
.toast { position: fixed; z-index: 310; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--fill); color: var(--on-fill); padding: 14px 22px; border-radius: 999px; font-size: 15px; opacity: 0; transition: all 0.4s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1060px) {
  .nav-links, .nav > .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { padding-right: 8px; }
  .hero-grid, .local, .soon-grid, .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .hero { padding-top: 112px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-stage { height: 620px; margin-top: 8px; }
  .hero-stage .p-main { --w: 250px; } .hero-stage .p-left, .hero-stage .p-right { --w: 210px; }
  .hero-stage .p-left { left: -2%; } .hero-stage .p-right { right: -2%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.s2, .card.s3, .card.s4 { grid-column: span 2; }
  .card.s4 .copy { max-width: none; } .card.s4 .phone { left: 50%; right: auto; transform: translate(-50%, 34%); --w: 240px; }
  .card { min-height: 480px; } .card.s2 { min-height: 600px; }
  .species { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-top > :first-child { grid-column: 1 / -1; }
  .story { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .step { min-height: 0; padding: 44px 0; opacity: 1; }
  .step .inline-phone { display: block; margin-top: 18px; } .step .inline-phone .phone { --w: min(250px, 70vw); margin: 0 auto; }
  .rail { display: none; }
  .doc { grid-template-columns: 1fr; gap: 28px; } .toc { position: static; display: none; }
  .page-hero .art { display: none; }
  .dialog { grid-template-columns: 1fr; } .dialog .side { min-height: 160px; } .dialog .side svg { width: 150px; }
}
@media (max-width: 640px) {
  :root { --r-xl: 34px; --r-lg: 28px; --edge: 8px; }
  body { font-size: 16px; }
  .hero-stage { height: 520px; min-height: 0; }
  .hero-stage .p-main { --w: 220px; top: 2%; } .hero-stage .p-left, .hero-stage .p-right { --w: 170px; top: 18%; }
  .chip3d.c2, .chip3d.c3 { display: none; }
  .hero-stage { margin-top: 44px; }
  .hero h1 { margin-top: 18px; }
  .chip3d.c1 { left: 50% !important; top: -38px !important; margin-left: -112px; width: 224px; }
  .bento, .species, .cols { grid-template-columns: 1fr; }
  .card.s2, .card.s3, .card.s4 { grid-column: auto; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .badge { flex: 1 1 100%; }
  .form { flex-direction: column; border-radius: 28px; padding: 8px; } .form input { height: 50px; } .form button { height: 50px; }
  .wordmark { font-size: 36vw; }
  .camel-walk { width: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv:not(.in) { opacity: 1; transform: none; }
  .rv { transition: none; }
  .bloom, .chip3d, .marquee-track, .camel-walk, .wordmark .hl { animation: none !important; }
  .step { opacity: 1; }
}


/* ================================================================== Theme: dark (set by the inline script in <head> as html[data-theme]) */
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141312; --paper-2: #1a1917; --white: #1e1d1b;
  --ink: #f2efe9; --stone: #aaa59b; --faint: #7f7b72; --line: #2e2c29; --soft: #44413c;
  --lime-soft: #2d3a1c; --sky: #232a33; --mint: #1f302e;
  --feature: linear-gradient(135deg, #25301a 0%, #1d2d2b 55%, #212833 100%);
  --signature: linear-gradient(150deg, #3a495c 0%, #33565d 45%, #476032 80%, #5b7a28 100%);
  --streak: linear-gradient(185deg, rgba(20, 19, 18, 0) 4%, rgba(70, 86, 106, 0.8) 28%, rgba(52, 88, 94, 0.8) 47%, rgba(98, 132, 38, 0.8) 66%, rgba(20, 19, 18, 0) 96%);
  --fill: #ece8e0; --on-fill: #151413;
  --dk-bg: #2a2926; --dk-fg: #f2efe9; --dk-muted: #c3beb5;
  --glass: rgba(30, 29, 27, 0.84); --glass-strong: rgba(30, 29, 27, 0.94);
  --hair: rgba(255, 255, 255, 0.1); --shade: rgba(0, 0, 0, 0.4);
  --tag-bg: #2d2b28; --tag-fg: #b9b4aa;
  --prose: #d2cec5; --outline: #bdb8ae;
  --skel-a: #232220; --skel-b: #2f2d2a;
  --char-2: #0e0d0c;
}
[data-theme="dark"] .bloom { opacity: 0.32; }
[data-theme="dark"] .nav { box-shadow: 0 0 0 1px var(--hair), 0 14px 40px rgba(0, 0, 0, 0.45); }
[data-theme="dark"] .nav-links a:hover, [data-theme="dark"] .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .btn.ghost, [data-theme="dark"] .pill.soft, [data-theme="dark"] .help-search { background: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .pill { border-color: var(--outline); }
[data-theme="dark"] .tag.green { background: #1d3a27; color: #93d6ab; }
[data-theme="dark"] .tag.amber, [data-theme="dark"] .notice { background: #3b2b19; color: #f1c999; }
[data-theme="dark"] .card.apricot, [data-theme="dark"] .tile.apricot { background: #4a3322; color: var(--ink); }
[data-theme="dark"] .card.sky, [data-theme="dark"] .tile.sky { background: linear-gradient(160deg, #26303d, #1f2630); }
[data-theme="dark"] .card.lime { background: linear-gradient(160deg, #2d3c20, #222c1a); }
[data-theme="dark"] .card.sig p, [data-theme="dark"] .signature .lede, [data-theme="dark"] .signature p, [data-theme="dark"] .signature .fine { color: #e4e0d6 !important; }
[data-theme="dark"] .signature, [data-theme="dark"] .signature h1, [data-theme="dark"] .signature h2, [data-theme="dark"] .card.sig, [data-theme="dark"] .card.sig h3 { color: #f4f1ea; }
[data-theme="dark"] .card.feature p, [data-theme="dark"] .card.sky p, [data-theme="dark"] .card.lime p, [data-theme="dark"] .card.apricot p, [data-theme="dark"] .tile.apricot p { color: #cfcac0; }
[data-theme="dark"] .card:hover, [data-theme="dark"] a.tile:hover, [data-theme="dark"] .post-card:hover, [data-theme="dark"] .sp:hover { box-shadow: 0 0 0 1px var(--line) inset, 0 30px 60px rgba(0, 0, 0, 0.4); }
[data-theme="dark"] .mini-row, [data-theme="dark"] .card.white .mini-row, [data-theme="dark"] .card.lime .mini-row, [data-theme="dark"] .card.sky .mini-row { background: rgba(255, 255, 255, 0.07); }
[data-theme="dark"] .mini-row .th { background: #2a3238 !important; }
[data-theme="dark"] .sp .breeds span { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .sp.t1 { background: linear-gradient(180deg, #2c261c, var(--paper)); }
[data-theme="dark"] .sp.t2 { background: linear-gradient(180deg, #202832, var(--paper)); }
[data-theme="dark"] .sp.t3 { background: linear-gradient(180deg, #1f2e1f, var(--paper)); }
[data-theme="dark"] .sp.t4 { background: linear-gradient(180deg, #2a2620, var(--paper)); }
[data-theme="dark"] .listings { box-shadow: 0 0 0 1px var(--hair), 0 30px 70px rgba(0, 0, 0, 0.45); }
[data-theme="dark"] .lrow .th { background: linear-gradient(150deg, #2b333c, #26322f); }
[data-theme="dark"] .num-card { border-top-color: rgba(255, 255, 255, 0.25); }
[data-theme="dark"] .badge { border: 1px solid rgba(255, 255, 255, 0.22); }
[data-theme="dark"] .form { box-shadow: 0 0 0 1px var(--line) inset; }
[data-theme="dark"] .form input, [data-theme="dark"] .contact-form input, [data-theme="dark"] .contact-form textarea, [data-theme="dark"] .contact-form select, [data-theme="dark"] .help-search input { color: var(--ink); }
[data-theme="dark"] .contact-form input, [data-theme="dark"] .contact-form textarea, [data-theme="dark"] .contact-form select { background: rgba(255, 255, 255, 0.04); border-color: var(--outline); }
[data-theme="dark"] .modal { background: rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .prose blockquote { color: var(--ink); }
[data-theme="dark"] .step .num { color: #6d7a89; }
[data-theme="dark"] .toc a:hover { color: var(--ink); }
[data-theme="dark"] .swatch, [data-theme="dark"] .logo-box { box-shadow: 0 0 0 1px var(--line) inset; }
[data-theme="dark"] .logo-box[style*="background"] { filter: none; }
[data-theme="dark"] .brand svg { color: var(--ink); }
[data-theme="dark"] .rail li i { border-color: var(--soft); }
/* The hand-inked animals use a dark outline. On dark panels they get a thin light edge so they read like stickers, not holes. */
[data-theme="dark"] svg[viewBox="0 0 120 100"], [data-theme="dark"] img[src*="maggy"] { filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)); }
[data-theme="dark"] .foot svg[viewBox="0 0 120 100"] { filter: none; }
[data-theme="dark"] .brand svg[viewBox="0 26 116 22"] { filter: none; }

/* theme switch (nav + footer) */
.theme-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--soft); background: transparent; display: grid; place-items: center; flex: none; color: var(--ink); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .i-dark, .theme-btn .i-system { display: none; }
[data-theme-pref="dark"] .theme-btn .i-light, [data-theme-pref="system"] .theme-btn .i-light, :root:not([data-theme-pref]) .theme-btn .i-light { display: none; }
[data-theme-pref="dark"] .theme-btn .i-dark, [data-theme-pref="system"] .theme-btn .i-system { display: block; }
:root:not([data-theme-pref]) .theme-btn .i-system { display: block; }
.theme-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); }
.theme-seg button { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: #cfcac0; font-family: var(--mono); font-size: 12.5px; }
.theme-seg button[aria-pressed="true"] { background: #f2efe9; color: #1a1918; }
.sheet .theme-seg { margin-top: 18px; align-self: flex-start; border-color: var(--soft); }
.sheet .theme-seg button { color: var(--stone); } .sheet .theme-seg button[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); }

/* ================================================================== Skeleton loading */
@keyframes shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.skel, .screen::before { background: linear-gradient(100deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%) 160% 0 / 250% 100%; animation: shimmer 1.4s linear infinite; }
.skel { display: block; border-radius: 12px; min-height: 1em; }
.skel.line { height: 14px; margin: 8px 0; } .skel.title { height: 28px; width: 60%; } .skel.thumb { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.screen::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.screen img { position: relative; z-index: 1; }
.js .screen img:not(.loaded) { opacity: 0; }
.screen img { transition: opacity 0.45s var(--ease); }
.screen .shot { z-index: 1; }
/* directory preview: rows shimmer until the data is drawn, then fade in; without JS the panel shows plain text */
.listings.is-loading [data-listings] { display: grid; gap: 0; }
.lrow.skeleton { animation: none; }
.lrow.skeleton .tx { gap: 8px; }
/* page-to-page: a quick fade so navigation never flashes a blank white page */
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
.js body { animation: pagein 0.28s var(--ease) both; }
.js body.leaving { opacity: 0; transition: opacity 0.16s ease; }
@media (prefers-reduced-motion: reduce) { .skel, .screen::before { animation: none; } .js body { animation: none; } .js body.leaving { opacity: 1; transition: none; } }
@media print { .skel { display: none; } }

/* ================================================================== Error pages */
.err { min-height: min(86vh, 820px); display: grid; align-items: center; padding: 150px 0 80px; }
.err .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.err .code { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.err h1 { font-size: clamp(44px, 6.4vw, 92px); margin-bottom: 20px; max-width: 14ch; }
.err .art { display: grid; place-items: center; }
.err .art svg, .err .art img { width: min(380px, 70vw); height: auto; overflow: visible; }
.err .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.err .hint { margin-top: 18px; font-size: 14px; color: var(--stone); }
@media (max-width: 860px) { .err .wrap { grid-template-columns: 1fr; } .err .art { order: -1; } .err { padding-top: 120px; } }
.fine.err-msg { color: #a8402b; } [data-theme="dark"] .fine.err-msg { color: #ff9d86; }
.fine.ok-msg { color: #2f7a4b; } [data-theme="dark"] .fine.ok-msg { color: #8fd8a8; }
.form[aria-invalid="true"] { box-shadow: 0 0 0 1.5px #a8402b inset; }
.form button[disabled] { opacity: 0.6; cursor: progress; }

/* ================================================================== Right-to-left (Arabic) */
[dir="rtl"] {
  --serif: "IBM Plex Sans Arabic", "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans Arabic", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Sans Arabic", "DM Mono", ui-monospace, monospace;
}
/* Arabic letters join, so tracking must be zero and capitals/italics don't exist. */
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .label, [dir="rtl"] .eyebrow, [dir="rtl"] .post-meta, [dir="rtl"] .marquee figcaption, [dir="rtl"] .foot h5, [dir="rtl"] .contact-form label, [dir="rtl"] .crumbs, [dir="rtl"] .badge i { text-transform: none; }
[dir="rtl"] body { font-size: 18px; line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .serif, [dir="rtl"] .sheet a.big, [dir="rtl"] .faq summary { font-weight: 400; line-height: 1.28; }
[dir="rtl"] h1 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.2; }
[dir="rtl"] h2 { font-size: clamp(32px, 4.4vw, 60px); }
[dir="rtl"] .page-hero h1 { font-size: clamp(38px, 5.4vw, 76px); max-width: 18ch; }
[dir="rtl"] .num-card .big, [dir="rtl"] .step .num { font-weight: 300; line-height: 1; }
[dir="rtl"] .em { font-style: normal; padding-right: 0; padding-left: 0.06em; font-weight: 500; }
[dir="rtl"] .lede { line-height: 1.8; }
[dir="rtl"] .btn, [dir="rtl"] .pill, [dir="rtl"] .tag, [dir="rtl"] .text-link, [dir="rtl"] .nav-links a, [dir="rtl"] .emirates button { font-weight: 500; }
/* mirrored geometry */
[dir="rtl"] .skip { left: auto; right: 12px; }
[dir="rtl"] .nav { padding: 0 22px 0 8px; }
[dir="rtl"] .btn { padding: 0 24px 0 0; } [dir="rtl"] .btn.sm { padding: 0 18px 0 0; }
[dir="rtl"] .btn .arr svg, [dir="rtl"] .arr svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: translateX(-3px); }
[dir="rtl"] .badge { text-align: right; } [dir="rtl"] .badge i { right: auto; left: -6px; }
[dir="rtl"] .faq summary::after { margin-left: 0; margin-right: auto; }
[dir="rtl"] .faq .ans { padding: 0 0 26px 52px; }
[dir="rtl"] .mini-row .ck { margin-left: 0; margin-right: auto; }
[dir="rtl"] .emirates button .n { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.2em; }
[dir="rtl"] .rail { right: auto; left: -56px; }
[dir="rtl"] .x { right: auto; left: 14px; }
[dir="rtl"] .page-hero .art { right: auto; left: 4%; }
[dir="rtl"] .card .art-corner { right: auto; left: 16px; }
[dir="rtl"] .card.s4 .phone { right: auto; left: 6%; }
[dir="rtl"] .toc { text-align: right; }
[dir="rtl"] .camel-walk { left: auto; right: -140px; animation-name: walk-rtl; scale: -1 1; }
@keyframes walk-rtl { to { transform: translateX(calc(-100vw - 280px)); } }
[dir="rtl"] .hero-stage, [dir="rtl"] .phone, [dir="rtl"] .story-phone, [dir="rtl"] .wordmark-stage, [dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .chip3d { direction: rtl; }
[dir="rtl"] .wordmark { direction: ltr; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="search"] { text-align: right; }
[dir="rtl"] input[type="email"]::placeholder, [dir="rtl"] input[type="search"]::placeholder { text-align: right; }
[dir="rtl"] .contact-form input[name="email"] { direction: ltr; text-align: right; }
[dir="rtl"] .lrow .tx b, [dir="rtl"] .tile h3 { font-weight: 500; }
[dir="rtl"] table { direction: rtl; } [dir="rtl"] th { text-align: right !important; }
[dir="rtl"] .ltr, [dir="rtl"] .m-num, [dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] .dir tr td:last-child { direction: ltr; text-align: right; }

/* language and footer tools (both directions) */
.lang-btn { font-family: var(--sans); font-size: 14.5px; color: var(--stone); text-decoration: none; padding: 8px 12px; border-radius: 999px; flex: none; }
.lang-btn:hover { color: var(--ink); background: rgba(43, 41, 38, 0.06); }
[data-theme="dark"] .lang-btn:hover { background: rgba(255, 255, 255, 0.08); }
.lang-link { color: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.sheet-lang { margin-top: 14px; display: flex; gap: 16px; }
.sheet-lang .lang-link { font-size: 17px; color: var(--ink); }
.foot-tools { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.foot-lang { display: inline-flex; align-items: center; gap: 10px; color: #e4e0d8; }
.foot-lang svg { width: 18px; height: 18px; } .foot-lang .lang-link { color: #e4e0d8; }
@media (max-width: 1060px) { .nav > .lang-btn { display: none; } .nav > .theme-btn { margin-inline-start: auto; } .nav > .menu-btn { margin-inline-start: 0; } }

/* error pages: one language block at a time (chosen by the inline script; English without JavaScript) */
.err-ar { display: none; }
[data-err-lang="ar"] .err-ar { display: grid; }
[data-err-lang="ar"] .err-en { display: none; }
