/* ==========================================================================
   Bannani — campaign site
   Design direction: the operations room. Deep pre-dawn indigo, Makkah
   limestone, and a brass signal colour borrowed from a departure board.
   Arabic-first. All spacing uses logical properties so one sheet serves
   both RTL and LTR.
   ========================================================================== */

:root {
  /* ---- colour ---- */
  --night:      #0D1826;
  --night-2:    #142337;
  --night-3:    #1E3049;
  --night-line: #26364d;

  --paper:      #F0EEE9;
  --paper-2:    #E4E1DA;
  --paper-line: #D2CDC2;

  --stone:      #DCD2C0;
  --ink:        #0F1A26;
  --muted-dark: #8A9AAE;   /* on night */
  --muted-light:#5C6775;   /* on paper */

  --brass:      #C8963E;
  --brass-soft: rgba(200, 150, 62, .14);
  --jade:       #2F7D63;
  --alert:      #B4472F;

  /* ---- type ---- */
  --f-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --f-data:    "IBM Plex Mono", ui-monospace, monospace;

  /* ---- metrics ---- */
  --shell:   1180px;
  --gutter:  clamp(20px, 5vw, 64px);
  --band:    clamp(72px, 9vw, 140px);
  --radius:  4px;

  --t-fast: 160ms cubic-bezier(.4, 0, .2, 1);
  --t-med:  340ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 640ms cubic-bezier(.16, 1, .3, 1);
}

html[lang="en"] {
  --f-display: "IBM Plex Sans", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans", system-ui, sans-serif;
}

/* ==========================================================================
   base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-block-start: 88px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--stone);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (max-width: 560px) { body { font-size: 17px; } }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.24;
  margin: 0;
  letter-spacing: -0.01em;
}
html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.4; }

p { margin: 0 0 1.1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

button, input, select, textarea {
  font: inherit; color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brass); color: var(--night); }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--brass); color: var(--night);
  padding: 14px 22px; z-index: 999; font-weight: 600;
}
.skip:focus { inset-inline-start: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden;
      clip-path: inset(50%); white-space: nowrap; }

/* ==========================================================================
   layout primitives
   ========================================================================== */

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.band { padding-block: var(--band); position: relative; }
.band--paper { background: var(--paper); color: var(--ink); }
.band--paper-2 { background: var(--paper-2); color: var(--ink); }
.band--night { background: var(--night); color: var(--stone); }
.band--night-2 { background: var(--night-2); color: var(--stone); }

/* section eyebrow: a small station-code style label */
.eyebrow {
  font-family: var(--f-data);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex; align-items: center; gap: 12px;
  margin-block-end: 26px;
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px;
  background: currentColor; opacity: .3;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-family: var(--f-body); font-size: 13px; }

.section-head { max-width: 760px; margin-block-end: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); }
.section-head p {
  margin-block-start: 20px; font-size: 19px;
  color: var(--muted-dark); max-width: 62ch;
}
.band--paper .section-head p, .band--paper-2 .section-head p { color: var(--muted-light); }

/* ==========================================================================
   masthead
   ========================================================================== */

.masthead {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  background: rgba(13, 24, 38, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-block-end: 1px solid var(--night-line);
  transition: background var(--t-med), border-color var(--t-med);
}
.masthead__in {
  max-width: var(--shell); margin-inline: auto;
  padding: 0 var(--gutter);
  height: 74px; display: flex; align-items: center; gap: 22px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--brass); color: var(--brass);
  font-family: var(--f-data); font-size: 13px; letter-spacing: .04em;
  border-radius: var(--radius);
}
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--stone); white-space: nowrap; }
.brand__role { display: block; font-family: var(--f-body); font-weight: 400;
               font-size: 12px; color: var(--muted-dark); }

.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  text-decoration: none; font-size: 15px; color: var(--muted-dark);
  padding: 10px 13px; border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--stone); background: rgba(255,255,255,.05); }

.masthead__tools { display: flex; align-items: center; gap: 8px; margin-inline-start: 12px; }

