/* Web fonts (self-hosted woff2, font-src 'self') and the metric-matched fallbacks that hold the layout while they load.
   Latin: Barlow (SIL OFL, /fonts/licenses/barlow-OFL.txt), a DIN-like grotesque, copied from packages/wadi (same files and licences).
   Arabic and Kurdish: Noto Kufi Arabic (SIL OFL), for Arabic and Kurdish Sorani; subset to the Arabic block
   (every Kurdish letter, all shaping kept) and to weights 400-700, about 30 KB. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/fonts/barlow-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/fonts/barlow-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Barlow Condensed (SIL OFL, same family and licence): the display face for Latin headings, 600 */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Cormorant Garamond (SIL OFL, /fonts/licenses/cormorant-garamond-OFL.txt, from @fontsource 5.3): the display face for
   Latin headings since the premium pass (2026-11-29), 500 upright and 500 italic (the gold accent words) */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Georgia scaled toward Cormorant's narrower, smaller-eyed letters (approximate, not measured) so the swap moves little */
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; size-adjust: 84%; ascent-override: 110%; descent-override: 32%; line-gap-override: 0%; }
@font-face {
  font-family: "Noto Kufi Arabic"; font-weight: 400 700; font-display: swap;
  src: url("/fonts/noto-kufi-arabic-ku-ar-400-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
/* Arial resized to the web fonts' measured widths and vertical metrics (fontTools against Arial), so the swap does not move
   the layout: Barlow Regular for text, Barlow Condensed Bold (against Arial Bold) for display, Noto Kufi for Arabic script. */
@font-face { font-family: "Display Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 700; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; size-adjust: 76.1%; ascent-override: 131.4%; descent-override: 26.3%; line-gap-override: 0%; }
@font-face { font-family: "Body Fallback"; src: local("Arial"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; size-adjust: 96.5%; ascent-override: 103.6%; descent-override: 20.7%; line-gap-override: 0%; }
@font-face { font-family: "Arabic Fallback"; src: local("Arial"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; size-adjust: 124.8%; ascent-override: 102.7%; descent-override: 49.3%; line-gap-override: 0%; }

/* Base layer on the token contract (theme.css): reset, layout, the kit's shared parts, the form. Logical properties only,
   so Arabic and Kurdish (RTL) mirror without extra rules. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--t-body)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-inline-size: 100%; block-size: auto; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2 { font-family: var(--font-display); line-height: var(--lh-display); margin-block: 0 0.5em; }
h1 { font-size: var(--t-title); }
h2 { font-size: var(--t-h2); }
.lead { font-size: var(--t-lead); color: var(--muted); max-inline-size: 60ch; }
.wrap { inline-size: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.narrow { --wrap: 44rem; }

/* Kit parts: skip link, preview bar, developer credit */
.skip-link { position: absolute; inset-inline-start: var(--gap); inset-block-start: var(--gap); padding: 0.5rem 1rem; background: var(--fg); color: var(--bg); z-index: 10; }
.skip-link:not(:focus) { inline-size: 1px; block-size: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.preview-bar { display: flex; gap: 1rem; align-items: center; justify-content: center; padding: 0.5rem 1rem; background: #FFE58A; color: #1A1206; font-size: var(--t-small); }
.foot-dev { font-size: var(--t-small); color: var(--muted); }
.foot-dev a { color: inherit; }

/* Frame */
.site-head { border-block-end: 1px solid var(--line); }
.head-in { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; justify-content: space-between; padding-block: 1rem; }
.head-in nav { display: flex; gap: var(--gap); align-items: center; }
.brand { font: 700 1.25rem var(--font-display); color: var(--fg); text-decoration: none; }
.langs a[aria-current] { font-weight: 700; text-decoration: none; }
.site-foot { margin-block-start: var(--gap-section); padding-block: 2rem; border-block-start: 1px solid var(--line); background: var(--s1); }
.contact-lines div { display: flex; gap: 0.5rem; }
.contact-lines dd { margin: 0; }

/* Sections */
.hero, .page { padding-block: var(--gap-section); }
.button { display: inline-block; padding: 0.75rem 1.5rem; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter var(--dur-1) var(--ease-out); }
.button:hover { filter: brightness(1.1); }

/* Form */
.form textarea { resize: vertical; }
.form { display: grid; gap: 0.35rem; accent-color: var(--brass, var(--accent)); caret-color: var(--brass, var(--accent)); }
.form label { font-weight: 600; margin-block-start: 0.75rem; }
.form input, .form select, .form textarea { inline-size: 100%; padding: 0.7rem 0.8rem; border: 1px solid color-mix(in srgb, var(--fg) 42%, transparent); /* at least 3:1 against the ground, so the fields' edges show */ border-radius: var(--radius); background: var(--bg); color: var(--fg); font: inherit; }
.form [aria-invalid="true"] { border-color: var(--error); }
.form .check { display: flex; gap: 0.5rem; align-items: start; font-weight: 400; }
.form .check input { flex: none; inline-size: 1.15rem; block-size: 1.15rem; margin-block-start: 0.2rem; }
.form .button { justify-self: start; margin-block-start: 1rem; }
.error, .form-error { color: var(--error); margin: 0; }
.trap { position: absolute; inset-inline-start: -100vw; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* 4Jusoor frame and home page (design-system/MASTER.md §4-5), "Dusk over the river". Logical properties only, so Arabic
   and Kurdish mirror. Scenes: a tall section, a sticky stage (still image + canvas the script scrubs), the words as
   ordinary steps scrolling over it. "The Span": each later part rises through a bridge arch (clip-path driven by --span,
   which client/span.ts sets from 0 to 1 during the crossing; without script it stays 1, the full picture) with a brass
   deck line on its edge. No inline styles (CSP): the script sets canvas pixels, one custom property and classes. */

/* ---------- Browser surfaces ---------- */
html { scrollbar-color: #2B333C var(--bg); caret-color: var(--brass); }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
a { text-underline-offset: 0.2em; }

/* ---------- Type ---------- */
/* Premium pass (2026-11-29): Latin headings in Cormorant Garamond, sentence case, the gold words set in italic; Arabic
   script stays in Noto Kufi at 600 (no italic, no tracking). Small labels: Barlow, tracked capitals. */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.012em; text-wrap: balance; }
html:lang(ar) :is(h1, h2, h3), html:lang(ckb) :is(h1, h2, h3) { font-weight: 600; letter-spacing: 0; }
h3 { font: 500 clamp(1.75rem, 1.25rem + 1.3vw, 2.5rem)/1.05 var(--font-display); margin: 0 0 0.6rem; }
html:lang(ar) h3, html:lang(ckb) h3 { line-height: 1.4; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.accent { color: var(--brass); font-style: italic; }
html:lang(ar) .accent, html:lang(ckb) .accent { font-style: normal; }
.lead { color: color-mix(in srgb, var(--fg) 82%, transparent); font-size: var(--t-lead); line-height: 1.55; }
.lead strong { color: var(--fg); font-weight: 600; }
p { text-wrap: pretty; }
.num { font: 600 0.8125rem/1 var(--font-label); letter-spacing: 0.22em; color: var(--brass); font-variant-numeric: tabular-nums; }
.sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.icon { inline-size: 24px; block-size: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 1.1rem; color: var(--brass); }

/* ---------- Buttons: solid gold, the only action colour; tracked capitals, quiet hover ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-block-size: 48px; padding: 0 1.75rem; border-radius: 999px; background: var(--brass); color: var(--ink); font: 600 0.8125rem/1 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
html:lang(ar) .button, html:lang(ckb) .button { letter-spacing: 0; font-size: 0.9375rem; }
.button:hover { filter: none; background: #FFDB7A; box-shadow: 0 14px 34px -14px var(--glow); }
.button:active { translate: 0 1px; }
.button.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px rgb(247 243 236 / 0.34); }
.button.ghost:hover { background: rgb(247 243 236 / 0.08); color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass-soft); }
.button.small { min-block-size: 44px; padding: 0 1.2rem; font-size: 0.8125rem; white-space: nowrap; }
@media (max-width: 36rem) { .brand span { display: none; } .head-in { gap: 0.6rem; } }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2.5rem 0 0; }

/* ---------- Header ---------- */
.site-head { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 40; border: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 85%, transparent), color-mix(in srgb, var(--bg) 0%, transparent)); } /* taste-skill-ignore: neutral scrim under text on footage */
.site-head { transition: background var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
/* Past the first screen the header turns solid ink with a hairline, so it never muddies the ivory band (client/main.ts) */
.site-head.is-solid { background: color-mix(in srgb, var(--bg) 96%, transparent); box-shadow: 0 1px 0 var(--line); }
/* The header sits on the content's grid: one pair of margins for the whole page */
.head-in { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 2.25rem); inline-size: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--fg); text-decoration: none; font: 500 1.45rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; }
.mark { inline-size: 32px; block-size: 32px; fill: var(--brass); flex: none; } /* the emblem: the 4 on its bridge (Layout.tsx) */
.nav { display: flex; gap: clamp(1.25rem, 2.8vw, 2.5rem); margin-inline-start: auto; }
/* The menu (2026-11-29): sentence case in the body face, untracked, at a size that reads; the part being read is marked
   by the brand's own sign, a small gold bridge (an arch on its deck line) under the word, drawn in from the middle */
.nav a, .foot-nav a { color: var(--fg); text-decoration: none; font: 500 0.9375rem/1 var(--font-body); letter-spacing: 0; text-transform: none; opacity: 0.82; transition: opacity var(--dur-1), color var(--dur-1); }
html:lang(ar) .nav a, html:lang(ckb) .nav a { font-size: 1rem; }
.nav a:hover { opacity: 1; color: var(--brass); }
/* Every header and footer link is a 44 px tall target; the logo too */
.nav a, .foot-nav a, .brand { display: inline-flex; align-items: center; min-block-size: 44px; }
/* The menu follows the wordmark and the language and enquiry keep the far end, so the hero's gold edge runs up to the
   top of the screen through the empty middle of the header and never crosses a link (it used to fade out under them) */
.nav { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); margin-inline-start: clamp(2rem, 4.5vw, 4.5rem); }
.lang-menu { margin-inline-start: auto; }
.nav a { position: relative; }
.nav a::before, .nav a::after { content: ""; position: absolute; inset-inline: 50%; translate: -50% 0; pointer-events: none; transition: scale var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
[dir="rtl"] .nav a::before, [dir="rtl"] .nav a::after { translate: 50% 0; }
/* the deck: a gold line the width of the word */
.nav a::after { inline-size: 100%; inset-block-end: 6px; block-size: 1px; background: var(--brass); scale: 0 1; }
/* the arch: a shallow half-ellipse rising from the deck, a third of the word wide */
.nav a::before { inline-size: 34%; inset-block-end: 6px; block-size: 6px; border: 1px solid var(--brass); border-block-end: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: 0; scale: 0.4; transform-origin: 50% 100%; }
.nav a:hover::after { scale: 0.5 1; }
.nav a[aria-current] { opacity: 1; color: var(--brass); }
.nav a[aria-current]::after { scale: 1 1; }
.nav a[aria-current]::before { opacity: 1; scale: 1; }
/* The language menu: the language on screen with a globe, a small panel with the other two below it */
.lang-menu { position: relative; flex: none; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 0.45rem; min-block-size: 44px; padding-inline: 0.25rem; list-style: none; cursor: pointer; color: var(--fg); font: 500 0.9375rem/1 var(--font-body); opacity: 0.82; transition: opacity var(--dur-1), color var(--dur-1); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { opacity: 1; color: var(--brass); }
.lang-menu svg { fill: none; stroke: currentColor; stroke-width: 1.3; flex: none; }
.lang-globe { inline-size: 18px; block-size: 18px; }
.lang-caret { inline-size: 12px; block-size: 12px; stroke-width: 1.6; transition: rotate var(--dur-2) var(--ease-out); }
.lang-menu[open] .lang-caret { rotate: 180deg; }
.head-in .lang-list { flex-direction: column; align-items: stretch; gap: 0; }
.lang-list { position: absolute; inset-block-start: calc(100% + 0.35rem); inset-inline-end: 0; z-index: 2; display: grid; min-inline-size: 10rem; padding: 0.4rem; border-radius: 14px; background: var(--bg); box-shadow: 0 0 0 1px rgb(251 198 58 / 0.32), 0 24px 48px -20px rgb(1 14 12 / 0.8); }
.lang-list a { display: flex; align-items: center; min-block-size: 44px; padding-inline: 0.85rem; border-radius: 10px; color: var(--fg); text-decoration: none; font: 500 1rem/1 var(--font-body); }
.lang-list a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--brass); }
/* The enquiry: a gold outline, filled gold on hover */
.head-cta { display: inline-flex; align-items: center; gap: 0.55rem; flex: none; min-block-size: 44px; padding-inline: 1.15rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--brass); color: var(--brass); text-decoration: none; font: 600 0.9375rem/1 var(--font-body); white-space: nowrap; transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.head-cta svg { inline-size: 15px; block-size: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: translate var(--dur-2) var(--ease-out); }
[dir="rtl"] .head-cta svg { scale: -1 1; }
.head-cta:hover { background: var(--brass); color: var(--ink); }
.head-cta:hover svg { translate: 3px 0; }
[dir="rtl"] .head-cta:hover svg { translate: -3px 0; }
@media (max-width: 62rem) { .head-in .nav { display: none; } .lang-menu { margin-inline-start: auto; } }
/* Phones: one header row in every language: the emblem, the language, the enquiry */
.head-in { flex-wrap: nowrap; }
@media (max-width: 30rem) { .brand span { display: none; } .head-in { gap: 0.5rem; } .head-cta { padding-inline: 0.9rem; font-size: 0.875rem; } .head-cta svg { display: none; } .lang-menu summary { font-size: 0.875rem; } }
@media (prefers-reduced-motion: reduce) { .nav a::before, .nav a::after, .lang-caret, .head-cta, .head-cta svg { transition: none; } }
.page { padding-block-start: calc(var(--gap-section) + 3rem); }

/* ---------- Scenes ---------- */
.scene { position: relative; z-index: 1; }
.scene-explode { z-index: 2; } .scene-walk { z-index: 3; } .scene-flats { z-index: 4; } .scene-view { z-index: 5; }
.stage { position: sticky; inset-block-start: 0; block-size: 100svh; }
.film { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
.film img, .film canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; }
.film canvas { opacity: 0; transition: opacity 0.5s var(--ease-out); }
.film canvas.is-ready { opacity: 1; }
.scrim { position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--bg) 80%, transparent), color-mix(in srgb, var(--bg) 18%, transparent) 58%, color-mix(in srgb, var(--bg) 0%, transparent)); } /* taste-skill-ignore: neutral scrim under text on footage */
[dir="rtl"] .scrim { background: linear-gradient(to left, color-mix(in srgb, var(--bg) 80%, transparent), color-mix(in srgb, var(--bg) 18%, transparent) 58%, color-mix(in srgb, var(--bg) 0%, transparent)); } /* taste-skill-ignore: neutral scrim under text on footage */
.stage + .steps, .stage + .crossing { margin-block-start: -100svh; }
.steps { position: relative; z-index: 1; }
.crossing { block-size: 100svh; }
/* A scene followed by a bridge crossing keeps its picture pinned until the next arch is fully open (client/span.ts) */
@media (prefers-reduced-motion: no-preference) { .scene:has(+ .scene.spans) > .crossing:last-child { block-size: 200svh; } }
.step { min-block-size: 72svh; display: flex; flex-direction: column; justify-content: center; }

/* The Span: a later scene overlaps the one before by one screen and rises through a bridge arch. --span 0 = closed,
   1 = full screen; the brass deck line is a drop-shadow on the stage, drawn only while the arch is moving. */
.scene.spans { margin-block-start: -100svh; }
.spans .film { clip-path: ellipse(calc(16% + var(--span, 1) * 140%) calc(var(--span, 1) * 178%) at 50% 100%); }
.spans .stage.is-crossing { /* taste-skill-ignore: the bridge deck line, the page's one idea */ filter: drop-shadow(0 -1.5px 0 var(--brass)) drop-shadow(0 -10px 18px var(--glow)); }
.span-marker { position: fixed; z-index: 45; left: 50%; inset-block-end: 1.4rem; translate: -50% 8px; margin: 0; display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1rem; border: 1px solid var(--brass-soft); border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--brass); font: 600 0.8125rem/1 var(--font-label); letter-spacing: 0.22em; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease-out), translate 0.3s var(--ease-out); }
.span-marker.is-on { opacity: 1; translate: -50% 0; }
.span-marker .icon { inline-size: 30px; block-size: 12px; }

