/* Tiraz Labs · طراز — base styles v5 "Burgundy, ivory and the gold stitch" (owner: foundation A). Tokens only, logical properties only.
   Contract with examples: public/DESIGN.md §4–5. Motion states live in css/motion.css; the reel tile in css/ui/reel.css.
   Contents: reset · type · links · buttons · chips · forms · switches · layout (wrap, sections, 12-col grid, patterns) ·
   bands (ivory, grain) · section head · cards (+ cartouche) · the stitch (diamond) · prices and gold · media frames · page head · logo · divider ·
   deprecated v2 utilities · a11y helpers. */

/* ======================================================================
   Reset
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: var(--t-body); line-height: var(--lh-ar-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
html[lang="en"] body { line-height: var(--lh-en-body); }
img, svg, video, canvas { max-width: 100%; }
img, video { display: block; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--w-display, 600); line-height: var(--lh-ar-h3); text-wrap: balance; }
html[lang="en"] :is(h1, h2, h3, h4, h5, h6) { line-height: var(--lh-en-h3); }
p, figure, blockquote, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
html.menu-is-open { overflow: hidden; }
::selection { background: var(--selection); color: inherit; }

/* ======================================================================
   Typography. Arabic: Alexandria 600 for display, h1–h3; IBM Plex Sans Arabic 400/500 for text, UI and h4.
   Latin: Syne 700 for display, h1–h3 (tight tracking; lowercase welcome, never forced); IBM Plex Sans Arabic for text.
   Space Mono: numbers, eyebrows, tags, small labels. Never letter-space Arabic, never italic Arabic. Sentence case everywhere.
   ====================================================================== */
.t-display, .t-h1, .t-h2, .t-h3 { font-family: var(--f-display); color: var(--text); font-weight: var(--w-display); text-wrap: balance; }
.t-display { font-size: var(--t-display); line-height: var(--lh-ar-display); }
.t-h1 { font-size: var(--t-h1); line-height: var(--lh-ar-display); }
.t-h2 { font-size: var(--t-h2); line-height: var(--lh-ar-h2); }
.t-h3 { font-size: var(--t-h3); line-height: var(--lh-ar-h3); }
.t-h4 { font-family: var(--f-body); color: var(--text); font-weight: 600; font-size: var(--t-h4); line-height: var(--lh-ar-h3); text-wrap: balance; }
html[lang="en"] :is(.t-display, .t-h1) { letter-spacing: var(--tr-display); line-height: var(--lh-en-display); }
html[lang="en"] .t-h2 { letter-spacing: var(--tr-h2); line-height: var(--lh-en-h2); }
html[lang="en"] .t-h3 { letter-spacing: var(--tr-h3); line-height: var(--lh-en-h3); }
html[lang="en"] .t-h4 { letter-spacing: 0; line-height: var(--lh-en-h3); }
/* the signature line (v4 Mr Dafoe, retired): now a Syne Bold lowercase-friendly line in gold, once per page at most */
.t-sign { font-family: var(--f-sign); font-size: var(--t-sign); font-weight: var(--w-lat-display); line-height: 1.1; color: var(--prestige-lg); letter-spacing: var(--tr-h2); padding-inline: .05em; }
.t-lead { font-size: var(--t-lead); line-height: 1.7; color: var(--text-soft); max-width: var(--measure-lead); }
html[lang="en"] .t-lead { line-height: 1.55; }
.t-body { font-size: var(--t-body); color: var(--text-soft); max-width: var(--measure); }
.t-small { font-size: var(--t-small); line-height: 1.65; }
.t-caption { font-size: var(--t-caption); line-height: 1.55; color: var(--text-faint); }
.t-num, .num { font-variant-numeric: lining-nums tabular-nums; }
.t-figure { font-family: var(--f-num); font-size: var(--t-figure); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--text); }
.measure { max-width: var(--measure); }
.soft { color: var(--text-soft); }
.faint { color: var(--text-faint); }
.accent, .gold { color: var(--accent); }
.latin { font-family: var(--f-lat-body); }
/* prose: long text blocks (legal, product descriptions) */
.prose { max-width: var(--measure); color: var(--text-soft); }
.prose > * + * { margin-block-start: 1em; }
.prose :is(h2, h3) { color: var(--text); margin-block-start: 1.6em; }
.prose a { color: var(--accent); }