.lang-toggle {
  background: none; border: 1px solid var(--night-3); color: var(--muted-dark);
  padding: 9px 14px; border-radius: var(--radius); cursor: pointer;
  font-family: var(--f-data); font-size: 13px; min-height: 40px;
  transition: all var(--t-fast);
}
.lang-toggle:hover { border-color: var(--brass); color: var(--brass); }

.burger {
  display: none; background: none; border: 1px solid var(--night-3);
  color: var(--stone); width: 44px; height: 42px; border-radius: var(--radius);
  cursor: pointer; align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor;
               position: relative; transition: transform var(--t-fast); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor;
  transition: transform var(--t-fast);
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

@media (max-width: 980px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset-block-start: 74px; inset-inline: 0;
    background: var(--night-2); border-block-end: 1px solid var(--night-line);
    flex-direction: column; padding: 14px var(--gutter) 24px; gap: 2px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--t-fast), transform var(--t-fast);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; font-size: 17px; }
  .brand__role { display: none; }
}

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  position: relative; padding-block: clamp(120px, 17vh, 190px) clamp(60px, 8vw, 90px);
  overflow: hidden;
}

/* radar graticule — a nod to the meteorology degree. Quiet, not decorative noise. */
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(to right, transparent 0 79px, rgba(200,150,62,.06) 79px 80px),
    repeating-linear-gradient(to bottom, transparent 0 79px, rgba(200,150,62,.05) 79px 80px);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}
.hero__glow {
  position: absolute; inset-block-start: -30%; inset-inline-end: -10%;
  width: 780px; height: 780px; pointer-events: none;
  background: radial-gradient(circle, rgba(200,150,62,.13), transparent 62%);
}

.hero__in { position: relative; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-data); font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brass);
  border: 1px solid rgba(200,150,62,.35); background: var(--brass-soft);
  padding: 8px 16px; border-radius: 100px; margin-block-end: 34px;
}
html[lang="ar"] .hero__eyebrow { letter-spacing: 0; font-family: var(--f-body); }
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brass);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.hero h1 {
  font-size: clamp(38px, 6.6vw, 82px);
  max-width: 16ch; color: #fff;
  text-wrap: balance;
}
html[lang="ar"] .hero h1 { max-width: 19ch; }

.hero__sub {
  margin-block-start: 30px; max-width: 60ch; font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted-dark); line-height: 1.85;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 42px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius);
  font-family: var(--f-body); font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast),
              border-color var(--t-fast), color var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brass); color: var(--night); }
.btn--primary:hover { background: #d9a852; }
.btn--ghost { border-color: var(--night-3); color: var(--stone); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn--onpaper { border-color: var(--paper-line); color: var(--ink); }
.btn--onpaper:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---- stat strip: the departure board ---- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-block-start: clamp(56px, 8vw, 96px);
  border: 1px solid var(--night-line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.028), transparent);
  overflow: hidden;
}
.stat { padding: 28px 26px; border-inline-end: 1px solid var(--night-line); }
.stat:last-child { border-inline-end: none; }
.stat__v {
  font-family: var(--f-data); font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500; color: var(--brass); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__l { margin-block-start: 12px; font-size: 14.5px; color: var(--muted-dark); line-height: 1.55; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: none; }
  .stat:nth-child(-n+2) { border-block-end: 1px solid var(--night-line); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-inline-end: none; border-block-end: 1px solid var(--night-line); }
  .stat:last-child { border-block-end: none; }
}

/* ==========================================================================
   about
   ========================================================================== */

.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 86px); align-items: start; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

.about__body p { font-size: 19px; line-height: 1.9; }
.about__body p:first-of-type { font-size: 21px; }

.facts { border-block-start: 2px solid var(--ink); }
.fact { padding-block: 18px; border-block-end: 1px solid var(--paper-line); }
.fact__l {
  font-family: var(--f-data); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-light);
}
html[lang="ar"] .fact__l { letter-spacing: 0; font-family: var(--f-body); font-size: 13px; }
.fact__v { font-weight: 600; margin-block-start: 5px; font-size: 16.5px; }

