/* 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, the counterpart of K24's own Latin face.
   Arabic and Kurdish: Noto Kufi Arabic (SIL OFL), the letterforms K24 uses for Kurdish; 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; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("/fonts/barlow-latin-700.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 and 700 */
@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; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-latin-700.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: "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%; }
/* Playfair Display (SIL OFL, /fonts/licenses/playfair-display-OFL.txt): the home hero's serif, regular and italic, Latin
   only (Arabic and Kurdish keep Noto Kufi); the contrast with the Barlow text is the point */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/playfair-display-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: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/playfair-display-latin-400-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; }

/* 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: 50ch; }
.wrap { inline-size: min(100% - 2 * var(--margin), 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; }



/* Form */
.form { display: grid; gap: 0.35rem; }
.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 var(--field-line); 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 .btn { 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; } }

/* Bawaba's frame and sections (design-system/MASTER.md). Logical properties throughout, so Arabic and Kurdish mirror. */
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { inline-size: min(100% - 2 * var(--margin), var(--wrap)); margin-inline: auto; }
.narrow { --wrap: 48rem; }
.icon { flex: none; }
/* Selection in the palette; focus rings butter on dark grounds (brick on light, from base.css) */
::selection { background: var(--action); color: var(--action-ink); }
.topbar :focus-visible, .drawer :focus-visible, .hero :focus-visible, .footer :focus-visible, .process :focus-visible, .feature :focus-visible { outline-color: var(--accent-dark); } /* the bright orange ring on every blue field (the deep orange fell to 2.6:1 there) */
/* Two-tone headings: *marked* words in brick on light grounds, butter on brick (and in the hero) */
.tone { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-display); font-weight: 700; margin-block: 0 0.5em; }
p { margin-block: 0 1em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border: 2px solid transparent; border-radius: var(--radius); font: 600 var(--t-body)/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--fg); color: var(--bg); }
.btn-ink:hover { background: var(--action); color: var(--action-ink); }
.btn-primary { background: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: var(--accent); color: var(--action-ink); }
.btn-ghost { border-color: rgb(255 255 255 / 0.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--fg); }
.link-arrow { display: inline-flex; align-items: center; min-block-size: 2.75rem; gap: 0.4rem; color: var(--accent); font-weight: 600; text-decoration: none; cursor: pointer; }
.link-arrow:hover { color: var(--fg); }
[dir='rtl'] .link-arrow .icon-arrow, [dir='rtl'] .why-icon .icon-arrow { transform: scaleX(-1); }

