/* Tilawa Foundation. Palette: white #FFFFFF, black #000000, gold #CCAA4B,
   charcoal #262933, grey #585858, plus tints of those. Square-Kufic
   foundation-stone mark, Montserrat headings, Manrope text. Dark first, with
   light bands between sections. */

:root {
  --night:    #000000;
  --night-2:  #262933;
  --panel:    #262933;
  --panel-2:  #30333E;
  --line-d:   #33363F;
  --paper:    #FFFFFF;
  --white:    #FFFFFF;
  --stone:    #EFE8D5;
  --beige:    #F1ECDF;
  --ink:      #000000;
  --ink-2:    #585858;
  --dim:      #A3A3A3;
  --soft:     #C4C4C4;
  --gold:     #CCAA4B;
  --gold-2:   #B8963A;
  --gold-ink: #8A6D1F;   /* gold dark enough to read as text on white */

  --head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --text: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --maxw: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--night); color: var(--paper);
  font: 400 1rem/1.65 var(--text); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--paper); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.center { text-align: center; }

/* ---------- bands ---------- */
.dark   { background: var(--night); color: var(--paper); }
.dark-2 { background: var(--night-2); color: var(--paper); }
.light  { background: var(--white); color: var(--ink); }
.beige  { background: var(--beige); color: var(--ink); }