/* eyebrow: a small sentence-case label above a title, in Space Mono (Arabic falls through to IBM Plex Sans Arabic), led by the
   gold stitch (a 7px diamond). Optional number: <span class="eyebrow-num">01</span>. (.has-tri kept as an alias: same diamond.) */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-label); font-size: var(--t-caption); font-weight: 400; line-height: 1.5; color: var(--text-soft); }
html[lang="en"] .eyebrow { letter-spacing: var(--tr-mono); }
.eyebrow::before { content: ""; flex: none; width: var(--diamond); height: var(--diamond); background: var(--ornament); transform: rotate(45deg); }
.eyebrow-num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--text-faint); font-weight: 400; }

/* legacy heading classes → the v3 scale */
.h-hero { font-family: var(--f-display); font-size: var(--t-display); line-height: var(--lh-ar-display); font-weight: var(--w-display); color: var(--text); }
.h1, .page-title { font-family: var(--f-display); font-size: var(--t-h1); line-height: var(--lh-ar-display); font-weight: var(--w-display); color: var(--text); }
.h2, .sec-title { font-family: var(--f-display); font-size: var(--t-h2); line-height: var(--lh-ar-h2); font-weight: var(--w-display); color: var(--text); }
.h3 { font-family: var(--f-display); font-size: var(--t-h3); line-height: var(--lh-ar-h3); font-weight: var(--w-display); color: var(--text); }
.display { font-family: var(--f-display); }
html[lang="en"] :is(.h-hero, .h1, .page-title) { letter-spacing: var(--tr-display); line-height: var(--lh-en-display); }
html[lang="en"] :is(.h2, .sec-title) { letter-spacing: var(--tr-h2); line-height: var(--lh-en-h2); }
html[lang="en"] .h3 { letter-spacing: var(--tr-h3); line-height: var(--lh-en-h3); }
.lead { font-size: var(--t-lead); line-height: 1.7; color: var(--text-soft); max-width: var(--measure-lead); }
html[lang="en"] .lead { line-height: 1.55; }

/* ======================================================================
   Links
   ====================================================================== */
/* .link: inline link in running text */
.link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(var(--accent-rgb), .4);
  transition: text-decoration-color var(--dur-1) var(--ease-out); }
.link:hover { text-decoration-color: currentColor; }
/* .text-link: a standalone "more" link (label + arrow). Underline appears on hover. */
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-size: var(--t-small); font-weight: 500; text-decoration: none;
  transition: color var(--dur-1) var(--ease-out); }
.text-link > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: transparent; transition: text-decoration-color var(--dur-2) var(--ease-out); }
.text-link:hover { color: var(--accent); }
.text-link:hover > span { text-decoration-color: currentColor; }
.text-link.is-accent { color: var(--accent); }
/* arrows (T.ICON.arrow) flip in RTL and nudge on hover */
.ia-arrow, .tz-arrow { flex: none; transition: transform var(--dur-2) var(--ease-out); }
html[dir="rtl"] :is(.ia-arrow, .tz-arrow) { transform: scaleX(-1); }
:is(a, button):hover > :is(.ia-arrow, .tz-arrow) { transform: translateX(3px); }
html[dir="rtl"] :is(a, button):hover > :is(.ia-arrow, .tz-arrow) { transform: scaleX(-1) translateX(3px); }

/* ======================================================================
   Buttons (ivory on burgundy / burgundy on ivory = do something; never gold)
   .btn           ivory fill, burgundy text (burgundy fill, ivory text in .band-paper): THE action (= .btn-primary). One per view.
   .btn-secondary quiet hairline outline (.btn-line = alias)
   .btn-ghost     text (+ arrow), no box (tertiary)
   .btn-wa        WhatsApp: action fill + the WhatsApp glyph (T.ICON.wa). .btn-wa.is-quiet = outline version
   .btn-inverse   ivory fill (on photos / video)
   sizes: .btn-sm 44px (48 on touch) · default 48px · .btn-lg 56px · .btn-block · .btn-icon
   ====================================================================== */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl);
  font: 600 var(--t-small)/1.1 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  background: var(--accent-fill); color: var(--accent-ink);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.btn:hover { background: var(--accent-fill-hover); }
