/* nowlyapp.com, the «Now» redesign (17 Nov 2026). Nowly night: ground #0C1014, ivory ink, violet #6521FA only for
   the one action and selection, champagne gold #EECA7C only for VIP and coins. Readex Pro + Nowly Arabic.
   Home page under body.p-home; the header (.nh) and footer (.nf) are shared with the policy pages, which keep
   site.css and style.css for their text. Motion is opt-in through html.motion (boot.js); without it nothing moves. */

@font-face { font-family: 'Readex'; font-weight: 160 700; font-display: swap; src: url(/assets/fonts/ReadexPro-latin.woff2) format('woff2'); }
@font-face { font-family: 'Nowly Arabic'; font-weight: 400; font-display: swap; src: url(/assets/fonts/NowlyArabic-Regular.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Nowly Arabic'; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/NowlyArabic-SemiBold.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Nowly Arabic'; font-weight: 700 800; font-display: swap; src: url(/assets/fonts/NowlyArabic-Bold.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #0C1014; --bg-2: #10151A; --s1: #151B21; --s2: #1D242B; --s3: #262E36;
  --ink: #F3F1EE; --ink-2: #CED2D6; --mute: #A9AEB4;
  --violet: #6521FA; --violet-press: #5719E0; --gold: #EECA7C; --gold-ink: #EFD7A0; --gold-deep: #1A1206;
  --night: #0F1726; --night-2: #182338; --live: #FF5C52;
  --font: 'Nowly Arabic', 'Readex', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --g: max(clamp(20px, 4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --head: 72px; --r: 20px;
  --e: cubic-bezier(.2, 0, 0, 1); --e-soft: cubic-bezier(.4, 0, .2, 1);
  --t1: 160ms; --t2: 420ms; --t3: 900ms;
  --fs-body: 18px; --fs-small: 15px; --fs-mid: 24px;
  --fs-lead: clamp(24px, 2.4vw, 34px);
  --fs-h2: clamp(32px, 3.4vw, 50px);
  --fs-big: clamp(44px, 5.4vw, 84px);
}

body[data-lang="en"] [lang-ar], body[data-lang="ar"] [lang-en] { display: none !important; }

/* ───────── base (home page) ───────── */
body.p-home, body.p-home * , body.p-home *::before, body.p-home *::after { box-sizing: border-box; }
html:has(body.p-home) { background: var(--bg); color-scheme: dark; scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html:has(body.p-home) { scroll-behavior: smooth; } }
body.p-home { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip; font-variant-numeric: lining-nums; }
body.p-home[dir="rtl"] { line-height: 1.8; }
:where(.p-home) :where(h1, h2, h3, p, ul, dl, dd, figure) { margin: 0; padding: 0; }
:where(.p-home) :where(ul) { list-style: none; }
:where(.p-home) :where(img, svg, video) { display: block; max-width: 100%; }
:where(.p-home) :where(a) { color: inherit; }
:where(.p-home) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.p-home h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.p-home[dir="rtl"] h2 { letter-spacing: 0; line-height: 1.25; }
.p-home h3 { font-size: var(--fs-mid); line-height: 1.3; font-weight: 600; }
.num { font-family: 'Readex', var(--font); font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.p-home .skip { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none; transform: translateY(-160%); }
.p-home .skip:focus-visible { transform: none; }
:where(.p-home, .nh, .nf) :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet); color: #fff; }
.p-home section { position: relative; padding: clamp(96px, 12vw, 200px) var(--g) 0; max-width: 1600px; margin-inline: auto; }

/* buttons and links: one shape (the pill), one action colour */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--violet);
  color: #fff; font-weight: 600; font-size: var(--fs-body); text-decoration: none; transition: background var(--t1) var(--e), transform var(--t1) var(--e); }
.btn:hover { background: var(--violet-press); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--s2); color: var(--ink); }
.btn-ghost:hover { background: var(--s3); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
  text-decoration-color: var(--violet); transition: text-underline-offset var(--t1) var(--e); }
.link:hover { text-underline-offset: 9px; }
.arr { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform var(--t1) var(--e); }
[dir="rtl"] .arr { transform: scaleX(-1); }
a:hover > .arr { transform: translateX(4px); }
[dir="rtl"] a:hover > .arr { transform: scaleX(-1) translateX(4px); }

/* tabs: plain words, the chosen one in full ink with the violet underline */
.tabs { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.tab { position: relative; min-height: 44px; font-size: var(--fs-body); color: var(--mute); font-weight: 500; transition: color var(--t1) var(--e); }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.tab::after { content: ''; position: absolute; inset-inline: 0; bottom: 4px; height: 3px; border-radius: 3px; background: var(--violet);
  transform: scaleX(0); transition: transform var(--t2) var(--e); }
.tab[aria-pressed="true"]::after { transform: scaleX(1); }

/* the phone: a real capture in a plain bezel (an interface fragment, data-ui) */
.phone { position: relative; border-radius: 48px; padding: 9px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.phone img { width: 100%; height: auto; border-radius: 40px; }
.phone-sm { border-radius: 42px; padding: 8px; }
.phone-sm img { border-radius: 35px; }

/* ───────── header (shared) ───────── */
.nh { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--head); font-family: var(--font); color: var(--ink);
  transition: background var(--t2) var(--e); }
.nh.solid, body[data-doc] .nh { background: rgba(12, 16, 20, .96); }
.nh-in { height: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--g); display: flex; align-items: center; gap: 28px; }
.nh-brand { flex: none; display: block; }
.nh-brand img { display: block; height: 28px; width: auto; }
.nh-nav { display: flex; gap: 26px; margin-inline: auto; }
.nh-nav a, .nh-panel a { color: var(--ink-2); text-decoration: none; font-size: var(--fs-small); font-weight: 500; transition: color var(--t1) var(--e); }
.nh-nav a:hover, .nh-panel a:hover { color: var(--ink); }
.nh-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nh-nav + .nh-tools { margin-inline-start: 0; }
.nh .nh-lang { min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--s2); color: var(--ink); border: 0; font: 600 15px var(--font); cursor: pointer;
  transition: background var(--t1) var(--e); }
.nh .nh-lang:hover { background: var(--s3); }
.nh .nh-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform var(--t1) var(--e); }
.nh .nh-cta:active { transform: scale(.97); }
.nh-menu { position: relative; display: none; }
.nh-menu summary { list-style: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--s2);
  font-weight: 600; font-size: 15px; cursor: pointer; }