/* Cards over the film: a dark smoked panel, a fine hairline, one radius; the card in view rises and its hairline turns gold.
   Short captions (the walk's places, the "real" line) are not boxed at all: large serif words on the film's shade. */
.card { max-inline-size: 29rem; margin: 0; padding: 2rem 2.25rem 2.1rem; border-radius: 14px; background: rgb(3 28 25 / 0.6); border: 1px solid rgb(247 243 236 / 0.1); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6); backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15); transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out); }
.card p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: color-mix(in srgb, var(--fg) 84%, transparent); }
.scene.is-live .step .card { translate: 0 14px; }
.scene.is-live .step.is-on .card { translate: 0 0; background: rgb(3 28 25 / 0.72); border-color: rgb(251 198 58 / 0.42); }
.card-top .icon { inline-size: 22px; block-size: 22px; stroke-width: 1.25; }
@media (prefers-reduced-transparency: reduce) { .card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--s1); } }
/* Captions: no panel, a short gold rule above the words */
.scene .stop .card, .scene .real-line .card { max-inline-size: 16ch; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--fg); font: 500 var(--t-h2)/1.02 var(--font-display); letter-spacing: -0.012em; text-wrap: balance; text-shadow: 0 2px 28px rgb(3 28 25 / 0.55); }
.scene.is-live .step.is-on:is(.stop, .real-line) .card { background: none; border-color: transparent; }
.scene .stop .card::before, .scene .real-line .card::before { content: ""; display: block; inline-size: 3rem; block-size: 1px; margin-block-end: 1.5rem; background: var(--brass); }
html:lang(ar) :is(.stop, .real-line) .card, html:lang(ckb) :is(.stop, .real-line) .card { font-weight: 600; line-height: 1.35; letter-spacing: 0; }

