/* ───────────────────────────────────────────────────────────────
   Masar Al-Mimar Al-Raqi — site stylesheet
   Layout concept: engineering spec sheet — hairline rules, mono
   data labels, content in a measured grid, no decorative cards.
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg:        #F6F5F2;
  --surface:   #FFFFFF;
  --surface-2: #EDEBE5;
  --fg:        #1A1C20;
  --muted:     #5C6068;
  --line:      #DBD7CF;
  --line-soft: #E8E5DE;
  --gold:      #7F601E;
  --gold-hi:   #B8903C;
  --gold-soft: #F0E7D2;
  --ink:       #23262B;
  --flag:      #9B3B27;
  --flag-soft: #F6E6E1;

  --f-display: 'IBM Plex Sans Arabic', 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --f-body:    'Noto Sans Arabic', 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --logo-a:  #44484F;
  --logo-b:  #0E1013;
  --logo-g1: #C8A24E;
  --logo-g2: #8A6A28;

  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #141619;
    --surface:   #1B1E22;
    --surface-2: #22262B;
    --fg:        #EDEBE6;
    --muted:     #9CA0A8;
    --line:      #2E333A;
    --line-soft: #24282D;
    --gold:      #D7AC55;
    --gold-hi:   #E5BE6C;
    --gold-soft: #2B2415;
    --ink:       #E6E4DF;
    --flag:      #E09883;
    --flag-soft: #30201C;
    --logo-a:    #FFFFFF;
    --logo-b:    #A9AFB8;
    --logo-g1:   #EBCF88;
    --logo-g2:   #C2963C;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:        #141619;
  --surface:   #1B1E22;
  --surface-2: #22262B;
  --fg:        #EDEBE6;
  --muted:     #9CA0A8;
  --line:      #2E333A;
  --line-soft: #24282D;
  --gold:      #D7AC55;
  --gold-hi:   #E5BE6C;
  --gold-soft: #2B2415;
  --ink:       #E6E4DF;
  --flag:      #E09883;
  --flag-soft: #30201C;
  --logo-a:    #FFFFFF;
  --logo-b:    #A9AFB8;
  --logo-g1:   #EBCF88;
  --logo-g2:   #C2963C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.doc { display: flow-root; }

img, svg { max-width: 100%; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gut);
  padding-right: var(--gut-r);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

/* ── data slot: content the company still has to supply ───────── */
.slot, .slot-inline {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--flag);
  background: var(--flag-soft);
  border: 1px dashed var(--flag);
  border-radius: 2px;
  padding: 0.1em 0.5em;
  display: inline-block;
  white-space: nowrap;
}
.slot-block {
  border: 1px dashed var(--flag);
  background: var(--flag-soft);
  border-radius: 3px;
  padding: 1rem 1.1rem;
  color: var(--flag);
  font-size: 0.86rem;
  line-height: 1.6;
}
.slot-block strong { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.3rem; }

/* a permanent editorial note — not a data gap */
.note-block {
  border-inline-start: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 2px;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}
.note-block strong {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}

/* ── buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72em 1.4em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border-radius: 2px;
  transition: background .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-sm { font-size: 0.82rem; padding: 0.55em 1em; }

/* ── header ───────────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-block: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--fg); }
.mark { width: 78px; height: 27px; flex: none; display: block; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 1.35rem; margin-inline-start: auto; }
.nav a {
  font-family: var(--f-display);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--fg); }
.nav a.here { color: var(--fg); border-bottom-color: var(--gold); }
.head-aux { display: flex; align-items: center; gap: 0.7rem; }
.lang {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.3em 0.6em;
}
.lang:hover { color: var(--gold); border-color: var(--gold); }
.burger { display: none; background: none; border: 0; padding: 0.4rem; cursor: pointer; margin-inline-start: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 4px 0; }

@media (max-width: 900px) {
  .brand-name { display: none; }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.86rem; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .head-in { flex-wrap: wrap; }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    order: 3;
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.5rem;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 0.6rem; border-bottom: 1px solid var(--line-soft); }
  .nav a.here { border-bottom-color: var(--gold); }
  .head-aux .btn { display: none; }
}

/* ── sections ─────────────────────────────────────────────────── */
section { border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }
.sec { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec-head { margin-bottom: 2.6rem; }
.sec-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 0.8rem; }

/* ── hero ─────────────────────────────────────────────────────── */
.hero { padding-block: clamp(3.2rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.hero-in { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 17ch;
  margin-bottom: 1.3rem;
}
.hero h1 .accent { color: var(--gold); }
.hero .lede { font-size: clamp(1.02rem, 2.2vw, 1.22rem); max-width: 54ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.rays {
  position: absolute;
  inset-block: -20%;
  inset-inline-end: -6%;
  width: 46%;
  min-width: 320px;
  opacity: 0.09;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 760px) { .rays { opacity: 0.055; inset-inline-end: -28%; } }

/* ── stat strip ───────────────────────────────────────────────── */
.stats { background: var(--surface); border-block: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 0; }
.stat { padding: 1.9rem 1.4rem; border-inline-start: 1px solid var(--line-soft); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat .num { font-family: var(--f-display); font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; display: block; }
.stat .num.mono { font-family: var(--f-mono); font-weight: 500; }
.stat .cap { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.55rem; display: block; }
@media (max-width: 860px) {
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.4rem 1rem; }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* ── generic grids ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 2rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; } }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2rem 3.5rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; } }

