/* ============================================================
   FITCORE TECHNICAL SERVICES L.L.C
   Design system — "Drawing Sheet"
   Palette, type and structure derived from the gold-on-charcoal
   logo and the vernacular of construction shop drawings.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --ink:        #16191F;
  --ink-2:      #1E222A;
  --ink-3:      #272C35;
  --ink-4:      #333944;
  --bone:       #EDEAE3;
  --bone-2:     #DFDAD0;
  --bone-3:     #C9C2B4;

  /* Brand gold, sampled from the logo */
  --gold:       #C9992E;
  --gold-lt:    #F4DFA0;
  --gold-dk:    #8A661B;
  --gold-grad:  linear-gradient(100deg, #8A661B 0%, #F4DFA0 28%, #C9992E 52%, #F7E9BE 78%, #9B7420 100%);

  /* Text */
  --text:       #E7E9ED;
  --text-dim:   #A8AFBA;
  --text-ink:   #14161A;
  --text-ink-dim: #5C6068;

  /* Lines */
  --line:       rgba(255, 255, 255, 0.13);
  --line-strong:rgba(255, 255, 255, 0.26);
  --line-dark:  rgba(20, 22, 26, 0.14);

  /* Type */
  --display: "Big Shoulders Display", "Big Shoulders", "Oswald", "Arial Narrow", sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --arabic:  "Noto Kufi Arabic", var(--body);

  /* Rhythm */
  --gut:      clamp(1.25rem, 4vw, 3rem);
  --maxw:     1280px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: #16191F; }

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

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--section-y); position: relative; }
[id] { scroll-margin-top: 110px; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--bone { background: var(--bone); color: var(--text-ink); }
.section--panel { background: var(--ink-2); }

.section--bone h1,
.section--bone h2,
.section--bone h3 { color: var(--text-ink); }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #16191F;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.skip:focus { left: 0; }

/* ---------- 4. Signature: the dimension line ----------
   A hairline with tick ends and a centred mono label —
   lifted straight off a shop drawing. Used as a divider
   and as the frame for key statements.                    */
.dim {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dim::before,
.dim::after {
  content: "";
  flex: 1;
  height: 10px;
  background: linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1px no-repeat;
}
.dim::before { border-left: 1px solid var(--line-strong); }
.dim::after  { border-right: 1px solid var(--line-strong); }
.dim--left::before { flex: 0 0 34px; }

.section--bone .dim { color: var(--text-ink-dim); }
.section--bone .dim::before,
.section--bone .dim::after {
  background: linear-gradient(var(--line-dark), var(--line-dark)) center / 100% 1px no-repeat;
}
.section--bone .dim::before { border-left-color: var(--line-dark); }
.section--bone .dim::after  { border-right-color: var(--line-dark); }

/* Eyebrow label */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}

/* Section title block — mimics a drawing sheet title block */
.titleblock {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section--bone .titleblock { border-bottom-color: var(--line-dark); }

.titleblock h2 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  max-width: 16ch;
  color: #FFF;
}
.section--bone .titleblock h2 { color: var(--text-ink); }
.titleblock .sheet {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.9;
  white-space: nowrap;
}
.section--bone .titleblock .sheet { color: var(--text-ink-dim); }
.titleblock .sheet b { color: var(--gold); font-weight: 500; }

/* Gold text */
.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lead paragraph */
.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 62ch;
}
.section--bone .lead { color: var(--text-ink-dim); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn span { position: relative; z-index: 2; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform: translateY(101%);
  transition: transform .4s var(--ease);
  z-index: 1;
}
.btn:hover, .btn:focus-visible { color: #16191F; border-color: transparent; }
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }

.btn--gold {
  border-color: transparent;
  color: #16191F;
  background: var(--gold-grad);
}
.btn--gold::after { background: #FFF; }
.btn--gold:hover, .btn--gold:focus-visible { color: #16191F; }

.btn--ink { border-color: var(--line-dark); color: var(--text-ink); }

.btn .arrow { transition: transform .35s var(--ease); position: relative; z-index: 2; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
  padding-block: 1.1rem;
}
.header.is-stuck {
  background: rgba(22, 25, 31, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 0.6rem;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: block; flex: none; }
.brand img {
  height: clamp(34px, 4.4vw, 46px);
  width: auto;
  transition: height .4s var(--ease);
}
.header.is-stuck .brand img { height: clamp(30px, 3.6vw, 38px); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}
.nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-block: 0.4rem;
  position: relative;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-grad);
  transition: width .35s var(--ease);
}
.nav a:hover { color: #FFF; }
.nav a:hover::after { width: 100%; }
.nav a.is-active { color: var(--gold-lt); }
.nav a.is-active::after { width: 100%; }

.header__cta { display: inline-flex; }

.burger {
  display: none;
  width: 46px; height: 40px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger i {
  position: absolute;
  left: 12px;
  width: 20px; height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger i:nth-child(1) { top: 14px; }
.burger i:nth-child(2) { top: 19px; }
.burger i:nth-child(3) { top: 24px; }
.burger.is-open i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gut) 3rem;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer a {
  font-family: var(--display);
  font-size: clamp(2rem, 11vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.drawer a span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 400;
}
.drawer .drawer__foot {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  line-height: 2;
}
.drawer .drawer__foot a {
  font-family: var(--mono);
  font-size: 0.72rem;
  border: 0;
  display: inline;
  color: var(--gold-lt);
  font-weight: 400;
  text-transform: none;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 8rem;
  padding-bottom: 0;
  overflow: hidden;
  background: var(--ink);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Cross-fading hero slideshow with a slow Ken Burns push */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: grayscale(0.12) contrast(1.04) brightness(1.06);
  transform: scale(1.04);
}
.hero__slide.is-active img { animation: heroDrift 9s ease-out forwards; }
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.8%, -1.4%, 0); }
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, var(--ink) 1%, rgba(22,25,31,.32) 46%, rgba(22,25,31,.70) 100%),
    linear-gradient(to right, rgba(22,25,31,.76) 0%, rgba(22,25,31,.26) 55%, transparent 100%);
}

/* Slide ticker — reads like a sheet revision counter */
.hero__ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-bottom: 1.1rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.hero__ticker .count b { color: var(--gold-lt); font-weight: 500; }
.hero__dots { display: flex; gap: 0.4rem; }
.hero__dot {
  width: 30px; height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease);
}
.hero__dot:hover { background: rgba(255,255,255,.45); }
.hero__dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform-origin: left;
  animation: dotFill 6s linear forwards;
}
@keyframes dotFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
/* Blueprint grid overlay — the drawing-sheet motif */
.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 110px) clamp(60px, 8vw, 110px);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 78%);
  opacity: 0.7;
}