/* ==========================================================================
   candidate note
   ========================================================================== */

.note__card {
  max-width: 780px; margin-inline: auto;
  border: 1px solid var(--night-line); border-radius: var(--radius);
  background: var(--night-2);
  padding: clamp(32px, 5vw, 62px);
  position: relative;
}
.note__card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 3px; height: 100%; background: var(--brass);
}
.note__card p { font-size: 19.5px; line-height: 1.95; color: var(--stone); }
.note__sig {
  margin-block-start: 34px; padding-block-start: 24px;
  border-block-start: 1px solid var(--night-line);
  font-family: var(--f-display); font-size: 19px; color: var(--brass);
}

/* ==========================================================================
   career timeline
   ========================================================================== */

.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; inset-block: 8px 0;
  inset-inline-start: 0; width: 1px; background: var(--paper-line);
}
@media (max-width: 760px) { .timeline::before { display: none; } }

.role {
  display: grid; grid-template-columns: 200px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 30px 0 30px clamp(20px, 3vw, 38px);
  padding-inline-start: clamp(20px, 3vw, 38px); padding-inline-end: 0;
  border-block-end: 1px solid var(--paper-line);
  position: relative;
}
.role::before {
  content: ""; position: absolute; inset-block-start: 42px; inset-inline-start: -4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--muted-light);
}
.role.is-featured::before { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }

.role__period {
  font-family: var(--f-data); font-size: 13.5px; color: var(--muted-light);
  padding-block-start: 6px; letter-spacing: .02em;
}
html[lang="ar"] .role__period { font-family: var(--f-body); }
.role__title { font-size: 22px; }
.role.is-featured .role__title { color: var(--ink); }
.role__org {
  font-size: 15.5px; color: var(--muted-light); margin-block-start: 6px;
  font-family: var(--f-data); letter-spacing: .01em;
}
html[lang="ar"] .role__org { font-family: var(--f-body); }
.role__points { margin: 16px 0 0; padding: 0; list-style: none; }
.role__points li {
  position: relative; padding-inline-start: 20px; margin-block-end: 8px;
  font-size: 16.5px; line-height: 1.72; color: #33404f;
}
.role__points li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 12px;
  width: 7px; height: 1px; background: var(--brass);
}

.role__tag {
  display: inline-block; margin-block-start: 14px;
  font-family: var(--f-data); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass); border: 1px solid rgba(200,150,62,.5);
  padding: 4px 11px; border-radius: 100px;
}
html[lang="ar"] .role__tag { letter-spacing: 0; font-family: var(--f-body); font-size: 12.5px; }

@media (max-width: 760px) {
  .role { grid-template-columns: 1fr; gap: 10px; padding-inline-start: 0; }
  .role::before { display: none; }
  .role__period { padding-block-start: 0; }
}

.timeline__more {
  margin-block-start: 32px; display: flex; justify-content: center;
}
.role.is-hidden { display: none; }

/* ==========================================================================
   stations console — the signature element
   ========================================================================== */

.console {
  border: 1px solid var(--night-line); border-radius: var(--radius);
  background: var(--night-2); overflow: hidden;
}