.btn:active { translate: 0 1px; }
.btn-primary, .btn-gold { background: var(--accent-fill); color: var(--accent-ink); font-weight: 600; box-shadow: var(--shadow-1); }
.btn-primary:hover, .btn-gold:hover { background: var(--accent-fill-hover); }
.btn-secondary, .btn-line { border-color: var(--line-2); color: var(--text); background: transparent; font-weight: 500; }
.btn-secondary:hover, .btn-line:hover { border-color: var(--accent-line); color: var(--accent); background: transparent; }
.btn-ghost { padding-inline: 4px; min-height: 48px; border-radius: var(--r-1); color: var(--text); background: transparent; font-weight: 500; }
.btn-ghost:hover { color: var(--accent); background: transparent; }
.btn-wa { background: var(--accent-fill); color: var(--accent-ink); }
.btn-wa > svg { width: 20px; height: 20px; flex: none; }
.btn-wa.is-quiet { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-wa.is-quiet > svg { color: var(--wa); }
.btn-wa.is-contact > svg, .btn-wa.is-quiet > svg:is(.ia-arrow, .tz-arrow) { color: inherit; } /* arrows and non-WhatsApp fallbacks: no green */
.btn-wa.is-quiet:hover { border-color: var(--accent-line); color: var(--accent); background: transparent; }
/* on a photo / video: ivory button */
.btn-inverse { background: var(--paper); color: var(--ink-0); font-weight: 600; }
.btn-inverse:hover { background: var(--leaf-hover); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: var(--t-caption); }
@media (pointer: coarse) { .btn-sm { min-height: 48px; } }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--t-body); }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 48px; padding: 0; }
.btn-icon.btn-sm { width: 44px; }
@media (pointer: coarse) { .btn-icon.btn-sm { width: 48px; } }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row, .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 479px) { .btn-row.is-stack-mobile { display: grid; } .btn-row.is-stack-mobile > .btn { width: 100%; } }

/* ======================================================================
   Chips, badges, tags (quiet)
   ====================================================================== */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 12px; border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--surface-3); color: var(--text-soft); font-family: var(--f-label); font-size: var(--t-caption); font-weight: 400; line-height: 1.4; white-space: nowrap; }
.chip-outline { background: transparent; border-color: var(--line-2); }
.chip[data-tone="accent"], .chip[data-tone="soon"] { background: var(--accent-soft); color: var(--accent); }
.chip[data-tone="ok"] { background: var(--ok-soft); color: var(--ok); }
.chip[data-tone="warn"] { background: var(--warn-soft); color: var(--warn); }
.chip-dot::before { content: ""; width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); } /* a small stitch */
.chip-mono { font-variant-numeric: tabular-nums; } /* DEPRECATED: same as .chip */
/* filter chips */
button.chip { min-height: 44px; padding-inline: 16px; cursor: pointer; background: transparent; border-color: var(--line-2); color: var(--text-soft); font-family: var(--f-body); font-size: var(--t-small);
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
button.chip:hover { border-color: var(--accent-line); color: var(--text); }
button.chip[aria-pressed="true"], button.chip[aria-selected="true"] { background: var(--accent-soft-2); border-color: var(--accent-line); color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-family: var(--f-label); font-size: var(--t-caption); font-weight: 700; line-height: 1.5; }

/* ======================================================================
   Forms
   ====================================================================== */
.field { display: grid; gap: 8px; }
.field > label, .field-label { font-size: var(--t-small); font-weight: 500; color: var(--text); }
.field-hint { font-size: var(--t-caption); color: var(--text-faint); }
.field-error { font-size: var(--t-caption); color: var(--bad); font-weight: 500; }
.input, .select { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); color: var(--text); font-size: 1rem; /* surface = burg-2: faint placeholder 5.8:1 */
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.input:hover, .select:hover { border-color: var(--text-soft); }
.input:focus, .select:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); outline: none; }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
textarea.input { padding: 14px 16px; min-height: 140px; line-height: 1.7; resize: vertical; }
.input::placeholder { color: var(--text-faint); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--bad); }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap > select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); /* physical: a down chevron in both directions */ pointer-events: none; opacity: .7; }
.select-wrap.block { display: flex; width: 100%; }
.select-wrap.inline > select { border: 0; background: transparent; min-height: 44px; padding-block: 0; padding-inline-start: 0; padding-inline-end: 22px; font-weight: 600; color: inherit; width: auto; box-shadow: none; }
.select-wrap.inline::after { inset-inline-end: 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: var(--t-small); color: var(--text-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-block-start: .25em; accent-color: var(--accent-fill); flex: none; }

/* switches (T.langSwitch / T.themeSwitch) and the country control (T.countrySelect) */
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.seg-btn { min-width: 44px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-soft); cursor: pointer;
  font-size: var(--t-caption); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--dur-1), color var(--dur-1); }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.seg-btn[lang="en"] { font-family: var(--f-lat-body); }
