/* ============ KHALAS — base: reset, tokens, typography ============ */

:root {
  /* color */
  --black: #0A0A0A;
  --gunmetal: #1A1D21;
  --gunmetal-2: #14161A;
  --gold: #C9A86A;
  --gold-dim: rgba(201, 168, 106, 0.35);
  --gold-faint: rgba(201, 168, 106, 0.14);
  --blue: #2E4A66;
  --blue-bright: #4A7298;
  --ink: #F5F2EA;
  --ink-dim: #9BA0A6;
  --ink-faint: #565B61;
  --line: rgba(245, 242, 234, 0.08);

  /* type */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
  --font-arabic: "Noto Kufi Arabic", sans-serif;

  /* scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.875rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-5: clamp(3.2rem, 2.2rem + 5vw, 6.2rem);

  /* space */
  --space-section: clamp(6rem, 12vw, 11rem);
  --container: 84rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* nav */
  --nav-h: 4.5rem;
}

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

html {
  scroll-behavior: auto; /* GSAP ScrollToPlugin handles smooth anchors */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: var(--black); }

/* ---- typography ---- */

h1, h2, h3, .h2 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: 0.005em;
}

.h2 { font-size: var(--step-4); max-width: 18ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
}

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.kicker--gold { color: var(--gold); }

p { max-width: 62ch; }

[lang="ar"] { font-family: var(--font-arabic); }

/* ---- container ---- */

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

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 2.1rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn--gold:hover { background: #D8BC85; border-color: #D8BC85; }

.btn--ghost {
  border-color: rgba(245, 242, 234, 0.25);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---- reveal initial states (set by JS; CSS keeps no-JS readable) ---- */

.js [data-reveal] { visibility: hidden; }
.js [data-split] { visibility: hidden; }

/* anything still hidden after load failure becomes visible */
.no-motion [data-reveal], .no-motion [data-split] { visibility: visible !important; }

/* ---- accessibility ---- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