.nh-menu summary::-webkit-details-marker { display: none; }
.nh-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 240px; padding: 10px; border-radius: 18px; background: var(--s3);
  display: grid; }
.nh-panel a { padding: 12px 14px; border-radius: 10px; font-size: var(--fs-body); color: var(--ink); }
.nh-panel a:hover { background: #2F3842; }
@media (max-width: 1100px) {
  .nh-nav { display: none; }
  .nh-menu { display: block; }
}
@media (max-width: 520px) {
  .nh .nh-cta { display: none; }
  .nh-in { gap: 12px; }
}

/* ───────── hero: the name as a monument, a real screen beside it, and a live 4-hour clock ───────── */
.p-home .hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 370px);
  grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 5vw, 96px); padding-top: calc(var(--head) + clamp(24px, 5vh, 56px)); padding-bottom: 48px; }
.hero-copy { grid-column: 1; grid-row: 2; align-self: start; max-width: 640px; display: grid; gap: 22px; padding-top: clamp(28px, 5vh, 56px); }
.hero-lead { font-size: var(--fs-lead); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
[dir="rtl"] .hero-lead { letter-spacing: 0; line-height: 1.35; }
.hero-sub { font-size: var(--fs-body); color: var(--ink-2); max-width: 46ch; }
.hero-act { padding-top: 6px; }
.clock { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.clock b { color: var(--ink); font-weight: 600; }
.clock-ring { width: 30px; height: 30px; flex: none; transform: rotate(-90deg); }
.clock-track { fill: none; stroke: var(--s3); stroke-width: 4; }
.clock-arc { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.hero-name { grid-column: 1; grid-row: 1; font-size: clamp(96px, 19.5vw, 320px); line-height: .8; letter-spacing: -.06em; font-weight: 700;
  white-space: nowrap; margin-inline-start: -.05em; font-family: 'Readex', var(--font); }
.hero-name .nm-ar { font-family: 'Nowly Arabic', var(--font); letter-spacing: 0; line-height: 1.1; display: inline-block; padding-bottom: .02em; }
.nm-l { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em 0 .24em; margin-bottom: -.2em; }
.nm-l > span { display: inline-block; }
.nm-ar .nm-l { padding-bottom: .42em; margin-bottom: -.38em; }
.hero-phone { grid-column: 2; grid-row: 1 / span 3; align-self: start; }

/* ───────── moments: a square plate that is also the clock ───────── */
.p-home .mo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 96px); align-items: stretch; min-height: 88svh; }
.mo-plate { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; align-self: center; background: var(--s1); }
.mo-plate picture, .mo-plate img { width: 100%; height: 100%; object-fit: cover; }
.mo-plate::after { content: ''; position: absolute; inset: 0; background: rgba(12, 16, 20, .42); }
.mo-ring { position: absolute; inset: 7%; z-index: 1; width: 86%; height: 86%; transform: rotate(-90deg); }
.mo-track { fill: none; stroke: rgba(243, 241, 238, .22); stroke-width: 1.1; }
.mo-arc { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--t3) var(--e); }
.mo-dot { fill: var(--ink); }
.mo-time { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; gap: 4px; }
.mo-time b { font-size: var(--fs-big); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.mo-time span { font-size: var(--fs-body); color: var(--ink); }
.mo-side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: 3vh; }
.mo-text { display: grid; gap: 20px; max-width: 46ch; }
.mo-text h2 { margin-bottom: 12px; }
.mo-gone { color: var(--ink-2); font-size: var(--fs-small); }
.mo-gone b { color: var(--ink); }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cell { min-height: 96px; padding: 20px 22px; border-radius: 16px; display: grid; align-content: start; gap: 6px; }
.cell b { font-size: var(--fs-mid); font-weight: 600; line-height: 1.15; }
.cell span { font-size: var(--fs-small); line-height: 1.4; }
.cell-ink { background: var(--ink); color: var(--bg); }
.cell-tone { background: var(--s2); color: var(--ink); }
.cell-gold { background: var(--gold); color: var(--gold-deep); }