.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: 0; }

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.9rem, 10.5vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  max-width: 15ch;
  margin-bottom: 1.6rem;
  color: #FFF;
}
.hero h1 em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 3rem; }

/* Hero programme rail — sequential, so numbering earns its place */
.rail {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.rail__step {
  padding: 1.15rem 1rem 1.6rem 0;
  position: relative;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.rail__step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 1px; height: 9px;
  background: var(--gold);
}
.rail__step b {
  display: block;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-size: 0.63rem;
}

/* ---------- 8. Marquee strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding-block: 0.95rem;
}
.strip__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: slide 42s linear infinite;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.strip__track span { display: flex; align-items: center; gap: 3.5rem; }
.strip__track span::after {
  content: "◆";
  color: var(--gold);
  font-size: 0.55rem;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.strip:hover .strip__track { animation-play-state: paused; }

/* ---------- 9. Intro / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--top { align-items: start; }
.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-3);
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.split__media:hover img { transform: scale(1.05); }
.split__media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(244, 223, 160, 0.28);
  pointer-events: none;
}

.stamp {
  position: absolute;
  right: -1px; bottom: -1px;
  z-index: 3;
  background: var(--ink);
  border: 1px solid var(--gold-dk);
  padding: 1.1rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 62%;
}
.stamp b { display: block; color: var(--gold-lt); font-weight: 500; }

/* Fact list */
.facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.facts li .n {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-top: 0.25rem;
}
.section--bone .facts,
.section--bone .facts li { border-color: var(--line-dark); }
.section--bone .facts li .n { color: var(--gold-dk); }

/* ---------- 10. Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  position: relative;
  overflow: hidden;
  transition: background .4s var(--ease);
  display: block;
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.service:hover { background: var(--ink-2); }
.service:hover::before { transform: scaleX(1); }
.service__no {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  display: block;
  margin-bottom: 2.6rem;
}
.service h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  margin-bottom: 0.8rem;
  color: #FFF;
  max-width: 13ch;
}
.service p {
  color: var(--text-dim);
  font-size: 0.93rem;
  margin-bottom: 1.4rem;
}
.service__more {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.service:hover .service__more { color: var(--gold-lt); gap: 0.85rem; }

/* ---------- 11. Projects ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
}
.filter {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filter:hover { color: #FFF; border-color: var(--line-strong); }
.filter.is-active {
  background: var(--gold-grad);
  color: #16191F;
  border-color: transparent;
}

.grid-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.project {
  position: relative;
  background: var(--ink-2);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  display: block;
  width: 100%;
}
.project.is-hidden { display: none; }
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), opacity .6s var(--ease), filter .6s var(--ease);
  filter: grayscale(0.28) brightness(0.92);
}
.project:hover img,
.project:focus-visible img { transform: scale(1.07); filter: grayscale(0) brightness(1.03); }

.project__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem;
  background: linear-gradient(to top, rgba(22,25,31,.92), rgba(22,25,31,.5) 55%, transparent);
  z-index: 2;
}
.project__meta .cat {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}
.project__meta h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  color: #FFF;
}
.project__plus {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--gold-lt);
  font-family: var(--mono);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: all .4s var(--ease);
  z-index: 3;
  background: rgba(22,25,31,.45);
}
.project:hover .project__plus,
.project:focus-visible .project__plus { opacity: 1; transform: translateY(0); }

/* ---------- 12. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 20, 25, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img {
  width: 100%;
  max-height: 74svh;
  object-fit: contain;
  border: 1px solid var(--line);
}
.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lightbox figcaption b { color: var(--gold-lt); font-weight: 500; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 46px; height: 46px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .3s var(--ease);
  font-family: var(--mono);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--gold); color: #16191F; border-color: transparent; }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav.prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- 13. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 1.2rem clamp(1.8rem, 3.5vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.stat::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 34px; height: 2px;
  background: var(--gold-grad);
}
.stat .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.86;
  color: #FFF;
  display: block;
}
.stat .num sup {
  font-size: 0.34em;
  color: var(--gold);
  vertical-align: super;
  font-family: var(--mono);
  font-weight: 500;
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.75rem;
  display: block;
}

/* ---------- 14. Process ---------- */
.process { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 5.5rem 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
  transition: background .4s var(--ease);
}
.step:first-child { border-top: 1px solid var(--line-dark); }
.step:hover { background: rgba(201, 153, 46, 0.06); }
.step__no {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold-dk);
  padding-top: 0.5rem;
}
.step h3 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.step p { color: var(--text-ink-dim); font-size: 0.95rem; margin: 0; }

