/* ==========================================================================
   Ikhlaas Ltd — site styles
   Follows Brand Guidelines v1.0 (October 2026): navy / black / white palette,
   Cormorant Garamond + IBM Plex Sans, the Kufic bar system (x = 8px on screen)
   and a 12-column grid with 1200px max content width.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font Licence 1.1) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #29235C;
  --navy-80: #544F7D;
  --navy-60: #7F7B9D;
  --navy-40: #A9A7BE;
  --navy-20: #D4D3DE;
  --mist: #EAE9EF;     /* navy 10 */
  --paper: #F4F4F7;    /* navy 5 */
  --black: #000000;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --slate: #5C5A6E;
  --signal: #B42318;

  --x: 8px;            /* stroke unit of the Kufic mark */
  --gutter: 24px;
  --max: 1200px;
  --side: clamp(16px, 5vw, 80px);
  --section: clamp(72px, 9vw, 136px);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --arabic: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .tone-dark .site-header :focus-visible { outline-color: var(--white); }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, .display { font-family: var(--serif); font-weight: 600; color: var(--navy); margin: 0; letter-spacing: -0.005em; }
.display { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; }
h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.lead { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.38; color: var(--navy); }
.label {
  font-family: var(--sans); font-weight: 600; font-size: 12px; line-height: 16px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin: 0 0 14px;
}
.caption { font-size: 13px; line-height: 18px; color: var(--slate); }
.ar { font-family: var(--arabic); font-weight: 500; direction: rtl; unicode-bidi: isolate; }
em.term { font-style: italic; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side); }
.measure { max-width: 66ch; }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy .lead, .section--navy .label { color: var(--white); }

/* Short navy rule under headings (from the guidelines' heading device) */
.rule { display: block; width: calc(var(--x) * 12); height: var(--x); background: var(--navy); margin: 24px 0 28px; border: 0; }
.on-dark .rule, .section--navy .rule { background: var(--white); }

/* Section heading block */
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > .head-title { grid-column: 1 / span 6; }
.section-head > .head-text { grid-column: 8 / span 5; align-self: end; }
.section-head > .head-text p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 2px solid var(--navy);
  background: var(--navy); color: var(--white); font: 600 15px/1.2 var(--sans);
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--black); border-color: var(--black); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--mist); border-color: var(--mist); }
.btn--outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.text-link:hover { border-bottom-width: 3px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--white); border-bottom: 1px solid var(--mist); }
.tone-dark .site-header { background: var(--navy); border-bottom-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { display: inline-flex; align-items: center; padding: 8px 0; }
.brand-mark { width: 120px; height: auto; }
.brand-mark--white { display: none; }
.tone-dark .brand-mark--white { display: block; }
.tone-dark .brand-mark--navy { display: none; }

.site-nav ul { display: flex; gap: clamp(20px, 3vw, 40px); }
.site-nav a { display: inline-block; padding: 10px 0; color: var(--navy); font-weight: 500; font-size: 15px; text-decoration: none; position: relative; }
.tone-dark .site-nav a { color: var(--white); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0; font: 500 15px var(--sans); color: var(--navy); cursor: pointer; }
.tone-dark .nav-toggle { color: var(--white); }
.nav-toggle-bars { width: 22px; height: 14px; position: relative; border-top: 3px solid currentColor; border-bottom: 3px solid currentColor; }
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 6px; top: 50%; height: 3px; margin-top: -1.5px; background: currentColor; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 8px var(--side) 24px; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { color: var(--white); font-size: 20px; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--navy-80); }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { font-weight: 600; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; min-height: clamp(540px, 74vh, 760px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 112px); position: relative; z-index: 2; }
.hero-copy { grid-column: 1 / span 6; }
.hero .display { color: var(--white); }
.hero .lead { color: var(--white); max-width: 30ch; margin-top: 28px; }
.hero-sub { color: var(--navy-20); max-width: 46ch; margin: 0 0 36px; }
.hero-ar { font-family: var(--arabic); font-size: 17px; color: var(--navy-40); margin-bottom: 20px; display: block; text-align: left; }