/* ── item blocks (services, capabilities) ─────────────────────── */
.item { border-top: 2px solid var(--fg); padding-top: 1.1rem; min-width: 0; }
.item h3, .item h2 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.item p { color: var(--muted); font-size: 0.95rem; }
.item .tag { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.5rem; }

.scope { margin: 0.9rem 0 0; padding: 0; list-style: none; }
.scope li { position: relative; padding-inline-start: 1.05rem; font-size: 0.92rem; color: var(--muted); }
.scope li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.78em; width: 5px; height: 5px; background: var(--gold); }

/* ── numbered process ─────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 1.6rem 1.2rem 0; border-inline-start: 1px solid var(--line-soft); position: relative; min-width: 0; }
.step:first-child { border-inline-start: 0; padding-inline-start: 0; }
.step::before {
  content: "";
  position: absolute; top: -1px; inset-inline-start: 0;
  width: 34%; height: 3px; background: var(--gold);
}
.step:first-child::before { inset-inline-start: 0; }
.step .n { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gold); display: block; margin-bottom: 0.7rem; }
.step h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { border-inline-start: 0; border-top: 1px solid var(--line-soft); padding-inline: 0; padding-block: 1.3rem 0.6rem; }
  .step:first-child { border-top: 0; }
  .step:nth-child(even) { padding-inline-start: 1.2rem; border-inline-start: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(even) { padding-inline-start: 0; border-inline-start: 0; }
}

/* ── sector / project cards ───────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.4rem 1.5rem;
  min-width: 0;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; color: var(--muted); }

.shot {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background:
    repeating-linear-gradient(135deg, var(--line-soft) 0 10px, transparent 10px 20px),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

.chip {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 0.18em 0.6em;
  display: inline-block;
  border: 1px solid currentColor;
}
.chip-done { color: var(--gold); background: var(--gold-soft); }
.chip-live { color: var(--fg); background: var(--surface-2); }
.proj-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.proj-head h3, .proj-head h2 { font-size: 1.05rem; }

/* ── before / after pairs ─────────────────────────────────────── */
.ba { display: grid; gap: 2.2rem; }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-items: start;
  min-width: 0;
}
.pair figure { margin: 0; min-width: 0; }
.pair img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  background: var(--surface-2);
}
.pair figcaption {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.pair figcaption::before {
  content: "";
  width: 14px; height: 2px; flex: none;
  background: var(--line);
}
.pair .is-after figcaption { color: var(--gold); }
.pair .is-after figcaption::before { background: var(--gold); }
.pair-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.7rem; grid-column: 1 / -1; }
.pair-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pair .is-plan figcaption { color: var(--fg); }
.pair .is-plan figcaption::before { background: var(--fg); }
.pair .is-plan img { outline: 1px solid var(--line); outline-offset: -1px; }
@media (max-width: 700px) {
  .pair-3 { grid-template-columns: 1fr 1fr; }
  .pair-3 figure:last-of-type { grid-column: 1 / -1; max-width: 60%; }
}
@media (max-width: 440px) {
  .pair, .pair-3 { grid-template-columns: 1fr; gap: 1.2rem; }
  .pair-3 figure:last-of-type { max-width: 100%; }
}

/* ── map: iframe over a readable fallback ─────────────────────── */
.map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface);
  min-height: 300px;
  display: grid;
}
.map-fallback {
  grid-area: 1 / 1;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  text-align: start;
}
.map-fallback p { font-size: 0.95rem; }
.map-fallback .coords { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); }
.map iframe {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map iframe { filter: invert(0.92) hue-rotate(180deg) saturate(0.75); }
}
:root[data-theme="dark"] .map iframe { filter: invert(0.92) hue-rotate(180deg) saturate(0.75); }

.feature { margin-block: 0 2.4rem; }
.feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  background: var(--surface-2);
}
.feature figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 0.7rem;
}
@media (max-width: 560px) {
  .feature img { aspect-ratio: 4 / 3; }
}

