/* ==========================================================================
   Ned Knight — site styles
   Brand: Navy #0E1A2B · Brass #A8823A · Bone #F4F1EA
   Uses logical properties so the same rules serve English (LTR) and Arabic (RTL).
   ========================================================================== */

:root {
  /* Brand */
  --navy: #0E1A2B;
  --brass: #A8823A;
  --bone: #F4F1EA;

  /* Derived */
  --navy-2: #16263D;
  --navy-3: #203450;
  --brass-ink: #86672B;      /* brass darkened for small text on bone (AA) */
  --brass-on-dark: #C9A45C;  /* brass as used by the logo on navy */
  --bone-2: #EAE5D8;
  --card: #FBFAF6;
  --text: #0E1A2B;
  --muted: #545D6B;
  --muted-on-dark: #AAB2BF;
  --line: #DDD7C8;
  --line-dark: rgba(244, 241, 234, 0.12);
  --grid-dot: rgba(14, 26, 43, 0.28);
  --grid-dot-on-dark: rgba(244, 241, 234, 0.32);

  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tracking: -0.015em;
  --caps-tracking: 0.14em;

  --max: 1180px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 26, 43, 0.04), 0 8px 24px rgba(14, 26, 43, 0.06);
}

html[lang="ar"] {
  --sans: "IBM Plex Sans Arabic", "Source Sans 3", system-ui, "Segoe UI", Tahoma, sans-serif;
  /* Letter-spacing breaks Arabic letter joining */
  --tracking: 0;
  --caps-tracking: 0;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 17px; line-height: 1.85; }

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: var(--tracking);
  margin: 0 0 0.5em;
  color: var(--navy);
}
html[lang="ar"] :is(h1, h2, h3, h4) { line-height: 1.35; }
html[lang="ar"] h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
html[lang="ar"] .page-hero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 600; letter-spacing: calc(var(--tracking) * 2); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--brass); color: var(--navy); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { inset-inline-start: 16px; top: 16px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: var(--caps-tracking); text-transform: uppercase;
  color: var(--brass-ink); margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { font-size: 0.92rem; font-weight: 600; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--brass); flex: none; }
.section-dark .eyebrow, .cta-band .eyebrow { color: var(--brass-on-dark); }
.section-dark .eyebrow::before { background: var(--brass-on-dark); }

.lead { font-size: 1.22rem; color: var(--muted); max-width: 680px; }
.accent { color: var(--brass); }

/* Brand mark (inline SVG) ------------------------------------------------- */
.mk-path { stroke: var(--navy); }
.mk-start { fill: var(--navy); }
.mk-end { fill: var(--brass); }
.mk-grid { fill: var(--grid-dot); }
.site-footer .mk-path { stroke: var(--bone); }
.site-footer .mk-start { fill: var(--bone); }
.site-footer .mk-end { fill: var(--brass-on-dark); }
.site-footer .mk-grid { fill: var(--grid-dot-on-dark); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--bone); }
.btn-primary:hover { background: var(--navy-3); }
.btn-outline { border-color: rgba(14, 26, 43, 0.3); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-brass { background: var(--brass-on-dark); color: var(--navy); }
.btn-brass:hover { background: #D6B46F; }
.btn-ghost { border-color: rgba(244, 241, 234, 0.35); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-3px); }
.cta-band .btn-primary { background: var(--brass-on-dark); color: var(--navy); }
.cta-band .btn-primary:hover { background: #D6B46F; }

.text-link {
  font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--navy);
  border-bottom: 2px solid var(--brass); padding-bottom: 2px;
}
.text-link:hover { color: var(--brass-ink); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { direction: ltr; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 30px; height: 32px; flex: none; }
.brand-name {
  font-family: "Source Sans 3", var(--sans); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em;
}
.site-footer .brand { color: var(--bone); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 1rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--brass); padding-bottom: 4px; }
.nav-links .btn { color: var(--bone); padding: 11px 20px; }
.nav-links .btn:hover { color: var(--bone); }
.lang-switch {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.lang-switch:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--sans); }
.lang-switch:lang(en) { font-family: "Source Sans 3", var(--sans); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bone); padding: 8px 16px 24px;
    border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14, 26, 43, 0.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-open .site-header { background: var(--bone); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]:not(.btn) { box-shadow: none; color: var(--brass-ink); }
  .nav-links .lang-switch { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
  .nav-links li:last-child a { border: 0; margin-top: 16px; display: inline-flex; padding: 13px 22px; }
}

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 170px 0 110px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1.4px, transparent 1.6px);
  background-size: 36px 36px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 70% 80% at 85% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 30%, #000 0%, transparent 75%);
}
[dir="rtl"] .hero::before {
  mask-image: radial-gradient(ellipse 70% 80% at 15% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 15% 30%, #000 0%, transparent 75%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 820px; }
.hero .lead { font-size: 1.28rem; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 72px; padding-top: 28px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.98rem;
}
.hero-meta strong { color: var(--navy); font-weight: 600; }
.hero-art { width: 100%; max-width: 440px; justify-self: end; }
.hero-art .grid-dot { fill: var(--grid-dot); }
.hero-art .route { stroke: var(--navy); stroke-dasharray: 1000; stroke-dashoffset: 0; }
.hero-art .start { fill: var(--navy); }
.hero-art .end { fill: var(--brass); }
.js .hero-art .route { animation: draw 2.2s 0.3s cubic-bezier(.6, 0, .2, 1) both; }
.js .hero-art .end { animation: pop 0.5s 2.3s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 1000; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
.hero-art .end { transform-box: fill-box; transform-origin: center; }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 280px; justify-self: start; order: -1; }
  .hero { padding: 130px 0 80px; }
  .hero-meta { margin-top: 48px; }
}

.page-hero { padding: 160px 0 80px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); max-width: 900px; }
@media (max-width: 700px) { .page-hero { padding: 130px 0 60px; } }