/* Photo sits in the right half and bleeds to the page edge */
.hero-media { position: absolute; z-index: 1; top: clamp(40px, 6vw, 72px); bottom: clamp(64px, 8vw, 112px); right: 0; width: 46%; }
.hero-media .photo { position: absolute; inset: 0; }
.hero-media .photo img { object-position: 78% center; }
.hero-media::before { /* vertical Kufic bar */ content: ""; position: absolute; left: calc(var(--x) * -5); top: 18%; bottom: -10%; width: calc(var(--x) * 2); background: var(--navy-80); z-index: 2; }

/* Kufic bars: horizontal and vertical only, square ends, bleed off the edge */
.bars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bar { position: absolute; display: block; background: var(--navy-80); }
.bar--top { top: 0; right: 0; width: 46%; height: calc(var(--x) * 3); background: var(--white); z-index: 3; }
.bar--bottom { bottom: calc(var(--x) * 4); left: 0; width: 38%; height: var(--x); background: var(--navy-80); }
.dot { position: absolute; width: calc(var(--x) * 3); height: calc(var(--x) * 3); background: var(--white); }
.hero .dot { right: calc(46% + var(--x) * 9); top: 0; z-index: 3; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero .bar--top { transform-origin: right; animation: bar-in .9s cubic-bezier(.2,.7,.2,1) .1s both; }
  .js .hero .bar--bottom { transform-origin: left; animation: bar-in 1s cubic-bezier(.2,.7,.2,1) .35s both; }
  .js .hero .dot { animation: fade-in .4s ease .9s both; }
  .js .hero-media::before { transform-origin: top; animation: bar-in-v 1s cubic-bezier(.2,.7,.2,1) .2s both; }
  .js .hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .js .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .js .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .js .hero-copy > *:nth-child(5) { animation-delay: .32s; }
}
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bar-in-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { min-height: 0; padding-bottom: 48px; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-media { position: relative; top: auto; bottom: auto; width: auto; height: 260px; margin-left: var(--side); }
  .hero-media::before { display: none; }
  .bar--top { width: 60%; height: calc(var(--x) * 2); }
  .hero .dot { right: calc(60% + var(--x) * 4); width: calc(var(--x) * 2); height: calc(var(--x) * 2); }
  .bar--bottom { display: none; }
  .hero-after { height: 48px; }
}

/* ---------- Photos (with a calm fallback while images are absent) ---------- */
.photo { position: relative; background: var(--navy-80); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing img { display: none; }
.photo.is-missing::after { content: ""; position: absolute; right: 24px; top: 24px; width: 24px; height: 24px; background: var(--white); }

/* ---------- Name / intro ---------- */
.intro-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.intro-mark { grid-column: 1 / span 5; padding-top: 10px; }
.intro-mark img { width: 100%; max-width: 420px; }
.intro-mark .caption { margin-top: 18px; max-width: 34ch; }
.intro-copy { grid-column: 7 / span 6; }
.intro-copy .lead { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; }

/* ---------- Ventures grid (home) ---------- */
.venture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.venture-card { display: flex; flex-direction: column; background: var(--white); }
.venture-plate { background: var(--navy); display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 7; padding: calc(var(--x) * 5); position: relative; }
.venture-plate img { max-height: 120px; width: auto; max-width: 78%; }
.venture-plate--tall img { max-height: 150px; }
.venture-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; border: 1px solid var(--mist); border-top: 0; }
.venture-body h3 { margin-bottom: 6px; }
.venture-kind { color: var(--slate); font-size: 14px; margin-bottom: 14px; }
.venture-body p { max-width: 52ch; }
.venture-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--navy); }
.status::before { content: ""; width: 10px; height: 10px; background: var(--navy); flex: none; }
.status--soon::before { background: transparent; box-shadow: inset 0 0 0 2px var(--navy); }
.section--navy .status, .on-dark .status { color: var(--white); }
.section--navy .status::before { background: var(--white); }

