/* ============================================================
   House of Performance MENA — shared stylesheet
   Palette derived from the brand mark (cyan-on-void)
   ============================================================ */

:root {
  --void:        #050A14;
  --navy:        #070F1F;
  --surface:     #0B1528;
  --surface-2:   #11203B;
  --cyan:        #38DBF6;
  --cyan-glow:   #7CECFA;
  --cyan-deep:   #1C7D9E;
  --ink:         #FFFFFF;
  --muted:       #93A6C4;
  --faint:       #5B6E8C;
  --line:        rgba(124, 236, 250, 0.14);
  --line-soft:   rgba(124, 236, 250, 0.07);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--void);
  color: var(--muted);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle starfield baked into the page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 32% 62%, rgba(255,255,255,.22), transparent),
    radial-gradient(1px 1px at 68% 28%, rgba(255,255,255,.30), transparent),
    radial-gradient(1px 1px at 82% 72%, rgba(255,255,255,.18), transparent),
    radial-gradient(1px 1px at 48% 88%, rgba(255,255,255,.20), transparent),
    radial-gradient(1px 1px at 90% 12%, rgba(255,255,255,.25), transparent),
    radial-gradient(900px 600px at 78% -8%, rgba(28,125,158,.18), transparent 70%),
    radial-gradient(700px 500px at 8% 4%, rgba(56,219,246,.06), transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section { padding-block: clamp(72px, 10vw, 132px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 15, 31, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--display);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand-name span { color: var(--cyan); }
.brand-name small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: var(--faint);
  margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 1px; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.btn {
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  color: var(--void);
  background: var(--cyan);
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s;
  box-shadow: 0 0 0 rgba(56,219,246,0);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(56,219,246,.28); }
.btn--ghost {
  background: transparent; color: var(--cyan);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(56,219,246,.08); box-shadow: none; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(72px, 10vw, 128px); overflow: hidden; }
.hero-arc {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 120%;
  z-index: -1;
  pointer-events: none;
}
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.hero h1 {
  font-weight: 400;
  font-size: clamp(38px, 7vw, 88px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero h1 .accent {
  font-weight: 600;
  background: linear-gradient(120deg, var(--cyan-glow), var(--cyan) 60%, var(--cyan-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 560px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  margin-top: 26px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.channels {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.channels span:first-child {
  font-family: var(--mono); font-size: 11px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--faint);
}
.channels .chip {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
}

/* ---------- Stat band ---------- */
.statband { border-block: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(11,21,40,.5), transparent); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--navy); padding: 34px 28px; }
.stat .num {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 48px);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .num em { font-style: normal; color: var(--cyan); }
.stat .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint); margin-top: 14px;
}

/* ---------- Generic section heads ---------- */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head .eyebrow { display: block; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 500; }
.sec-head p { margin-top: 20px; font-size: 18px; }

/* ---------- Pillars (transparency) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: border-color .3s, transform .3s, background .3s;
}
.pillar:hover { border-color: var(--line); transform: translateY(-4px); background: var(--surface-2); }
.pillar .pill-no {
  font-family: var(--mono); font-size: 13px; color: var(--cyan);
  letter-spacing: .1em;
}
.pillar h3 { font-size: 20px; margin: 18px 0 12px; font-weight: 500; }
.pillar p { font-size: 15.5px; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.work-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transition: width .45s ease; z-index: 2;
}
.work-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(56,219,246,.16), transparent 55%);
}
.work-card:hover::before { opacity: 1; }
.work-card > * { position: relative; z-index: 1; }
.work-card:hover { border-color: var(--line); transform: translateY(-4px); }
.work-card:hover::after { width: 100%; }
.work-sector {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--faint);
}
.work-card h3 { font-size: 23px; margin: 14px 0 0; font-weight: 500; }
.work-metric {
  margin: 22px 0 16px;
  font-family: var(--display);
  font-size: 40px; color: var(--cyan); line-height: 1; letter-spacing: -0.02em;
}
.work-metric small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }
.work-desc { font-size: 14.5px; flex: 1; }
.work-channels { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.work-channels span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--cyan); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}

/* ---------- Founder strip ---------- */
.founder {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: clamp(34px, 5vw, 60px);
}
.founder h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 500; margin-bottom: 22px; }
.founder p { margin-bottom: 18px; }
.founder .markwrap { display: flex; justify-content: center; position: relative; }
.founder .markwrap::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,219,246,.16), transparent 68%);
  filter: blur(8px); z-index: 0;
}
.founder .markwrap img { width: min(240px, 64%); position: relative; z-index: 1; }

/* ---------- Services list ---------- */
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.svc-row {
  display: grid; grid-template-columns: 64px 1fr 1.3fr; gap: 28px;
  padding: 38px 4px;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
  transition: background .3s;
}
.svc-row:hover { background: linear-gradient(90deg, rgba(56,219,246,.04), transparent); }
.svc-no { font-family: var(--mono); color: var(--cyan); font-size: 14px; padding-top: 6px; }
.svc-row h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; }
.svc-row .svc-body p { font-size: 16px; }
.svc-tags { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.svc-tags span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--muted); border: 1px solid var(--line-soft); padding: 4px 10px;
  border-radius: 999px; text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-detail { margin-bottom: 30px; }
.contact-detail .eyebrow { display:block; margin-bottom: 10px; }
.contact-detail a, .contact-detail p { font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); color: var(--ink); }
.contact-detail a:hover { color: var(--cyan); }

.form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 24px; padding: clamp(28px, 4vw, 44px); }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.field input, .field textarea {
  width: 100%; background: var(--void); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 14px 16px; color: var(--ink);
  font-family: var(--body); font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56,219,246,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 13px; color: var(--faint); margin-top: 16px; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(32px, 5.4vw, 64px); font-weight: 500; }
.cta-band h2 .accent { color: var(--cyan); }
.cta-band p { max-width: 520px; margin: 22px auto 36px; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 56px 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.footer-bottom p { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--faint); }

/* ---------- Legal / privacy page ---------- */
.legal { max-width: 820px; }
.legal .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 36px; }
.legal h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 500; margin: 40px 0 14px; }
.legal h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 24px 0 8px; font-family: var(--body); }
.legal p { margin-bottom: 16px; font-size: 16px; }
.legal ul { margin: 0 0 16px 0; padding-left: 22px; }
.legal li { margin-bottom: 9px; font-size: 16px; }
.legal a { color: var(--cyan); }
.legal a:hover { text-decoration: underline; }
.legal .lead { font-size: 18px; color: var(--muted); }

/* ---------- footer legal line ---------- */
.footer-legal { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--faint); margin-top: 10px; line-height: 1.7; }

/* ---------- scroll trajectory (page progress) ---------- */
.scroll-traj {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 60; pointer-events: none;
}
.scroll-traj .line {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, rgba(56,219,246,0) 0%, rgba(56,219,246,.5) 60%, var(--cyan-glow) 100%);
  box-shadow: 0 0 10px rgba(56,219,246,.7);
  position: relative; transition: width .08s linear;
}
.scroll-traj .node {
  position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: #EAFBFF; box-shadow: 0 0 12px 3px rgba(56,219,246,.9);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pillars, .work-grid { grid-template-columns: 1fr 1fr; }
  .founder, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder .markwrap { order: -1; }
  .svc-row { grid-template-columns: 40px 1fr; }
  .svc-row .svc-body { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(7,15,31,.97); backdrop-filter: blur(14px);
    padding: 24px var(--gutter); gap: 20px; border-bottom: 1px solid var(--line-soft);
  }
  .pillars, .work-grid, .stats { grid-template-columns: 1fr; }
  .stat { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
