/*
 * Fuad Muawad & Co.: one stylesheet for the three language pages.
 * Logical properties only (margin-inline-start, padding-block, inset-inline-end...), never left or right, so the same rules
 * serve Arabic and Hebrew (right to left) and English (left to right). `npm run check` fails on a physical property.
 * Colours are tokens on :root; text colours keep AA contrast (4.5:1) on their background.
 *
 * The look (round 4, 29 Oct): bold and editorial. White, black and one strong cobalt (no gold, per the owner). A neo-grotesk
 * set large and tight; the name across the whole first screen with Haifa cut into the letters; the sections rise over the
 * first screen like a curtain; content on a two-column grid of hairline rows; photos that drift as the page scrolls.
 * Mobile first: the base rules are the phone layout; min-width queries add the wider layouts.
 */

/* Fonts: self-hosted (the CSP allows only the site's own files), variable, one subset per script. Licences: assets/fonts/licenses/.
   unicode-range means a page downloads only the scripts it shows. */
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; 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: "Heebo"; src: url("/assets/fonts/heebo-hebrew-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Readex Pro"; src: url("/assets/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --ink: #0a0a0a;            /* text on white (19:1) */
  --paper: #ffffff;
  --night: #000000;          /* the dark sections */
  --muted: #666666;          /* secondary text on white (5.7:1) */
  --muted-night: #8f8f8f;    /* secondary text on black (6.6:1) */
  --line: rgba(10, 10, 10, .14);
  --line-night: rgba(255, 255, 255, .18);
  --accent: #1f3dff;         /* the one bold colour: cobalt. White text on it is 6.6:1. Change this line to change it. */
  --accent-deep: #1430d6;
  --on-accent-muted: rgba(255, 255, 255, .78);
  --line-accent: rgba(255, 255, 255, .32);

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1rem, 2.2vw, 2rem);
  --ease: cubic-bezier(.16, .84, .24, 1);
  --track: -.02em;           /* the tight tracking of the Latin and Hebrew display type; Arabic keeps 0 */
  --track-display: -.055em;
  --bar: 3.5rem;             /* the phone header */
  /* The name across the screen: its width in em, measured per font (the font-size is the screen width divided by it). */
  --fit: 5.84;
  --fit-word: 3.66;
}
:lang(he) { --font: "Heebo", "Inter Tight", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; --track: -.01em; --track-display: -.035em; --fit: 4.27; --fit-word: 2.19; }
:lang(ar) { --font: "Readex Pro", "Inter Tight", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif; --track: 0; --track-display: 0; --fit: 5.41; --fit-word: 3.37; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.is-smooth { scroll-behavior: auto; } /* site.js eases the scrolling itself, frame by frame */
[tabindex="-1"]:focus { outline: none; } /* a section focused by a menu link (site.js) */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: var(--track); }
img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sec-accent :focus-visible, .sec-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
::selection { background: var(--accent); color: #fff; }

.skip { position: absolute; z-index: 80; inset-inline-start: 1rem; inset-block-start: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { inset-block-start: 1rem; }
.visually-hidden, .hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.icon { inline-size: 1.15em; block-size: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .icon-arrow { scale: -1 1; }

/* Buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-block-size: 3rem; padding: .75rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .icon-arrow { transition: translate .45s var(--ease); }
.btn:hover .icon-arrow { translate: .25rem 0; }
[dir="rtl"] .btn:hover .icon-arrow { translate: -.25rem 0; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); }
.btn-ink, .btn-primary { background: var(--ink); color: #fff; }
.btn-ink:hover, .btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-block { inline-size: 100%; }

/* Header. Phones: a white bar fixed at the top (brand, language, the menu button); the menu opens over the page in black.
   Wide screens: four columns across the top of the first screen; once the page scrolls past it, the section links come
   back as a floating pill. */
.site-header { position: relative; z-index: 50; }
.topbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem; min-block-size: var(--bar);
  padding-inline: var(--gutter); border-block-end: 1px solid var(--line); font-size: .875rem; line-height: 1.3;
}
/* The blur sits on a layer of its own: on the bar itself it would trap the fixed menu inside the bar. */
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .65rem; min-block-size: 2.75rem; margin-inline-end: auto; }
.brand-dot { inline-size: .55rem; block-size: .55rem; border-radius: 50%; background: var(--ink); flex: none; }
.brand-text { display: grid; }
.brand-placeholder { font-weight: 600; letter-spacing: var(--track); }
.brand-sub { color: var(--muted); display: none; }
.place { display: none; }
.clock { font-variant-numeric: tabular-nums; min-inline-size: 2.6rem; }

.header-tools { display: flex; align-items: center; gap: .25rem; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .3rem;
  min-block-size: 2.75rem; padding-inline: .6rem; border-radius: 999px; font-weight: 600;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: rgba(10, 10, 10, .06); }
.icon-chevron { inline-size: .9em; block-size: .9em; transition: rotate .3s var(--ease); }
.lang-menu[open] .icon-chevron { rotate: 180deg; }
.lang-switch {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + .4rem); min-inline-size: 10rem;
  background: var(--ink); color: #fff; border-radius: 1rem; padding: .4rem; box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, .25);
}
.lang-switch a { display: block; padding: .65rem .9rem; border-radius: .7rem; }
.lang-switch a:hover { background: rgba(255, 255, 255, .12); }
.lang-switch a[aria-current="page"] { color: var(--muted-night); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .55rem; min-block-size: 2.75rem; padding-inline: .9rem;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .875rem; cursor: pointer;
}
.menu-lines { position: relative; inline-size: .95rem; block-size: .55rem; border-block: 1.5px solid currentColor; transition: border-color .3s; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 50%; block-size: 1.5px; margin-block-start: -.75px; background: currentColor; scale: 0 1; transition: rotate .35s var(--ease), scale .35s var(--ease); }
[data-menu="open"] .menu-lines { border-color: transparent; }
[data-menu="open"] .menu-lines::before { scale: 1 1; rotate: 45deg; }
[data-menu="open"] .menu-lines::after { scale: 1 1; rotate: -45deg; }