.venture-more { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; border: 2px dashed var(--navy-40); padding: 28px; }
.venture-more .dot-mark { width: 24px; height: 24px; background: var(--navy); }
.venture-more h3 { font-size: 24px; }
.venture-more p { margin: 6px 0 0; color: var(--slate); }

@media (max-width: 820px) {
  .venture-grid { grid-template-columns: 1fr; }
  .venture-more { grid-template-columns: 1fr; }
  .venture-more .dot-mark { display: none; }
}

/* ---------- Steps (a real sequence: originate → set standards → support) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); counter-reset: step; }
.step { border-top: var(--x) solid var(--navy); padding-top: 24px; }
.step-num { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1; color: var(--navy-60); display: block; margin-bottom: 14px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--ink); margin: 0; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.value { border-top: var(--x) solid var(--navy); padding-top: 22px; }
.section--navy .value { border-top-color: var(--white); }
.value .ar { display: block; font-size: 22px; line-height: 1.4; color: var(--navy-60); margin-bottom: 2px; text-align: left; }
.section--navy .value .ar { color: var(--navy-40); }
.value h3 { margin-bottom: 12px; }
.value p { margin: 0; }
.section--navy .value p { color: var(--navy-20); }

@media (max-width: 960px) {
  .values { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
}
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Commitments ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.split-media { grid-column: 1 / span 5; }
.split-media .photo { aspect-ratio: 4 / 5; }
.split-copy { grid-column: 7 / span 6; }
.split--reverse .split-media { grid-column: 8 / span 5; order: 2; }
.split--reverse .split-copy { grid-column: 1 / span 6; order: 1; }

.square-list li { position: relative; padding: 16px 0 16px 28px; border-bottom: 1px solid var(--mist); }
.square-list li:first-child { border-top: 1px solid var(--mist); }
.square-list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 10px; height: 10px; background: var(--navy); }
.square-list strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 2px; }
.square-list span { color: var(--slate); }
.square-list--plain li { padding-top: 10px; padding-bottom: 10px; border: 0 !important; }
.square-list--plain li::before { top: 18px; width: 8px; height: 8px; }

@media (max-width: 900px) {
  .split-media, .split-copy, .split--reverse .split-media, .split--reverse .split-copy { grid-column: 1 / -1; order: initial; }
  .split-media .photo { aspect-ratio: 16 / 10; }
  .intro-mark, .intro-copy { grid-column: 1 / -1; }
  .intro-mark img { max-width: 260px; }
  .section-head > .head-title, .section-head > .head-text { grid-column: 1 / -1; }
}

/* ---------- Key statement (vertical bar anchor) ---------- */
.anchor { border-left: var(--x) solid var(--navy); padding: 6px 0 6px 28px; }
.anchor p { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; color: var(--navy); margin: 0; }
.anchor cite { display: block; font: 400 13px/18px var(--sans); color: var(--slate); font-style: normal; margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.cta-band .photo { position: absolute; inset: 0; background: var(--navy); }
.cta-band .photo::before { content: ""; position: absolute; inset: 0; background: rgba(41, 35, 92, .78); z-index: 1; }
.cta-band .wrap { position: relative; z-index: 2; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-band p { color: var(--navy-20); max-width: 52ch; margin: 20px 0 32px; }
.cta-band .bar-v { position: absolute; z-index: 2; right: 12%; top: 0; bottom: 0; width: calc(var(--x) * 2); background: var(--white); opacity: .9; }
.cta-band .bar-h { position: absolute; z-index: 2; right: 0; bottom: calc(var(--x) * 6); width: 22%; height: var(--x); background: var(--navy-40); }
@media (max-width: 760px) { .cta-band .bar-v { right: 24px; width: var(--x); } .cta-band .bar-h { display: none; } }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--paper); position: relative; overflow: hidden; }
.page-hero .wrap { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 7vw, 96px); position: relative; z-index: 1; }
.page-hero .display { max-width: 16ch; }
.page-hero .lead { max-width: 40ch; margin: 0; }
.page-hero .bar-v { position: absolute; top: 0; bottom: 0; right: clamp(24px, 10vw, 160px); width: calc(var(--x) * 2); background: var(--navy); }
.page-hero .bar-h { position: absolute; top: clamp(56px, 8vw, 112px); right: 0; width: clamp(80px, 22vw, 340px); height: var(--x); background: var(--navy-40); }
.page-hero .dot { right: calc(clamp(24px, 10vw, 160px) + var(--x) * 5); bottom: clamp(48px, 6vw, 88px); width: calc(var(--x) * 2); height: calc(var(--x) * 2); background: var(--navy); }
@media (max-width: 760px) { .page-hero .bar-v { width: var(--x); right: 16px; } .page-hero .bar-h, .page-hero .dot { display: none; } .page-hero .wrap { padding-right: 48px; } }