/* Sections ----------------------------------------------------------------- */
.section { padding: 110px 0; }
.section-tight { padding: 80px 0; }
.section-card { background: var(--card); }
.section-sand { background: var(--bone-2); }
.section-dark { background: var(--navy); color: var(--muted-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--bone); }
.section-dark .lead { color: var(--muted-on-dark); }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
@media (max-width: 700px) { .section { padding: 76px 0; } .section-head { margin-bottom: 40px; } }

/* Pillars ------------------------------------------------------------------ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 34px 34px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.pillar-num {
  font-size: 0.85rem; font-weight: 700; color: var(--brass-ink);
  letter-spacing: var(--caps-tracking); text-transform: uppercase; margin-bottom: 26px;
}
.pillar h3 { font-size: 1.6rem; }
.pillar p { color: var(--muted); }
.pillar ul { list-style: none; padding: 0; margin: 8px 0 28px; flex: 1; }
.pillar li { padding: 9px 0; padding-inline-start: 24px; border-top: 1px solid var(--line); position: relative; font-size: 1rem; }
.pillar li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 19px; width: 7px; height: 7px; background: var(--brass);
}
.pillar .text-link { align-self: flex-start; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }

/* Capability grid ---------------------------------------------------------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.cap {
  padding: 36px 32px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.cap:hover { background: var(--card); }
.cap-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--brass-on-dark); margin-bottom: 22px;
}
.cap-icon svg { width: 22px; height: 22px; }
.cap h3 { font-size: 1.28rem; margin-bottom: 10px; }
.cap p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 960px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cap-grid { grid-template-columns: 1fr; } .cap { padding: 30px 22px; } }

/* Industries --------------------------------------------------------------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.industry-icon { width: 40px; height: 40px; color: var(--brass); margin-bottom: 22px; }
.industry h3 { font-size: 1.25rem; margin-bottom: 10px; }
.industry p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.section-dark .industry { background: var(--navy-2); border-color: var(--line-dark); }
.section-dark .industry p { color: var(--muted-on-dark); }
.section-dark .industry-icon { color: var(--brass-on-dark); }
@media (max-width: 1000px) { .industries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } }

/* Lifecycle ---------------------------------------------------------------- */
.lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.lifecycle::before {
  content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px;
  background: var(--bone); opacity: 0.85;
}
.step { position: relative; padding: 0 16px; text-align: center; }
.step-dot {
  position: relative; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); border: 2px solid var(--bone);
  color: var(--bone); font-weight: 600; font-size: 1.1rem;
}
.step:first-child .step-dot { background: var(--bone); color: var(--navy); }
.step:last-child .step-dot { border-radius: 4px; background: var(--brass-on-dark); border-color: var(--brass-on-dark); color: var(--navy); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: 0.98rem; margin: 0; }
@media (max-width: 900px) {
  .lifecycle { grid-template-columns: 1fr; gap: 34px; }
  .lifecycle::before { top: 0; bottom: 0; left: auto; right: auto; inset-inline-start: 27px; width: 2px; height: auto; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 22px; text-align: start; padding: 0; }
  .step-dot { margin: 0; grid-row: span 2; }
}