/* The phone menu: the full screen in black, the links set large */
.site-nav {
  position: fixed; inset: var(--bar) 0 0 0; z-index: 49; background: var(--night); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
}
.site-nav ul { display: grid; }
.site-nav li { border-block-end: 1px solid var(--line-night); }
.site-nav ul a { display: block; padding-block: .9rem; font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: var(--track-display); line-height: 1.05; }
.nav-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }
.site-header:not([data-menu="open"]) .site-nav { visibility: hidden; opacity: 0; translate: 0 -1rem; transition: opacity .3s, translate .4s var(--ease), visibility 0s .4s; }
[data-menu="open"] .site-nav { visibility: visible; opacity: 1; translate: 0 0; transition: opacity .3s, translate .4s var(--ease); }
@media (scripting: none) {
  .site-header .site-nav { position: static; visibility: visible; opacity: 1; translate: none; flex-direction: row; background: none; color: inherit; padding: 0; }
  .site-nav ul { display: flex; gap: 1rem; }
  .site-nav ul a { font-size: .875rem; letter-spacing: 0; }
  .site-nav li { border: 0; }
  .nav-cta, .menu-toggle { display: none; }
}

/* The first screen */
.hero {
  position: relative; isolation: isolate; background: var(--paper); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "intro";
  row-gap: 2.5rem; padding: calc(var(--bar) + 2.5rem) var(--gutter) 3.5rem;
}
.hero-name {
  grid-area: name; position: relative; z-index: 1;
  font-weight: 650; line-height: .82; letter-spacing: var(--track-display);
  font-size: calc((100vw - 2 * var(--gutter)) / var(--fit-word));
}
:lang(ar) .hero-name { line-height: 1.05; font-weight: 600; }
.name-main, .name-tail { display: block; }
.name-tail { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 1.5rem; }
.name-sub { display: block; flex-basis: 100%; margin-block-start: 1.25rem; font-size: 1.125rem; line-height: 1.3; font-weight: 500; letter-spacing: var(--track); }
/* The photo as a card: the figure holds the place in the grid; the card inside it is tilted, and site.js floats it in and
   lets it drift aside, turn and lift as the page scrolls. */