/* Top bar */
.topbar { background: var(--dark); color: var(--dark-muted); font-size: var(--t-small); }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.6rem; }
.topbar ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.topbar li { display: flex; align-items: center; gap: 0.45rem; }
.topbar .icon { color: var(--accent-dark); }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover, .topbar a[aria-current] { color: #fff; }
.topbar-langs { display: flex; gap: 1rem; }

/* Header */
.header { position: absolute; inset-inline: 0; inset-block-start: 0; z-index: 30; background: transparent; transition-property: background-color, box-shadow; transition-duration: var(--dur-2); transition-timing-function: var(--ease-out); }
.hdr .header { position: fixed; }
.header.scrolled { background: var(--bg); }
.header:not(.scrolled) .logo, .header:not(.scrolled) .nav a, .header:not(.scrolled) .burger { color: #fff; }
.header:not(.scrolled) .logo-text small { color: rgb(255 255 255 / 0.75); }
.header:not(.scrolled) .logo-mark { background: var(--action); color: var(--action-ink); }
.header:not(.scrolled) .lang-menu summary, .header:not(.scrolled) .icon-btn { color: #fff; }
.header:not(.scrolled) .lang-menu summary:hover, .header:not(.scrolled) .lang-menu[open] summary, .header:not(.scrolled) .icon-btn:hover { color: var(--accent-dark); }
.header:not(.scrolled) .nav-ind { background: var(--accent-dark); }
.header:not(.scrolled) :focus-visible { outline-color: #fff; box-shadow: 0 0 0 7px rgb(16 28 92 / 0.6); } /* over the hero photograph: a white ring on a dark halo holds 3:1 on its light and its dark parts alike */
.header.scrolled { box-shadow: var(--shadow); }
.header-in { display: flex; align-items: center; gap: var(--gap); min-block-size: 5rem; }
.logo { display: flex; align-items: center; gap: 0.65rem; color: var(--fg); text-decoration: none; margin-inline-end: auto; }
.logo-mark { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border-radius: var(--radius); background: var(--dark); color: var(--accent-dark); }
.logo-mark svg { inline-size: 1.7rem; block-size: 1.7rem; }
.logo-text { display: grid; font: 700 var(--t-lead)/1.1 var(--font-display); }
.logo-text small { font: 600 var(--t-small)/1.3 var(--font-body); color: var(--muted); }
.logo-text small:lang(ar) { font-family: "Noto Kufi Arabic", "Arabic Fallback", sans-serif; }
/* The name stays on one line. On the narrowest phones the header holds the mark, the language switch, search and the
   menu, and the name would break into a stack of words or run under the switch, so the mark stands alone there (its
   link keeps the name for screen readers, and the name is large in the hero band just below) */
.logo-text { white-space: nowrap; }
@media (max-width: 26rem) {
  .header .logo-text { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
}
.nav { display: flex; gap: 0.25rem; }
.nav a { position: relative; padding: 0.6rem 1rem; color: var(--fg); font-weight: 500; text-decoration: none; }
.nav a::after { content: ''; position: absolute; inset-inline: 0.9rem; inset-block-end: 0.25rem; block-size: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--dur-2) var(--ease-out); }
.nav a::after { display: none; }
.nav { position: relative; }
/* Without the script (or before it runs) the current page carries its own orange rule; the sliding indicator replaces it
   once client/main.ts has placed it (.has-ind) */
.nav:not(.has-ind) a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav.has-ind .nav-ind { display: block; opacity: var(--o, 0); }
.header:not(.scrolled) .nav:not(.has-ind) a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent-dark); }
.nav-ind { display: none; position: absolute; left: 0; inset-block-end: 0.2rem; inline-size: var(--w, 0); block-size: 2px; border-radius: 2px; background: var(--accent); transform: translateX(var(--x, 0)); transition-property: transform, inline-size, opacity; transition-duration: var(--dur-2); transition-timing-function: var(--ease-out); }
/* The language menu (2026-11-29): a globe and the language on screen; 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: 2.75rem; padding-inline: 0.35rem; list-style: none; cursor: pointer; color: var(--fg); font: 500 var(--t-body)/1 var(--font-body); transition: color var(--dur-1); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--accent); }
.lang-menu svg { fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; }
.lang-globe { inline-size: 1.15rem; block-size: 1.15rem; }
.lang-caret { inline-size: 0.75rem; block-size: 0.75rem; stroke-width: 1.7; transition: rotate var(--dur-2) var(--ease-out); }
.lang-menu[open] .lang-caret { rotate: 180deg; }
.header-in .lang-list { position: absolute; inset-block-start: calc(100% + 0.4rem); inset-inline-end: 0; z-index: 2; display: grid; min-inline-size: 10rem; padding: 0.4rem; border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); }
.lang-list a { display: flex; align-items: center; min-block-size: 2.75rem; padding-inline: 0.85rem; border-radius: calc(var(--radius) - 2px); color: var(--fg); font-weight: 500; text-decoration: none; }
.lang-list a:hover { background: var(--s1); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .lang-caret { transition: none; } }
/* Search: a plain icon in the header, no disc behind it, so the row holds one solid shape (the quote button) */
.icon-btn { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; flex: none; border-radius: var(--radius); background: none; color: var(--fg); transition-property: color, transform; transition-duration: var(--dur-2); transition-timing-function: var(--ease-out); }
.icon-btn:hover { color: var(--accent); }
.icon-btn:active { transform: scale(0.94); }

/* Search: a quick finder dialog */
.search { inline-size: min(40rem, calc(100vw - 2rem)); max-block-size: min(70vh, 36rem); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 18px; background: var(--bg); color: var(--fg); box-shadow: 0 30px 80px -20px rgb(14 21 48 / 0.45); }
.search::backdrop { background: rgb(14 21 48 / 0.55); }
.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(--accent); }
.search-field input { flex: 1; min-inline-size: 0; border: 0; background: none; color: var(--fg); font: 600 var(--t-lead)/1.3 var(--font-body); outline: none; }
.search-results { overflow: auto; padding: 0.5rem; display: grid; align-content: start; }
.search-group { margin: 0.75rem 0.75rem 0.25rem; color: var(--muted); font-size: var(--t-small); font-weight: 600; }
.search-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.75rem; border-radius: 10px; color: var(--fg); font-weight: 600; text-decoration: none; transition-property: background-color, color; transition-duration: var(--dur-1); }
.search-item .icon { color: var(--accent); flex: none; }
.search-item:hover, .search-item:focus-visible, .search-item.on { background: var(--s1); color: var(--accent); outline: none; }
.search-item[hidden], .search-group[hidden] { display: none; }
.search-empty { margin: 1rem 0.75rem; color: var(--muted); }
.burger, .drawer-close { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 0.5rem; }
.drawer { position: fixed; inset: 0; z-index: 40; background: var(--dark); color: #fff; padding: 1.5rem var(--margin); display: grid; align-content: start; gap: 1.5rem; }
.drawer[hidden] { display: none; }
.drawer nav { display: grid; gap: 0.25rem; }
.drawer nav a { color: #fff; font-size: var(--t-lead); font-weight: 600; text-decoration: none; padding: 0.6rem 0; }
.drawer-close { display: block; justify-self: end; color: #fff; }

/* Banner (inner pages) */
/* Inner pages: the page hero. The page's duotone photo full bleed under a soft chocolate scrim; a two-line two-tone
   headline that says what the page is; one sentence; one butter action; the breadcrumb as quiet small text */
.banner { position: relative; overflow: hidden; min-block-size: min(72svh, 44rem); display: grid; align-items: end; background: var(--dark); color: var(--dark-ink); }
.banner-img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(14 21 48 / 0.82) 0%, rgb(14 21 48 / 0.45) 50%, rgb(14 21 48 / 0.1) 100%); }
[dir='rtl'] .banner::after { background: linear-gradient(260deg, rgb(14 21 48 / 0.82) 0%, rgb(14 21 48 / 0.45) 50%, rgb(14 21 48 / 0.1) 100%); }
.banner-in { position: relative; z-index: 1; padding-block: calc(5.5rem + clamp(3rem, 7vw, 5rem)) clamp(2rem, 4vw, 3rem); display: grid; justify-items: start; }
.banner h1 { font-size: min(var(--t-hero), 8.8vw, 10svh); line-height: 0.95; max-inline-size: 16ch; margin-block-end: 0.35em; }
html:lang(en) .banner h1 { text-transform: uppercase; }
.banner .tone { color: var(--accent-dark); }
.banner p { font-size: var(--t-lead); max-inline-size: 46ch; margin-block-end: 1.75rem; }
.crumbs { margin-block-start: clamp(2rem, 4vw, 3rem); font-size: var(--t-small); color: var(--dark-muted); }
.crumbs a { color: var(--dark-ink); text-decoration: none; }

/* Home hero: "the name holds the film". Full-bleed film; the headline top left over a soft scrim; at the foot a chocolate
   band with the name cut out (the film plays in the letters); under it the film's three acts as a chapter bar. */
.hero { position: relative; overflow: hidden; min-block-size: max(34rem, 100svh); display: grid; grid-template-rows: 1fr auto auto; background: var(--dark); color: var(--dark-ink); }
.hero-video, .hero-poster { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.hero-video { z-index: 1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(100deg, rgb(10 18 60 / 0.78) 0%, rgb(10 18 60 / 0.4) 42%, rgb(10 18 60 / 0) 68%); }
[dir='rtl'] .hero::after { background: linear-gradient(260deg, rgb(10 18 60 / 0.78) 0%, rgb(10 18 60 / 0.4) 42%, rgb(10 18 60 / 0) 68%); }
.hero-in { position: relative; z-index: 3; align-self: center; padding-block: calc(5.5rem + clamp(1rem, 4svh, 3rem)) clamp(1.25rem, 3svh, 2.5rem); }
/* The headline (after "stop playing it too safe"): contrast of face, weight and colour. A small spaced label; the
   headline in Playfair Display, line 1 limestone upright, line 2 butter italic; a light sentence; an outline pill.
   Arabic and Kurdish keep Noto Kufi, line 1 regular and line 2 bold in butter */
.hero h1 { font-size: min(var(--t-hero), 8.8vw, 11svh); margin-block-end: 0.4em; color: var(--dark-ink); }
.hero h1 .line { display: block; }
.hero h1 .line + .line { color: var(--accent-dark); }
html:lang(en) .hero h1 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; }
html:lang(en) .hero h1 .line + .line { font-style: italic; }
html:lang(ar) .hero h1 .line:first-child, html:lang(ckb) .hero h1 .line:first-child { font-weight: 400; }
.hero-sub { font-size: var(--t-lead); max-inline-size: 40ch; margin-block-end: clamp(1.4rem, 3.4svh, 2.2rem); color: rgb(255 255 255 / 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
/* The hero picker: "What do you need?", a material or job, then the quote button, as one capsule over the film */
.hero-ask { display: grid; gap: 0.55rem; }
.hero-ask-label { font: 600 var(--t-small)/1.2 var(--font-body); color: var(--dark-ink); text-shadow: 0 1px 3px rgb(16 28 92 / 0.6); }
.hero-ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.35rem; border: 1px solid rgb(255 138 91 / 0.85); border-radius: 999px; background: rgb(16 28 92 / 0.55); } /* the edge at 3:1 or more over the photograph */
.hero-ask select { flex: 1 1 14rem; min-inline-size: 0; block-size: 2.9rem; padding-inline: 1rem 2rem; border: 0; border-radius: 999px; background-color: transparent; color: #fff; font: 500 var(--t-body)/1.2 var(--font-body); cursor: pointer; }
.hero-ask select option, .hero-ask select optgroup { background-color: var(--dark); color: #fff; }
.hero-ask .hero-cta { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.hero-ask .hero-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--action-ink); }
.hero-cta { border: 1.5px solid var(--accent-dark); border-radius: 999px; padding-inline: 1.5rem; background: rgb(16 28 92 / 0.15); color: var(--accent-dark); }
.hero-cta:hover { background: var(--action); border-color: var(--action); color: var(--action-ink); }
[dir='rtl'] .hero-cta .icon-arrow { transform: scaleX(-1); }
.hero-link { color: var(--dark-ink); }
.hero-actions .hero-link { align-self: end; display: inline-flex; align-items: center; min-block-size: calc(3.6rem + 2px); } /* centred on the picker row, not on row + label */
.hero-link:hover { color: var(--accent-dark); }


/* The chapter bar: the act playing is lit and its track fills (--p, set by the script); a click seeks the film */
.hero-chapters { grid-row: 3; position: relative; z-index: 4; background: var(--dark); }
/* The bar is shown by the script once the film plays; its row is reserved from the first paint so nothing in the hero
   moves when it appears (no layout shift). Without the film the empty row reads as part of the night band */
.hero-chapters[hidden] { display: block; visibility: hidden; }
.hero-chapters-in { display: flex; align-items: end; gap: clamp(0.75rem, 2.5vw, 2rem); padding-block: 0.6rem 0.9rem; }
.chapter { flex: 1; min-block-size: 2.75rem; display: grid; gap: 0.55rem; padding: 0.4rem 0; border: 0; background: none; color: rgb(255 255 255 / 0.78); font: 600 var(--t-small)/1.2 var(--font-body); text-align: start; cursor: pointer; transition: color var(--dur-2) var(--ease-out); }
.chapter:hover, .chapter[aria-pressed='true'] { color: var(--accent-dark); }
.chapter-track { display: block; block-size: 3px; background: rgb(255 255 255 / 0.25); overflow: hidden; }
.chapter-fill { display: block; block-size: 100%; background: var(--accent-dark); transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir='rtl'] .chapter-fill { transform-origin: right; }
.hero-toggle { flex: none; display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.16); color: #fff; cursor: pointer; transition: background-color var(--dur-2) var(--ease-out); }
.hero-toggle:hover { background: rgb(255 255 255 / 0.28); }

/* Sections */
.section { padding-block: var(--gap-section); }
.tint { background: var(--s1); }
/* Same ground twice in a row: space separates them once, not twice */
.section:not(.tint) + .section:not(.tint), .section.tint + .section.tint { padding-block-start: 0; }
.services.tint { background: var(--s1); }
/* Same ground twice in a row: space separates them once, not twice */
.section:not(.tint) + .section:not(.tint), .section.tint + .section.tint { padding-block-start: 0; }
.services .section-head p { color: var(--fg); }
.section-head { max-inline-size: 44rem; margin-block-end: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: var(--t-lead); }
.section-title { font-size: var(--t-title); }
.section-head.light { color: #fff; }
.section-head.light .section-title::after { background: var(--accent-dark); }
.section-head.light p { color: #fff; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media { position: relative; }
.split-media img { inline-size: 100%; border-radius: var(--radius); object-fit: cover; }
.split-main { aspect-ratio: 4 / 3.4; }
.split-inset { position: absolute; inline-size: 48% !important; aspect-ratio: 1; inset-inline-end: -1.5rem; inset-block-end: -2rem; border: 6px solid var(--bg); }
.split-media.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.split-media.pair img { aspect-ratio: 3 / 4; }
figure { margin: 0; }
.filters { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.duo { filter: url(#duo); }
.card:hover .duo, .reel-card .duo { filter: none; }
figcaption { font-size: var(--t-small); color: var(--muted); margin-block-start: 0.5rem; }
.badge { position: absolute; inset-inline-start: -1rem; inset-block-start: 1.5rem; margin: 0; padding: 1rem 1.25rem; background: var(--action); color: var(--action-ink); border-radius: var(--radius); font-weight: 600; max-inline-size: 10rem; }
.badge strong { display: block; font-size: var(--t-h2); line-height: 1; }
.split-text > p { color: var(--muted); }
.checks { list-style: none; margin: 1.25rem 0 2rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
.checks li { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 600; }
.checks .icon { color: var(--accent); margin-block-start: 0.15rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur-2) var(--ease-out); }
.card:hover { transform: translateY(-4px); }
.card > img { inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.card:hover > img { transform: scale(1.04); }
.card-body { position: relative; padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); flex: 1; }
.card-body h3 { font-size: var(--t-h3); overflow-wrap: anywhere; }
.card details p { margin-block-start: 0.75rem; }

/* What we do as a reel (ServiceReel). Static: a swipeable row of straight cards. Live (.reel.is-live, set by the
   script): cards placed absolutely and shaped every frame into the inside of a cylinder (clip-path path()). */
.reel-section { overflow: hidden; }
.reel-head { text-align: center; display: grid; justify-items: center; }
.reel-head .section-title { font-size: min(var(--t-hero), 8.8vw, 10svh); line-height: 0.95; margin-block-end: 0.3em; }
.reel-sub { max-inline-size: 46ch; margin: 0 auto; font-size: var(--t-lead); }
.reel { position: relative; margin-block-start: clamp(2rem, 5vw, 4rem); }
.reel-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--margin); padding-block-end: 0.5rem; }
.reel-card { position: relative; flex: none; inline-size: min(62vw, 17rem); aspect-ratio: 17 / 28; border-radius: 15px; overflow: hidden; scroll-snap-align: center; color: #fff; text-decoration: none; background: var(--dark); }
.reel-card img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.reel-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 21 48 / 0) 45%, rgb(14 21 48 / 0.82) 100%); }
.reel-title { position: absolute; z-index: 1; inset-inline: 1rem 3.6rem; inset-block-end: 1rem; font: 700 var(--t-lead)/1.05 var(--font-display); }
.reel-go { position: absolute; z-index: 1; inset-inline-end: 0.9rem; inset-block-end: 0.85rem; display: grid; place-items: center; inline-size: 2.4rem; block-size: 2.4rem; border-radius: 50%; background: var(--action); color: var(--action-ink); transition: transform var(--dur-2) var(--ease-out); }
[dir='rtl'] .reel-go .icon { transform: scaleX(-1); }
.reel-card:hover .reel-go, .reel-card:focus-visible .reel-go { transform: scale(1.12); }
.reel-card:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.reel.is-live { block-size: calc(400 * var(--u, 1px)); touch-action: pan-y; cursor: grab; user-select: none; }
.reel.is-live.dragging { cursor: grabbing; }
.reel-title, .reel-go { transition: opacity var(--dur-2) var(--ease-out); }
.reel-card.cut .reel-title, .reel-card.cut .reel-go { opacity: 0; }
.reel.is-live .reel-track { display: block; position: absolute; inset: 0; overflow: visible; padding: 0; }
.reel.is-live .reel-card { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: auto; aspect-ratio: auto; border-radius: 0; will-change: transform, clip-path; }
[dir='rtl'] .reel.is-live .reel-card { inset-inline-start: auto; left: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.reel-foot { display: flex; justify-content: center; margin-block-start: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 51rem) {
  .reel-go { display: none; }
  .reel-title { inset-inline: 0.6rem; inset-block-end: 0.6rem; font-size: var(--t-small); }
}

/* Why us: four points on the delivery picture */
.why-icon { display: inline-grid; place-items: center; inline-size: 3.4rem; block-size: 3.4rem; border-radius: 50%; background: rgb(255 138 91 / 0.15); color: var(--accent-dark); margin-block-end: 1rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 3rem 0 0; }
.facts dt { font: 700 var(--t-title)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--accent-dark); }
.facts dd { margin: 0.4rem 0 0; color: #fff; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--gap) clamp(2rem, 5vw, 5rem); align-items: baseline; padding-block: clamp(1.1rem, 2.2vw, 1.75rem); }
.steps li:nth-child(even) { background: var(--s1); margin-inline: calc(-1 * clamp(1rem, 2vw, 1.75rem)); padding-inline: clamp(1rem, 2vw, 1.75rem); border-radius: var(--radius); }
.steps h3 { font-size: var(--t-h2); margin: 0; color: var(--accent); }
.steps p { margin: 0; max-inline-size: 52ch; }

/* CTA band */
.cta { background: var(--action); color: var(--action-ink); }
/* On the copper band the accent words and the focus ring turn ink (copper on copper would vanish) */
.cta .tone { color: var(--dark); }
.cta :focus-visible { outline-color: var(--dark); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta h2 { font-size: var(--t-h2); margin-block-end: 0.3rem; }
.cta p { margin: 0; max-inline-size: 52ch; }

/* About: mission and vision; Services: the two lists */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.mv { gap: clamp(2rem, 6vw, 6rem); }
.mv-item h2 { font-size: var(--t-title); color: var(--accent); margin-block-end: 0.4rem; }
.mv-item p { margin: 0; font-size: var(--t-lead); max-inline-size: 40ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card { padding-block: 0.9rem; }
.contact-photo { margin-block-start: clamp(1.5rem, 3vw, 2.5rem); border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius); overflow: hidden; }
.contact-photo img { inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.contact-card .why-icon { background: var(--s1); color: var(--accent); margin: 0; }
.contact-card h3 { font: 600 var(--t-small)/1.3 var(--font-body); color: var(--muted); margin-block-end: 0.3rem; }
.contact-big { display: inline-block; margin: 0; font: 700 var(--t-h2)/1.1 var(--font-display); color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
a.contact-big { color: var(--accent); }
a.contact-big:hover { color: var(--fg); }

.form-box { background: #fff; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); }

/* Footer */
/* Footer: an arch-topped close. A giant email, the phone and the quote; three columns; the bottom line; then the name
   with the film playing inside its letters */
/* The arch rises into the last section: the footer overlaps it by the arch's height, so the curved corners show that
   section's own colour (night call to action, butter reel...) instead of a strip of page ground */
:root { --arch: clamp(3rem, 8vw, 8rem); }
main > :last-child { padding-block-end: calc(var(--last-pad, 0px) + var(--arch)); }
main > .section:last-child { --last-pad: var(--gap-section); }
.footer { position: relative; z-index: 1; margin-block-start: calc(-1 * var(--arch)); background: var(--dark); color: var(--dark-muted); padding-block-start: calc(var(--arch) + clamp(2.5rem, 5vw, 4rem)); border-start-start-radius: 50% var(--arch); border-start-end-radius: 50% var(--arch); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem 3rem; padding-block-end: clamp(3rem, 6vw, 5rem); }
.footer .footer-mail { font: 700 var(--t-title)/1 var(--font-display); color: var(--accent-dark); text-decoration: none; overflow-wrap: anywhere; transition: color var(--dur-2) var(--ease-out); }
.footer .footer-mail:hover { color: #fff; }
.footer-top-side { display: grid; gap: 0.9rem; justify-items: start; }
.footer .footer-tel { font: 700 var(--t-h2)/1 var(--font-display); color: #fff; text-decoration: none; }
.footer-place { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.footer-place .icon { color: var(--accent-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); padding-block-end: 3rem; }
.footer-nav { display: grid; align-content: start; gap: 0.15rem; }
.footer .footer-nav a { font: 700 var(--t-h2)/1.12 var(--font-display); color: #fff; text-decoration: none; transition: color var(--dur-2) var(--ease-out); }
.footer .footer-nav a:hover, .footer .footer-nav a[aria-current] { color: var(--accent-dark); }
.footer-about p { margin-block-start: 0.5rem; max-inline-size: 34ch; }
.footer-langs { display: flex; gap: 1rem; }
.footer .footer-langs a[aria-current] { color: var(--accent-dark); }
.footer h2 { color: #fff; font-size: var(--t-body); margin-block-end: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer ul a, .footer-langs a, .footer-bottom a { display: inline-block; padding-block: 0.7rem; }
.footer .footer-nav a { padding-block: 0.4rem; }
.footer-langs a { padding-inline: 0.3rem; }
.footer .footer-mail { display: inline-block; padding-block: 0.5rem; }
.burger { min-inline-size: 2.75rem; min-block-size: 2.75rem; }
.footer a { color: inherit; }
.footer a:hover { color: var(--accent-dark); }
.footer .btn-primary { color: var(--action-ink); }
.footer .btn-primary:hover { color: var(--action-ink); }
.logo-light { color: #fff; margin-block-end: 1.1rem; }
.logo-light .logo-mark { background: var(--action); color: var(--action-ink); }
.logo-light small { color: var(--dark-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.75rem 1.25rem; font-size: var(--t-small); }
.footer-bottom p, .footer .foot-dev { margin: 0; color: inherit; }
/* The closing wordmark: solid, tone-on-tone (a lighter blue on the ultramarine), edge to edge, never stretched */
.footer-name { display: block; inline-size: 100%; block-size: auto; margin-block-start: clamp(1rem, 3vw, 2rem); }
.footer-word { font: 700 460px/1 var(--font-display); fill: var(--dark-2); }
.footer-word-ar { font-size: 330px; }
/* Photo credits (About only, required by the CC BY-SA licence): small and quiet, still readable (8.7:1) */
.footer-credits { font-size: 0.75rem; line-height: 1.6; color: var(--dark-muted); padding-block-end: 1.5rem; margin: 0 auto; }
.footer-credits a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Entrances: hidden only when motion is welcome and the script has started (html.js) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .rv.in { opacity: 1; transform: none; }
  .hero-in .rv { animation: enter 800ms var(--ease-out) both; }
  .hero-in .rv:nth-child(2) { animation-delay: 100ms; } .hero-in .rv:nth-child(3) { animation-delay: 200ms; } .hero-in .rv:nth-child(4) { animation-delay: 300ms; }
  .js .hero-in .rv { opacity: 1; transform: none; transition: none; }
  @keyframes enter { from { opacity: 0; transform: translateY(12px); } }
}

/* Tablet and phone */
@media (max-width: 64rem) {
  .nav, .header-cta { display: none; }
  .header-in { gap: 0.6rem; }
  .logo { min-inline-size: 0; }
  .burger { display: block; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 44rem) {
  .topbar-info li:nth-child(n+2) { display: none; }
  .split, .cards, .steps, .mv, .contact-grid, .footer-grid, .form-row, .checks, .facts { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .split-inset { display: none; }
  .form-box { padding: 0; background: none; }
  .logo-text small { display: none; }
  .logo-text { font-size: var(--t-body); }
  .icon-btn { inline-size: 2.75rem; block-size: 2.75rem; }
  .hero { min-block-size: max(32rem, 100svh); }
  .hero-in { padding-block: 6rem 1.5rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .chapter { font-size: var(--t-small); }
}


/* Phone: the picker stacks inside a softer capsule; the footer email never breaks mid-word */
@media (max-width: 44rem) {
  .hero-ask-row { border-radius: 1.5rem; padding: 0.4rem; }
  .hero-ask select { flex-basis: 100%; }
  .hero-ask .hero-cta { flex: 1 1 100%; justify-content: center; }
  .footer .footer-mail { font-size: clamp(1.4rem, 7vw, 2.4rem); overflow-wrap: normal; }
}

/* Home patterns (design-system/MASTER.md §6e, §6g): the two photo panels, why-us, the zig-zag process, cards, the
   three doors. The arch is rationed: the logo and the footer's top edge only. Logical properties, so Arabic
   and Kurdish mirror. Loaded after site.css, before motion.css. */
:root { --radius-lg: 1.5rem; }
[dir='rtl'] .panel-go .icon-arrow, [dir='rtl'] .door-label .icon-arrow { transform: scaleX(-1); }
.section-head.center { text-align: center; margin-inline: auto; }

/* A statement-sized paragraph (a project's summary) */
.statement-text { font: 700 var(--t-h2)/1.22 var(--font-display); color: var(--fg); margin: 0; }

/* The two photo panels: a large photograph each, darkened from the foot so the words read (white 4.5:1 at least), the
   title in the serif, one line, three items as small pills and a round arrow. Hover or focus lifts the photo a touch */
.panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.panel { position: relative; isolation: isolate; display: flex; align-items: end; min-block-size: clamp(26rem, 38vw, 34rem); border-radius: var(--radius-lg); overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; }
.panel-img { position: absolute; inset: 0; z-index: -2; inline-size: 100%; block-size: 100%; object-fit: cover; transition: scale 900ms var(--ease-out); }
.panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(16 28 92 / 0) 30%, rgb(16 28 92 / 0.55) 58%, rgb(12 20 66 / 0.94) 100%); }
.panel:hover .panel-img, .panel:focus-visible .panel-img { scale: 1.04; }
/* Phones: the words fill more of the card, so the shade starts higher and runs darker behind them */
@media (max-width: 44rem) { .panel::after { background: linear-gradient(180deg, rgb(16 28 92 / 0.1) 0%, rgb(16 28 92 / 0.72) 34%, rgb(12 20 66 / 0.96) 100%); } }
.panel-body { display: grid; gap: 0.6rem; padding: clamp(1.5rem, 3vw, 2.25rem); padding-inline-end: 5.5rem; }
.panel-title { margin: 0; font-size: var(--t-title); line-height: 1.05; color: #fff; }
.panel-text { font-size: var(--t-lead); color: rgb(255 255 255 / 0.9); max-inline-size: 32ch; }
.panel-items { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-block-start: 0.35rem; }
.panel-items span { padding: 0.3rem 0.75rem; border: 1px solid rgb(255 255 255 / 0.35); border-radius: 999px; font-size: var(--t-small); color: #fff; background: rgb(16 28 92 / 0.35); }
.panel-go { position: absolute; inset-block-end: clamp(1.5rem, 3vw, 2.25rem); inset-inline-end: clamp(1.5rem, 3vw, 2.25rem); display: grid; place-items: center; inline-size: 3.25rem; block-size: 3.25rem; border-radius: 50%; background: var(--action); color: var(--action-ink); transition: background-color var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out); }
.panel:hover .panel-go, .panel:focus-visible .panel-go { background: var(--action-deep); translate: 4px 0; }
[dir='rtl'] .panel:hover .panel-go, [dir='rtl'] .panel:focus-visible .panel-go { translate: -4px 0; }
.panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.facts { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); max-inline-size: 54rem; margin: 0 auto clamp(3rem, 6vw, 5rem); text-align: center; }
.facts > div { display: grid; justify-items: center; gap: 0.4rem; }
.facts dt { color: #fff; font-weight: 600; }
.facts dd { color: var(--accent-dark); margin: 0; }

/* How we work: a zig-zag. Wide and narrow photographs alternate side and size; the right column is set lower */
.zig { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem); row-gap: clamp(3rem, 6vw, 5rem); align-items: start; }
.zig-item { display: grid; justify-items: center; text-align: center; }
.zig-item:nth-child(even) { margin-block-start: clamp(4rem, 12vw, 10rem); }
.zig-img { inline-size: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); margin-block-end: 1.5rem; }
.zig-item:nth-child(4n+2) .zig-img, .zig-item:nth-child(4n+3) .zig-img { inline-size: 62%; aspect-ratio: 4 / 5; }
.zig-item p { color: var(--muted); max-inline-size: 36ch; margin: 0; }

/* Cards: words on top, the photograph below */
.card { position: relative; isolation: isolate; border-radius: var(--radius-lg); }
.card-body { order: -1; text-align: center; align-items: center; padding: 1.75rem 1.5rem 1.25rem; }
.card > img { inline-size: calc(100% - 2rem); margin: 0 auto 1rem; border-radius: calc(var(--radius-lg) - 0.5rem); }

/* Where to start: three doors. A butter band with a sweeping top edge; a limestone layer with one line on hover/focus */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.door { position: relative; display: block; block-size: clamp(26rem, 38vw, 36rem); border-radius: var(--radius-lg); overflow: hidden; border: 3px solid #fff; background: var(--s1); color: var(--action-ink); text-decoration: none; transition: border-color var(--dur-3) var(--ease-out); }
.door:hover, .door:focus-visible { border-color: var(--accent); }
.door-img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.door:hover .door-img { transform: scale(1.05); }
.door-more { z-index: 1; position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem 2rem 10rem; background: rgb(255 255 255 / 0.95); color: var(--fg); font-size: var(--t-lead); text-align: center; opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.door-more > span { max-inline-size: 26ch; }
.door:hover .door-more, .door:focus-visible .door-more { opacity: 1; }
/* Touch screens have no hover: the line sits as a strip just above the band instead */
@media (hover: none), (pointer: coarse) {
  .door-more { inset: auto 0 var(--band-h, 8.75rem); padding: 0.9rem 1.25rem; place-items: start; font-size: var(--t-body); background: rgb(255 255 255 / 0.92); opacity: 1; }
}
.door-band { z-index: 2; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 8.75rem; background: var(--action); border-start-end-radius: 72% 100%; }
.door-label { position: absolute; inset-inline-start: 1.75rem; inset-block-end: 1.75rem; display: inline-flex; align-items: center; gap: 0.5rem; font: 700 var(--t-h2)/1 var(--font-display); }
.door-label .icon { transition: translate var(--dur-2) var(--ease-out); }
.door:hover .door-label .icon { translate: 4px 0; }
[dir='rtl'] .door:hover .door-label .icon { translate: -4px 0; }

/* Footer: butter headings, a hairline over the bottom line */
.footer h2 { color: var(--accent-dark); }
.footer-bottom { border-block-start: 1px solid rgb(255 255 255 / 0.1); }

}

@media (max-width: 64rem) {
  .doors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .door:last-child { grid-column: 1 / -1; }
}
@media (max-width: 44rem) {
  .zig, .doors { grid-template-columns: minmax(0, 1fr); }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .panel { min-block-size: 24rem; }
  .door { block-size: 19rem; }
  .door { --band-h: 6.25rem; }
  .door-band { block-size: var(--band-h); }
  .door-label { inset-block-end: 1.25rem; font-size: var(--t-lead); }
  .zig-item:nth-child(even) { margin-block-start: 0; }
  .zig-item:nth-child(4n+2) .zig-img, .zig-item:nth-child(4n+3) .zig-img { inline-size: 75%; }
  .door:last-child { grid-column: auto; }
}

/* Ideas from the best construction sites of 2026 (design-system/MASTER.md §6f): the serif system, the Bawaba Method,
   the featured project, the project library and the project page. Logical properties, so Arabic and Kurdish mirror.
   Loaded after patterns.css, before motion.css. */
[dir='rtl'] .feature .icon-arrow, [dir='rtl'] .card-link .icon-arrow { transform: scaleX(-1); }

/* Small capitals over a title: type, place, "Featured project". Latin only gets the tracking (it breaks Arabic joins) */
.eyebrow { font: 600 var(--t-small)/1.3 var(--font-body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 0.6rem; }
:lang(ar) .eyebrow, :lang(ckb) .eyebrow { letter-spacing: 0; }

/* The serif as a system (English only; Arabic and Kurdish keep Noto Kufi): Playfair Display for the few big display
   moments, the hero, the two panels, the method words and the featured project; condensed bold stays for section
   titles. Regular and italic only, the second of a pair in italic */
html:lang(en) .panel-title, html:lang(en) .method-part h3, html:lang(en) .feature h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.05; }
html:lang(en) .panel:nth-child(2) .panel-title, html:lang(en) .method-part:last-child h3 { font-style: italic; }
/* The Bawaba Method's words; the dial that holds them is in dial.css */
.method { list-style: none; padding: 0; }
.method-part h3 { line-height: 1.05; color: var(--accent); margin-block-end: 0.75rem; }
.method-part p { color: var(--muted); margin: 0; max-inline-size: 28ch; }

/* Featured project (after Webcor and Hensel Phelps): the photograph beside a night panel */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-block-size: clamp(28rem, 42vw, 38rem); background: var(--dark); color: #fff; }
.feature-plain { grid-template-columns: minmax(0, 1fr); }
.feature-img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.feature-panel { align-self: center; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem); }
.feature-plain .feature-panel { max-inline-size: var(--wrap); margin-inline: auto; inline-size: 100%; }
.feature .eyebrow { color: var(--accent-dark); }
.feature h2 { font-size: var(--t-title); color: #fff; margin-block-end: 0.5rem; overflow-wrap: anywhere; }
.feature-line { color: var(--dark-muted); font-size: var(--t-small); text-transform: uppercase; letter-spacing: 0.12em; }
:lang(ar) .feature-line, :lang(ckb) .feature-line { letter-spacing: 0; }
.feature-panel > p:not([class]) { color: #fff; max-inline-size: 42ch; }
.feature-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 1.75rem 0 0; }
.feature .link-arrow { color: #fff; }
.feature :focus-visible { outline-color: var(--accent-dark); }

/* Project library: cards are links; the filter is a row of pills */
.card-link { color: inherit; text-decoration: none; }
.card-link:hover h3 { color: var(--accent); }
.card-link .link-arrow { color: var(--accent); margin-block-start: auto; }
/* Dashboard text: long words break, and a long summary stops at four lines on the card */
.card-link .card-body > p:not(.eyebrow) { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feature-panel > p:not([class]) { overflow-wrap: anywhere; }
.project-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block-end: clamp(1.75rem, 3vw, 2.5rem); }
.project-filters a { padding: 0.55rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 600; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.project-filters a:hover { border-color: var(--accent); color: var(--accent); }
.project-filters a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--action-ink); }

/* Project page: the facts as a hairline strip (after Suffolk's fact grid), the story, the gallery, the neighbours */
.project-facts { border-block-end: 1px solid var(--line); }
.fact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-block: 0; }
.fact-strip > div { display: grid; gap: 0.35rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem); border-inline-start: 1px solid var(--line); }
.fact-strip > div:last-child { border-inline-end: 1px solid var(--line); }
.fact-strip dt { display: grid; gap: 0.5rem; justify-items: start; font-size: var(--t-small); color: var(--muted); }
.fact-strip dd { overflow-wrap: anywhere; margin: 0; font: 700 var(--t-lead)/1.25 var(--font-display); color: var(--fg); }
.project-lead { margin-block-end: 1.5em; overflow-wrap: anywhere; }
.project-lead-long { font: 600 var(--t-lead)/1.5 var(--font-body); color: var(--fg); }
.project-story p:not(.project-lead) { font-size: var(--t-lead); color: var(--muted); }
.project-gallery .zig-img { margin-block-end: 0; }
.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; padding-block: clamp(2rem, 4vw, 3rem); border-block-end: 1px solid var(--line); }
.project-nav-link { display: grid; min-inline-size: 0; overflow-wrap: anywhere; color: var(--fg); text-decoration: none; font: 700 var(--t-lead)/1.2 var(--font-display); }
.project-nav-link:hover { color: var(--accent); }
.project-nav-next { text-align: end; }

@media (max-width: 64rem) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-img { aspect-ratio: 16 / 10; block-size: auto; }
}
@media (max-width: 44rem) {
  .project-nav { grid-template-columns: 1fr; text-align: center; }
  .project-nav-next { text-align: center; }
  .fact-strip > div, .fact-strip > div:last-child { border-inline: 0; border-block-start: 1px solid var(--line); }
}

/* The figures, once supplied, under the method on limestone */
.method-facts { margin-block: clamp(2.5rem, 5vw, 4rem) 0; }
.method-facts dt { color: var(--fg); }
.method-facts dd { color: var(--muted); }

/* The Bawaba Method as a table you turn (after the Nordhavn tasting-menu site, WebLoom 2026): a full-height night stage
   and a huge chocolate-wood table whose centre sits near the far edge, so only its arc shows and it runs off the top and
   bottom. Six photographs ride the rim at 60deg; the one facing the text is the stage it tells. client/dial.ts turns it
   (drag, buttons, arrow keys, a click on a plate) and sets --turn every frame; without the script the table stands still
   on the first stage beside the three stages as a list. Logical properties, so Arabic and Kurdish mirror (text on the
   right, the table on the left, turning the other way). Loaded after projects.css. */
.dial-stage { --D: min(94vw, 165svh); position: relative; overflow: hidden; display: flex; align-items: center; min-block-size: max(100svh, 40rem); padding-block: clamp(5rem, 10vh, 8rem); color: #fff; isolation: isolate; background: var(--dark); }
.dial-wrap { position: relative; z-index: 2; pointer-events: none; }
.dial-text { max-inline-size: min(32rem, 40vw); pointer-events: auto; }

/* Text: the section title small, the stage title the headline */
.dial-title { font: 700 var(--t-h2)/1.1 var(--font-display); color: #fff; margin: 0 0 0.4rem; }
.dial-stage .tone { color: var(--accent-dark); }
.dial-lead { margin: 0 0 clamp(2rem, 5vh, 3.5rem); color: var(--dark-muted); font-size: var(--t-lead); }
.dial-count { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.25rem; font: 600 var(--t-small)/1 var(--font-body); letter-spacing: 0.14em; color: var(--dark-muted); font-variant-numeric: tabular-nums; }
.dial-count [data-dial-n] { color: var(--accent-dark); }
:lang(ar) .dial-count, :lang(ckb) .dial-count { letter-spacing: 0; }
.dial-dashes { display: inline-flex; gap: 0.4rem; }
.dial-dash { inline-size: 2.25rem; block-size: 2px; border-radius: 999px; background: rgb(255 255 255 / 0.22); transition: background-color var(--dur-3) var(--ease-out); }
.dial-dash.is-on { background: var(--accent-dark); }

.dial-stage .method { margin: 0; padding: 0; list-style: none; display: grid; gap: 2rem; }
.dial-stage .method-part h3 { font-size: var(--t-hero); line-height: var(--lh-display); color: #fff; margin: 0 0 1rem; }
/* Kufi needs room for the dots under the line */
:lang(ar) .dial-stage .method-part h3, :lang(ckb) .dial-stage .method-part h3 { margin-block-end: 0.75rem; }
.dial-stage .method-part p { max-inline-size: 30ch; margin: 0 0 1.75rem; color: rgb(255 255 255 / 0.82); font-size: var(--t-lead); }
.dial-ask { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.5rem; border: 1.5px solid rgb(255 255 255 / 0.75); border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.dial-ask:hover { background: var(--action); border-color: var(--action); color: var(--action-ink); }
[dir='rtl'] .dial-ask .icon-arrow, [dir='rtl'] .dial-next .icon-arrow, .dial-prev .icon-arrow { transform: scaleX(-1); }
[dir='rtl'] .dial-prev .icon-arrow { transform: none; }
.dial-stage :focus-visible { outline-color: var(--accent-dark); }

/* Live: one stage at a time, rising in as the table settles. The stages share one grid cell, so the block is always as
   tall as the longest stage and nothing below it moves when the stage changes */
.dial-live .method { display: grid; gap: 0; }
.dial-live .method-part { grid-area: 1 / 1; visibility: hidden; }
.dial-live .method-part.is-on { visibility: visible; animation: dial-in 560ms var(--ease-out) both; }
@keyframes dial-in { from { opacity: 0; transform: translateY(0.8rem); } to { opacity: 1; transform: none; } }

.dial-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-block-start: clamp(2rem, 5vh, 3rem); }
.dial-btn { display: grid; place-items: center; inline-size: 3rem; block-size: 3rem; padding: 0; border: 1.5px solid rgb(255 255 255 / 0.6); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.dial-btn:hover { background: #fff; color: var(--dark); }
.dial-hint { transition: opacity var(--dur-3) var(--ease-out), visibility var(--dur-3); display: inline-flex; align-items: center; gap: 0.5rem; margin-inline-start: 0.5rem; padding: 0.65rem 1.1rem; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 999px; color: var(--dark-muted); font-size: var(--t-small); }

/* The table. --turn is how far it has turned (180deg puts plate 0 at nine o'clock, facing the text); each plate sits at
   --a on the rim and turns back by the same amount so its photograph stays upright */
.dial { --turn: 180deg; position: absolute; z-index: 1; inset-block-start: 50%; inset-inline-start: calc(90% - var(--D) / 2); inline-size: var(--D); translate: 0 -50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
[dir='rtl'] .dial { --turn: 0deg; }
.dial-live .dial { cursor: grab; }
.dial-live .dial.dragging { cursor: grabbing; }
.dial-disc { position: relative; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgb(0 0 0 / 0.35) 0 9%, transparent 9.4% 30%, rgb(0 0 0 / 0.18) 30.2% 30.6%, transparent 31%),
    repeating-radial-gradient(circle at 50% 50%, rgb(255 230 200 / 0.045) 0 1px, transparent 1px 7px),
    conic-gradient(from 20deg, #4A2412, #5E3018, #42200F, #5A2D16, #3E1E0E, #55301A, #4A2412);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 60px 120px -30px rgb(0 0 0 / 0.75), inset 0 0 120px rgb(0 0 0 / 0.45); }
.dial-plate { position: absolute; inset-block-start: 50%; left: 50%; inline-size: 26%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; scale: 0.9;
  box-shadow: 0 24px 40px -14px rgb(0 0 0 / 0.75), 0 0 0 6px rgb(255 255 255 / 0.92);
  transform: translate(-50%, -50%) rotate(calc(var(--a) + var(--turn))) translateX(var(--r, 131%)) rotate(calc(-1 * (var(--a) + var(--turn))));
  transition: scale var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
.dial-live .dial-plate { cursor: pointer; }
.dial-live .dial-plate:not(.is-on):hover { scale: 0.97; box-shadow: 0 24px 40px -14px rgb(0 0 0 / 0.75), 0 0 0 6px rgb(255 138 91 / 0.7); }
/* Once the table has been turned the hint has done its job: it fades, keeping its place so nothing moves */
.dial-touched .dial-hint { opacity: 0; visibility: hidden; }
.dial-plate[data-plate='0'] { --a: 0deg; }
.dial-plate[data-plate='1'] { --a: 60deg; }
.dial-plate[data-plate='2'] { --a: 120deg; }
.dial-plate[data-plate='3'] { --a: 180deg; }
.dial-plate[data-plate='4'] { --a: 240deg; }
.dial-plate[data-plate='5'] { --a: 300deg; }
[dir='rtl'] .dial-plate[data-plate='1'] { --a: -60deg; }
[dir='rtl'] .dial-plate[data-plate='2'] { --a: -120deg; }
[dir='rtl'] .dial-plate[data-plate='4'] { --a: -240deg; }
[dir='rtl'] .dial-plate[data-plate='5'] { --a: -300deg; }
.dial-plate img { inline-size: 100%; block-size: 100%; object-fit: cover; pointer-events: none; }
.dial-plate.is-on, .dial-stage:not(.dial-live) .dial-plate[data-plate='0'] { scale: 1.12; box-shadow: 0 30px 50px -14px rgb(0 0 0 / 0.8), 0 0 0 6px var(--accent-dark); }
.dial-hub { position: absolute; inset: 44%; display: grid; place-items: center; border-radius: 50%; background: var(--dark); color: var(--accent-dark); box-shadow: inset 0 0 0 2px rgb(255 138 91 / 0.5), 0 12px 30px -8px rgb(0 0 0 / 0.7); }

/* Narrow screens: the text first, then the top half of the table under it, so the stage being told sits at twelve
   o'clock facing up at the text */
@media (max-width: 60rem) {
  .dial-stage { --D: 150vw; flex-direction: column; align-items: stretch; padding-block: 4.5rem 0; min-block-size: 0; }
  .dial-text { max-inline-size: none; }
  .dial, [dir='rtl'] .dial { --turn: 270deg; position: relative; order: 2; inset: auto; translate: none; inline-size: 100%; block-size: calc(var(--D) * 0.5); margin-block-start: 2rem; overflow: hidden; }
  .dial-disc { --r: 112%; position: absolute; inset-block-start: 0; left: 50%; inline-size: var(--D); translate: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dial-live .method-part.is-on { animation: none; }
  .dial-plate { transition: none; }
}

/* The streaks (after Blast's crowdlending page): three rounded capsules at -38deg in a bright-to-deep orange, crisp
   vector shapes, the system's one decoration, used once: in the corner of the featured project's panel. The box is
   square (--sw wide); each capsule runs along the diagonal and slides in along its own axis when the block enters.
   Right-to-left pages mirror them. The hero and About stay calm by the owner's choice. Loaded after dial.css. */
.streaks { position: absolute; z-index: 0; inline-size: var(--sw, 30rem); aspect-ratio: 1; pointer-events: none; }
[dir='rtl'] .streaks { scale: -1 1; }
.streaks i { position: absolute; display: block; border-radius: 999px; rotate: -38deg;
  background: linear-gradient(90deg, rgb(255 138 91 / 0.25), #FF7A3D 38%, var(--action) 72%, var(--action-deep));
  box-shadow: 0 18px 40px -18px rgb(168 53 11 / 0.55); }
.streaks i:nth-child(1) { inline-size: 100%; block-size: 14%; inset-block-start: 26%; inset-inline-start: 4%; }
.streaks i:nth-child(2) { inline-size: 74%; block-size: 9.5%; inset-block-start: 50%; inset-inline-start: 26%; }
.streaks i:nth-child(3) { inline-size: 52%; block-size: 6.5%; inset-block-start: 69%; inset-inline-start: 44%; }

/* Entrance: each capsule slides up along its axis, one after the other (only when motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .streaks i { transform: translateX(-28%); opacity: 0; transition: transform 1100ms var(--ease-out), opacity 700ms var(--ease-out); }
  .js .streaks i:nth-child(2) { transition-delay: 120ms; }
  .js .streaks i:nth-child(3) { transition-delay: 240ms; }
  .js .in .streaks i, .js .streaks.in i { transform: none; opacity: 1; }
}

/* The featured project: in the corner of the dark panel, behind the words */
.feature { position: relative; overflow: hidden; }
.feature-panel { position: relative; z-index: 1; }
.streaks-feature { --sw: 26rem; inset-block-end: -6rem; inset-inline-end: -5rem; opacity: 0.85; }
@media (max-width: 60rem) { .streaks-feature { --sw: 18rem; } }

/* The inset photograph sits on orange, like Blast's portraits on their orange grounds */
.split-media > .split-inset { border-color: var(--action); }

/* The elevation pass (design-system/MASTER.md §6h, DESIGN.md Components): one signature moment per page. The gate
   that opens on Home, the name on About, the index on Services, the honest empty library on Projects, the converter
   on Enquiry. Plus the browser surfaces themed from the palette. Logical properties, so Arabic and Kurdish mirror.
   Loaded after projects.css, before motion.css. */

/* Browser surfaces: checkboxes, radios, the caret and the scrollbar speak the palette */
:root { accent-color: var(--accent); caret-color: var(--accent); scrollbar-color: var(--s2) var(--bg); }
html:lang(en) .crumbs { font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }

/* Home: the promise under the two panels, in the serif */
.gate-line { max-inline-size: 30ch; margin: clamp(1.75rem, 3vw, 2.5rem) auto 0; text-align: center; font: 700 var(--t-h2)/1.25 var(--font-display); color: var(--fg); }
html:lang(en) .gate-line { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); letter-spacing: -0.01em; }

/* Project cards: the facts line under the title, never a label above it */
.card-meta { margin: -0.25rem 0 0.75rem; font: 600 var(--t-small)/1.4 var(--font-body); color: var(--muted); }

/* About: the name */
.name-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
html[dir='ltr'] .name-ar { text-align: left; }
.name-ar { margin: 0; font: 700 clamp(3rem, 1rem + 6vw, 6rem)/1.25 "Noto Kufi Arabic", "Arabic Fallback", serif; color: var(--fg); }
.name-latin { margin: 0.2rem 0 clamp(1.5rem, 3vw, 2.25rem); font: italic 400 var(--t-title)/1.1 var(--font-serif); color: var(--accent); }
.name-gloss { display: grid; gap: 1rem; margin: 0 0 1.5rem; }
.name-gloss > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.9rem; align-items: baseline; }
.name-gloss dt { font: 700 var(--t-lead)/1.3 var(--font-display); color: var(--accent); }
.name-gloss dd { margin: 0; color: var(--muted); max-inline-size: 48ch; }
.name-base { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 600; }
.name-base .icon { color: var(--accent); }
.name-photo { margin: 0; }
.name-photo img { inline-size: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.name-photo figcaption { margin-block-start: 0.6rem; font-size: var(--t-small); color: var(--muted); }

/* Services: the index. Large rows, each an enquiry; the row fills butter on hover or focus and says what it does */
.index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.index-head { position: sticky; inset-block-start: 5rem; z-index: 1; padding-block: 0.5rem 1rem; background: var(--s1); }
.index-head p { margin: 0; color: var(--muted); }
.index-list { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--line); }
.index-row { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 4.25rem; padding-inline: 0.75rem; border-block-end: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.index-row::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--action); transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-3) var(--ease-out); }
[dir='rtl'] .index-row::before { transform-origin: right center; }
.index-row:hover::before, .index-row:focus-visible::before { transform: scaleX(1); }
.index-name { font: 700 var(--t-h3)/1.2 var(--font-display); overflow-wrap: anywhere; }
.index-go { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; font: 600 var(--t-small)/1 var(--font-body); color: var(--accent); opacity: 0; translate: -6px 0; transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out); }
.index-row:hover .index-go, .index-row:focus-visible .index-go { opacity: 1; translate: 0 0; }
/* On the copper fill the row's words turn white (white on copper 4.9:1) */
.index-row:hover, .index-row:focus-visible, .index-row:hover .index-go, .index-row:focus-visible .index-go { color: var(--action-ink); }
[dir='rtl'] .index-go { translate: 6px 0; }
[dir='rtl'] .index-go .icon-arrow { transform: scaleX(-1); }
@media (hover: none), (pointer: coarse) { .index-go { opacity: 1; translate: 0 0; } }

/* Projects: an honest empty library */
.empty-state { display: grid; justify-items: center; gap: 1.25rem; padding-block: clamp(2rem, 5vw, 4rem); text-align: center; }
.empty-state p { margin: 0; max-inline-size: 40ch; font-size: var(--t-lead); color: var(--muted); }

/* Enquiry: the converter. The sector is one segmented control of native radios */
.segmented { margin: 0.75rem 0 0; padding: 0; border: 0; min-inline-size: 0; }
.segmented legend { padding: 0; margin-block-end: 0.5rem; font-weight: 600; }
.segmented-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.form .segment { position: relative; display: flex; flex: 1 1 13rem; margin: 0; font-weight: 600; }
.form .segment input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.segment span { flex: 1; display: flex; align-items: center; justify-content: center; min-block-size: 2.9rem; padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--bg); text-align: center; transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.segment:hover span { border-color: var(--accent); }
.segment input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--action-ink); }
.segment input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.segment input[aria-invalid='true'] + span { border-color: var(--error); }

@media (max-width: 64rem) {
  .index { grid-template-columns: minmax(0, 1fr); }
  .index-head { position: static; }
}
@media (max-width: 44rem) {
  .name-grid { grid-template-columns: minmax(0, 1fr); }
  .name-photo { max-inline-size: 22rem; }
}

/* Bawaba's motion and effects layer (design-system/MASTER.md §6). Transform, opacity and clip-path only; everything that
   travels sits inside prefers-reduced-motion: no-preference, so the reduced page is complete and still. Hidden states
   apply only once the script has started (html.js), so nothing stays hidden if it fails. */

/* Controls: arrows lean toward where they lead; the main action warms with a butter light; links draw an underline */
.btn .icon, .link-arrow .icon { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .icon, .link-arrow:hover .icon { transform: translateX(3px); }
[dir='rtl'] .btn:hover .icon, [dir='rtl'] .link-arrow:hover .icon { transform: scaleX(-1) translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-primary:hover { box-shadow: 0 14px 34px -14px rgb(255 138 91 / 0.9); }
.link-arrow, .hero-link, .footer a, .topbar a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; text-decoration-color: transparent; transition: text-decoration-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.link-arrow:hover, .hero-link:hover, .footer a:hover, .topbar a:hover { text-decoration-color: currentColor; }
.nav a::after { transform-origin: left; }
[dir='rtl'] .nav a::after { transform-origin: right; }

/* Header: compacts once the page scrolls */
.header-in { transition: min-block-size var(--dur-2) var(--ease-out); }
.logo-mark { transition: transform var(--dur-2) var(--ease-out); }
.header.scrolled .header-in { min-block-size: 4rem; }
.header.scrolled .logo-mark { transform: scale(0.88); }

@media (prefers-reduced-motion: no-preference) {
  /* Page to page: the header stays, the page underneath crossfades and rises (browsers without support ignore this) */
  @view-transition { navigation: auto; }
  .header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out 220ms var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in 480ms var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

  /* Headings rise out of a mask as their section enters */
  .js .rv .section-title, .js .section-title.rv, .js .rv > h2, .js .steps .rv h3 { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); transition: clip-path 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--d, 0ms) + 60ms); }
  .js .rv.in .section-title, .js .section-title.rv.in, .js .rv.in > h2, .js .steps .rv.in h3 { clip-path: inset(0 0 -0.3em 0); transform: none; }

  /* Pictures wipe upward and settle */
  .js .split-media.rv img, .js .card.rv > img, .js .contact-photo.rv img { clip-path: inset(100% 0 0 0); scale: 1.06; transition: clip-path 1000ms var(--ease-out), scale 1400ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .split-media.rv.in img, .js .card.rv.in > img, .js .contact-photo.rv.in img { clip-path: inset(0); scale: 1; }

  /* Leaving the hero: the film leans in and the words lift away (scroll-driven, where supported) */
  @supports (animation-timeline: view()) {
    .hero { view-timeline-name: --hero; }
    .hero-video, .hero-poster { animation: film-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .hero-in { animation: words-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 70%; }
    @keyframes film-out { to { transform: scale(1.08); } }
    @keyframes words-out { to { opacity: 0; transform: translateY(-48px); } }
  }

  /* The colour journey: the page ground cools from white to mist as you go down, following the film from materials
     to the city (sections with their own fields keep them) */
  @supports (animation-timeline: scroll()) {
    body { animation: ground linear both; animation-timeline: scroll(root); }
    @keyframes ground { 0% { background-color: #FBFAF7; } 55% { background-color: #F8F9FC; } 100% { background-color: #F2F4F8; } }
  }

  /* The footer name rises into place */
  .footer-name { overflow: hidden; }
  .js .footer-name.rv { opacity: 1; transform: none; }
  .js .footer-name.rv text { transform: translateY(105%); transition: transform 1200ms var(--ease-out) 150ms; }
  .js .footer-name.rv.in text { transform: none; }
}