/* Hero */
.scene-hero .step { min-block-size: 170svh; justify-content: flex-start; padding-block: 26svh 0; }
/* The headline at the scale of the picture: two lines at every width ("From master plan / to your home.") */
.hero-copy h1 { margin: 0; font-size: clamp(2.75rem, 0.6rem + 6.6vw, 8rem); line-height: 0.92; letter-spacing: -0.02em; max-inline-size: 7.2em; text-wrap: wrap; }
html:lang(ar) .hero-copy h1, html:lang(ckb) .hero-copy h1 { font-size: var(--t-title); line-height: var(--lh-display); letter-spacing: 0; max-inline-size: 16ch; }
.hero-copy .lead { max-inline-size: 30rem; margin: 2rem 0 0; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); color: var(--fg); }
/* The scroll cue: a thin line with a gold drop running down it, the word beside it */
.scroll-hint { display: flex; align-items: center; gap: 0.9rem; margin-block-start: 3.5rem; font-size: 0.8125rem; color: color-mix(in srgb, var(--fg) 75%, transparent); }
.scroll-hint .cue { position: relative; inline-size: 1px; block-size: 56px; overflow: hidden; background: rgb(247 243 236 / 0.22); }
.scroll-hint .cue::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 40%; background: var(--brass); animation: cue 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes cue { from { translate: 0 -100%; } to { translate: 0 250%; } }

/* Section heads inside scenes */
.step-head { min-block-size: 40svh; justify-content: flex-end; padding-block-end: 6svh; }
.step-head h2 { font-size: var(--t-h2); max-inline-size: 16ch; }
.step-head .lead { max-inline-size: 34rem; margin: 0; }
/* The building's heading sits on a neutral shade over the film (the photo-scrim exception), not on text shadows */
.scene-explode .film::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, color-mix(in srgb, var(--bg) 70%, transparent), color-mix(in srgb, var(--bg) 0%, transparent) 50%), linear-gradient(to left, color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 0%, transparent) 32%); } /* taste-skill-ignore: neutral scrim under text on footage */
[dir="rtl"] .scene-explode .film::after { background: linear-gradient(to left, color-mix(in srgb, var(--bg) 70%, transparent), color-mix(in srgb, var(--bg) 0%, transparent) 50%), linear-gradient(to right, color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 0%, transparent) 32%); } /* taste-skill-ignore: neutral scrim under text on footage */

/* Explode: the chapter rail at the inline end */
/* The five stages set large at the inline end: the stage in view turns brass and steps forward (order by position) */
.rail { position: absolute; inset-inline-end: max(var(--gap), (100% - var(--wrap)) / 2); inset-block-start: 50%; translate: 0 -50%; margin: 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; text-align: end; font: 500 clamp(1.75rem, 1.1rem + 1.6vw, 3rem)/1.1 var(--font-display); color: rgb(247 243 236 / 0.42); z-index: 2; }
.rail li { transition: color var(--dur-2), translate var(--dur-2) var(--ease-out); }
.rail li.is-on { color: var(--brass); font-style: italic; translate: -0.5rem 0; }
html:lang(ar) .rail li.is-on, html:lang(ckb) .rail li.is-on { font-style: normal; }
[dir="rtl"] .rail li.is-on { translate: 0.5rem 0; }