.console__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-block-end: 1px solid var(--night-line);
  background: rgba(0,0,0,.22);
  font-family: var(--f-data); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-dark);
}
html[lang="ar"] .console__bar { letter-spacing: 0; font-family: var(--f-body); font-size: 13.5px; }
.console__bar .live { display: flex; align-items: center; gap: 8px; color: var(--jade); }
.console__bar .live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--jade);
  animation: pulse 2.2s ease-in-out infinite;
}
.console__clock { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

.console__tabs {
  display: flex; overflow-x: auto; scrollbar-width: none;
  border-block-end: 1px solid var(--night-line);
}
.console__tabs::-webkit-scrollbar { display: none; }

.st-tab {
  flex: 1 0 auto; min-width: 118px; background: none; border: none;
  border-inline-end: 1px solid var(--night-line);
  padding: 18px 14px; cursor: pointer; text-align: center;
  color: var(--muted-dark); transition: background var(--t-fast), color var(--t-fast);
  position: relative;
}
.st-tab:last-child { border-inline-end: none; }
.st-tab:hover { background: rgba(255,255,255,.04); color: var(--stone); }
.st-tab__code {
  display: block; font-family: var(--f-data); font-size: 11px;
  letter-spacing: .1em; opacity: .6; margin-block-end: 6px;
}
.st-tab__name { display: block; font-size: 15.5px; font-weight: 600; }
.st-tab[aria-selected="true"] { color: var(--brass); background: rgba(200,150,62,.08); }
.st-tab[aria-selected="true"]::after {
  content: ""; position: absolute; inset-block-end: -1px; inset-inline: 0;
  height: 2px; background: var(--brass);
}

.console__body { padding: clamp(26px, 4vw, 44px); }
.st-panel { display: none; }
.st-panel.is-active { display: block; animation: fade var(--t-med); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.st-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3.5vw, 48px); }
@media (max-width: 780px) { .st-cols { grid-template-columns: 1fr; } }

.st-col__label {
  font-family: var(--f-data); font-size: 11.5px; letter-spacing: .15em;
  text-transform: uppercase; margin-block-end: 14px;
  display: flex; align-items: center; gap: 9px;
}
html[lang="ar"] .st-col__label { letter-spacing: 0; font-family: var(--f-body); font-size: 13.5px; }
.st-col--now .st-col__label { color: var(--muted-dark); }
.st-col--next .st-col__label { color: var(--brass); }
.st-col p { font-size: 17.5px; line-height: 1.85; margin: 0; }
.st-col--now p { color: var(--muted-dark); }
.st-col--next p { color: var(--stone); }
.st-col--next {
  padding-inline-start: clamp(18px, 2.5vw, 30px);
  border-inline-start: 1px solid var(--night-line);
}
@media (max-width: 780px) {
  .st-col--next { padding-inline-start: 0; border-inline-start: none;
                  padding-block-start: 24px; border-block-start: 1px solid var(--night-line); }
}

.st-metric {
  margin-block-start: 30px; padding-block-start: 22px;
  border-block-start: 1px solid var(--night-line);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.st-metric__l { font-size: 14.5px; color: var(--muted-dark); }
.st-metric__v {
  font-family: var(--f-data); font-size: 26px; color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.console__note {
  margin-block-start: 20px; font-size: 14px; color: var(--muted-dark);
  display: flex; gap: 9px; align-items: flex-start;
}
.console__note svg { flex-shrink: 0; margin-block-start: 3px; }

/* ==========================================================================
   credentials
   ========================================================================== */

.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(30px, 5vw, 70px); }
@media (max-width: 780px) { .creds { grid-template-columns: 1fr; } }

.cred {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  padding-block: 20px; border-block-end: 1px solid var(--paper-line);
  align-items: baseline;
}
.cred__y {
  font-family: var(--f-data); font-size: 14px; color: var(--muted-light);
  font-variant-numeric: tabular-nums;
}
.cred__t { font-weight: 600; font-size: 17px; line-height: 1.5; }
.cred.is-major .cred__t { color: var(--ink); }
.cred.is-major .cred__y { color: var(--brass); }
.cred__o { font-size: 14.5px; color: var(--muted-light); margin-block-start: 3px; }

.memberships { margin-block-start: 46px; padding-block-start: 30px; border-block-start: 2px solid var(--ink); }
.memberships h3 { font-size: 18px; margin-block-end: 14px; }
.memberships li { font-size: 16.5px; }

/* ==========================================================================
   capabilities
   ========================================================================== */

.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--night-line);
        border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 720px) { .caps { grid-template-columns: 1fr; } }
.cap { background: var(--night); padding: clamp(26px, 3.4vw, 40px); transition: background var(--t-fast); }
.cap:hover { background: var(--night-2); }
.cap h3 { font-size: 20px; color: #fff; margin-block-end: 12px; }
.cap p { font-size: 16.5px; color: var(--muted-dark); margin: 0; line-height: 1.8; }

/* ==========================================================================
   testimonials
   ========================================================================== */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; }