/* ---------- 15. Sectors ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sector {
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: background .35s var(--ease);
}
.sector:hover { background: var(--ink-3); }
.sector .ico {
  color: var(--gold);
  margin-bottom: 1.3rem;
  display: block;
}
.sector h3 { font-size: 1.35rem; color: #FFF; margin-bottom: 0.5rem; }
.sector p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 90px 100%;
  opacity: 0.6;
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 2; text-align: center; }
.cta-band h2 {
  font-size: clamp(2.4rem, 8vw, 6rem);
  color: #FFF;
  margin-bottom: 1.2rem;
}
.cta-band .lead { margin-inline: auto; margin-bottom: 2.2rem; }
.cta-band .btns { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 17. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .k {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}
.contact-list .v { font-size: 1.02rem; color: #FFF; }
.contact-list .v:hover { color: var(--gold-lt); }

.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input,
.field select,
.field textarea {
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--body);
  font-size: 0.95rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  border-radius: 0;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ink-3);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #C4573F; }
.field .err {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #E08A76;
  display: none;
}
.field.has-error .err { display: block; }

.form__note {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  line-height: 1.8;
}
.form__status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--gold-dk);
  background: rgba(201,153,46,.08);
  color: var(--gold-lt);
  display: none;
}
.form__status.is-visible { display: block; }

.map-frame {
  border: 1px solid var(--line);
  filter: grayscale(1) invert(0.92) contrast(0.85);
  width: 100%;
  height: 360px;
}

/* ---------- 18. Page header (inner pages) ---------- */
.pagehead {
  padding-top: clamp(9rem, 16vw, 13rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.pagehead__bg {
  position: absolute; inset: 0; z-index: 0;
}
.pagehead__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: grayscale(0.18) brightness(1.06);
}
.pagehead__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink-2) 4%, rgba(30,34,42,.5));
}
.pagehead .wrap { position: relative; z-index: 2; }
.pagehead h1 {
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  color: #FFF;
  max-width: 16ch;
  margin-bottom: 1.2rem;
}
.crumbs {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.crumbs a:hover { color: var(--gold-lt); }
.crumbs .sep { color: var(--gold); margin-inline: 0.55rem; }

/* ---------- 19. Accordion (services detail) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 4rem 1fr 2rem;
  gap: 1rem;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.acc__btn .no {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.acc__btn h3 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--text);
  transition: color .3s var(--ease);
}
.acc__btn:hover h3 { color: #FFF; }
.acc__btn .sign {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--gold);
  justify-self: end;
  transition: transform .4s var(--ease);
}
.acc__item.is-open .acc__btn .sign { transform: rotate(45deg); }
.acc__item.is-open .acc__btn h3 { color: #FFF; }
.acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.acc__panel .inner {
  padding: 0 0 2rem 5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
}
.acc__panel p { color: var(--text-dim); }
.acc__panel ul {
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.acc__panel ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 0.7rem;
}
.acc__panel ul li::before { content: "—"; color: var(--gold); }

/* ---------- 20. Footer ---------- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
.footer__brand img { height: 52px; width: auto; margin-bottom: 1.4rem; }
.footer__brand p { color: var(--text-dim); font-size: 0.92rem; max-width: 34ch; }
.footer__ar {
  font-family: var(--arabic);
  font-size: 0.86rem;
  color: var(--gold);
  direction: rtl;
  margin-top: 1rem;
  letter-spacing: 0;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.3rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 0.65rem; }
.footer ul a { color: var(--text-dim); font-size: 0.92rem; transition: color .3s var(--ease); }
.footer ul a:hover { color: var(--gold-lt); }
.footer__bar {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__bar a:hover { color: var(--gold-lt); }

.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: all .3s var(--ease);
}
.socials a:hover { border-color: var(--gold); color: var(--gold-lt); background: rgba(201,153,46,.1); }

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366;
  color: #FFFFFF;
  border: 0;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.38), 0 2px 8px rgba(0,0,0,.28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.float-wa svg { position: relative; z-index: 2; }
.float-wa:hover,
.float-wa:focus-visible {
  background: #1EBE5B;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 34px rgba(37, 211, 102, 0.5), 0 2px 8px rgba(0,0,0,.28);
}
/* soft pulse so it reads as a live channel */
.float-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: .55; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
/* WhatsApp green in the footer social row too */
.socials a[aria-label="WhatsApp"]:hover {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37, 211, 102, 0.12);
}