.seg-icon svg { width: 16px; height: 16px; }
@media (pointer: coarse) { .seg-btn { min-width: 48px; height: 44px; } button.chip, .select-wrap.inline > select, .text-link { min-height: 48px; } } /* touch: every control ≥ 48px (seg buttons sit in a 50px pill) */
.ctl-country { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); color: var(--text-soft); white-space: nowrap; }
.ctl-inline select { color: var(--text); font-size: var(--t-small); field-sizing: content; }

/* ======================================================================
   Layout: containers, sections, 12-column grid, patterns
   ====================================================================== */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: calc(var(--container-wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(800px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
/* sections: one rhythm. Two neighbours on the same background share one gap (the second loses its top padding). */
.sec { position: relative; padding-block: var(--sec-y); }
.sec-sm { position: relative; padding-block: var(--sec-y-sm); }
.sec-alt { background: var(--bg-alt); }
.sec-flush-top, .sec-tight-top { padding-block-start: 0; }
.sec-flush-bottom { padding-block-end: 0; }
.sec:not(.sec-alt, .band-dark, .band, .band-paper) + .sec:not(.sec-alt, .band-dark, .band, .band-paper),
.sec.sec-alt + .sec.sec-alt { padding-block-start: 0; }
.sec-line { border-block-start: 1px solid var(--line); } /* a hairline between two same-background sections */
/* the first block of a page sits under the transparent header (page heads and the home hero) */
.under-header { margin-block-start: calc(-1 * var(--hdr-h)); padding-block-start: calc(var(--hdr-h) + var(--ph-pad, 0px)); }

/* 12-column grid. Phones: everything full width (4-col track; .m-half = 2 of 4). ≥768: .col-N spans N of 12. ≥1080: .col-lg-N. */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--row-gap); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.grid > .m-half { grid-column: span 2; }
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid > .col-3 { grid-column: span 3; } .grid > .col-4 { grid-column: span 4; } .grid > .col-5 { grid-column: span 5; } .grid > .col-6 { grid-column: span 6; }
  .grid > .col-7 { grid-column: span 7; } .grid > .col-8 { grid-column: span 8; } .grid > .col-9 { grid-column: span 9; } .grid > .col-12 { grid-column: 1 / -1; }
  .grid > .start-2 { grid-column-start: 2; } .grid > .start-5 { grid-column-start: 5; } .grid > .start-6 { grid-column-start: 6; } .grid > .start-7 { grid-column-start: 7; } .grid > .start-8 { grid-column-start: 8; }
}
@media (min-width: 1080px) {
  .grid > .col-lg-3 { grid-column: span 3; } .grid > .col-lg-4 { grid-column: span 4; } .grid > .col-lg-5 { grid-column: span 5; } .grid > .col-lg-6 { grid-column: span 6; }
  .grid > .col-lg-7 { grid-column: span 7; } .grid > .col-lg-8 { grid-column: span 8; } .grid > .col-lg-12 { grid-column: 1 / -1; }
  .grid > .start-lg-2 { grid-column-start: 2; } .grid > .start-lg-6 { grid-column-start: 6; } .grid > .start-lg-7 { grid-column-start: 7; } .grid > .start-lg-8 { grid-column-start: 8; }
}
/* patterns */
.split { display: grid; gap: var(--row-gap) var(--col-gap); align-items: center; }               /* text + media */
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split > :first-child { grid-column: 1 / span 5; } .split > :last-child { grid-column: 7 / -1; }      /* 5 | gap | 6 (text | media) */
  .split.is-media-first > :first-child { grid-column: 1 / span 6; } .split.is-media-first > :last-child { grid-column: 8 / -1; }
  .split.is-even > :first-child { grid-column: 1 / span 6; } .split.is-even > :last-child { grid-column: 7 / -1; }
  .split.is-top { align-items: start; }
}
.cards { display: grid; gap: var(--col-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards.cards-2, .cards.cards-3, .cards.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .cards.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stack { display: flex; flex-direction: column; gap: var(--stack, 16px); }
.stack-lg { --stack: clamp(24px, 3vw, 40px); }
/* a list of facts: label / value rows separated by hairlines */
.facts { display: grid; border-block-start: 1px solid var(--line); }
.facts > * { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--line); font-size: var(--t-small); }
.facts dt, .facts .k { color: var(--text-faint); }
.facts dd, .facts .v { color: var(--text); font-weight: 500; text-align: end; }
/* plain checklist (deliverables, features) */
.ticks { display: grid; gap: 10px; }
.ticks > li { position: relative; padding-inline-start: 26px; color: var(--text-soft); }
.ticks > li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .7em; width: 6px; height: 6px; background: var(--ornament); transform: rotate(45deg); /* the stitch as the bullet */ }