/* ───────── your city: small real proofs beside the words ───────── */
.ci > h2 { max-width: 20ch; margin-bottom: 64px; }
.ci-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px clamp(40px, 5vw, 96px); }
.mod { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.mod-pic { border-radius: 16px; overflow: hidden; background: var(--s1); }
.mod-pic img, .mod-pic picture { width: 100%; height: auto; }
.mod-tall { height: 300px; }
.mod-tall img { height: 100%; object-fit: cover; object-position: 50% 80%; }
.mod-txt { display: grid; gap: 10px; }
.mod-txt p { font-size: var(--fs-body); color: var(--ink-2); }

/* ───────── lobbies: a night field, a table to sit at ───────── */
.p-home .lo { max-width: none; background: var(--night); margin-top: clamp(96px, 12vw, 200px); padding-bottom: clamp(96px, 10vw, 160px); }
.lo > * { max-width: 1488px; margin-inline: auto; }
.lo-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.lo-copy { display: grid; gap: 22px; max-width: 50ch; }
.lo-copy > p:first-of-type { color: var(--ink-2); }
.lo-ctrl { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--night-2); }
.seg button { min-height: 44px; min-width: 52px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: var(--fs-small); color: var(--ink-2);
  transition: background var(--t1) var(--e), color var(--t1) var(--e); }