/* ---------- About ---------- */
.trait-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.trait-table th { text-align: left; font: 600 12px/16px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding: 0 16px 12px 0; border-bottom: 2px solid var(--navy); }
.trait-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--navy-20); vertical-align: top; }
.trait-table td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
.trait-table td:nth-child(2) { color: var(--slate); }
.table-scroll { overflow-x: auto; }

.gov-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.gov-item { background: var(--white); padding: 28px; border-left: var(--x) solid var(--navy); }
.gov-item h3 { font-size: 24px; margin-bottom: 8px; }
.gov-item p { margin: 0; color: var(--ink); }
@media (max-width: 760px) { .gov-grid { grid-template-columns: 1fr; } }

/* Architecture diagram */
.arch { display: grid; gap: 0; justify-items: center; }
.arch-top { background: var(--navy); padding: 28px 40px; width: min(420px, 100%); text-align: center; }
.arch-top img { width: 200px; margin: 0 auto; }
.arch-top span { display: block; margin-top: 14px; font: 600 12px/16px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-20); }
.arch-stem { width: 3px; height: 32px; background: var(--navy); }
.arch-row { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gutter); position: relative; padding-top: 32px; }
.arch-row::before { content: ""; position: absolute; top: 0; left: calc((100% - 4 * var(--gutter)) / 10 - 1.5px); right: calc((100% - 4 * var(--gutter)) / 10 - 1.5px); height: 3px; background: var(--navy); }
.arch-node { position: relative; border: 1px solid var(--navy-20); background: var(--white); padding: 22px 16px; text-align: center; }
.arch-node::before { content: ""; position: absolute; top: -33px; left: 50%; width: 3px; height: 32px; margin-left: -1.5px; background: var(--navy); }
.arch-node strong { display: block; font: 600 22px/1.15 var(--serif); color: var(--navy); }
.arch-node span { font-size: 13px; color: var(--slate); }
.arch-node--soon { border-style: dashed; border-color: var(--navy-40); }
.arch-node--future { border-style: dashed; border-color: var(--navy-40); background: transparent; }
.arch-node--future strong { color: var(--navy-60); }
@media (max-width: 760px) {
  .arch-row { grid-template-columns: 1fr 1fr; padding-top: 24px; }
  .arch-node--future { grid-column: 1 / -1; }
  .arch-row::before, .arch-node::before { display: none; }
}

/* ---------- Ventures page ---------- */
.venture-detail { padding: var(--section) 0; border-bottom: 1px solid var(--mist); scroll-margin-top: 24px; }
.venture-detail:nth-of-type(even) { background: var(--paper); }
.vd-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.vd-media { grid-column: 1 / span 5; position: relative; padding-bottom: 72px; }
.vd-media .photo { aspect-ratio: 3 / 2; }
.vd-logo { position: absolute; left: calc(var(--x) * -3); bottom: 0; width: 64%; background: var(--navy); padding: 26px 30px; display: flex; align-items: center; justify-content: center; min-height: 128px; }
.vd-logo img { max-height: 92px; width: auto; max-width: 100%; }
.vd-copy { grid-column: 7 / span 6; }
.vd-copy .lead { margin-top: 12px; }
.vd-meta { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin: 22px 0 28px; }
.vd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); margin-top: 28px; }
.vd-cols h3 { font-size: 22px; margin-bottom: 10px; }
.note { background: var(--mist); border-left: var(--x) solid var(--navy); padding: 18px 22px; font-size: 15px; margin: 28px 0 0; }
.venture-detail:nth-of-type(even) .note { background: var(--white); }
.note strong { color: var(--navy); }
.vd-cta { margin-top: 32px; }
.venture-detail--alt .vd-media { grid-column: 8 / span 5; order: 2; }
.venture-detail--alt .vd-copy { grid-column: 1 / span 6; order: 1; }
.venture-detail--alt .vd-logo { left: auto; right: calc(var(--x) * -3); }
.venture-index { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; }
.venture-index a { font-weight: 500; }