.spec { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 0.9rem; }
.spec th, .spec td { text-align: start; padding: 0.42rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec th { font-family: var(--f-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); width: 42%; }
.spec td { color: var(--fg); }

.table-scroll { overflow-x: auto; position: relative; -webkit-overflow-scrolling: touch; }
.scroll-hint { display: none; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 600px) {
  .scroll-hint { display: block; }
  .table-scroll {
    background:
      linear-gradient(to left, var(--bg) 30%, transparent) right / 40px 100% no-repeat local,
      linear-gradient(to right, var(--bg) 30%, transparent) left / 40px 100% no-repeat local,
      radial-gradient(farthest-side at right, rgba(0,0,0,.14), transparent) right / 14px 100% no-repeat scroll,
      radial-gradient(farthest-side at left, rgba(0,0,0,.14), transparent) left / 14px 100% no-repeat scroll;
  }
  .matrix { min-width: 500px; }
}
.matrix { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 540px; }
.matrix th, .matrix td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line-soft); text-align: start; }
.matrix thead th { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.matrix tbody th { font-weight: 600; font-family: var(--f-display); }
.matrix td.yes { color: var(--gold); font-weight: 600; }

/* ── callout band ─────────────────────────────────────────────── */
.band { background: var(--ink); color: var(--bg); border-block: 0; }
.band .wrap { padding-block: clamp(2.6rem, 6vw, 4rem); }
.band h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); margin-bottom: 0.9rem; color: inherit; }
.band p { color: var(--bg); opacity: 0.78; max-width: 56ch; }
.band .eyebrow { color: var(--gold-hi); }
.band .btn { background: var(--gold); border-color: var(--gold); color: #17191c; }
.band .btn:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.band-in { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.6rem; }

/* ── contact ──────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem 3.5rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--f-body);
  font-size: 0.96rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.6rem 0.75rem;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.note { margin-top: 1rem; font-size: 0.9rem; border-inline-start: 3px solid var(--gold); padding: 0.6rem 0.9rem; background: var(--gold-soft); color: var(--fg); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.2rem; font-size: 0.95rem; }
.kv dt { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.35em; }
.kv dd { margin: 0; }
.copy-btn { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; background: none; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); padding: 0.45em 0.7em; min-height: 32px; cursor: pointer; margin-inline-start: 0.5rem; vertical-align: middle; }
.copy-btn:hover { color: var(--gold); border-color: var(--gold); }

/* ── footer ───────────────────────────────────────────────────── */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr; gap: 1.6rem; } }
.foot-brand .mark { width: 104px; height: 36px; }
.foot-tag { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; max-width: 34ch; }
.foot-col h3 { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 0.8rem; }
.foot-col p { font-size: 0.92rem; margin-bottom: 0.35rem; }
.foot-col a { text-decoration: none; color: var(--fg); border-bottom: 1px solid transparent; }
.foot-col a:hover { border-bottom-color: var(--gold); color: var(--gold); }
.foot-col .k { color: var(--muted); font-size: 0.78rem; display: block; }
.foot-col .v { display: block; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding-block: 1.1rem 1.6rem; border-top: 1px solid var(--line-soft); font-size: 0.8rem; color: var(--muted); }

/* ── prose (privacy) ──────────────────────────────────────────── */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.2rem; margin: 2.2rem 0 0.7rem; }
.prose p, .prose li { color: var(--muted); font-size: 0.96rem; }
.prose ul { padding-inline-start: 1.2rem; }

/* ── partner studio tile ──────────────────────────────────────── */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem 3rem;
  align-items: center;
}
@media (max-width: 860px) { .studio { grid-template-columns: minmax(0, 1fr); } }
.studio-logo {
  display: block;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.studio-logo:hover { border-color: var(--gold); transform: translateY(-2px); }
.studio-logo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; display: block; background: #000; }
.studio-meta { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.6rem; }
[dir="rtl"] .studio-meta { font-family: var(--f-display); letter-spacing: 0; font-size: 0.8rem; }

/* ── persistent WhatsApp action ───────────────────────────────── */
.wa {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(18px + env(safe-area-inset-right, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.7em 1.05em;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: background .18s, border-color .18s, transform .18s;
}
.wa:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-1px); }
.wa svg { width: 18px; height: 18px; flex: none; fill: var(--gold); }
.wa:hover svg { fill: #fff; }
@media (max-width: 560px) {
  .wa { padding: 0.75em; border-radius: 50%; }
  .wa .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wa svg { width: 22px; height: 22px; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Arabic: small labels in the display face, no tracking ─────── */
[dir="rtl"] :is(.eyebrow, .cap, .tag, .chip, .spec th, .matrix thead th, .field label,
                .foot-col h3, .step .n, .pair figcaption, .slot, .slot-block strong,
                .note-block strong, .kv dt, .foot-col .k, .scroll-hint, .lang) {
  font-family: var(--f-display);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
[dir="rtl"] .eyebrow { font-size: 0.8rem; }
[dir="rtl"] .cap { font-size: 0.78rem; }

/* ── print ─────────────────────────────────────────────────────── */
@media print {
  .site-head, .wa, .burger, .band .btn, .hero-cta, .copy-btn, .map iframe { display: none !important; }
  body { background: #fff; color: #000; }
  a { text-decoration: none; color: inherit; }
  .sec { padding-block: 1.2rem; }
}