/* Flats: the whole floor stays in view (contained); cards at the inline end, the tower outline at the inline start */
/* The dollhouse floats in a lamp-lit emerald room: its own dark backdrop fades out at the edges (mask), so no rectangle shows */
.scene-flats .film { background: radial-gradient(60% 70% at 50% 55%, #0B3B34 0%, #052A24 55%, #021A16 100%); }
.scene-flats .film img, .scene-flats .film canvas { object-fit: contain; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); mask-composite: intersect; }
/* Behind the plan, a soft glow in the render's own backdrop colour (#0E1417, sampled from the frames) that fades into the
   emerald: the plan's softened edges melt into it, so no box shows and the plan itself stays solid through every change */
.scene-flats .film::before { content: ""; position: absolute; inset: 8% 12%; border-radius: 50%; background: #0E1417; box-shadow: 0 0 90px 60px #0E1417; pointer-events: none; }
/* A side shade under the homes' heading and lead, so the words never sit on the busy floor plan */
.scene-flats .film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgb(2 26 22 / 0.8), rgb(2 26 22 / 0.3) 30%, rgb(2 26 22 / 0) 42%); } /* taste-skill-ignore: neutral scrim under text on footage */
[dir="rtl"] .scene-flats .film::after { background: linear-gradient(to right, rgb(2 26 22 / 0.8), rgb(2 26 22 / 0.3) 30%, rgb(2 26 22 / 0) 42%); } /* taste-skill-ignore: neutral scrim under text on footage */
.flat { align-items: flex-end; }
.flat .card { max-inline-size: 24rem; display: grid; gap: 0.75rem; }
/* Desktop: the floor plan keeps the screen's inline-start side (logical insets: the right in Arabic and Kurdish, which
   had kept it on the left under the cards); the homes' title and cards keep a column at the inline end, so no word ever
   lies on the plan (the picker sits at the top of that column) */
@media (min-width: 52.01rem) {
  .scene-flats { --col: min(26rem, 32vw); --edge: max(var(--gap), (100% - var(--wrap)) / 2); }
  /* The plan's box is exactly 16:9 (the frames' shape), so the edge fade falls on the picture's own edges */
  .scene-flats { --plan-w: min(calc(100% - var(--edge) - var(--col) - 2rem), calc((100svh - 7rem) * 16 / 9)); }
  .scene-flats .film img, .scene-flats .film canvas { inset: auto; inset-block-start: 50%; inset-inline-start: 0; inline-size: var(--plan-w); block-size: auto; aspect-ratio: 16 / 9; translate: 0 calc(-50% + 1.75rem); }
  .scene-flats .film::before { inset: auto; inset-block-start: 50%; inset-inline-start: calc(var(--plan-w) * 0.08); inline-size: calc(var(--plan-w) * 0.84); aspect-ratio: 16 / 9; translate: 0 calc(-50% + 1.75rem); }
  .scene-flats .step-head { align-items: flex-end; }
  .scene-flats .step-head > * { inline-size: var(--col); max-inline-size: none; }
  .scene-flats .step-head h2 { font-size: clamp(2.25rem, 1rem + 2.6vw, 3.75rem); }
  .flat .card { inline-size: var(--col); max-inline-size: none; }
}
.flat .card .button { justify-self: start; margin-block-start: 0.5rem; }
.area span { color: var(--muted); margin-inline-end: 0.4rem; }
/* The live thing: pick a home and the floor rebuilds into it (links to the cards; the film follows the scroll) */
.picker { position: absolute; z-index: 2; inset-block-start: 5.5rem; inset-inline-end: max(var(--gap), (100% - var(--wrap)) / 2); display: flex; flex-wrap: wrap; gap: 0.4rem; }
.picker a { display: inline-flex; align-items: center; min-block-size: 44px; padding: 0 1.2rem; border-radius: 999px; background: rgb(3 28 25 / 0.6); box-shadow: inset 0 0 0 1px rgb(247 243 236 / 0.14); color: var(--fg); text-decoration: none; font: 500 0.8125rem/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; transition: background var(--dur-1), color var(--dur-1), box-shadow var(--dur-1); }
html:lang(ar) .picker a, html:lang(ckb) .picker a { letter-spacing: 0; font-size: 0.875rem; }
.picker a:hover { color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass-soft); }
.picker a[aria-current] { background: var(--brass); color: var(--ink); }
.tower { position: absolute; inset-inline-start: clamp(1rem, 3vw, 2.5rem); inset-block-end: clamp(1.5rem, 5svh, 3rem); inline-size: 42px; }
.floor { fill: none; stroke: color-mix(in srgb, var(--fg) 40%, transparent); stroke-width: 0.8; transition: fill var(--dur-2), stroke var(--dur-2); }
.floor.is-on { fill: var(--brass); stroke: var(--brass); }

/* ---------- Bands ---------- */
.band { position: relative; padding-block: var(--gap-section); }
.band h2 { font-size: var(--t-h2); max-inline-size: 18ch; }

/* How to invest: the limestone day band. Bridge 4: its arch rises into the last scene, widens and sinks into the band. */
.path { z-index: 6; margin-block-start: -100svh; background: var(--paper-bg); color: var(--fg); }
.path .arch { /* taste-skill-ignore: bridge 4's deck line */ opacity: clamp(0, calc((1 - var(--span, 1)) * 5), 1); position: absolute; inset-inline: 0; inset-block-end: 100%; block-size: 24svh; pointer-events: none; filter: drop-shadow(0 -1.5px 0 var(--brass)) drop-shadow(0 -10px 18px var(--glow)); }
.path .arch i { position: absolute; inset: 0; background: var(--paper-bg); clip-path: ellipse(calc(28% + var(--span, 1) * 80%) 100% at 50% 100%); translate: 0 calc(var(--span, 1) * 100%); }
.path .lead { color: var(--muted); margin: 0; }
.path ::selection { background: var(--brass); color: var(--ink); }
/* The four steps as a ruled list: the step's number in gold capitals, a hairline above each (the order is the content) */
.path-steps { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; counter-reset: step; }
.path-steps li { display: grid; gap: 0.5rem; padding-block: 1.75rem; border-block-start: 1px solid var(--line); counter-increment: step; }
.path-steps li:last-child { border-block-end: 1px solid var(--line); }
.path-steps li::before { content: counter(step, decimal-leading-zero); font: 600 0.8125rem/1 var(--font-label); letter-spacing: 0.22em; color: var(--brass); font-variant-numeric: tabular-nums; }
.path-steps li h3 { font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.75rem); margin: 0; color: var(--fg); }
.path-steps li p { font-size: 1.0625rem; max-inline-size: 34rem; color: var(--muted); margin: 0; }
.path :focus-visible { outline-color: var(--brass); }

/* Enquire */
.cta { z-index: 7; background: var(--field); text-align: center; overflow: hidden; } /* taste-skill-ignore: the owner's chosen forest glow (Amahra style) */
/* The balcony at dusk as a muted loop behind the closing words (client/home.ts plays it while on screen) */
.cta-loop { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: 0.7; }
.cta .wrap { display: grid; justify-items: center; }
.cta-span { inline-size: 96px; block-size: 36px; fill: none; stroke: var(--brass); stroke-width: 0.8; stroke-linecap: round; margin-block-end: 1.75rem; }
.cta h2 { max-inline-size: 20ch; text-shadow: 0 2px 30px rgb(3 28 25 / 0.5); }
.cta .lead { margin-block-end: 2.5rem; color: var(--fg); max-inline-size: 36rem; }
/* The small print sits on its own dark strip, so it reads at 7:1 over any frame of the film */