/* Split / feature ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 44px; } }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding: 0 0 16px; padding-inline-start: 36px; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23C9A45C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.check-list strong { color: var(--navy); }

/* Bridge diagram */
.bridge { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin: 0 auto; width: 100%; }
.bridge svg { width: 100%; height: 100%; }
.bridge text { font-family: var(--sans); }
html[lang="ar"] .bridge text { font-size: 10.5px; }

/* Frameworks --------------------------------------------------------------- */
.frameworks { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 0.95rem; font-weight: 500; color: var(--navy);
}
.chip-group + .chip-group { margin-top: 36px; }
.chip-group h4 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: var(--caps-tracking);
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
html[lang="ar"] .chip-group h4 { font-size: 0.95rem; }

/* Offices ------------------------------------------------------------------ */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.office {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--navy-2); color: var(--muted-on-dark); padding: 44px 38px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line-dark);
}
.office > * { position: relative; }
.office-tag { font-size: 0.8rem; letter-spacing: var(--caps-tracking); text-transform: uppercase; color: var(--brass-on-dark); font-weight: 700; margin-bottom: 10px; }
.office h3 { color: var(--bone); font-size: 2.1rem; margin-bottom: 8px; }
.office p { margin: 0 0 4px; }
.office a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--brass-on-dark); }
.office-skyline { position: absolute; inset-inline-end: 24px; top: 28px; width: 180px; opacity: 0.3; color: var(--bone); }
@media (max-width: 800px) { .offices { grid-template-columns: 1fr; } .office { padding: 36px 26px; } }