.seg button:hover:not(:disabled) { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.lo-note { font-size: var(--fs-small); color: var(--ink-2); }
.lo-status { min-height: 1.5em; font-size: var(--fs-small); color: var(--ink); }
.room { position: relative; aspect-ratio: 1.15; width: 100%; max-width: 760px; justify-self: center; }
.room-table { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1.35; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--night-2); display: grid; place-items: center; transition: opacity var(--t2) var(--e), transform var(--t2) var(--e); }
.room-table img { width: 52%; height: auto; }
.room[data-layout="stage"] .room-table { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
.seat { position: absolute; left: var(--x); top: var(--y); width: clamp(54px, 7vw, 84px); transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 6px; transition: left var(--t3) var(--e), top var(--t3) var(--e); }
.seat img, .seat .mic { width: 100%; aspect-ratio: 1; border-radius: 50%; }
.seat img { position: relative; z-index: 1; }
.seat.host img { outline: 3px solid var(--gold); outline-offset: -1px; }
.seat-n { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; font-family: 'Readex', var(--font); }
.seat .mic { display: grid; place-items: center; background: var(--night-2); color: var(--ink-2); transition: background var(--t1) var(--e), transform var(--t1) var(--e); }
.seat .mic:hover { background: #22304B; color: var(--ink); }
.seat .mic:active { transform: scale(.94); }
.seat .mic svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.seat.you .mic { background: var(--violet); }
.you-av { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.seat.talk::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); opacity: 0; }
.lo-facts { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: center; margin-top: clamp(80px, 9vw, 140px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(32px, 4vw, 72px); }
.facts dt { font-size: var(--fs-mid); font-weight: 600; margin-bottom: 10px; }
.facts dd { color: var(--ink-2); font-size: var(--fs-body); }

/* ───────── games ───────── */
.p-home .ga { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); align-items: center; }
.ga-phone .phone { max-width: 340px; margin-inline: auto; }
.ga-copy { display: grid; gap: 24px; justify-items: start; }
.ga-lead { color: var(--ink-2); max-width: 48ch; }
.ga-list { display: grid; gap: 14px; max-width: 56ch; }
.ga-list li { font-size: var(--fs-body); color: var(--ink-2); }
.ga-list b { color: var(--ink); font-weight: 600; }
.ga-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; max-width: 640px; }
.ga-tiles img { width: 100%; height: auto; border-radius: 12px; transition: transform var(--t2) var(--e); }
.ga-tiles img:hover { transform: translateY(-6px); }

/* ───────── gifts: the moving picture ───────── */
.p-home .gi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 96px); min-height: 88svh; align-items: stretch; }
.gi-plate { position: relative; aspect-ratio: 4 / 5; max-height: 86svh; border-radius: var(--r); overflow: hidden; background: var(--s1); align-self: center; width: 100%; }
.gi-video { width: 100%; height: 100%; object-fit: cover; }
.gi-toggle { position: absolute; inset-inline-end: 16px; bottom: 16px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(12, 16, 20, .78);
  color: var(--ink); font-weight: 600; font-size: 15px; }
.gi-pause, .gi-plate.playing .gi-play { display: none; }
.gi-plate.playing .gi-pause { display: inline; }
.gi-side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: 3vh; }
.gi-side h2 { margin-bottom: 20px; }
.gi-side p { max-width: 46ch; }