.quote {
  border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 30px; background: #fff;
}
.quote__t { font-size: 18px; line-height: 1.8; margin-block-end: 22px; }
.quote__t::before { content: "”"; font-family: var(--f-display); font-size: 40px;
  color: var(--brass); line-height: 0; vertical-align: -12px; margin-inline-end: 6px; }
.quote__n { font-weight: 600; font-size: 16px; }
.quote__r { font-size: 14.5px; color: var(--muted-light); margin-block-start: 2px; }
.quote a { color: var(--muted-light); font-size: 13.5px; }

.empty-state {
  border: 1px dashed var(--paper-line); border-radius: var(--radius);
  padding: 46px; text-align: center; color: var(--muted-light);
}

/* ==========================================================================
   documents
   ========================================================================== */

.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.doc {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  border: 1px solid var(--night-line); border-radius: var(--radius);
  padding: 22px; background: var(--night-2);
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.doc:hover { border-color: var(--brass); transform: translateY(-2px); background: var(--night-3); }
.doc__icon {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--night-3); border-radius: var(--radius); color: var(--brass);
}
.doc__t { font-weight: 600; font-size: 16.5px; }
.doc__n { font-size: 14px; color: var(--muted-dark); margin-block-start: 2px; }

/* ==========================================================================
   forms
   ========================================================================== */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }

.field label {
  display: block; font-size: 14.5px; font-weight: 600;
  margin-block-end: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: var(--radius); font-size: 16.5px; color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA3AE; }

/* dark variants */
.on-night .field input, .on-night .field select, .on-night .field textarea {
  background: var(--night); border-color: var(--night-3); color: var(--stone);
}
.on-night .field label { color: var(--stone); }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.65; color: var(--muted-light);
  cursor: pointer;
}
.consent input {
  width: 22px; height: 22px; min-height: 0; flex-shrink: 0;
  margin-block-start: 2px; accent-color: var(--brass); cursor: pointer;
}