/* CTA band ----------------------------------------------------------------- */
.cta-band {
  background: var(--navy); color: var(--muted-on-dark); border-radius: 22px;
  padding: 72px 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--grid-dot-on-dark) 1.4px, transparent 1.6px);
  background-size: 32px 32px; opacity: 0.5;
  mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
}
[dir="rtl"] .cta-band::before {
  mask-image: linear-gradient(270deg, transparent 40%, #000 100%);
  -webkit-mask-image: linear-gradient(270deg, transparent 40%, #000 100%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--bone); margin-bottom: 14px; }
.cta-band p { margin: 0; font-size: 1.12rem; }
.cta-band .actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; padding: 48px 26px; }
  .cta-band .actions { justify-content: flex-start; }
}

/* Service detail ----------------------------------------------------------- */
.service-block {
  display: grid; grid-template-columns: 340px 1fr; gap: 64px; padding: 80px 0;
  border-top: 1px solid var(--line); scroll-margin-top: 60px;
}
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block .pillar-num { margin-bottom: 14px; }
.service-block h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.service-block .lead { font-size: 1.1rem; }
.service-block .sticky { position: sticky; top: 110px; }
.service-items { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
}
.service-item h3 { font-size: 1.18rem; margin-bottom: 8px; }
.service-item p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.outcomes {
  grid-column: 1 / -1; background: var(--navy); color: var(--muted-on-dark); border-radius: var(--radius); padding: 26px 28px;
  font-size: 1rem;
}
.outcomes strong { display: block; font-size: 0.8rem; letter-spacing: var(--caps-tracking); text-transform: uppercase; color: var(--brass-on-dark); margin-bottom: 6px; }
@media (max-width: 960px) {
  .service-block { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
  .service-block .sticky { position: static; }
}
@media (max-width: 620px) { .service-items { grid-template-columns: 1fr; } }

/* Approach detail ---------------------------------------------------------- */
.phase {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase-num { font-size: 3.4rem; font-weight: 600; line-height: 1; color: var(--brass); }
.phase h2 { font-size: 1.9rem; }
.phase p { color: var(--muted); }
.phase .deliverables h4 {
  font-size: 0.8rem; letter-spacing: var(--caps-tracking); text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 12px;
}
.phase .deliverables ul { margin: 0; padding: 0; list-style: none; }
.phase .deliverables li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
@media (max-width: 900px) { .phase { grid-template-columns: 1fr; gap: 16px; padding: 44px 0; } .phase-num { font-size: 2.6rem; } }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.principle { border-top: 2px solid var(--brass-on-dark); padding-top: 22px; }
.principle h3 { font-size: 1.22rem; }
.principle p { font-size: 1rem; margin: 0; }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* Statements --------------------------------------------------------------- */
.statements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.statement { padding: 32px 0; border-top: 2px solid var(--navy); }
.statement .big { font-size: 1.75rem; font-weight: 600; color: var(--navy); line-height: 1.15; margin-bottom: 10px; }
.statement p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 1000px) { .statements { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .statements { grid-template-columns: 1fr; gap: 0; } }

/* Contact ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 40px; box-shadow: var(--shadow);
}
@media (max-width: 600px) { .form-card { padding: 26px 20px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 0.92rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bone);
  transition: border-color 0.2s, background 0.2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 16px; font-size: 1rem; color: var(--brass-ink); font-weight: 600; }

.contact-info h3 { font-size: 1.22rem; margin-bottom: 6px; }
.contact-info .block { padding: 24px 0; border-top: 1px solid var(--line); }
.contact-info .block:first-of-type { border-top: 0; padding-top: 0; }
.contact-info p { color: var(--muted); margin: 0 0 4px; }
.contact-info a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--brass); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--muted-on-dark); padding: 80px 0 36px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h4 {
  color: var(--bone); font-size: 0.82rem; font-weight: 700;
  letter-spacing: var(--caps-tracking); text-transform: uppercase; margin-bottom: 18px;
}
html[lang="ar"] .footer-grid h4 { font-size: 0.95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: var(--muted-on-dark); transition: color 0.2s; }
.footer-grid a:hover { color: var(--bone); }
.footer-about p { max-width: 340px; margin-top: 18px; }
.social { display: inline-flex; align-items: center; gap: 10px; }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.9rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Keep phone numbers and Latin tokens readable inside RTL text */
[dir="ltr"] { unicode-bidi: isolate; }

/* Reveal animation --------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-art .route, .js .hero-art .end { animation: none; }
  .btn, .btn .arrow { transition: none; }
}

/* Experience proof point (hero) -------------------------------------------- */
.hero-proof {
  display: flex; align-items: center; gap: 16px; margin: 36px 0 0;
  color: var(--muted); font-size: 1.02rem; line-height: 1.35; max-width: 360px;
}
.hero-proof .num {
  font-size: 3.2rem; font-weight: 600; line-height: 1; color: var(--brass);
  letter-spacing: var(--tracking); flex: none;
}

/* 404 ---------------------------------------------------------------------- */
.not-found { min-height: 70vh; display: flex; align-items: center; border-bottom: 0; }

/* Contact form extras ------------------------------------------------------ */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-status.is-error { color: #A33A2B; }
.form-note a { color: var(--navy); font-weight: 600; }
button[disabled] { opacity: 0.6; cursor: progress; }

/* Footer legal links ------------------------------------------------------- */
.legal-links { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.legal-links a { color: var(--muted-on-dark); text-decoration: none; }
.legal-links a:hover, .legal-links a[aria-current="page"] { color: var(--bone); }

/* Legal pages (privacy, cookies) ------------------------------------------ */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.55rem; margin-top: 2.2em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal p, .legal li { color: #2B3544; }
.legal ul { padding-inline-start: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.45em; }
.legal a { color: var(--navy); font-weight: 600; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.97rem; }
.legal th, .legal td { text-align: start; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; color: var(--navy); }
@media (max-width: 600px) {
  .legal table, .legal tbody, .legal tr, .legal td, .legal th { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal td { padding: 4px 0; border: 0; }
  .legal tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal td:first-child { font-weight: 600; color: var(--navy); }
}