/* ───────── alliances ───────── */
.p-home .al { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 120px); align-items: center; }
.al-copy { display: grid; gap: 22px; max-width: 58ch; }
.al-copy > p { color: var(--ink-2); }
.al-copy > p:first-of-type { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px clamp(32px, 4vw, 64px); padding-top: 20px; }
.stats b { display: block; font-size: var(--fs-h2); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stats span { font-size: var(--fs-small); color: var(--ink-2); }
.al-phone .phone { max-width: 320px; margin-inline: auto; }

/* ───────── VIP, levels and coins: the names are the heading, one live figure ───────── */
.p-home .vi { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.vi-names { display: grid; gap: 4px; justify-items: start; }
.vi-names button { position: relative; font-size: var(--fs-big); line-height: 1.12; font-weight: 700; letter-spacing: -.03em; color: var(--mute);
  padding-inline-start: .5em; transition: color var(--t2) var(--e); text-align: start; }
[dir="rtl"] .vi-names button { letter-spacing: 0; line-height: 1.4; }
.vi-names button::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: .24em; height: .24em; margin-top: -.12em; border-radius: 50%;
  background: var(--gold); transform: scale(0); transition: transform var(--t2) var(--e); }
.vi-names button:hover, .vi-names button[aria-pressed="true"] { color: var(--ink); }
.vi-names button[aria-pressed="true"]::before { transform: scale(1); }
.vi-stage { display: grid; gap: 28px; justify-items: start; padding-top: 12px; }
.vi-card { display: grid; gap: 22px; }
.vi-card[hidden] { display: none; }
.vi-fig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.vi-fig b { font-size: clamp(96px, 10vw, 168px); line-height: .85; font-weight: 600; letter-spacing: -.04em; color: var(--gold-ink); }
.vi-card[data-vi-card="levels"] .vi-fig b { color: var(--ink); }
.vi-fig span { font-size: var(--fs-mid); font-weight: 600; }
.vi-card > p:last-child { max-width: 48ch; color: var(--ink-2); }

/* ───────── what we don't do: large questions, answers beside ───────── */
.pr { display: grid; gap: clamp(56px, 6vw, 84px); }
.pr-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline; }
.pr-q { grid-column: 1 / span 6; font-size: var(--fs-lead) !important; line-height: 1.15; font-weight: 500 !important; letter-spacing: -.015em; }
[dir="rtl"] .pr-q { letter-spacing: 0; line-height: 1.45; }
.pr-head { color: var(--ink-2); }
.pr-a { grid-column: 8 / span 5; font-size: var(--fs-body); max-width: 42ch; }

/* ───────── closing band ───────── */
.p-home .jo { max-width: none; margin-top: clamp(96px, 12vw, 200px); background: var(--violet); color: #fff; min-height: 64svh; display: grid; grid-template-rows: auto 1fr;
  padding-top: 40px; overflow: hidden; }
.jo-top { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.jo-top p { font-size: var(--fs-mid); line-height: 1.35; max-width: 34ch; }
.jo-mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-mid); text-decoration: none; white-space: nowrap; }
.jo-mail:hover { text-decoration: underline; text-underline-offset: 6px; }
.jo-word { align-self: end; font-size: clamp(110px, 27vw, 440px) !important; line-height: .78 !important; letter-spacing: -.06em !important; font-weight: 700;
  margin-inline-start: -.04em; padding-bottom: .08em; white-space: nowrap; font-family: 'Readex', var(--font); }
[dir="rtl"] .jo-word { font-family: 'Nowly Arabic', var(--font); letter-spacing: 0 !important; line-height: 1.05 !important; font-size: clamp(96px, 22vw, 360px) !important; }

/* ───────── footer (shared) ───────── */
.nf { background: var(--bg-2); color: var(--ink); font-family: var(--font); padding: clamp(64px, 7vw, 112px) var(--g) 28px; }
.nf > * { max-width: 1488px; margin-inline: auto; }
.nf-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.nf-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: var(--fs-small); }
.nf-col p { margin: 0; color: var(--ink-2); max-width: 30ch; line-height: 1.5; }
.nf-col .nf-first { color: var(--ink); font-weight: 600; }
.nf-col a { color: var(--ink-2); text-decoration: none; transition: color var(--t1) var(--e); }
.nf-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nf-mark { margin-top: clamp(72px, 10vw, 160px); }
.nf-mark img { display: block; width: 100%; height: auto; }
.nf-legal { margin: 64px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--fs-small); color: var(--mute); }

/* policy pages keep their own text styles; only make room under the new header */
body[data-doc] .nh-brand img { height: 28px; }