/* ---------- 21. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

/* Image fallback if a remote image can't load */
.img-fallback {
  background-color: var(--ink-3);
  background-image:
    linear-gradient(rgba(201,153,46,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,153,46,.14) 1px, transparent 1px);
  background-size: 26px 26px;
}
.img-fallback img { opacity: 0 !important; }

/* ---------- 22. Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .grid-projects { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 3 / 2; }
  .acc__panel .inner { grid-template-columns: 1fr; padding-left: 0; }
  .step { grid-template-columns: 3.2rem 1fr; }
  .step p { grid-column: 2; }
  .titleblock { grid-template-columns: 1fr; align-items: start; }
  .titleblock .sheet { text-align: left; }
}

@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .grid-projects { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .rail { grid-template-columns: repeat(2, 1fr); }
  .rail__step { padding-right: 0.6rem; }
  .form .row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .lightbox__nav.prev { left: 0.4rem; }
  .lightbox__nav.next { right: 0.4rem; }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__slide.is-active img { animation: none; }
  .hero__dot.is-active::after { animation: none; transform: scaleX(1); }
  .float-wa::before { animation: none; }
  .strip__track { animation: none; }
}

/* ---------- 24. Print ---------- */
@media print {
  .header, .drawer, .float-wa, .lightbox, .strip { display: none !important; }
  body { background: #FFF; color: #000; }
}

/* ============================================================
   25. Page routing (single-file build) + layout polish
   ============================================================ */
.page { display: none; }
.page.is-active { display: block; animation: pageIn .5s var(--ease) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Scroll progress hairline */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--gold-grad);
  z-index: 120;
  pointer-events: none;
  transition: width .12s linear;
}