/* ======================================================================
   Bands
   .band-paper  an IVORY section: ivory ground, burgundy text; tokens flip in tokens.css.
   .band-dark / .band (v2/v3): a feature band on the burgundy: the darker alternate burgundy, flat (no glow, no gradient).
   .grain       subtle film-grain overlay (add to <body> or any section; pointer-events none, decorative).
   ====================================================================== */
.band-paper { position: relative; isolation: isolate; }
.band-dark, .band { position: relative; color: var(--text); isolation: isolate; background: var(--bg-alt); }
.band-dark.is-flat { background: var(--bg); }
/* grain: an SVG fractal-noise tile (data: URI, CSP img-src allows data:), static (no animation) so it costs nothing per frame */
.grain { position: relative; isolation: isolate; }
.grain::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px; }
body.grain::before { position: fixed; } /* the whole page: fixed so it never scrolls or repaints */
.band-paper.grain::before { mix-blend-mode: multiply; filter: invert(1); }

/* ======================================================================
   Section head (T.secHead): eyebrow · h2 · lead. Stacked and start-aligned by default; .is-split puts the lead beside the title.
   ====================================================================== */
.sec-head { display: grid; gap: 16px; justify-items: start; margin-block-end: var(--head-gap); }
.sec-head > .sec-title { max-width: 20ch; }
.sec-head > .sec-lead { max-width: var(--measure-lead); font-size: var(--t-lead); line-height: 1.7; color: var(--text-soft); }
html[lang="en"] .sec-head > .sec-lead { line-height: 1.55; }
.sec-head > .sec-extra { margin-block-start: 8px; }
.sec-head.is-center { justify-items: center; text-align: center; }
.sec-head.is-center > * { margin-inline: auto; }
@media (min-width: 900px) {
  .sec-head.is-split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .sec-head.is-split > * { grid-column: 1 / -1; }
  .sec-head.is-split > .sec-title { grid-column: 1 / span 7; }
  .sec-head.is-split > .sec-lead { grid-column: 8 / -1; justify-self: stretch; }
}
.sec-index { margin: 0; } /* v2 name of the eyebrow row */
.mini-head { font-size: var(--t-small); font-weight: 600; color: var(--text); margin-block-end: 12px; }