/* ───────── phones and tablets ───────── */
@media (max-width: 1023px) {
  .p-home .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; padding-top: calc(var(--head) + 28px); row-gap: 40px; }
  .hero-copy, .hero-name, .hero-phone { grid-column: 1; grid-row: auto; }
  .hero-name { font-size: 26vw; }
  .hero-copy { padding-top: 0; }
  .hero-phone { order: 3; width: min(72vw, 340px); justify-self: center; padding-bottom: 0; }
  .p-home .mo, .p-home .gi, .p-home .ga, .p-home .al, .p-home .vi { grid-template-columns: 1fr; min-height: 0; }
  .mo-side, .gi-side { padding-block: 0; gap: 32px; }
  .ci-grid { grid-template-columns: 1fr; gap: 64px; }
  .lo-top, .lo-facts { grid-template-columns: 1fr; }
  .lo-facts .phone { max-width: 300px; margin-inline: auto; }
  .ga-phone { order: 2; }
  .al-phone { order: 2; }
  .pr-row { grid-template-columns: 1fr; row-gap: 12px; }
  .pr-q, .pr-a { grid-column: 1; }
  .nf-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --fs-body: 17px; }
  .mod { grid-template-columns: 1fr; gap: 16px; }
  .mod-tall { height: 260px; }
  .facts { grid-template-columns: 1fr; gap: 32px; }
  .cells { grid-template-columns: 1fr; }
  .room { aspect-ratio: .95; }
  .stats { grid-template-columns: repeat(2, auto); }
  .ga-tiles { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .jo-top { flex-direction: column; }
  .p-home .jo { min-height: 50svh; }
  .jo-word { font-size: 28vw !important; }
  .nf-cols { grid-template-columns: 1fr; gap: 32px; }
  .vi-names button { font-size: 12vw; }
}

/* ───────── motion (only with html.motion: Reduce Motion leaves everything in place) ───────── */
html.motion [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--e) var(--d, 0ms), transform var(--t3) var(--e) var(--d, 0ms); }
html.motion [data-rv].in { opacity: 1; transform: none; }
html.motion .nm-l > span { transform: translateY(105%); transition: transform 1000ms cubic-bezier(.16, 1, .3, 1) var(--d, 0ms); }
html.motion .hero.go .nm-l > span { transform: none; }
html.motion [data-hero] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--e) var(--d, 0ms), transform var(--t3) var(--e) var(--d, 0ms); }
html.motion .hero.go [data-hero] { opacity: 1; transform: none; }
html.motion [data-lift] { opacity: 0; transform: translateY(80px); transition: opacity var(--t3) var(--e) 200ms, transform 1200ms cubic-bezier(.16, 1, .3, 1) 200ms; }
html.motion .hero.go [data-lift] { opacity: 1; transform: none; }
html.motion .seat { animation: seat-in 600ms var(--e) both; }
@keyframes seat-in { from { opacity: 0; scale: .6; } }
html.motion .seat.talk::before { animation: talk 2.4s var(--e-soft) var(--sd, 0s) infinite; }
@keyframes talk { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.32); } }
html.motion .gi-plate.swap .gi-video { animation: swap 520ms var(--e); }
@keyframes swap { from { opacity: .2; transform: scale(1.04); } }
html.motion .vi-card.on { animation: card-in 420ms var(--e); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
@supports (animation-timeline: view()) {
  html.motion .hero-phone .phone { animation: drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  @keyframes drift { to { transform: translateY(-14%); } }
  html.motion .ga-tiles img:nth-child(odd) { animation: tile linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes tile { from { transform: translateY(24px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nf-logo { display: block; height: 28px; width: auto; margin-bottom: 6px; }

/* doc pages: the header is fixed, so the page starts below it */
body[data-doc] { padding-top: var(--head, 72px); }
html:has(body[data-doc]) { scroll-padding-top: calc(var(--head) + 16px); }

/* 21 Nov 2026 audit: footer and back links reach the 24px WCAG 2.2 target size (were 23px). */
.nf-col a, .nh-nav a { display: inline-flex; align-items: center; min-height: 24px; }
.back { min-height: 24px; }
