/* Shared design system: tokens, type, buttons, loader, cursor, marquee, split-text masks.
   Pages set --accent / --on-accent on <html>; everything else is paper + ink. */
:root {
  --paper: #f1ece2;
  --paper-2: #e8e1d3;
  --ink: #121110;
  --ink-2: #57534c;
  --rule: rgba(18, 17, 16, .16);
  --accent: #ff4d1f;
  --on-accent: #121110;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --arabic: "Reem Kufi", "Noto Kufi Arabic", sans-serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain over everything: gives the flat paper colour some material. */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; line-height: .92; font-variation-settings: "wdth" 112; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-variation-settings: normal; }

.wrap { width: min(1320px, 100% - 48px); margin-inline: auto; }
.display { font-size: clamp(2.8rem, 7.4vw, 8.2rem); }
.h2 { font-size: clamp(2.2rem, 5.2vw, 5.4rem); }
.mono { font-family: var(--mono); font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }

/* Buttons: ink slab, accent fill slides up on hover, arrow turns. */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; overflow: hidden;
  padding: 18px 26px; border-radius: 4px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 700 1rem/1 var(--display); font-variation-settings: "wdth" 110;
  text-decoration: none; isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--on-accent); }
.btn .arr { transition: transform .6s var(--ease); }
.btn:hover .arr { transform: rotate(45deg); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent::before { background: var(--ink); }
.btn-accent:hover { color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost svg { width: 20px; height: 20px; }
.btn-block { width: 100%; justify-content: center; }
.link-u { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .5s var(--ease); }
.link-u:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* Split-text masks (built by motion.js). */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }

/* Loader: only exists for JS visitors. */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 32px clamp(24px, 4vw, 56px); background: var(--ink); color: var(--paper);
}
.loader-name { font-size: clamp(3rem, 12vw, 12rem); font-weight: 800; letter-spacing: -.05em; line-height: .8; font-variation-settings: "wdth" 125; }
.loader-count { font-family: var(--mono); font-size: clamp(1rem, 2vw, 1.6rem); color: var(--accent); }

/* Cursor (fine pointers only, added by motion.js). */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; pointer-events: none; display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s;
}
.cursor span { font: 600 .7rem var(--mono); color: var(--ink); opacity: 0; text-transform: uppercase; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--accent); }
.cursor.is-label span { opacity: 1; color: var(--on-accent); }

/* Marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track > * { flex: none; }

/* Arabic */
.ar { font-family: var(--arabic); font-weight: 700; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.wa-float svg { width: 28px; height: 28px; }

/* Forms (shared by every lead form) */
.lead-form { position: relative; display: grid; gap: 18px; }
.lead-form label { display: grid; gap: 8px; font: 500 .74rem var(--mono); text-transform: uppercase; }
.lead-form em { font-family: var(--mono); font-style: normal; opacity: .6; }
.lead-form input, .lead-form select, .lead-form textarea {
  font: 500 1.05rem var(--display); color: inherit; background: transparent; border: 0; border-bottom: 1.5px solid currentColor;
  padding: 10px 0; border-radius: 0; outline: none; appearance: none;
}
.lead-form select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.lead-form option { color: var(--ink); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-bottom-width: 3px; }
.lead-form .invalid { border-color: #c81e1e; }
.form-ok { position: absolute; inset: -12px; display: grid; place-content: center; text-align: center; background: inherit; }
.form-ok[hidden] { display: none; }
.form-ok p { font-size: 1.4rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .btn::before, .btn .arr, .cursor { transition: none; }
}