/* ======================================================================
   Cards and surfaces
   .card          hairline panel on ink-2 (radius 16)   .card-pad   standard padding
   a.card / .card-link  lifts on hover (translate + soft shadow)
   .card-quiet    no border, soft fill                  .card.is-featured  leaf hairline
   .card-cartouche  gold hairline with two clipped corners (prices, the featured package, "most requested"). See below.
   ====================================================================== */
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--text);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out); }
.card-pad { padding: clamp(20px, 2.4vw, 32px); }
.card-quiet { border-color: transparent; background: var(--surface-2); }
a.card, .card-link { display: block; text-decoration: none; color: inherit; }
@media (hover: hover) {
  a.card:hover, .card-link:hover, .card.is-hoverable:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); translate: 0 -3px; }
}
.card.is-featured { border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .5); }
@media (hover: hover) { a.card:hover, .card-link:hover, .card.is-hoverable:hover { translate: 0 -4px; } }
/* a whole card clickable through its title link: put .stretched on the <a> inside a position:relative card */
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.panel { border-radius: var(--r-card); background: var(--surface-2); padding: clamp(24px, 3vw, 40px); }
.hairline, .rule, hr.rule { display: block; height: 1px; border: 0; margin: 0; background: var(--line); }

/* .card-cartouche (name kept): the PRESTIGE card. v5: a soft-rounded flat card with a 1px gold hairline (dark gold on ivory);
   no clipped corners, no glow. Use for prices, the featured package and "most requested"; at most ONE gold-framed card per screen.
   <article class="card-cartouche card-pad">…</article>   ·   .is-tag adds a corner label: <span class="cartouche-tag">الأكثر طلبًا</span> */
.card-cartouche { position: relative; isolation: isolate; color: var(--text); background: var(--surface); border: 1px solid var(--prestige-line); border-radius: var(--r-card); }
.card-cartouche.is-raised { background: var(--surface-3); }
.cartouche-tag { position: absolute; inset-block-start: -1px; inset-inline-end: -1px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px;
  background: var(--prestige); color: var(--bg); font-family: var(--f-label); font-size: var(--t-caption); font-weight: 700; line-height: 1.5;
  border-start-end-radius: var(--r-card); border-end-start-radius: var(--r-ctl); } /* gold + burgundy 7.9:1 · on ivory: burgundy + ivory 13.1:1 */
/* THE STITCH (الغرزة): the small gold diamond, a square rotated 45°. The brand's only ornament: bullets, eyebrow marker, divider.
   <span class="tri" aria-hidden="true"></span> (v4 name) = <span class="stitch" aria-hidden="true"></span> */
.tri, .stitch { display: inline-block; flex: none; width: var(--diamond); height: var(--diamond); background: var(--ornament); transform: rotate(45deg); vertical-align: middle; }
.rule-tri, .rule-stitch { display: flex; align-items: center; gap: 14px; color: var(--ornament); }
.rule-tri::before, .rule-tri::after, .rule-stitch::before, .rule-stitch::after { content: ""; flex: 1; height: 1px; background: var(--prestige-line); }

/* ======================================================================
   Prices and gold
   .price-from  "يبدأ من 1,500 ر.س" : label (soft) + amount (gold Space Mono figure) + currency/unit (mono, faint)
   .gold-text   flat gold on ONE word, number or price in a heading (large text only: dark gold inside .band-paper).
   ====================================================================== */
.price-from { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .15em .45em; color: var(--text-soft); font-size: var(--t-small); line-height: 1.4; }
.price-from .pf-label { color: var(--text-soft); }
.price-from .pf-amount { font-family: var(--f-num); font-size: var(--pf-size, 1.75em); font-weight: 700; line-height: 1.1; letter-spacing: -.03em;
  color: var(--prestige-lg); font-variant-numeric: lining-nums tabular-nums; unicode-bidi: isolate; } /* direction inherited: «470 ر.س» reads amount-first in Arabic, «SAR 470» in English */