/* ---------- type ---------- */
.eyebrow { font: 600 0.75rem/1 var(--text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.eyebrow-dark { color: var(--gold-ink); }
.h2 { font-weight: 300; font-size: clamp(1.8rem, 4.2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 24ch; }
.h2.center { margin: 0 auto; }
.sub { margin-top: 14px; color: var(--soft); max-width: 40rem; }
.sub.center { margin-left: auto; margin-right: auto; }
.display { font-weight: 300; font-size: clamp(2.2rem, 5.6vw, 3.8rem); line-height: 1.05; letter-spacing: -0.03em; }
.caps { font: 400 clamp(1.3rem, 3vw, 1.75rem)/1.2 var(--head); text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 3px;
  background: var(--gold); color: #000; border: 1px solid var(--gold);
  font: 600 0.92rem/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-line { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, .55); }
.btn-line:hover { background: rgba(255, 255, 255, .08); border-color: var(--paper); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.86rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.link:hover { color: var(--paper); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-d); }
.top-in { display: flex; align-items: center; min-height: 70px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font: 500 1.12rem/1 var(--head); letter-spacing: -0.01em; }
.brand em { font-style: normal; font-weight: 300; color: var(--dim); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.92rem; color: #DADADA; }
.nav a:hover { color: #FFF; }
.nav .nav-cta { border: 1px solid rgba(255, 255, 255, .45); padding: 8px 16px; border-radius: 3px; }
.menu { display: none; }

@media (max-width: 860px) {
  .menu {
    display: grid; gap: 6px; margin-left: auto; width: 44px; height: 44px; place-content: center;
    background: none; border: 1px solid var(--line-d); border-radius: 3px; cursor: pointer;
  }
  .menu i { display: block; width: 18px; height: 1.5px; background: var(--paper); transition: transform .2s ease; }
  .menu[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .menu[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--line-d); padding: 8px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-d); font-size: 1rem; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .45); }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; background: var(--night-2); }
.hero-in { display: grid; gap: 48px; align-items: center; }
.hero-kicker { font: italic 300 1.25rem/1.3 var(--head); color: #E6E6E6; margin-bottom: 14px; }
h1 { font-weight: 300; font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 13ch; }
.hero-lede { margin-top: 22px; font-size: 1.05rem; color: #DADADA; max-width: 34rem; }

.reel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  height: 460px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}
.reel-track { display: grid; gap: 14px; animation: reel-up 48s linear infinite; }
.reel-down .reel-track { animation-name: reel-down; animation-duration: 56s; }
.reel img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--panel-2); }
.reel:hover .reel-track { animation-play-state: paused; }
/* The track holds its photos twice; moving it up by exactly one set (half
   its height plus half a gap) lands on an identical frame, so the loop is seamless. */
@keyframes reel-up { to { transform: translateY(calc(-50% - 7px)); } }
@keyframes reel-down { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .reel-track { animation: none; } }
@media (min-width: 960px) {
  .hero { padding: 80px 0 100px; }
  .hero-in { grid-template-columns: 1fr 1fr; gap: 64px; }
  .reel { height: 600px; }
}

/* ---------- our work ---------- */
.work { padding: 92px 0 100px; }
.feature {
  margin-top: 48px; display: grid; gap: 28px; align-items: center;
  background: var(--panel); border-radius: 12px; padding: 28px;
}
.feature-logo { display: grid; place-items: center; background: #1D2029; border-radius: 10px; padding: 36px; }
.feature-logo svg { width: min(200px, 60%); height: auto; }
.feature-copy h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 12px 0 10px; }
.feature-copy p { color: var(--soft); max-width: 36rem; }
@media (min-width: 860px) { .feature { grid-template-columns: 0.8fr 1.2fr; padding: 36px; gap: 44px; } }

.feature-meta { display: flex; align-items: baseline; gap: 12px; font-size: 0.9rem; color: var(--dim); }

/* Product numbers, sector and status: plain text, one style everywhere. */
.p-no { font: 300 1rem/1 var(--head); color: var(--dim); font-variant-numeric: tabular-nums; }
.p-sector { font-size: 0.9rem; color: var(--dim); }
.p-status { font-size: 0.9rem; color: var(--dim); white-space: nowrap; }
.p-status::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; border: 1px solid var(--dim); vertical-align: 1px; }
.p-status.is-build { color: var(--soft); }
.p-status.is-build::before { border-color: var(--gold); }
.p-status.is-live { color: var(--gold); }
.p-status.is-live::before { background: var(--gold); border-color: var(--gold); }

.pipeline-title { font: 500 1.1rem/1.3 var(--head); margin: 64px 0 8px; color: #E6E6E6; }
.pipeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.pipeline li { display: grid; grid-template-columns: 40px 1fr; gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid var(--line-d); }
.pipeline .p-no { padding-top: 4px; grid-row: span 3; }
.p-main h4 { font: 400 1.3rem/1.3 var(--head); }
.p-main p { color: var(--soft); font-size: 0.95rem; margin-top: 4px; max-width: 36rem; }
@media (min-width: 860px) {
  .pipeline li { grid-template-columns: 56px 1fr 200px 150px; align-items: baseline; gap: 24px; padding: 28px 0; }
  .pipeline .p-no { grid-row: auto; padding-top: 0; }
}

/* ---------- vision ---------- */
.vision { padding: 96px 0; }
.vision-quote {
  margin: 0; font: 300 clamp(1.8rem, 4.4vw, 3rem)/1.18 var(--head); letter-spacing: -0.02em;
  max-width: 28ch; padding-left: 24px; border-left: 3px solid var(--gold);
}
.vision-cols { display: grid; gap: 32px; margin-top: 64px; }
.vision-cols h3 { font: 500 1.1rem/1.3 var(--head); margin-bottom: 10px; }
.vision-cols p { color: var(--ink-2); }
@media (min-width: 860px) { .vision-cols { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---------- sectors ---------- */
.sectors { padding: 92px 0 100px; }
.sector-grid { display: grid; gap: 16px; margin-top: 48px; }
.sector { background: #1D2029; border-radius: 10px; overflow: hidden; }
.sector img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sector div { padding: 20px 22px 24px; }
.sector h3 { font: 500 1.1rem/1.3 var(--head); margin-bottom: 8px; }
.sector p { color: var(--soft); font-size: 0.93rem; }
@media (min-width: 640px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- numbers ---------- */
.numbers { padding: 72px 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stats article { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 32px 20px 30px; text-align: center; }
.stats strong { display: block; font: 300 3.4rem/1 var(--head); letter-spacing: -0.03em; color: var(--gold); }
.stats h3 { font: 700 1rem/1.3 var(--text); margin: 14px 0 6px; }
.stats p { color: var(--soft); font-size: 0.9rem; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- future ---------- */
.future { padding: 92px 0 100px; }
.roadmap { list-style: none; margin: 52px 0 0; padding: 0; display: grid; gap: 0; }
.roadmap li { position: relative; padding: 0 0 36px 32px; border-left: 1px solid var(--line-d); }
.roadmap li:last-child { padding-bottom: 0; }
.roadmap li::before {
  content: ''; position: absolute; left: -7px; top: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--dim);
}
.roadmap li.done::before { background: var(--gold); border-color: var(--gold); }
.when { font: 600 0.78rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.roadmap h3 { font: 500 1.2rem/1.3 var(--head); margin: 10px 0 6px; }
.roadmap p { color: var(--soft); font-size: 0.95rem; max-width: 30rem; }
@media (min-width: 900px) {
  .roadmap { grid-template-columns: repeat(4, 1fr); }
  .roadmap li { border-left: 0; border-top: 1px solid var(--line-d); padding: 32px 28px 0 0; }
  .roadmap li::before { left: 0; top: -7px; }
}

/* ---------- team ---------- */
.team { padding: 92px 0 100px; }
.team-head { display: grid; gap: 10px; margin-bottom: 56px; }
.caps-light { color: #BDBDBD; }
.team-head p { font: 400 1.1rem/1.3 var(--head); }
@media (min-width: 760px) { .team-head { grid-template-columns: auto 1fr; gap: 48px; align-items: center; } }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.people li { text-align: center; }
.portrait { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; border: 2px solid var(--gold); }
.people h3 { font-size: 1.05rem; font-weight: 500; }
.people p { font-size: 0.86rem; color: var(--soft); margin: 6px auto 0; max-width: 18rem; }
.people .note { font-style: italic; color: var(--dim); }
.people .link { display: inline-block; margin-top: 10px; font-size: 0.86rem; }
@media (min-width: 860px) { .people { grid-template-columns: repeat(3, 1fr); } }

/* ---------- connect ---------- */
.connect { padding: 92px 0 100px; }
.doors { display: grid; gap: 36px; margin-top: 52px; }
.door-art { position: relative; border-radius: 8px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); margin-bottom: 22px; }
.door-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doors h3 { font-size: 1.15rem; margin-bottom: 8px; }
.doors p { color: var(--soft); font-size: 0.93rem; margin-bottom: 22px; }
@media (min-width: 900px) { .doors { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ---------- footer ---------- */
.foot { padding: 72px 0 36px; border-top: 1px solid var(--line-d); }
.foot-top { display: grid; gap: 40px; }
.foot-tag { font: 400 1.15rem/1.4 var(--head); }
.foot-mail { display: inline-block; margin-top: 6px; font: 400 1.15rem/1.4 var(--head); color: var(--dim); text-decoration: none; }
.foot-mail:hover { color: var(--paper); }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.foot-links a { font: 400 1.35rem/1.3 var(--head); color: var(--dim); text-decoration: none; }
.foot-links a:hover { color: var(--paper); }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-d); }
.foot-base p { font-size: 0.82rem; color: var(--dim); }
.foot-kufic { opacity: .5; }
@media (min-width: 900px) {
  .foot-top { grid-template-columns: 1fr 1.2fr; }
  .foot-links { grid-template-columns: repeat(3, auto); justify-content: end; gap: 18px 56px; }
  .foot-links a { font-size: 1.6rem; }
}