.hero-tile {
  grid-area: name; z-index: 2; justify-self: end; align-self: end;
  position: relative; inline-size: 36%; margin-block-end: 3.25rem; aspect-ratio: 4 / 5;
}
.tile-card {
  position: absolute; inset: 0; overflow: hidden; border-radius: clamp(.85rem, 1.3vw, 1.4rem); background: #c9d3dc;
  transform: rotate(-6deg); transform-origin: 50% 50%; will-change: transform, opacity;
  box-shadow: 0 1px 2px rgba(10, 10, 10, .06), 0 14px 28px -8px rgba(10, 10, 10, .22), 0 48px 90px -30px rgba(10, 10, 10, .45);
}
.tile-card img { inline-size: 100%; block-size: 100%; object-fit: cover; scale: 1.04; }
/* A soft shade toward the bottom, where the letters cross the photo, and a fine light edge like a printed card */
.tile-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .34));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
/* Where the name crosses the card, its letters turn white: a copy of the name inside the card, held exactly over the
   real letters by site.js however the card moves (aria-hidden; without JavaScript the card simply sits over the letters).
   Anchored to the physical top left in both directions, because site.js measures from there. */
.tile-ghost { position: absolute; z-index: 3; inset-block-start: 0; inset-inline-start: 0; color: #fff; pointer-events: none; transform-origin: 0 0; will-change: transform; }
[dir="rtl"] .tile-ghost { inset-inline-start: auto; inset-inline-end: 0; }
.hero-intro { grid-area: intro; display: grid; gap: 1.75rem; }
.lede { font-size: clamp(1.25rem, 1.6vw, 1.6rem); line-height: 1.3; font-weight: 500; letter-spacing: var(--track); max-inline-size: 26ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.call-link { display: inline-flex; gap: .4rem; min-block-size: 3rem; align-items: center; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.call-link:hover { background-size: 100% 1px; }
[dir="rtl"] .call-link { background-position: 100% 100%; }
.call-link .ltr { font-variant-numeric: tabular-nums; }

/* Sections: full-bleed bands that slide over the first screen; content on hairline rows of two columns */
main > .sec, .site-footer { position: relative; z-index: 1; }
.sec { padding-block: clamp(4.5rem, 10vw, 9rem) clamp(3rem, 7vw, 6rem); }
.sec-dark { background: var(--night); color: #fff; }
.sec-accent { background: var(--accent); color: #fff; }
.sec-light { background: var(--paper); color: var(--ink); }
#services { padding-block-start: 0; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem var(--gutter);
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter); border-block-start: 1px solid var(--line-night);
}
.sec-light .row { border-color: var(--line); }
.sec-accent .row { border-color: var(--line-accent); }
.sec > .row:first-child { border-block-start: 0; }
.row-label { display: grid; align-content: start; gap: .4rem; font-size: .9375rem; line-height: 1.4; }
.row-label h2, .row-label h3 { font-size: 1rem; line-height: 1.3; letter-spacing: 0; }
.row-label p { color: var(--muted-night); max-inline-size: 34ch; }
.sec-light .row-label p { color: var(--muted); }
.sec-accent .row-label p { color: var(--on-accent-muted); }
.row-tight { padding-block-end: 1rem; }
.statement { font-size: clamp(1.6rem, 2.7vw, 2.75rem); line-height: 1.12; font-weight: 600; letter-spacing: var(--track); max-inline-size: 30ch; text-wrap: pretty; }
:lang(ar) .statement { line-height: 1.45; font-weight: 500; }
:lang(he) .statement { line-height: 1.2; }
.row-body { display: grid; align-content: start; justify-items: start; gap: 2rem; }

/* About: the facts row, set large, and two photos */
.facts { display: grid; border-block-start: 1px solid var(--line-night); margin-block-start: clamp(2rem, 5vw, 4rem); }
.facts li {
  padding: 1.25rem var(--gutter); border-block-end: 1px solid var(--line-night);
  font-size: clamp(2.5rem, 5vw, 5.75rem); font-weight: 600; line-height: 1; letter-spacing: var(--track-display);
}
.tiles { display: grid; gap: 2.5rem var(--gutter); padding: clamp(3rem, 7vw, 6rem) var(--gutter) 0; }
.tile-media { overflow: hidden; aspect-ratio: 4 / 3; background: #161616; }
.tile-portrait .tile-media { aspect-ratio: 4 / 5; }
.tile-wide .tile-media { aspect-ratio: 3 / 2; }
.tile-media img { inline-size: 100%; block-size: 118%; margin-block-start: -9%; object-fit: cover; will-change: transform; }
.tile figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-block-start: .85rem; font-size: .875rem; }
.tile figcaption span:first-child { font-weight: 600; }
.tile figcaption span + span { color: var(--muted-night); }

/* Services: oversized rows. The hover fills a row in cobalt; a click opens it, in cobalt, into who it is for and what is
   included (site.js). Without JavaScript every row shows open. */
.services { border-block-end: 1px solid var(--line-night); }
.services > li { position: relative; border-block-start: 1px solid var(--line-night); transition: background-color .6s var(--ease); }
.services > li.is-open { background: var(--accent); border-color: var(--accent); }
.svc-head { font: inherit; letter-spacing: normal; }
.svc-toggle {
  position: relative; isolation: isolate; inline-size: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: clamp(1.1rem, 2.2vw, 1.9rem) var(--gutter); border: 0; background: none; color: inherit; text-align: start; cursor: pointer;
}
.svc-toggle::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); scale: 1 0; transform-origin: 50% 100%; transition: scale .45s var(--ease); }
.svc-toggle:hover::before, .svc-toggle:focus-visible::before { scale: 1 1; transition-duration: .38s; transition-timing-function: cubic-bezier(.2, .9, .3, 1); }
.svc-toggle:focus-visible { outline-offset: -4px; }
.is-gliding .svc-toggle { pointer-events: none; } /* while the page glides under a resting pointer (site.js) */
.services .num { font-size: .875rem; font-weight: 600; color: var(--muted-night); font-variant-numeric: tabular-nums; align-self: start; padding-block-start: .5em; transition: color .4s; }
.svc-toggle:hover .num, .svc-toggle:focus-visible .num, .is-open .num { color: #fff; }
.service-name { font-size: clamp(1.9rem, 5.4vw, 5.75rem); font-weight: 600; line-height: 1; letter-spacing: var(--track-display); text-wrap: balance; }
:lang(ar) .service-name { line-height: 1.3; }
/* The plus turns into a cross when the row is open */
.svc-plus { position: relative; inline-size: clamp(1.4rem, 2.6vw, 2.4rem); aspect-ratio: 1; opacity: .45; transition: opacity .4s, rotate .6s var(--ease); }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 50%; block-size: 1.5px; margin-block-start: -.75px; background: currentColor; }
.svc-plus::after { rotate: 90deg; }
.svc-toggle:hover .svc-plus, .svc-toggle:focus-visible .svc-plus { opacity: 1; }
.is-open .svc-plus { opacity: 1; rotate: 135deg; }

.svc-panel { display: grid; grid-template-rows: 1fr; }
.svc-inner { overflow: hidden; min-block-size: 0; }
.svc-body { display: grid; gap: 2rem var(--gutter); padding: .5rem var(--gutter) clamp(2.25rem, 4vw, 3.75rem); }
@media (scripting: enabled) {
  .svc-panel { grid-template-rows: 0fr; transition: grid-template-rows .75s var(--ease); }
  .is-open > .svc-panel { grid-template-rows: 1fr; }
  .svc-body { opacity: 0; translate: 0 1.25rem; transition: opacity .35s, translate .5s var(--ease); }
  .is-open .svc-body { opacity: 1; translate: 0 0; transition: opacity .6s .18s, translate .8s var(--ease) .12s; }
}
.svc-label { font-size: .875rem; font-weight: 600; color: var(--on-accent-muted); margin-block-end: .75rem; }
.services > li:not(.is-open) .svc-label { color: var(--muted-night); }
.svc-who-text { font-size: clamp(1.4rem, 2.4vw, 2.5rem); font-weight: 600; line-height: 1.12; letter-spacing: var(--track); max-inline-size: 20ch; text-wrap: balance; }
:lang(ar) .svc-who-text { line-height: 1.45; }
.svc-list { border-block-start: 1px solid var(--line-accent); margin-block-end: 2rem; }
.svc-item { display: flex; gap: 1rem; align-items: baseline; padding-block: .95rem; border-block-end: 1px solid var(--line-accent); font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 500; line-height: 1.3; letter-spacing: var(--track); }
.svc-item::before { content: ""; flex: none; inline-size: .4em; block-size: .4em; border-radius: 50%; background: currentColor; translate: 0 -.12em; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }

/* Why: cobalt. The statement, then the monthly invoice check as four numbered steps; the last one set large */
.process { display: grid; gap: 0 var(--gutter); }
.process li { display: grid; gap: .9rem; align-content: start; padding-block: 1.25rem 1.75rem; border-block-start: 1px solid var(--line-accent); font-size: 1.0625rem; line-height: 1.45; }
.step-num { font-size: .875rem; font-weight: 600; color: var(--on-accent-muted); font-variant-numeric: tabular-nums; }
.process li:last-child p { font-size: clamp(1.75rem, 3.4vw, 3.6rem); line-height: 1.05; font-weight: 600; letter-spacing: var(--track-display); text-wrap: balance; }
:lang(ar) .process li:last-child p { line-height: 1.4; }

/* Contact: the offer as large as the name; the details as rows; the form with underlined fields */
.offer-big {
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  font-size: clamp(3rem, 10.5vw, 11.5rem); font-weight: 650; line-height: .9; letter-spacing: var(--track-display); text-wrap: balance;
}
:lang(ar) .offer-big { line-height: 1.2; font-weight: 600; }
.offer-big::after { content: ""; display: inline-block; inline-size: .16em; block-size: .16em; margin-inline-start: .06em; border-radius: 50%; background: var(--accent); }
#contact .row-label > p { font-size: clamp(1.125rem, 1.5vw, 1.375rem); color: var(--ink); max-inline-size: 26ch; line-height: 1.35; font-weight: 500; }
.details { margin-block-start: 1.75rem; border-block-end: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: minmax(6.5rem, 30%) minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-block-start: 1px solid var(--line); align-items: baseline; }
.details dt { color: var(--muted); font-size: .875rem; }
.details dd { font-size: 1.125rem; font-weight: 600; letter-spacing: var(--track); }
.details a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.details a:hover { background-size: 100% 2px; }

.lead { display: grid; gap: 1.1rem; inline-size: 100%; }
.form-title { font-size: clamp(1.375rem, 2vw, 1.75rem); margin-block-end: .5rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  inline-size: 100%; min-block-size: 3.6rem; padding: 1.45rem 0 .45rem; border: 0; border-block-end: 1px solid #8a8a8a; border-radius: 0;
  background: transparent; font-size: 1.0625rem; appearance: none; transition: border-color .3s;
}
.field textarea { min-block-size: 7.5rem; resize: vertical; }
.field label { position: absolute; inset-inline-start: 0; inset-block-start: 1.15rem; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: translate .25s var(--ease), scale .25s var(--ease), color .25s; }
[dir="rtl"] .field label { transform-origin: 100% 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-block-end: 2px solid var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field-select label { translate: 0 -.85rem; scale: .8; }
.field input:focus + label, .field textarea:focus + label, .field select:focus + label { color: var(--accent-deep); }
.field.req label::after { content: " *"; }
.field [aria-invalid="true"] { border-block-end-color: #c4231b; }
.field-select select { cursor: pointer; padding-inline-end: 2rem; }
.select-chevron { position: absolute; inset-inline-end: .25rem; inset-block-start: 1.6rem; pointer-events: none; color: var(--muted); }
.field-row { display: grid; gap: 1.1rem; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--muted); padding-block: .5rem; }
.consent input { inline-size: 1.25rem; block-size: 1.25rem; margin: .1rem 0 0; accent-color: var(--accent); flex: none; }
.lead .btn { min-block-size: 3.5rem; margin-block-start: .5rem; font-size: 1rem; }
.status { min-block-size: 1.5rem; font-weight: 500; }
.status[data-tone="ok"] { color: #0b6b3a; }
.status[data-tone="error"] { color: #b3261e; }

/* Footer: black rows, then the name across the screen again */
.site-footer { background: var(--night); color: #fff; padding-block-start: clamp(3rem, 6vw, 5rem); font-size: .9375rem; }
.site-footer .row:first-child { border-block-start: 0; }
.foot-name { font-weight: 600; }
.site-footer .row-label p + p { color: var(--muted-night); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem var(--gutter); }
.foot-list { display: grid; align-content: start; gap: .1rem; }
.foot-list a { display: inline-block; padding-block: .3rem; color: var(--muted-night); transition: color .3s; }
.foot-list a:hover, .foot-list a[aria-current="page"] { color: #fff; }
.foot-legal { color: var(--muted-night); font-size: .8125rem; gap: .5rem var(--gutter); }
.foot-mark { background: var(--paper); color: var(--ink); overflow: hidden; padding-block: clamp(1.5rem, 3vw, 2.5rem) 0; }
.foot-mark span {
  display: block; padding-inline: var(--gutter); white-space: nowrap; will-change: transform;
  font-size: calc((100vw - 2 * var(--gutter)) / var(--fit)); font-weight: 650; line-height: .84; letter-spacing: var(--track-display);
  padding-block-end: .05em;
}
:lang(ar) .foot-mark span { line-height: 1.2; font-weight: 600; padding-block-end: 0; }

/* Phones: the call and WhatsApp buttons at the bottom of the screen */
.mobile-cta {
  position: fixed; z-index: 40; inset-inline: .75rem; inset-block-end: calc(.75rem + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .4rem; border-radius: 999px;
  background: rgba(10, 10, 10, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff;
}
.mobile-cta .btn { min-block-size: 2.9rem; padding-block: .6rem; }
.mobile-cta .btn-ghost { border-color: rgba(255, 255, 255, .45); }
body { padding-block-end: 5rem; }

/* Motion: things rise into place as they come into view (site.js); none for visitors who ask for reduced motion */
.js-reveal .reveal { opacity: 0; translate: 0 2.25rem; transition: opacity 1s var(--ease), translate 1.2s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; translate: 0 0; }
.js-reveal .services li:nth-child(2) .reveal, .js-reveal .facts li:nth-child(2), .js-reveal .process li:nth-child(2), .js-reveal .tile + .tile { transition-delay: .08s; }
.js-reveal .services li:nth-child(3) .reveal, .js-reveal .facts li:nth-child(3), .js-reveal .process li:nth-child(3) { transition-delay: .16s; }
.js-reveal .process li:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: no-preference) {
  .hero-intro { animation: rise 1.1s var(--ease) .35s both; }
}
@keyframes rise { from { opacity: 0; translate: 0 1.5rem; } to { opacity: 1; translate: 0 0; } }
@keyframes pill-in { from { opacity: 0; translate: 0 -1.25rem; } to { opacity: 1; translate: 0 0; } }

/* Tablets and up */
@media (min-width: 768px) {
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { border-block-end: 0; padding-block: 1.5rem 0; }
  .facts li + li { border-inline-start: 1px solid var(--line-night); }
  .tiles { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .tile + .tile { margin-block-start: clamp(4rem, 12vw, 11rem); }
  .svc-toggle { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; column-gap: var(--gutter); }
  .svc-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services .num { font-size: 1rem; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process li:last-child { grid-column: 1 / -1; padding-block-start: 2rem; margin-block-start: 1.5rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead { max-inline-size: 40rem; }
}

/* Wide screens: the four-column top bar, the name across the screen, the curtain */
@media (min-width: 1024px) {
  :root { --bar: 0px; }
  .topbar {
    position: absolute; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: var(--gutter);
    padding-block: 1.1rem; border: 0;
  }
  .topbar::before { content: none; }
  .brand { grid-column: 1 / span 4; align-items: start; min-block-size: 0; }
  .brand-dot { margin-block-start: .4rem; margin-inline-end: clamp(1rem, 7vw, 8rem); }
  .brand-sub { display: block; }
  .site-nav, .site-header:not([data-menu="open"]) .site-nav {
    grid-column: 5 / span 4; position: static; visibility: visible; opacity: 1; translate: none; transition: none;
    background: none; color: inherit; padding: 0; display: block;
  }
  .site-nav ul { display: grid; }
  .site-nav li { border: 0; }
  .site-nav ul a { display: inline-flex; align-items: center; min-block-size: 1.5rem; padding: 0; font-size: .875rem; letter-spacing: 0; font-weight: 500; line-height: 1.3; }
  .site-nav ul a:hover, .site-nav ul a.is-active { color: var(--accent-deep); }
  .site-nav .nav-cta { display: none; }
  .header-tools { grid-column: 9 / -1; justify-self: end; align-items: start; gap: 1.25rem; }
  .place { display: grid; text-align: end; }
  .place .clock { color: var(--muted); }
  .lang-menu summary { min-block-size: 0; padding: 0; }
  .lang-menu summary:hover { background: none; color: var(--accent-deep); }
  .menu-toggle { display: none; }

  /* The floating pill, once the first screen is behind */
  html.past-hero .site-header .site-nav {
    position: fixed; inset-block: 1rem auto; inset-inline: 0; margin-inline: auto; inline-size: max-content; z-index: 60;
    display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: .25rem; padding: .35rem; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .06);
    animation: pill-in .5s var(--ease) both;
  }
  .past-hero .site-nav ul { display: flex; }
  .past-hero .site-nav ul a { padding: .6rem 1rem; border-radius: 999px; font-weight: 600; }
  .past-hero .site-nav ul a:hover, .past-hero .site-nav ul a.is-active { background: rgba(10, 10, 10, .07); color: var(--ink); }
  .past-hero .site-nav .nav-cta { display: inline-flex; padding: .6rem 1.1rem; font-size: .875rem; }
  .past-hero .site-nav .nav-cta:hover { background: var(--ink); }

  .hero {
    min-block-size: 100vh; min-block-size: 100svh;
    grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: none;
    column-gap: var(--gutter); row-gap: 0; padding: 7.5rem var(--gutter) 0;
  }
  .hero-intro { grid-area: auto; grid-column: 1 / span 5; grid-row: 1; align-self: end; padding-block-end: clamp(2rem, 5vh, 4rem); }
  .hero-name { grid-area: auto; grid-column: 1 / -1; grid-row: 2; font-size: min(calc((100vw - 2 * var(--gutter)) / var(--fit)), 33vh); padding-block-end: .04em; }
  .name-main { white-space: nowrap; }
  .name-tail { flex-wrap: nowrap; }
  .name-sub { flex-basis: auto; margin: 0 0 .35em; font-size: clamp(1rem, 1.3vw, 1.35rem); text-align: end; }
  .hero-tile { grid-area: auto; grid-column: 8 / span 3; grid-row: 1 / span 2; inline-size: 100%; justify-self: stretch; margin-block-end: 9vw; max-block-size: 70vh; }

  .row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .row > :first-child { grid-column: 1 / span 6; }
  .row > :nth-child(2) { grid-column: 7 / -1; }
  .svc-toggle, .svc-body { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .services .num { grid-column: 1 / span 6; }
  .service-name { grid-column: 7 / span 5; }
  .svc-plus { grid-column: 12; justify-self: end; }
  .svc-who { grid-column: 1 / span 6; }
  .svc-inc { grid-column: 7 / span 5; }
  .process li:last-child p { max-inline-size: 22ch; }
  .mobile-cta { display: none; }
  body { padding-block-end: 0; }
}

/* The curtain: on screens tall enough for the whole first screen, it stays put while the sections slide up over it */
@media (min-width: 1024px) and (min-height: 640px) {
  .hero { position: sticky; inset-block-start: 0; z-index: 0; block-size: 100vh; block-size: 100svh; }
  main > .sec:first-of-type { box-shadow: 0 -2rem 4rem rgba(0, 0, 0, .12); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The language chooser at / and the 404 */
.chooser { min-block-size: 100vh; min-block-size: 100dvh; display: grid; place-items: center; text-align: center; padding: 2rem var(--gutter); background: var(--paper); }
.chooser h1 { font-size: clamp(2.6rem, 9vw, 6.5rem); letter-spacing: -.05em; line-height: .95; }
.chooser p { color: var(--muted); margin-inline: auto; margin-block-start: 1rem; }
.chooser ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-block-start: 2.25rem; }
.chooser .btn { min-inline-size: 9rem; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }

@media print {
  .site-header, .mobile-cta, .skip, form.lead, .foot-mark, .hero-tile { display: none; }
  .sec-dark, .sec-accent, .site-footer { background: none; color: #000; }
  body { padding: 0; }
}
