/* ============================================================
   E-MINING ARABIA — Superpower-style design
   Surfaces: white + carbon black only.
   Accents: brand orange (#c55d24) + brand green (#2b483d) as
   text/CTA punctuation — never as backgrounds.
   Type: Inter Tight (everything) + IBM Plex Mono (metadata).
   ============================================================ */

:root {
  /* Surfaces — white and black only */
  --white: #ffffff;
  --carbon: #18181b;
  --carbon-deep: #101012;

  /* Neutral text */
  --ink: #18181b;
  --zinc: #71717a;
  --ash: #a1a1aa;
  --hair: #e4e4e7;
  --hair-dark: #2e2e33;

  /* Brand accents (text + CTA only) */
  --orange: #c55d24;
  --orange-bright: #e06a29;
  --green: #2b483d;
  --green-light: #86b096;

  /* Type */
  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-card: 15px;
  --r-small: 5px;
  --r-pill: 9999px;
  --r-nav: 15px;

  --page-max: 1200px;
  --shadow-subtle: rgba(0, 0, 0, 0.05) 0px 2px 2px 0px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 400; }
.display {
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1;
  letter-spacing: -0.025em;
}
h2, .h-lg {
  font-size: clamp(32px, 4vw, 45px);
  line-height: 1.13;
  letter-spacing: -0.015em;
}
h3, .h-md {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.013em;
}
h4 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.009em;
  font-weight: 500;
}

.lede {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.009em;
  color: var(--zinc);
  max-width: 60ch;
}
.on-dark .lede { color: rgba(255, 255, 255, 0.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.009em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-bright); }
.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 400;
}
.btn--ghost-light:hover { border-color: #fff; }

/* ---------- Floating pill navigation ---------- */
.floatnav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, calc(100% - 32px));
  z-index: 100;
  background: rgba(24, 24, 27, 0.22);
  border-radius: var(--r-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}
.brand__word {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}
.brand__word em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.38em;
  color: var(--green-light);
}
.floatnav__links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.floatnav__links a { color: rgba(255, 255, 255, 0.6); transition: color 0.15s; }
.floatnav__links a:hover { color: #fff; }
.floatnav__cta { padding: 11px 22px; font-size: 14px; }
.floatnav__burger {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}

/* ---------- Photo placeholder frames ---------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  display: grid;
  place-items: center;
  min-height: 240px;
}
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame img ~ .frame__ph, .frame video ~ .frame__ph { display: none; }
.frame video ~ .frame__badge { background: rgba(24, 24, 27, 0.8); }
.frame--light { border: 1px dashed var(--hair); background: var(--white); }
.frame--dark { background: var(--carbon-deep); }
.frame--dark::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--r-card) - 6px);
  pointer-events: none;
}
.frame--dark:has(img)::after, .frame--dark:has(video)::after { display: none; }
.frame__ph { text-align: center; padding: 24px; color: var(--ash); }
.frame--dark .frame__ph { color: rgba(255, 255, 255, 0.35); }
.frame__ph svg { margin: 0 auto 12px; opacity: 0.6; }
.frame__ph span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.frame__ph small { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0; }
.frame__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(24, 24, 27, 0.8);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--r-small);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.frame__badge--before { background: rgba(24, 24, 27, 0.85); }
.frame__badge--after { background: var(--orange); color: #fff; }

/* ---------- Hero (full-width video, compact height) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 75% 10%, #26262b 0%, #141416 55%, #0c0c0e 100%);
  color: #fff;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 14, 0.85) 0%, rgba(12, 12, 14, 0.3) 55%, rgba(12, 12, 14, 0.5) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 170px 24px 56px;
  text-align: center;
}
.hero h1 { margin: 0 auto; max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--orange-bright); }
.hero__sub {
  margin: 24px auto 36px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.009em;
  color: rgba(255, 255, 255, 0.6);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Generic sections ---------- */
.section { padding: 100px 0; }
.section--flush { padding-top: 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.band {
  background: var(--carbon);
  color: #fff;
  padding: 110px 0;
}
.band h2, .band h3 { color: #fff; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about p + p { margin-top: 14px; }
.about p { color: var(--zinc); max-width: 60ch; }
.about__photos {
  display: grid;
  gap: 18px;
  align-content: center;
}
.about__photos img {
  display: block;
  width: 100%;
  border-radius: var(--r-card);
}

/* ---------- OEM brand marquee ---------- */
.marquee-band {
  padding: 52px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.marquee__item img {
  height: 76px;
  width: auto;
  object-fit: contain;
  /* full colour, as supplied */
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 36px)); } /* half the track + half the gap */
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; }
}