/* Long headings must never overflow their column */
h1, h2, h3, h4 { overflow-wrap: break-word; }

/* Consistent spacing helpers so inline styles stay out of the markup */
.mt-1 { margin-top: 1.2rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.h-section {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  color: #FFF;
  max-width: 15ch;
  margin-bottom: 1.4rem;
}
.section--bone .h-section { color: var(--text-ink); }

.dim--center { justify-content: center; }

/* Hero fine-tuning */
.hero__inner { padding-bottom: clamp(.5rem, 2vw, 1.25rem); }
.hero h1 { text-wrap: balance; }

/* Title block breathes better at mid widths */
@media (max-width: 1080px) {
  .titleblock { gap: 1rem; }
  .titleblock h2 { max-width: 100%; }
}

/* Small phones: full-width actions read better than half-width pills */
@media (max-width: 460px) {
  .btn { width: 100%; justify-content: center; }
  .hero__ticker { justify-content: flex-start; padding-bottom: .8rem; }
  .float-wa { width: 50px; height: 50px; }
  .hero__actions, .cta-band .btns { gap: .7rem; }
  .rail { grid-template-columns: 1fr 1fr; }
  .rail__step { font-size: .62rem; }
  .stat .num { font-size: clamp(2.6rem, 14vw, 3.4rem); }
  .drawer a { font-size: clamp(1.8rem, 9.5vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .page.is-active { animation: none; }
}

/* ---------- 23. Inline social buttons (About section) ---------- */
.socials--inline a {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: all .3s var(--ease);
}
.socials--inline a:hover { transform: translateY(-3px); }
.socials--inline a[aria-label="Instagram"]:hover {
  border-color: transparent;
  color: #FFFFFF;
  background: linear-gradient(100deg, #F58529 0%, #DD2A7B 40%, #8134AF 75%, #515BD4 100%);
  box-shadow: 0 8px 20px rgba(221, 42, 123, 0.35);
}
.socials--inline a[aria-label="Facebook"]:hover {
  border-color: #1877F2;
  color: #1877F2;
  background: rgba(24, 119, 242, 0.12);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.25);
}
.socials--inline a[aria-label="LinkedIn"]:hover {
  border-color: #0A66C2;
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.12);
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.25);
}
.socials--inline a[aria-label="TikTok"]:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