/* ---------- Footer: the wordmark large, the chapters, then the small print on a hairline ---------- */
.site-foot { position: relative; z-index: 8; margin: 0; border: 0; padding-block: clamp(3.5rem, 2rem + 4vw, 6rem) 2rem; background: var(--s1); }
.foot-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; padding-block-end: clamp(2.5rem, 1.5rem + 3vw, 4rem); border-block-end: 1px solid var(--line); }
.brand-foot { display: flex; align-items: center; gap: 0.22em; margin: 0; font: 500 clamp(3rem, 1.5rem + 5vw, 6rem)/0.9 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
.brand-foot .mark-foot { inline-size: 1.05em; block-size: 1.05em; fill: var(--brass); flex: none; translate: 0 -0.04em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.foot-nav a { color: var(--fg); text-decoration: none; font: 500 1rem/1 var(--font-body); letter-spacing: 0; text-transform: none; opacity: 0.82; transition: opacity var(--dur-1), color var(--dur-1); } /* sentence case, as the header's menu */
.foot-nav a:hover { opacity: 1; color: var(--brass); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block-start: 1.75rem; }
.foot-in .contact-lines { margin: 0; }
.foot-in .contact-lines:empty { display: none; }
.copy { margin: 0; color: var(--muted); font-size: 0.8125rem; }
.site-foot .foot-dev { font-size: 0.8125rem; }
.site-foot .foot-dev a { display: inline-flex; align-items: center; min-block-size: 44px; }

/* ---------- Small screens: cards at the bottom, over a bottom shade ---------- */
@media (max-width: 52rem) {
  .step { justify-content: flex-end; padding-block-end: 8svh; }
  .flat { align-items: stretch; }
  .card, .flat .card { max-inline-size: none; }
  .rail { display: none; }
  .scrim, [dir="rtl"] .scrim { background: linear-gradient(to top, color-mix(in srgb, var(--bg) 86%, transparent), color-mix(in srgb, var(--bg) 10%, transparent) 60%); } /* taste-skill-ignore: neutral scrim under text on footage */
  .tower { display: none; }
  /* Phone: the plan in the top 40%, the picker in one row under it, the words fade out as they rise past the picker
     (client/home.ts flatsClear), so none is ever read on top of the plan */
  .picker { inset-inline: var(--gap); inset-block-start: calc(4.5rem + 56.25vw + 0.5rem); flex-wrap: nowrap; gap: 0.3rem; }
  .picker a { padding: 0 0.6rem; letter-spacing: 0; text-transform: none; font-size: 0.875rem; flex: 1 1 auto; justify-content: center; }
  /* Each name on one line; when the names are long (Kurdish) the row scrolls sideways instead of breaking them */
  .picker { overflow-x: auto; scrollbar-width: none; }
  .picker::-webkit-scrollbar { display: none; }
  .picker a { white-space: nowrap; flex: 0 0 auto; }
  .scene-flats .film img, .scene-flats .film canvas { inset: 4.5rem 0 auto; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9; }
  .scene-flats .film::before { inset: calc(4.5rem + 5vw) 8% auto; block-size: auto; aspect-ratio: 16 / 7; box-shadow: 0 0 50px 30px #0E1417; }
  .flat .card { gap: 0.5rem; padding: 1.25rem 1.4rem 1.4rem; }
  .flat .card h3 { margin: 0; }
  .scene-flats .film::after, [dir="rtl"] .scene-flats .film::after { background: linear-gradient(to top, rgb(14 19 22 / 0.9), rgb(14 19 22 / 0) 50%); } /* taste-skill-ignore: neutral scrim under text on footage */
  .flat { justify-content: flex-end; }
  .span-marker { inset-block-end: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scene.is-live .step .card { translate: none; }
  .spans .stage.is-crossing { /* taste-skill-ignore: the bridge deck line, the page's one idea */ filter: none; }
}

/* Lenis smooth scroll (client/main.ts): its required base rules */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- The signature edge (2026-11-29; src/layouts/Chevron.tsx) ----------
   The hero's chevron, static: a rounded point, a gold line on it, two lighter green bands stepping away from it. It
   closes the page (the footer rising, on every page) and brings the limestone band down into the enquiry. Replaces
   the earlier S-curve waves, so the page's structure speaks one edge language. */
.chevron { position: absolute; inset-inline: 0; inline-size: 100%; block-size: clamp(56px, 8vw, 120px); pointer-events: none; overflow: visible; }
[dir="rtl"] .chevron { scale: -1 1; }
.chevron .cv-line { fill: none; stroke: var(--brass); stroke-width: 2; } /* taste-skill-ignore: the signature gold edge */
.chevron .cv-inner { fill: color-mix(in srgb, var(--s1), #12805C 30%); }
.chevron .cv-outer { fill: color-mix(in srgb, var(--s1), #12805C 15%); }
.chevron-up .cv-ground { fill: var(--s1); }
.chevron-down .cv-ground { fill: var(--paper-bg); }
.site-foot > .foot-chevron { inset-block-end: calc(100% - 1px); z-index: 1; }
.cta-chevron { inset-block-start: -1px; z-index: 4; }
.cta { overflow: visible; }
.cta .cta-loop { clip-path: inset(0); }
.path .wrap, .cta .wrap { position: relative; z-index: 1; }

.btn-icon { inline-size: 1.05em; block-size: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; margin-inline-start: 0.35rem; transition: translate var(--dur-1) var(--ease-out); }
.btn-icon.ring { margin-inline: 0 0.45rem; inline-size: 1.25em; block-size: 1.25em; vertical-align: -0.25em; }
.button:hover .btn-icon:not(.ring) { translate: 3px 0; }
[dir="rtl"] .btn-icon:not(.ring) { scale: -1 1; }
[dir="rtl"] .button:hover .btn-icon:not(.ring) { translate: -3px 0; }
/* Fine grain over the whole page (3.5%), so the greens read as a printed, lit surface rather than flat screen colour */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url("/grain.svg") repeat; background-size: 160px; opacity: 0.035; }

/* ---------- The hero: the tower at blue hour (2026-11-29, after the "Aurelia" reference) ----------
   One full-bleed photograph; the words sit on its open sky (left in LTR, the picture mirrors nothing: in RTL the words
   move to the right and a matching shade follows them). A soft shade on the reading side and at the foot keeps white
   text at 7:1 or more over the sky. No scroll-linked zoom: the picture stays perfectly still while the stage is pinned. */
.scene-hero .step { min-block-size: 115svh; padding-block: 24svh 0; }
.scene-hero .film img, .scene-hero .film canvas, .hero-film { object-fit: cover; object-position: 78% 32%; } /* the river film: the tower stands at about 81 % of the width */
.scene-hero .scrim { display: block; background:
  linear-gradient(to right, rgb(3 28 25 / 0.7) 0%, rgb(3 28 25 / 0.34) 40%, transparent 62%),
  linear-gradient(to top, rgb(5 48 42 / 0.85) 0%, transparent 28%); }
[dir="rtl"] .scene-hero .scrim { background:
  linear-gradient(to left, rgb(3 28 25 / 0.7) 0%, rgb(3 28 25 / 0.34) 40%, transparent 62%),
  linear-gradient(to top, rgb(5 48 42 / 0.85) 0%, transparent 28%); }
[dir="rtl"] .scene-hero .film img, [dir="rtl"] .scene-hero .film canvas, [dir="rtl"] .hero-film { object-position: 22% 32%; scale: -1 1; }
@media (max-width: 52rem) {
  /* Phone: the tower is framed whole (it stands at about 80% of the photo's width); the words sit lower, over the shaded water */
  .scene-hero .film img, [dir="rtl"] .scene-hero .film img, .hero-film, [dir="rtl"] .hero-film { object-position: 80% 50%; scale: none; }
  .scene-hero .step { padding-block-start: 44svh; }
  .scene-hero .scrim, [dir="rtl"] .scene-hero .scrim { background: linear-gradient(to top, rgb(3 28 25 / 0.9) 0%, rgb(3 28 25 / 0.55) 45%, transparent 75%); }
}

/* Film 1 sits over its own first frame and fades in when it starts, so the swap never shows */
.hero-film { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; transition: opacity 600ms var(--ease-out); }
.hero-film.is-on { opacity: 1; }
/* The closing section: film 3 under a soft emerald veil so the words stay at 7:1 */
/* The stage holds the film, its veil (::before), the knockout and the words; the section's padding moves onto it */
.cta { padding-block: 0; }
.cta-stage { position: relative; padding-block: var(--gap-section); }
.cta-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(55% 50% at 50% 45%, rgb(3 28 25 / 0.62), rgb(3 28 25 / 0.2) 75%), linear-gradient(to bottom, rgb(3 28 25 / 0.4), transparent 40%, rgb(3 28 25 / 0.55)); }
.cta .cta-loop { z-index: 0; }
.cta .wrap { position: relative; z-index: 3; }
/* Look through the words (client/home.ts knock()): the title cut out of the emerald, the film inside the letters */
.knock, .knock-room { display: none; }
.knock { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: 2; pointer-events: none; }
.knock-fill { fill: var(--bg); }
.knock-t { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em; }
html:lang(ar) .knock-t, html:lang(ckb) .knock-t { font-weight: 700; letter-spacing: 0; }
.cta.has-knock .knock { display: block; }
.cta.has-knock .knock-room { display: block; block-size: 170svh; }
.cta.has-knock .cta-stage { position: sticky; inset-block-start: 0; min-block-size: 100svh; display: grid; align-content: center; padding-block: 0; }
.cta.has-knock .cta-stage .wrap { opacity: 0; translate: 0 26px; transition: opacity 0.7s var(--ease-out), translate 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.cta.has-knock.knock-done .cta-stage .wrap { opacity: 1; translate: 0 0; }
/* While the letters hold the film, it plays at full strength; the veil for the words comes in with them */
.cta.has-knock .cta-stage::before { transition: opacity 0.7s var(--ease-out); }
.cta.has-knock:not(.knock-done) .cta-stage::before { opacity: 0; }
.cta.has-knock:not(.knock-done) .cta-loop { opacity: 1; }

/* "How to invest": the steps beside film 2 (the tower rising), an organic card with a gold hairline */
.path-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-block-start: 3.5rem; }
.path-grid .path-steps { margin: 0; }
.path-grid .path-steps li { grid-template-columns: 1fr; gap: 0.35rem; }
.rise { position: sticky; inset-block-start: 6rem; margin: 0; }
.rise video { display: block; inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid rgb(251 198 58 / 0.28); box-shadow: 0 30px 60px -30px rgb(2 18 16 / 0.7); background: var(--bg); }
.rise figcaption { margin-block-start: 0.85rem; font-size: var(--t-small); color: var(--muted); max-inline-size: 34rem; }
@media (max-width: 52rem) { .path-grid { grid-template-columns: 1fr; } .rise { position: static; } }

/* The view (2026-11-29): the rooftop over the river and its bridges, full bright; the words on the sky at the top */
.scene-view .step-head { min-block-size: 140svh; justify-content: flex-start; padding-block-start: 16svh; } /* a calm full screen of the view before the band rises */
.scene-view .scrim { background: linear-gradient(to bottom, rgb(3 28 25 / 0.55) 0%, rgb(3 28 25 / 0.15) 40%, transparent 60%); }
.view-copy h2 { font-size: var(--t-h2); max-inline-size: 22ch; text-shadow: 0 2px 30px rgb(3 28 25 / 0.4); }
.view-copy .accent { color: var(--brass); }
.view-copy .lead { max-inline-size: 36rem; }

/* Portrait screens: the 9:16 photograph is already framed for them; keep the tower and its rooftop in view */
@media (max-aspect-ratio: 3/4) { .scene-hero .film img, [dir="rtl"] .scene-hero .film img { object-position: 78% 30%; scale: none; } } /* the wide photograph on tall screens: keep the tower in view */

/* The climb: the words hold the first screen, then the camera rises over about one more screen of scrolling. A thin gold
   line on the far edge fills as it climbs (no floor numbers until the owner confirms the real count). */
.hero-climb { min-block-size: 120svh; }
.rise-line { position: absolute; inset-inline-end: clamp(1rem, 2.5vw, 2.25rem); inset-block: 22% 18%; inline-size: 2px; border-radius: 2px; background: rgb(247 243 236 / 0.16); pointer-events: none; }
.rise-line::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to top, var(--brass), #FCE08A); box-shadow: 0 0 12px var(--glow); transform-origin: 50% 100%; scale: 1 var(--hp, 0); }
@media (max-aspect-ratio: 3/4) { .hero-climb, .rise-line { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-climb, .rise-line { display: none; } }

/* ---------- The hero: the window (2026-11-29, after a corporate-banner reference) ----------
   client/slats.ts adds .has-slats: the film becomes the emerald panel, and the pictures (.slats) show in a window whose
   inner edge is a rounded chevron (computed clip-path), with a gold line on it (.slat-lines) and two lighter bands
   stepping towards the words (.slat-bands). On scroll the edge sweeps across onto the river film. Without script: the
   full picture with its shade, as before. */
.scene-hero .film { isolation: isolate; }
.scene-hero .slats { position: absolute; inset: 0; z-index: 1; }
.scene-hero .slats > picture { position: absolute; inset: 0; display: block; }
.scene-hero.has-slats .film { background: linear-gradient(118deg, #021C18 0%, #05302A 42%, #0A4237 72%, #0E5444 100%); } /* taste-skill-ignore: the emerald field of the reference */
.scene-hero.has-slats .scrim { display: none; }
/* The other pictures, cross-faded in the windows with a slow push-in (client/slats.ts); never over the film */
.scene-hero .slide { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; z-index: 1; opacity: 0; scale: 1.06; transition: opacity 1.4s ease, scale 6s linear; }
.scene-hero .slide.is-on { opacity: 1; scale: 1; }
.scene-hero.is-opening .slide { opacity: 0; transition-duration: 0.4s; }
.slat-lines { display: none; position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; z-index: 2; }
.has-slats .slat-lines { display: block; }
.slat-lines path { fill: none; stroke: var(--brass); stroke-width: 2; } /* taste-skill-ignore: the window's gold edge */
.slat-bands { display: none; position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; z-index: 0; }
.has-slats .slat-bands { display: block; }
.slat-bands .band-outer { fill: rgb(18 128 92 / 0.16); }
.slat-bands .band-inner { fill: rgb(18 128 92 / 0.3); }
/* A soft gold glow behind the windows, on the field */
.scene-hero.has-slats .film::before { content: ""; position: absolute; inset-block: 10% 10%; inset-inline: 45% -10%; background: radial-gradient(closest-side, rgb(251 198 58 / 0.14), transparent); pointer-events: none; } /* taste-skill-ignore: lamp light on the field */
@media (max-aspect-ratio: 1/1) { .scene-hero.has-slats .film::before { inset: 0 -10% 45%; } }
@media (prefers-reduced-motion: reduce) { .scene-hero .slide { transition: none; } }

/* The opening: the capsules grow (client/slats.ts), then the words build and rise, then the header arrives */
/* Text that forms: pieces turn up into place like panels being set (client/letters.ts splits the heading) */
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-split] { perspective: 900px; }
.pieces .w { display: inline-block; white-space: nowrap; }
.pieces .l { display: inline-block; }
[data-split="letter"] .pieces .w { transform-style: preserve-3d; }
@keyframes form { from { opacity: 0; transform: translateY(0.38em) rotateX(-88deg); } to { opacity: 1; transform: none; } }
html.js-intro .hero-copy h1[data-split] { animation: none; }
html.js-intro .hero-copy h1 :is(.l, [data-split="word"] .w) { transform-origin: 50% 100%; animation: form 0.9s cubic-bezier(0.22, 1.2, 0.36, 1) both; animation-delay: calc(1.05s + var(--i) * 30ms); }
html.js-intro .hero-copy h1[data-split="word"] .w { transform-origin: 50% 100%; animation: form 0.9s cubic-bezier(0.22, 1.2, 0.36, 1) both; animation-delay: calc(1.05s + var(--i) * 90ms); }
html.js-intro .hero-copy > * { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
html.js-intro .hero-copy > :nth-child(2) { animation-delay: 1.75s; }
html.js-intro .hero-copy > :nth-child(3) { animation-delay: 1.9s; }
html.js-intro .hero-copy > :nth-child(4) { animation-delay: 2.05s; }
html.js-intro .site-head { animation: arrive 0.7s ease-out 2.1s both; }
html.js-intro .rise-line { animation: arrive 0.7s ease-out 2.2s both; }
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
/* Section headings build word by word as they arrive (client/main.ts adds .will-build, then .is-building) */
.will-build .pieces .w { opacity: 0; }
.is-building .pieces .w { transform-origin: 50% 100%; animation: form 0.85s cubic-bezier(0.22, 1.2, 0.36, 1) both; animation-delay: calc(var(--i) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  html.js-intro .hero-copy > *, html.js-intro .hero-copy h1 *, html.js-intro .site-head, html.js-intro .rise-line, .is-building .pieces .w { animation: none; }
  .will-build .pieces .w { opacity: 1; }
  .scroll-hint .cue::after { animation: none; block-size: 100%; }
}

/* ---------- Scroll motion (2026-11-29) ----------
   Arrivals: [data-reveal] parts rise 28 px and fade in, staggered by client/main.ts; the bridge above the enquiry draws
   itself. "How to invest": the step being read is lit, the others step back (client/home.ts stepsFilm). The view: a slow
   push-in that turns level as the rooftop holds (--vp). Reduced motion: none of it, everything shown as is. */
[data-reveal] { transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), translate 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
[data-reveal].is-pending { opacity: 0; translate: 0 28px; }
.button[data-reveal] { transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), translate 0.8s cubic-bezier(0.16, 1, 0.3, 1), background var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.cta-span { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.8s; }
.cta-span.is-pending { stroke-dashoffset: 1; translate: none; }
.path-steps.is-live li { opacity: 0.4; transition: opacity 0.45s var(--ease-out), translate 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.path-steps.is-live li.is-on { opacity: 1; }
.path-steps.is-live li.is-pending { opacity: 0; }
.path-steps.is-live li::before { transition: color 0.45s; }
.path-steps.is-live li:not(.is-on)::before { color: var(--muted); }
.scene-view .film .still { scale: calc(1.1 - 0.1 * var(--vp, 1)); rotate: calc((1 - var(--vp, 1)) * -1.2deg); transform-origin: 55% 60%; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .cta-span { transition: none; }
  .scene-view .film .still { scale: none; rotate: none; }
}

/* "How to invest" head (2026-11-29): the heading beside the builder's double exposure, which drifts slowly (--pp) */
.path-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.path-head .lead { margin: 0; }
.silhouette { margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid rgb(251 198 58 / 0.28); aspect-ratio: 1080 / 1446; background: var(--bg); }
.silhouette img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; scale: 1.1; translate: 0 calc((var(--pp, 0.5) - 0.5) * -7%); }
@media (max-width: 52rem) { .path-head { grid-template-columns: 1fr; } .silhouette { max-inline-size: 24rem; } }
@media (prefers-reduced-motion: reduce) { .silhouette img { scale: none; translate: none; } }

/* The explode (2026-11-29): the film starts just under the header and is anchored at its top, so the floating roof
   garden is never under the header; above it the sky continues in the film's own top colour (#012848, sampled) */
.scene-explode .film { background: #012848; }
.scene-explode .film img.still, .scene-explode .film canvas { inset-block-start: 4.25rem; block-size: calc(100% - 4.25rem); object-position: 50% 0%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 5%); mask-image: linear-gradient(to bottom, transparent, #000 5%); }

/* The window's pictures and films (2026-11-29): solid, no fade, no backdrop, filling the frame client/slats.ts measures
   (--fx/--fy/--fw/--fh, from the start edge in Arabic and Kurdish too): on wide screens the window's full height, on
   tall ones the whole 16:9 picture, with the window, gold line and bands cut to it (--wt/--wl/--wr). As the window
   opens on scroll (--o) the frame grows to the screen. */
.scene-hero.has-slats .slats :is(img, canvas.frames, video) { inset: auto; inset-block-start: var(--fy, 0); inset-inline-start: var(--fx, 0); inline-size: var(--fw, 100%); block-size: var(--fh, 100%); object-fit: cover; }
/* Each picture aimed at its subject inside the window (wide screens fill the window's full height, so most of a 16:9
   picture's width is to spare): the share of the spare width kept to the start side. In Arabic and Kurdish the
   pictures are mirrored after this, so the same aim holds. */
.scene-hero.has-slats .slats [data-focus="100"] { object-position: 100% 50%; }
.scene-hero.has-slats .slats [data-focus="70"] { object-position: 70% 50%; }
.scene-hero.has-slats .slats [data-focus="55"] { object-position: 55% 50%; }
.scene-hero.has-slats .slats [data-focus="50"] { object-position: 50% 50%; }
.scene-hero.has-slats :is(.slats, .slat-lines, .slat-bands) { -webkit-mask-image: linear-gradient(to bottom, transparent var(--wt, -2px), #000 var(--wt, -2px), #000 var(--wb, 200%), transparent var(--wb, 200%)), linear-gradient(to right, transparent var(--wl, -2px), #000 var(--wl, -2px), #000 var(--wr, 200%), transparent var(--wr, 200%)); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent var(--wt, -2px), #000 var(--wt, -2px), #000 var(--wb, 200%), transparent var(--wb, 200%)), linear-gradient(to right, transparent var(--wl, -2px), #000 var(--wl, -2px), #000 var(--wr, 200%), transparent var(--wr, 200%)); mask-composite: intersect; }
.scene-hero video.slide { position: absolute; z-index: 1; opacity: 0; transition: opacity 1.4s ease; }
.scene-hero video.slide.is-on { opacity: 1; }
.scene-hero.is-opening video.slide { opacity: 0; transition-duration: 0.4s; }
@media (min-aspect-ratio: 1/1) { [dir="rtl"] .scene-hero video.slide { scale: -1 1; } } /* phones: never mirrored, as the window there is the same in every language (client/slats.ts) */
@media (prefers-reduced-motion: reduce) { .scene-hero video.slide { transition: none; } }

/* The camera turns (2026-11-29): as a scene scrolls (--tp 0 to 1, client/home.ts), the build film swings round the
   tower (a slow orbit: a yaw in perspective, a slight bank, a push-in), and the dollhouse turns on its table. Scaled
   enough that the picture's edges never show. Not under reduced motion (the class is never added). */
.scene.is-turning .film canvas, .scene.is-turning .film img.still { will-change: transform; }
.scene-explode.is-turning .film canvas, .scene-explode.is-turning .film img.still { transform-origin: 50% 42%; transform: perspective(1700px) rotateY(calc((var(--tp, 0.5) - 0.5) * -11deg)) rotate(calc((var(--tp, 0.5) - 0.5) * 2.4deg)) scale(calc(1.17 - var(--tp, 0.5) * 0.07)); }
.scene-flats.is-turning .film canvas, .scene-flats.is-turning .film img.still { transform: perspective(1500px) rotateX(calc(4deg - var(--tp, 0.5) * 3deg)) rotateY(calc((var(--tp, 0.5) - 0.5) * 16deg)); }

/* The hero on wide screens (2026-11-29): the words set smaller and kept to the panel, so the window (client/slats.ts
   WIDE, its point at about 40 % across) gives the films the larger part of the screen */
@media (min-aspect-ratio: 1/1) {
  .scene-hero.has-slats .hero-copy h1 { font-size: clamp(2.5rem, 0.4rem + 4.1vw, 5.75rem); }
  html:lang(ar) .scene-hero.has-slats .hero-copy h1, html:lang(ckb) .scene-hero.has-slats .hero-copy h1 { font-size: clamp(2.25rem, 0.4rem + 3.4vw, 4.75rem); }
  .scene-hero.has-slats .hero-copy .lead { max-inline-size: min(24rem, 27vw); margin-block-start: 1.5rem; font-size: clamp(1rem, 0.85rem + 0.3vw, 1.1875rem); }
  .scene-hero.has-slats .hero-copy .actions { display: flex; flex-wrap: wrap; gap: 0.625rem; max-inline-size: 36vw; }
  .scene-hero.has-slats .hero-copy .button { min-block-size: 44px; padding-inline: 1.25rem; font-size: 0.75rem; letter-spacing: 0.12em; }
  .scene-hero.has-slats .hero-copy .scroll-hint { margin-block-start: 2.5rem; }
  /* The words centred on the film's middle (client/slats.ts centres the frame at 56 % down): the block is about
     26rem tall, so its top sits half of that above the line */
  .scene-hero.has-slats .step.hero-copy { padding-block-start: max(6rem, 56svh - 13rem); }
}
/* The climb's gold progress line belongs to the open film: hidden while the window is closed (it would float on the
   panel), it arrives as the window opens (--ho from client/slats.ts) */
.scene-hero.has-slats .rise-line { opacity: min(1, calc(var(--ho, 0) * 3)); }

/* Sub-pages open on a picture band (2026-11-29, src/pages/Enquiry.tsx): the balcony view under the transparent header,
   its lower edge the signature chevron with the page's own ground rising into it; kept low (30 % of the screen) so the
   form starts on the first screen */
.page-band { position: relative; block-size: clamp(180px, 30svh, 340px); overflow: hidden; background: var(--bg); }
.page-band img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 62% 55%; }
.page-band::before { content: ""; position: absolute; inset: 0 0 auto; block-size: 7rem; z-index: 1; background: linear-gradient(to bottom, rgb(3 28 25 / 0.7), transparent); } /* taste-skill-ignore: shade under the header on the picture */
.page-band-edge { inset-block-end: -1px; z-index: 2; }
.page-band-edge .cv-ground { fill: var(--bg); }
.page.page-after-band { padding-block-start: clamp(1.5rem, 1rem + 2vw, 3rem); }

/* Phones and other tall screens (2026-11-29): the hero is the same in every language, its shape (client/slats.ts) and
   its pictures alike, so nothing in it flips in Arabic or Kurdish */
@media (max-aspect-ratio: 1/1) { [dir="rtl"] .scene-hero .film :is(img, canvas, video) { scale: none; } }


/* Search: a quiet icon beside the language menu opens the finder, a dialog of the page's chapters, homes and enquiry
   topics filtered as you type (client/main.ts search) */
.head-search { display: inline-grid; place-items: center; flex: none; inline-size: 44px; block-size: 44px; color: var(--fg); opacity: 0.82; transition: opacity var(--dur-1), color var(--dur-1); }
.head-search:hover, .head-search:focus-visible { opacity: 1; color: var(--brass); }
.search-glyph { inline-size: 19px; block-size: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.head-search { margin-inline-start: auto; } .head-search + .lang-menu { margin-inline-start: 0; } /* the search sits beside the language, both at the inline end */
.lang-short { display: none; }
@media (max-width: 30rem) {
  .lang-menu .lang-full { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lang-short { display: inline; }
}
.search { inline-size: min(40rem, calc(100vw - 2rem)); max-block-size: min(72vh, 38rem); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--brass-soft), 0 30px 80px -20px rgb(1 14 12 / 0.8); }
.search::backdrop { background: rgb(1 14 12 / 0.6); backdrop-filter: blur(4px); }
.search-in { display: grid; grid-template-rows: auto 1fr; max-block-size: inherit; }
.search-field { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-block-end: 1px solid var(--line); color: var(--brass); }
.search-field .search-glyph { inline-size: 22px; block-size: 22px; }
.search-field input { flex: 1; min-inline-size: 0; border: 0; background: none; color: var(--fg); caret-color: var(--brass); font: 500 var(--t-lead)/1.3 var(--font-body); outline: none; }
.search-field input::placeholder { color: var(--muted); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { overflow: auto; overscroll-behavior: contain; padding: 0.5rem; display: grid; align-content: start; }
.search-group { margin: 0.85rem 0.75rem 0.25rem; color: var(--brass); font: 600 var(--t-kicker)/1.2 var(--font-label); letter-spacing: 0.18em; text-transform: uppercase; }
html:lang(ar) .search-group, html:lang(ckb) .search-group { letter-spacing: 0; }
.search-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.65rem 0.75rem; border-radius: 10px; color: var(--fg); font-weight: 600; text-decoration: none; transition: background-color var(--dur-1) var(--ease-out); }
.search-item small { display: block; margin-block-start: 0.1rem; color: var(--muted); font-size: var(--t-small); font-weight: 400; }
.search-dot { flex: none; inline-size: 0.45rem; block-size: 0.45rem; margin-inline: 0.35rem; border-radius: 50%; background: var(--brass); }
.search-item:hover, .search-item:focus-visible, .search-item.on { background: var(--s1); outline: none; }
.search-item[hidden], .search-group[hidden] { display: none; }
.search-empty { margin: 1rem 0.75rem; color: var(--muted); }
.search-empty a { color: var(--brass); font-weight: 600; }