/* ---------- Services (image slider, 3-up) ---------- */
.svcslider { position: relative; }
.svcslider__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.svcslider__track::-webkit-scrollbar { display: none; }
.svcslide {
  flex: 0 0 calc((100% - 40px) / 3);
  margin: 0;
}
.svcslide img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  border: 1px solid var(--hair);
  cursor: zoom-in;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 12, 14, 0.92);
  display: grid;
  place-items: center;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--r-card);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__close:hover { background: var(--orange); }
.svcslider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--carbon);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-subtle);
  transition: background 0.2s;
}
.svcslider__btn:hover { background: var(--orange); }
#svcPrev { left: -14px; }
#svcNext { right: -14px; }

/* ---------- Process (single infographic) ---------- */
.proc__figure { margin: 0; }
.proc__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  border: 1px solid var(--hair);
  cursor: zoom-in;
}

/* ---------- Gallery — before / after ---------- */
.ba__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.ba__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ba__half { min-height: 250px; }
.ba__meta {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.ba__meta h4 { font-size: 17px; }
.ba__tag {
  order: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

/* ---------- Vision 2030 band ---------- */
.vision__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.vision__frame { min-height: 440px; }
.vision__frame img { object-position: top center; }
.vision__list { margin-top: 28px; display: grid; gap: 13px; }
.vision__list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}
.vision__list .tick {
  width: 20px;
  height: 20px;
  border-radius: 7.5px;
  background: transparent;
  border: 1px solid var(--green-light);
  color: var(--green-light);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.contact__info { margin-top: 20px; }
.contact__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
}
.contact__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  padding-top: 3px;
}
.form { display: grid; gap: 16px; }
.form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zinc);
}
.form input, .form textarea, .form select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--hair);
  background: var(--white);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 1.5px solid var(--orange);
  outline-offset: 0;
  border-color: transparent;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form button { justify-self: start; margin-top: 4px; }
.form__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- Footer ---------- */
.footer { background: var(--carbon); color: rgba(255, 255, 255, 0.55); padding: 72px 0 36px; font-size: 14px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hair-dark);
}
.footer .brand { margin-bottom: 16px; }
.footer h5 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.footer__tag { color: var(--orange-bright); }

/* ---------- Reveal (pronounced motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(64px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .floatnav__links { display: none; }
  .floatnav__burger { display: block; }
  .floatnav.open .floatnav__links {
    display: grid;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--carbon);
    border-radius: var(--r-nav);
    padding: 20px 24px;
    gap: 14px;
    font-size: 16px;
  }
  .about__grid, .vision__grid, .contact__grid { grid-template-columns: 1fr; }
  .ba__grid { grid-template-columns: 1fr; }
  .svcslide { flex-basis: calc((100% - 20px) / 2); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .marquee__item img { height: 56px; }
  .marquee__track { gap: 48px; }
  @keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 24px)); }
  }
}
@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; }
  .svcslide { flex-basis: 86%; }
  #svcPrev { left: 8px; }
  #svcNext { right: 8px; }
  .contact__row { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; }
  .ba__half { min-height: 190px; }
  .ba__meta { flex-direction: column; gap: 4px; }
  .ba__tag { order: 0; }
}