.price-from .pf-unit { color: var(--text-faint); font-family: var(--f-label); font-size: var(--t-caption); }
.price-from.is-lg { --pf-size: var(--t-figure); }
.price-from.is-sm { --pf-size: 1.25em; }
.gold-text { color: var(--prestige-lg); background: none; -webkit-text-fill-color: currentColor; }
.prestige, .t-gold { color: var(--prestige); }

/* ======================================================================
   Media frames: real work shown big, one radius, one shadow.
   <figure class="media media-shadow ar-feature"><img …></figure>
   Roles (match research/v3-images.md): .ar-hero (4:5 phone → 2:1) · .ar-feature 16:10 · .ar-card 4:3 · .ar-gallery 16:10 · .ar-wide 21:9 (≥768, 16:10 on phones) ·
          .ar-portrait 4:5 · .ar-square 1:1 · .ar-video 16:9.  .media-tag = "illustrative" label in a corner.
   ====================================================================== */
.media { position: relative; overflow: hidden; border-radius: var(--r-media); background: var(--surface-2); isolation: isolate; }
.media > img, .media > video, .media > picture, .media > picture > img, .media > canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.media.is-contain > img { object-fit: contain; }
.media-shadow { box-shadow: var(--shadow-media); }
.media-line { box-shadow: inset 0 0 0 1px var(--line); }
.media-flat { border-radius: 0; }
.media-sm { border-radius: var(--r-card); }
.ar-hero { aspect-ratio: 4 / 5; } @media (min-width: 768px) { .ar-hero { aspect-ratio: 2 / 1; } }
.ar-feature { aspect-ratio: 16 / 10; }
.ar-card { aspect-ratio: 4 / 3; }
.ar-gallery { aspect-ratio: 16 / 10; }
.ar-wide { aspect-ratio: 16 / 10; } @media (min-width: 768px) { .ar-wide { aspect-ratio: 21 / 9; } }
.ar-portrait { aspect-ratio: 4 / 5; }
.ar-square { aspect-ratio: 1; }
.ar-video { aspect-ratio: 16 / 9; }
.media-tag { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2; padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(var(--shade-rgb), .78); color: var(--ivory); font-size: var(--t-caption); font-weight: 500; line-height: 1.4; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.media-caption, figcaption.caption { margin-block-start: 12px; font-size: var(--t-caption); color: var(--text-faint); }

/* ======================================================================
   Page head (T.pageHead, inner pages): eyebrow · h1 · lead · extra, optional aside. Slides under the header.
   ====================================================================== */
.page-head { --ph-pad: clamp(48px, 1.6rem + 6.6vw, 128px); position: relative; isolation: isolate; padding-block-end: clamp(48px, 1.9rem + 4.6vw, 96px); background: var(--bg); }
.page-head.is-alt { background: var(--bg-alt); }
.page-head.is-line { border-block-end: 1px solid var(--line); }
.page-head-inner { position: relative; display: grid; gap: 20px; justify-items: start; }
.page-head .page-title { max-width: var(--measure-title); }
.page-head .page-lead { font-size: var(--t-lead); line-height: 1.7; color: var(--text-soft); max-width: var(--measure-lead); }
html[lang="en"] .page-head .page-lead { line-height: 1.55; }
.page-head .page-extra { margin-block-start: 12px; }
.page-head.is-center .page-head-inner { justify-items: center; text-align: center; }
.page-head.is-center .page-title, .page-head.is-center .page-lead { margin-inline: auto; }
@media (min-width: 1080px) {
  .page-head.has-aside .page-head-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .page-head.has-aside .page-head-main { grid-column: 1 / span 7; display: grid; gap: 20px; justify-items: start; }
  .page-head.has-aside .page-head-aside { grid-column: 9 / -1; }
}
.page-head-main { display: grid; gap: 20px; justify-items: start; }
.page-head.is-center .page-head-main { justify-items: center; }
/* optional 3D slot (T.pageHead({ gl: "field" })): decorative, on the inline-end side, faded under the text */
.page-head-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.page-head-gl { position: absolute; inset: 0; opacity: .55; -webkit-mask-image: linear-gradient(to var(--ph-mask, right), transparent 25%, #000 75%); mask-image: linear-gradient(to var(--ph-mask, right), transparent 25%, #000 75%); }
html[dir="rtl"] .page-head-gl { --ph-mask: left; }
.page-head-gl canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 767px) { .page-head-gl { opacity: .3; } }
.page-eyebrow { margin: 0; }
/* v2 pieces that may still be in old markup */
.ph-floor, .ph-thread, .ph-meta { display: none; }

/* ======================================================================
   Logo (T.logo): inline SVG; v5 colours via --logo-ink / --logo-spark (ivory wordmark + gold stitch on burgundy; burgundy + dark gold
   inside .band-paper). Height-driven: set --logo-h.
   ====================================================================== */
.ia-logo, .tz-logo { display: block; height: var(--logo-h, 32px); width: auto; overflow: visible; direction: ltr; }
.ia-logo :is(.il-spark, .il-diamond) { fill: var(--logo-spark); }
/* entrance (T.logo({ animate: true })): the wordmark fades in, the diamond (the stitch) drops in; skipped under reduced motion */
.ia-logo.is-drawing .il-w { opacity: 0; animation: ia-fade-in 600ms var(--ease-out) 300ms forwards; }
.ia-logo.is-drawing :is(.il-spark, .il-diamond) { transform-box: fill-box; transform-origin: center; transform: translateY(-40%) scale(0); animation: ia-drop 450ms var(--ease-out) 250ms forwards; }
@keyframes ia-drop { to { transform: none; } }
@keyframes ia-fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ia-logo.is-drawing * { animation: none !important; stroke-dasharray: none !important; transform: none !important; opacity: 1 !important; } }

/* divider (T.divider): a plain hairline in the container */
.tz-divider { display: block; width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.tz-divider::before { content: ""; display: block; height: 1px; background: var(--line); }
.tz-divider > span { display: none; }
.tz-divider-simple { padding-inline: 0; max-width: none; }

/* ======================================================================
   DEPRECATED v2 utilities: kept so old markup renders quietly. Don't use in new code.
   ====================================================================== */
.label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-label); font-size: var(--t-caption); font-weight: 400; line-height: 1.5; color: var(--text-faint); }
.label-accent { color: var(--accent); }
.mono { font-variant-numeric: tabular-nums; }
.idx { font-family: var(--f-mono); font-size: var(--t-caption); font-variant-numeric: tabular-nums; color: var(--text-faint); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.idx b { color: var(--text); font-weight: 500; }
.coord { display: none !important; }                 /* fake coordinates: gone */
.caps { font-weight: 500; }                          /* no more tracked caps */
.lit { color: var(--accent-line); text-shadow: none; }  /* one accent phrase, no glow (use sparingly, if at all) */
.xh { display: none; }                               /* T.corners() crosshairs */
.frame { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); }
.brackets { background: none; }
.grid-bg { background: none; }
.rule::after, .rule-center::after { display: none; }
[data-glow-follow]::before { content: none; }
.tz-knot { display: none; }

/* ======================================================================
   Focus, scrollbar, a11y helpers, placeholders
   ====================================================================== */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .card-link:focus-visible, a.card:focus-visible { outline-offset: 3px; box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .18); }
html { scrollbar-color: var(--scroll-thumb) transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#skip-link:focus { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; width: auto; height: auto; clip: auto; clip-path: none; z-index: 100; padding: 10px 16px;
  background: var(--accent-fill); color: var(--accent-ink); border-radius: var(--r-ctl); text-decoration: none; font-weight: 600; }
/* Before JS renders: the header placeholder takes its final height and empty section placeholders take none (CLS ≈ 0). */
#site-header:empty { display: block; height: var(--hdr-h); }
main [data-section]:empty { padding: 0 !important; margin: 0 !important; min-height: 0 !important; background: none !important; border: 0 !important; }