@media (max-width: 960px) {
  .vd-media, .vd-copy, .venture-detail--alt .vd-media, .venture-detail--alt .vd-copy { grid-column: 1 / -1; order: initial; }
  .vd-logo, .venture-detail--alt .vd-logo { left: 16px; right: auto; width: 72%; }
  .vd-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .vd-logo, .venture-detail--alt .vd-logo { left: 0; width: 86%; min-height: 108px; padding: 20px; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px var(--gutter); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 15px; color: var(--navy); }
.field .hint { font-weight: 400; color: var(--slate); font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid var(--navy-40); border-radius: 0; padding: 12px 14px; min-height: 50px;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--signal); border-width: 2px; }
.field-error { color: var(--signal); font-size: 14px; margin: 0; font-weight: 500; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.field .check { font-weight: 400; color: var(--ink); }
.field .check input { -webkit-appearance: auto; appearance: auto; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; border: 0; accent-color: var(--navy); }
.field .check input:focus { outline: 3px solid var(--navy); outline-offset: 2px; }
.form-alert { border-left: var(--x) solid var(--signal); background: #FBEDEC; padding: 16px 20px; margin-bottom: 28px; color: var(--ink); }
.form-alert strong { color: var(--signal); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-actions .caption { margin: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.contact-form { grid-column: 1 / span 7; }
.contact-aside { grid-column: 9 / span 4; }
.contact-aside h2 { font-size: 26px; margin-bottom: 12px; }
.contact-aside .block { padding: 26px 0; border-top: 1px solid var(--navy-20); }
.contact-aside .block:first-child { border-top: var(--x) solid var(--navy); }
.contact-aside .venture-links li { padding: 6px 0; }
.big-email { font-family: var(--serif); font-weight: 600; font-size: 26px; text-decoration: none; word-break: break-word; }
@media (max-width: 960px) { .contact-form, .contact-aside { grid-column: 1 / -1; } }

/* Interest form on the FundAHajj panel */
.interest { background: var(--white); padding: 24px; margin-top: 28px; border-top: var(--x) solid var(--navy); }
.interest h3 { font-size: 22px; margin-bottom: 6px; }
.interest .form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .interest .form-grid { grid-template-columns: 1fr; } }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 30px; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--navy); }

/* ---------- Message pages (thank you / 404) ---------- */
.message-page { min-height: 56vh; display: flex; align-items: center; }
.message-page .wrap { padding-top: var(--section); padding-bottom: var(--section); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--navy-20); padding-top: clamp(64px, 7vw, 96px); font-size: 15px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.4fr; gap: 40px var(--gutter); padding-bottom: 56px; }
.footer-brand img { width: 200px; }
.footer-promise { font-family: var(--serif); font-size: 22px; color: var(--white); margin-top: 22px; }
.site-footer .label { color: var(--navy-40); }
.footer-links li { padding: 5px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-email { word-break: break-word; }
.footer-legal { padding-bottom: 28px; font-size: 13px; color: var(--navy-40); }
.footer-legal-inner { border-top: 1px solid var(--navy-80); padding-top: 22px; }
.footer-legal p { margin: 0 0 6px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .bars, .bar-v, .bar-h, .dot { display: none !important; }
  body { color: #000; }
}