.form-msg {
  margin-block-start: 18px; padding: 15px 18px; border-radius: var(--radius);
  font-size: 16px; display: none;
}
.form-msg.is-ok { display: block; background: rgba(47,125,99,.13); border: 1px solid rgba(47,125,99,.42); color: #1D5F49; }
.form-msg.is-err { display: block; background: rgba(180,71,47,.11); border: 1px solid rgba(180,71,47,.4); color: #8E3623; }
.on-night .form-msg.is-ok { color: #6FCFAC; }
.on-night .form-msg.is-err { color: #E8967F; }

.endorse__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 78px); align-items: start; }
@media (max-width: 900px) { .endorse__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   forum
   ========================================================================== */

.qa { border-block-start: 1px solid var(--night-line); margin-block-start: 40px; }
.qa__item { padding-block: 26px; border-block-end: 1px solid var(--night-line); }
.qa__q { font-family: var(--f-display); font-size: 18.5px; color: #fff;
         display: flex; gap: 13px; align-items: baseline; }
.qa__q span { color: var(--brass); font-family: var(--f-data); font-size: 14px; flex-shrink: 0; }
.qa__a { margin-block-start: 12px; padding-inline-start: 30px; color: var(--muted-dark); font-size: 17px; }
.qa__meta { margin-block-start: 10px; padding-inline-start: 30px;
            font-family: var(--f-data); font-size: 12.5px; color: var(--muted-dark); opacity: .7; }

/* ==========================================================================
   contact
   ========================================================================== */

.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-block-end: 46px; }
.channel {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  border: 1px solid var(--night-line); border-radius: var(--radius);
  padding: 20px; background: var(--night-2); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  text-align: start; width: 100%;
}
.channel:hover { border-color: var(--brass); background: var(--night-3); }
.channel__ic { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
               border-radius: var(--radius); background: var(--brass-soft); color: var(--brass); }
.channel__t { font-weight: 600; font-size: 16px; color: var(--stone); }
.channel__v { font-size: 14px; color: var(--muted-dark); font-family: var(--f-data); direction: ltr; }

/* ==========================================================================
   footer
   ========================================================================== */

.foot { background: #0A121D; border-block-start: 1px solid var(--night-line); padding-block: 54px 40px; }
.foot__top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.foot__disclaimer { max-width: 52ch; font-size: 14.5px; color: var(--muted-dark); line-height: 1.75; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__links a { font-size: 14.5px; color: var(--muted-dark); text-decoration: none; }
.foot__links a:hover { color: var(--brass); }
.foot__bar {
  margin-block-start: 34px; padding-block-start: 22px; border-block-start: 1px solid var(--night-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 13.5px; color: var(--muted-dark); font-family: var(--f-data);
}
html[lang="ar"] .foot__bar { font-family: var(--f-body); }

/* ==========================================================================
   assistant / chat dock
   ========================================================================== */

.dock {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 90;
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px;
}

.dock__btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border-radius: 100px; cursor: pointer;
  background: var(--brass); color: var(--night); border: none;
  font-weight: 600; font-size: 15.5px;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  transition: transform var(--t-fast);
}
.dock__btn:hover { transform: translateY(-2px); }

.chat {
  width: min(390px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px));
  background: var(--night-2); border: 1px solid var(--night-3);
  border-radius: 10px; display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.chat.is-open { display: flex; animation: fade var(--t-med); }
.chat__head { padding: 16px 18px; border-block-end: 1px solid var(--night-line);
              display: flex; align-items: center; gap: 12px; }
.chat__head h3 { font-size: 16.5px; color: #fff; }
.chat__head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted-dark); }
.chat__close { margin-inline-start: auto; background: none; border: none; color: var(--muted-dark);
               cursor: pointer; width: 34px; height: 34px; border-radius: var(--radius); }
.chat__close:hover { color: var(--stone); background: rgba(255,255,255,.06); }
.chat__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 12px; font-size: 15.5px; line-height: 1.7; }
.msg--bot { background: var(--night); border: 1px solid var(--night-line); align-self: flex-start; }
.msg--me { background: var(--brass); color: var(--night); align-self: flex-end; font-weight: 500; }
.chat__sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat__sugg button {
  background: none; border: 1px solid var(--night-3); color: var(--muted-dark);
  padding: 8px 13px; border-radius: 100px; font-size: 13.5px; cursor: pointer;
  transition: all var(--t-fast);
}
.chat__sugg button:hover { border-color: var(--brass); color: var(--brass); }
.chat__form { display: flex; gap: 8px; padding: 14px; border-block-start: 1px solid var(--night-line); }
.chat__form input {
  flex: 1; background: var(--night); border: 1px solid var(--night-3); color: var(--stone);
  padding: 12px 14px; border-radius: var(--radius); font-size: 15.5px; min-height: 46px;
}
.chat__form button {
  width: 46px; height: 46px; flex-shrink: 0; border: none; border-radius: var(--radius);
  background: var(--brass); color: var(--night); cursor: pointer; display: grid; place-items: center;
}
.chat__foot { padding: 0 18px 14px; font-size: 11.5px; color: var(--muted-dark); opacity: .75; }

.typing { display: flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-dark);
            animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* ==========================================================================
   modal
   ========================================================================== */

.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(6, 12, 20, .8); backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; }
.modal__card {
  background: var(--night-2); border: 1px solid var(--night-3); border-radius: 10px;
  width: min(540px, 100%); max-height: 90vh; overflow-y: auto;
  padding: clamp(26px, 4vw, 40px); animation: fade var(--t-med);
}
.modal__card h3 { font-size: 24px; color: #fff; }
.modal__card > p { color: var(--muted-dark); margin-block-start: 10px; }
.modal__close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; }

/* ==========================================================================
   reveal on scroll
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .masthead, .dock, .hero__grid, .hero__glow, form, .console__tabs { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .band { padding-block: 20px; }
}
