/* =====================================================================
   DIRECT WAY CONTRACTING — site stylesheet
   Editorial Engineering Monolith
   Instrument Serif (display) + Geist (UI) + Geist Mono (data)
   ===================================================================== */

:root {
  /* ---------- TYPE ---------- */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Arabic', sans-serif;
  --font-display: 'Instrument Serif', 'Times New Roman', Georgia, 'Noto Naskh Arabic', serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  /* ---------- COLOR ---------- */
  --ink:        #1a1a1a;
  --ink-soft:   #2c2a27;
  --ink-mute:   #6a6661;
  --graphite:   #4a4a47;
  --line:       rgba(26,22,18,0.12);
  --line-soft:  rgba(26,22,18,0.06);
  --bone:       #f2efe9;
  --bone-deep:  #e9e4dc;
  --paper:      #ffffff;
  --accent:     #a11d1b;
  --accent-ink: #7d1614;
  --accent-soft:#d4b68a;

  /* ---------- TYPE SCALE ---------- */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   2rem;
  --fs-2xl:  2.75rem;
  --fs-3xl:  3.75rem;
  --fs-4xl:  5rem;
  --fs-5xl:  6.5rem;

  /* ---------- SPACE ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --space-10:9rem;

  /* ---------- LAYOUT ---------- */
  --container: 1320px;
  --gutter-mobile: 1.25rem;
  --gutter-tablet: 2rem;
  --gutter-desktop: 3rem;

  /* ---------- MOTION ---------- */
  --easing:  cubic-bezier(.2,.7,.2,1);
  --easing-emph: cubic-bezier(.3,1.2,.4,1);
  --dur: 600ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-inline-start: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Base ---------- */
html {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bone);
  font-feature-settings: "ss01", "cv11";
}
body {
  font-size: var(--fs-base);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Paper-grain atmospheric overlay — keeps the off-white from feeling sterile */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.13 0 0 0 0 0.10 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 2; }
main { flex: 1; }
::selection { background: var(--accent); color: var(--paper); }

/* ---------- Typography ---------- */
.display, h1.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, var(--fs-4xl));
  line-height: 0.98;
  letter-spacing: -0.025em;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 4vw, var(--fs-2xl));
  line-height: 1.05;
}
h3 {
  font-size: var(--fs-lg);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
p { max-width: 64ch; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-weight: 400;
}
.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  letter-spacing: -0.005em;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "ss01", "tnum";
}

/* Italic emphasis in display contexts — Instrument Serif italic is gorgeous */
.display em, h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
@media (min-width: 720px)  { .container { padding-inline: var(--gutter-tablet); } }
@media (min-width: 1080px) { .container { padding-inline: var(--gutter-desktop); } }
.section { padding-block: var(--space-9); }
@media (max-width: 720px) { .section { padding-block: var(--space-8); } }
.section--tight { padding-block: var(--space-7); }
.section--bone-deep { background: var(--bone-deep); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: rgba(255,255,255,0.45); }
.section--ink .lead { color: rgba(255,255,255,0.78); }

/* ---------- Utility bar (top) ---------- */
.utility-bar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-xs);
  border-block-end: 1px solid rgba(255,255,255,0.05);
  position: relative; z-index: 51;
}
.utility-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-block: 10px;
  flex-wrap: wrap;
}
.utility-bar__contacts {
  display: flex; align-items: center; gap: var(--space-6);
  flex-wrap: wrap;
}
.utility-bar__actions { display: flex; align-items: center; gap: var(--space-4); }
.utility-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: rgba(255,255,255,0.8); font-size: var(--fs-xs);
  transition: color 200ms var(--easing);
}
.utility-link:hover { color: var(--paper); }
.utility-link__icon { color: var(--accent-soft); flex-shrink: 0; }
.utility-link__label {
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4); display: block; font-size: 9.5px; line-height: 1;
  margin-block-end: 2px;
}
.utility-link strong { color: var(--paper); font-weight: 500; font-size: var(--fs-xs); }
.utility-link--static { cursor: default; }
.utility-link--whatsapp { color: #25D366; }
.utility-link--whatsapp:hover { color: #25D366; opacity: 0.85; }
.utility-cta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--accent); color: var(--paper);
  padding: 8px 16px; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--font-mono);
  transition: background 200ms var(--easing);
}
.utility-cta:hover { background: var(--accent-ink); color: var(--paper); }
@media (max-width: 720px) {
  .utility-bar__contacts .utility-link:not(:first-child) { display: none; }
  .utility-link__label { display: none; }
  .utility-bar__inner { gap: var(--space-3); padding-block: 8px; }
  .utility-bar__contacts { gap: var(--space-4); }
  .utility-link--whatsapp span { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,239,233,0.92);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
          backdrop-filter: saturate(150%) blur(14px);
  border-block-end: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-3);
}
.brand {
  display: flex; align-items: center; gap: var(--space-3);
  transition: opacity 200ms var(--easing);
}
.brand:hover { opacity: 0.75; }
.brand__mark { height: 42px; width: auto; }
.brand__name {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 11px;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand__name span {
  display: block; color: var(--ink-mute); font-weight: 400;
  font-size: 10px; letter-spacing: 0.12em;
}
.nav { display: none; align-items: center; gap: var(--space-6); }
@media (min-width: 920px) { .nav { display: flex; } }
.nav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-block: var(--space-2);
}
.nav__link::after {
  content: ''; position: absolute; inset-inline: 0; inset-block-end: -2px;
  height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: inline-start;
  transition: transform 280ms var(--easing);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: var(--space-4); }
.btn--compact { padding: 9px 18px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500; }
.header-quote { display: none; }
@media (min-width: 920px) { .header-quote { display: inline-flex; } }

.lang-switch {
  display: inline-flex; gap: 1px; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px;
}
.lang-switch button {
  font-family: var(--font-mono);
  font-size: 10.5px; padding: 4px 11px; border-radius: 999px; font-weight: 500;
  letter-spacing: 0.08em;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: 999px;
}
.menu-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.menu-toggle__bars span { width: 16px; height: 1.5px; background: var(--ink); display: block; }
@media (min-width: 920px) { .menu-toggle { display: none; } }

.mobile-drawer {
  position: fixed; inset: 0; background: var(--bone); z-index: 60;
  display: flex; flex-direction: column; padding: var(--space-5);
  transform: translateY(-100%); transition: transform 400ms var(--easing);
}
.mobile-drawer[data-open="true"] { transform: translateY(0); }
.mobile-drawer__head { display: flex; justify-content: space-between; align-items: center; }
.mobile-drawer__nav { display: flex; flex-direction: column; gap: var(--space-5); margin-block-start: var(--space-8); }
.mobile-drawer__nav a {
  font-family: var(--font-display); font-size: var(--fs-2xl); letter-spacing: -0.02em;
  font-weight: 400;
}
.mobile-drawer__close {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: 999px;
}
.mobile-drawer__contact {
  margin-block-start: auto;
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.mobile-drawer__contact .utility-link { color: var(--ink); }
.mobile-drawer__contact .utility-link strong { color: var(--ink); font-size: var(--fs-md); }
.mobile-drawer__contact .btn { align-self: flex-start; margin-block-start: var(--space-3); }

/* ---------- Hero (editorial) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}
.hero__image {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: 0.78;
  filter: grayscale(8%) contrast(1.05);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.65) 100%),
    linear-gradient(90deg, rgba(26,26,26,0.45) 0%, rgba(26,26,26,0) 50%);
  z-index: 1;
}
.hero__inner {
  position: relative; z-index: 2;
  color: var(--paper);
  padding-block: var(--space-9) var(--space-8);
  display: grid; gap: var(--space-7);
}
@media (min-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--space-8);
  }
}

.hero__index {
  display: flex; align-items: center; gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-block-end: var(--space-5);
}
.hero__index .mono {
  color: var(--accent-soft);
  border-inline-end: 1px solid rgba(255,255,255,0.25);
  padding-inline-end: var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7.5vw, var(--fs-5xl));
  line-height: 0.96;
  letter-spacing: -0.028em;
  max-width: 18ch;
  color: var(--paper);
  /* Drop cap punctuation gets the serif italic flair */
}
.hero__title em {
  font-style: italic;
  color: var(--accent-soft);
}

.hero__meta {
  align-self: end;
  min-width: 280px;
}
.hero__meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  border-block-start: 1px solid rgba(255,255,255,0.22);
  padding-block-start: var(--space-4);
}
.hero__meta-item {
  display: flex; flex-direction: column; gap: 4px;
}
.hero__meta-item strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-xl);
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.hero__meta-item span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  inset-inline-end: var(--gutter-desktop);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex; align-items: center; gap: var(--space-3);
  animation: scrollHint 2.4s var(--easing) infinite;
}
.hero__scroll::after {
  content: ''; display: block;
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--accent-soft), transparent);
}
@media (max-width: 720px) { .hero__scroll { display: none; } }
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------- Capability strip ---------- */
.capabilities {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border-block-start: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
}
@media (min-width: 720px) { .capabilities { grid-template-columns: repeat(3, 1fr); } }
.capability {
  background: var(--bone); padding: var(--space-6) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: background 280ms var(--easing);
}
.capability:hover { background: var(--paper); }
.capability__num {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-lg); color: var(--accent);
  font-weight: 400;
}
.capability h3 { font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-md); letter-spacing: -0.01em; }
.capability p { font-size: var(--fs-sm); color: var(--ink-mute); line-height: 1.55; }

/* ---------- Section header ---------- */
.section-head {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
  align-items: end;
  margin-block-end: var(--space-7);
}
@media (min-width: 920px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .section-head__intro { max-width: 52ch; }
}
.section-head h2 { max-width: 22ch; }

/* ---------- Project cards ---------- */
.project-grid {
  display: grid; gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px){ .project-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-8) var(--space-7); } }

.project-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform 480ms var(--easing);
  text-decoration: none;
}
.project-card:hover { transform: translateY(-3px); }
.project-card__image {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone-deep);
}
.project-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--easing);
  filter: grayscale(2%) contrast(1.02);
}
.project-card:hover .project-card__image img { transform: scale(1.05); }
.project-card__index {
  position: absolute; inset-block-start: var(--space-3); inset-inline-start: var(--space-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: rgba(26,26,26,0.65);
  padding: 4px 8px;
  backdrop-filter: blur(6px);
}
.project-card__tag {
  position: absolute; inset-block-start: var(--space-3); inset-inline-end: var(--space-3);
  background: rgba(242,239,233,0.94); color: var(--ink);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.project-card__body {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding-block-start: var(--space-2);
}
.project-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-lg);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.project-card__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.project-card__meta > * + *::before {
  content: "·";
  color: var(--line);
  margin-inline-end: var(--space-2);
  display: inline-block;
}

/* Home featured strip */
.project-strip {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .project-strip { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 720px) {
  .project-strip .project-card:first-child .project-card__image { aspect-ratio: 4 / 6; }
}

/* ---------- Pillars / Why DIRECT ---------- */
.pillars {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr;
  margin-block-start: var(--space-6);
}
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px){ .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.pillar {
  background: var(--paper); padding: var(--space-6);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color 280ms var(--easing), transform 280ms var(--easing);
}
.pillar:hover { border-color: var(--ink); transform: translateY(-2px); }
.section--ink .pillar { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.section--ink .pillar:hover { background: rgba(255,255,255,0.06); border-color: var(--accent-soft); }
.pillar h3 { font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-md); letter-spacing: -0.01em; }
.pillar p { font-size: var(--fs-sm); color: var(--ink-mute); line-height: 1.55; }
.section--ink .pillar p { color: rgba(255,255,255,0.7); }
.pillar__num {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-xl); color: var(--accent);
  font-weight: 400;
  line-height: 1;
}
.section--ink .pillar__num { color: var(--accent-soft); }

/* ---------- Workflow ---------- */
.workflow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-block-start: var(--space-6);
}
@media (min-width: 720px) { .workflow { grid-template-columns: repeat(5, 1fr); } }
.workflow-step {
  background: var(--bone);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.workflow-step__num {
  font-family: var(--font-display); font-style: italic;
  color: var(--accent); font-size: var(--fs-xl);
  font-weight: 400; line-height: 1;
}
.workflow-step h4 { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-sm); letter-spacing: -0.005em; }
.workflow-step p { font-size: var(--fs-xs); color: var(--ink-mute); line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: var(--paper); padding-block: var(--space-9);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  opacity: 0.4;
}
.cta-band__inner {
  display: grid; gap: var(--space-6); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-8); } }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(255,255,255,0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background 240ms var(--easing), color 240ms var(--easing);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--inverse { border-color: var(--paper); color: var(--paper); }
.btn--inverse:hover { background: var(--paper); color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }

/* ---------- Inline link with arrow ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  border-block-end: 1px solid currentColor;
  padding-block-end: 2px;
}
.link-arrow::after { content: "→"; transition: transform 240ms var(--easing); }
.link-arrow:hover::after { transform: translateX(4px); }
[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-6); }
.filter {
  font-family: var(--font-mono);
  font-size: 10.5px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.12em;
  transition: all 200ms var(--easing);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Credibility band ---------- */
.credibility {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: var(--space-7) 0;
  border-block-start: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
}
@media (min-width: 720px) { .credibility { grid-template-columns: repeat(4, 1fr); } }
.credibility__item { display: flex; flex-direction: column; gap: var(--space-2); }
.credibility__num {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-2xl); line-height: 1; color: var(--ink);
  letter-spacing: -0.02em;
}
.credibility__label {
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.7); padding-block: var(--space-8) var(--space-6);
  position: relative;
}
.site-footer h4 {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper);
  margin-block-end: var(--space-4);
}
.site-footer a { color: rgba(255,255,255,0.7); transition: color 200ms; }
.site-footer a:hover { color: var(--paper); }
.footer__grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-7); } }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-3); max-width: 36ch; }
.footer__brand img { height: 44px; width: auto; }
.footer__brand p { font-size: var(--fs-sm); line-height: 1.55; }
.footer__bottom {
  margin-block-start: var(--space-7);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.05em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
}
.field input, .field textarea, .field select {
  font: inherit; font-size: var(--fs-base); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  padding: 14px 16px; border-radius: 0;
  width: 100%;
  font-family: var(--font-sans);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}

/* ---------- Project detail ---------- */
.project-hero {
  position: relative;
  min-height: 80vh;
  display: grid; align-items: end;
  background: var(--ink); overflow: hidden;
}
.project-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.82;
  filter: grayscale(5%) contrast(1.04);
}
.project-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.7));
}
.project-hero__inner { position: relative; z-index: 2; color: var(--paper); padding-block: var(--space-7); }
.project-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, var(--fs-3xl));
  letter-spacing: -0.025em; line-height: 1;
  margin-block: var(--space-3) var(--space-5);
  max-width: 22ch;
  color: var(--paper);
}
.project-hero__facts {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
  margin-block-start: var(--space-5);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid rgba(255,255,255,0.18);
}
@media (min-width: 720px) { .project-hero__facts { grid-template-columns: repeat(5, 1fr); } }
.project-hero__facts > div { display: flex; flex-direction: column; gap: 4px; }
.project-hero__facts span {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.project-hero__facts strong {
  color: var(--paper); font-weight: 500;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: -0.005em;
}

.project-body { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 920px) {
  .project-body { grid-template-columns: 1fr 2fr; gap: var(--space-8); }
}
.project-body h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.section--bone-deep .project-body h2 { color: var(--graphite); }
.section--bone-deep .project-body p { color: var(--ink-soft); }
.project-body p,
.project-body__prose p {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 62ch;
}
.project-body__prose p + p { margin-block-start: var(--space-5); }

/* Project gallery */
.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 720px) {
  .project-gallery {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-4);
  }
  .project-gallery img:nth-child(1) { grid-column: span 4; aspect-ratio: 16/10; object-fit: cover; }
  .project-gallery img:nth-child(2) { grid-column: span 2; aspect-ratio: 4/5; object-fit: cover; }
  .project-gallery img:nth-child(3) { grid-column: span 2; aspect-ratio: 4/5; object-fit: cover; }
  .project-gallery img:nth-child(4) { grid-column: span 2; aspect-ratio: 4/5; object-fit: cover; }
  .project-gallery img:nth-child(5) { grid-column: span 2; aspect-ratio: 4/5; object-fit: cover; }
}
.project-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--bone-deep);
  transition: transform 700ms var(--easing), filter 700ms var(--easing);
  filter: grayscale(3%) contrast(1.02);
}
.project-gallery img:hover { transform: scale(1.015); }

/* ---------- Reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--easing), transform var(--dur) var(--easing); }
.reveal[data-revealed="true"] { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero__scroll { animation: none; }
}

/* Stagger reveal — words in a hero title fade up sequentially. JS adds .hero-word spans. */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms var(--easing), transform 800ms var(--easing);
  transition-delay: calc(var(--word-i, 0) * 80ms + 100ms);
}
.hero-word[data-revealed="true"] { opacity: 1; transform: translateY(0); }

/* ---------- RTL specifics ---------- */
[dir="rtl"] .nav__link::after { transform-origin: inline-end; }
[dir="rtl"] .hero__index .mono { border-inline-end: none; border-inline-start: 1px solid rgba(255,255,255,0.25); padding-inline-end: 0; padding-inline-start: var(--space-4); }
[dir="rtl"] .hero__scroll { writing-mode: vertical-lr; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-6 { margin-block-start: var(--space-6); }
.mt-7 { margin-block-start: var(--space-7); }
.mb-6 { margin-block-end: var(--space-6); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Print ---------- */
@media print {
  body::before { display: none; }
  .utility-bar, .site-header, .site-footer, .cta-band, .filters, .hero__scroll { display: none !important; }
  body { background: white; color: black; }
}

/* ---------- Services page (editorial rows) ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-block: var(--space-8);
  border-block-start: 1px solid var(--line);
}
.service-row:first-child { border-block-start: none; }
@media (min-width: 920px) {
  .service-row { grid-template-columns: 1fr 2fr; gap: var(--space-8); }
}
.service-row__head { display: flex; flex-direction: column; gap: var(--space-3); }
.service-row__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.service-row__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, var(--fs-2xl));
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.service-row__body { display: flex; flex-direction: column; gap: var(--space-5); }
.service-row__body .lead { color: var(--ink-soft); }
.service-scope {
  display: grid; gap: var(--space-3);
  border-block-start: 1px solid var(--line);
  padding-block-start: var(--space-5);
}
.service-scope__item {
  display: flex; gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}
.service-scope__bullet {
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
  width: 14px;
}

/* =====================================================================
   FIXES (round 4) — footer logo aspect ratio, mobile-drawer desktop hide
   ===================================================================== */

/* Footer logo: the global img reset has max-width: 100% which clamps width
   when the parent (.footer__brand max-width: 36ch) is narrower than the
   logo's natural width at 44px tall. Override so the logo always keeps
   its true 1.08:1 aspect ratio. */
.footer__brand img {
  max-width: none;
  width: auto;
  height: 44px;
}

/* Mobile drawer must be completely hidden at desktop widths — the
   translateY(-100%) hide was leaking in some browsers. Sledgehammer rule. */
@media (min-width: 920px) {
  .mobile-drawer { display: none !important; }
}

/* =====================================================================
   FIXES (round 5) — single combined header, bulletproof footer logo
   ===================================================================== */

/* The dark utility-bar is no longer used (header partial removed it).
   But if it ever appears in an older cached page, hide it cleanly. */
.utility-bar { display: none !important; }

/* Combined header layout — logo + nav + (call, email, quote, lang) all in one row */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-3);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Order from right (lang) to left (call) on desktop — using flex order */
.header-tools .header-contact:first-of-type { order: 1; }   /* call — leftmost */
.header-tools .header-contact:nth-of-type(2) { order: 2; }  /* email */
.header-tools .header-quote { order: 3; }                   /* quote */
.header-tools .lang-switch { order: 4; }                    /* lang — rightmost */
.header-tools .menu-toggle { order: 5; }                    /* mobile only */

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color 200ms var(--easing);
  white-space: nowrap;
}
.header-contact:hover { color: var(--accent); }
.header-contact svg { color: var(--accent); flex-shrink: 0; }

/* On narrower viewports, hide contact lines progressively */
@media (max-width: 1180px) {
  .header-contact:nth-of-type(2) { display: none; }   /* hide email */
}
@media (max-width: 1020px) {
  .header-contact { display: none; }                  /* hide both phone + email */
}
@media (max-width: 919px) {
  .header-quote { display: none; }                    /* hide Get a Quote on mobile (in drawer instead) */
}

/* Bulletproof footer logo — force aspect ratio with !important so any cached
   CSS or specificity quirk can't squash it. Logo natural is ~1.03:1 visible. */
.footer__brand img {
  max-width: none !important;
  width: auto !important;
  height: 48px !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}


/* WhatsApp in header — green text, sits between email (order 2) and quote (order 3) */
.header-tools .header-contact--whatsapp {
  order: 2;
  color: #25D366 !important;
}
.header-tools .header-contact--whatsapp svg { color: #25D366; }
.header-tools .header-contact--whatsapp:hover { opacity: 0.85; color: #25D366 !important; }
/* Re-order the rest now that WhatsApp slots at 2 */
.header-tools .header-contact:nth-of-type(2):not(.header-contact--whatsapp) { order: 2; }
.header-tools .header-contact:nth-of-type(3) { order: 3; }   /* WhatsApp resolves to nth-of-type 3 */
.header-tools .header-quote { order: 4; }
.header-tools .lang-switch { order: 5; }
.header-tools .menu-toggle { order: 6; }

/* On narrower viewports, hide WhatsApp text first (keep icon) */
@media (max-width: 1240px) {
  .header-contact--whatsapp span { display: none; }
}
@media (max-width: 1020px) {
  .header-contact--whatsapp { display: none; }
}

/* =====================================================================
   FIXES (round 6) — Mobile dropdown, footer no-logo, header divider
   ===================================================================== */

/* --- Mobile dropdown (replaces full-screen drawer) --- */
.mobile-drawer {
  position: absolute !important;
  top: 100% !important;
  inset-inline-start: 0;
  inset-inline-end: 0;
  inset-block-end: auto !important;
  inset-block-start: 100% !important;
  height: auto !important;
  background: var(--bone) !important;
  border-block-end: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26,22,18,0.08);
  z-index: 49;
  padding: var(--space-5) var(--gutter-mobile) var(--space-6);
  transform: translateY(-8px) !important;
  opacity: 0;
  visibility: hidden;
  transition: transform 240ms var(--easing), opacity 200ms ease, visibility 0s linear 240ms;
}
.mobile-drawer[data-open="true"] {
  transform: translateY(0) !important;
  opacity: 1;
  visibility: visible;
  transition: transform 280ms var(--easing-emph), opacity 220ms ease, visibility 0s linear 0s;
}
.mobile-drawer__head {
  display: none;  /* logo is already in the sticky header above; drawer doesn't need a duplicate */
}
.mobile-drawer__nav {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  margin-block-start: 0;
}
.mobile-drawer__nav a {
  font-family: var(--font-sans) !important;
  font-size: var(--fs-md) !important;
  font-weight: 500;
  letter-spacing: 0 !important;
  padding: 14px 0;
  border-block-end: 1px solid var(--line-soft);
  color: var(--ink);
  transition: color 200ms var(--easing), padding-inline-start 200ms var(--easing);
}
.mobile-drawer__nav a:hover {
  color: var(--accent);
  padding-inline-start: 6px;
}
.mobile-drawer__nav a:last-child { border-block-end: none; }
.mobile-drawer__contact {
  margin-block-start: var(--space-5);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.mobile-drawer__contact .utility-link {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.mobile-drawer__contact .utility-link strong {
  color: var(--ink); font-size: var(--fs-md); font-weight: 500;
}
.mobile-drawer__contact .btn {
  align-self: flex-start;
  margin-block-start: var(--space-3);
}

/* The drawer is positioned relative to the .site-header — make header position: relative */
.site-header { position: sticky; top: 0; z-index: 50; }

/* Backdrop overlay when drawer is open (mobile only) */
.mobile-drawer[data-open="true"]::before {
  content: "";
  position: fixed;
  top: 100%;  /* below the drawer (drawer is the panel itself) */
  inset-inline: 0;
  bottom: 0;
  background: rgba(26,22,18,0.5);
  z-index: -1;
}

/* Above desktop width, drawer is hidden entirely (already there but reinforce) */
@media (min-width: 920px) {
  .mobile-drawer { display: none !important; }
}

/* --- Header | divider between Contact (last nav link) and contact tools --- */
.header-tools::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--line);
  margin-inline-end: var(--space-2);
}
/* Hide divider on mobile (header-tools wraps differently) */
@media (max-width: 919px) {
  .header-tools::before { display: none; }
}

/* --- Hide footer brand image (Yasir asked to remove) --- */
.footer__brand img { display: none !important; }
/* Make footer__brand text-only — keep paragraph readable */
.footer__brand { gap: var(--space-2); }

/* Footer wordmark (text replacement for the removed logo) */
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--paper);
  display: block;
  margin-block-end: var(--space-2);
}

/* =====================================================================
   FIXES (round 7) — brand wordmark, bulletproof mobile menu, hide card index
   ===================================================================== */

/* Brand wordmark — DIRECT bold + WAY lighter, no tagline */
.brand__name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.brand__name-bold {
  font-weight: 700;
  color: var(--ink);
}
.brand__name-light {
  font-weight: 300;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
}

/* Hide any leftover "Contracting LLC" tagline subspan if cached partials still load it */
.brand__name [data-i18n="brand.tagline"] { display: none !important; }

/* Project card index numerals (01/30) — remove per Yasir */
.project-card__index { display: none !important; }

/* ---------- Mobile dropdown (bulletproof rewrite) ---------- */
@media (max-width: 919px) {
  .mobile-drawer {
    position: fixed !important;
    top: var(--header-height, 64px);
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: auto !important;
    height: auto !important;
    max-height: calc(100vh - var(--header-height, 64px));
    overflow-y: auto;
    background: #f2efe9 !important;    /* solid bone — explicit hex so it never goes transparent */
    border-block-end: 1px solid rgba(26,22,18,0.12);
    box-shadow: 0 12px 32px rgba(26,22,18,0.14);
    z-index: 200 !important;
    padding: 24px var(--gutter-mobile) 28px;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    transition: transform 280ms var(--easing), opacity 220ms ease, visibility 0s linear 280ms;
    display: block !important;  /* override the desktop hide */
  }
  .mobile-drawer[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 320ms var(--easing-emph), opacity 240ms ease, visibility 0s linear 0s;
  }
  .mobile-drawer__nav {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    margin: 0;
  }
  .mobile-drawer__nav a {
    display: block;
    padding: 14px 4px;
    border-block-end: 1px solid rgba(26,22,18,0.08);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink);
    text-decoration: none;
  }
  .mobile-drawer__nav a:last-of-type { border-block-end: 1px solid rgba(26,22,18,0.18); }
  .mobile-drawer__nav a:hover,
  .mobile-drawer__nav a:active { color: var(--accent); }

  .mobile-drawer__contact {
    margin-block-start: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .mobile-drawer__line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
  }
  .mobile-drawer__line svg { color: var(--accent); flex-shrink: 0; }
  .mobile-drawer__line strong { color: var(--ink); font-weight: 500; }
  .mobile-drawer__line--whatsapp,
  .mobile-drawer__line--whatsapp strong,
  .mobile-drawer__line--whatsapp svg { color: #25D366 !important; }
  .mobile-drawer__quote {
    align-self: flex-start;
    margin-block-start: 4px;
  }
}

/* Above mobile width, drawer never shows */
@media (min-width: 920px) {
  .mobile-drawer { display: none !important; }
}


/* =====================================================================
   FIXES (round 8) — Brand stacked, mobile menu definitive, hero index gone
   ===================================================================== */

/* Brand wordmark — DIRECT on TOP (bold black), WAY underneath (lighter) */
.brand__name {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  line-height: 1 !important;
}
.brand__name-bold {
  font-family: var(--font-mono);
  font-weight: 700 !important;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink) !important;
  line-height: 1.1;
}
.brand__name-light {
  font-family: var(--font-mono);
  font-weight: 300 !important;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute) !important;
  line-height: 1.1;
  margin-block-start: 2px;
}

/* Hero index numerals — remove entirely */
.hero__index { display: none !important; }

/* ---------- MOBILE DROPDOWN — DEFINITIVE OVERRIDE BLOCK ----------
   Nukes every round-6/round-7 conflicting rule. Uses !important on
   every property so nothing in the file above can win.
   ---------------------------------------------------------------- */
@media (max-width: 919px) {
  .mobile-drawer {
    position: fixed !important;
    top: 64px !important;             /* default — JS bumps to real header height */
    top: var(--header-height, 64px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    inset-inline-start: 0 !important;
    inset-inline-end: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: calc(100vh - var(--header-height, 64px)) !important;
    overflow-y: auto !important;
    background: #f2efe9 !important;
    border-block-end: 1px solid rgba(26,22,18,0.12) !important;
    box-shadow: 0 14px 36px rgba(26,22,18,0.18) !important;
    z-index: 999 !important;
    padding: 20px 22px 28px !important;
    margin: 0 !important;
    transform: translateY(-8px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 280ms var(--easing), opacity 220ms ease, visibility 0s linear 280ms !important;
    display: block !important;
  }
  .mobile-drawer[data-open="true"] {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform 320ms var(--easing-emph), opacity 240ms ease, visibility 0s linear 0s !important;
  }
  .mobile-drawer__head { display: none !important; }
  .mobile-drawer__nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
  }
  .mobile-drawer__nav a {
    display: block !important;
    width: 100% !important;
    padding: 16px 4px !important;
    border: none !important;
    border-block-end: 1px solid rgba(26,22,18,0.08) !important;
    font-family: var(--font-sans) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    color: var(--ink) !important;
    text-decoration: none !important;
    background: transparent !important;
  }
  .mobile-drawer__nav a:last-of-type {
    border-block-end: 1px solid rgba(26,22,18,0.22) !important;
  }
  .mobile-drawer__nav a:hover,
  .mobile-drawer__nav a:active { color: var(--accent) !important; }

  .mobile-drawer__contact {
    margin-block-start: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .mobile-drawer__line {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-family: var(--font-mono) !important;
    font-size: 14px !important;
    color: var(--ink) !important;
    text-decoration: none !important;
  }
  .mobile-drawer__line svg { color: var(--accent) !important; flex-shrink: 0 !important; }
  .mobile-drawer__line strong { color: var(--ink) !important; font-weight: 500 !important; }
  .mobile-drawer__line--whatsapp,
  .mobile-drawer__line--whatsapp strong,
  .mobile-drawer__line--whatsapp svg { color: #25D366 !important; }
  .mobile-drawer__quote {
    align-self: flex-start !important;
    margin-block-start: 6px !important;
  }
}

@media (min-width: 920px) {
  .mobile-drawer { display: none !important; }
}


/* =====================================================================
   FIXES (round 9) — DRAWER HOISTED TO BODY (final definitive block)
   The drawer is now a direct child of <body> (moved at runtime by main.js),
   so its z-index escapes the header's stacking context and lives at the
   same level as <main>. We give it z-index:1000 + isolation:isolate so it
   ALWAYS paints above <main> and on top of body::before grain.
   ===================================================================== */

/* Disable the paper-grain overlay when the drawer is open so nothing
   mix-blends on top of the menu surface. */
body[data-drawer-open]::before { display: none !important; }

/* Hide the original full-screen drawer rules — we'll restyle entirely. */
@media (max-width: 919px) {
  .mobile-drawer {
    /* Reset everything that earlier rule blocks may have set */
    position: fixed !important;
    top: var(--header-height, 64px) !important;
    left: 0 !important;
    right: 0 !important;
    inset-inline-start: 0 !important;
    inset-inline-end: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - var(--header-height, 64px)) !important;
    overflow-y: auto !important;
    /* SOLID background — both color and explicit no-image — beats any blend */
    background-color: #f2efe9 !important;
    background-image: none !important;
    isolation: isolate !important;
    box-shadow: 0 14px 40px rgba(26, 22, 18, 0.20) !important;
    border-block-end: 1px solid rgba(26, 22, 18, 0.14) !important;
    z-index: 1000 !important;
    padding: 22px 22px 30px !important;
    margin: 0 !important;
    transform: translateY(-10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition:
      transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 220ms ease,
      visibility 0s linear 280ms !important;
    display: block !important;
  }
  .mobile-drawer[data-open="true"] {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition:
      transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 240ms ease,
      visibility 0s linear 0s !important;
  }

  /* Hide the drawer head (which had the close button) — we close via toggle */
  .mobile-drawer__head { display: none !important; }

  /* Navigation links — each one tappable, generous hit target */
  .mobile-drawer__nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mobile-drawer__nav a {
    display: block !important;
    width: 100% !important;
    padding: 16px 6px !important;
    border: 0 !important;
    border-block-end: 1px solid rgba(26, 22, 18, 0.10) !important;
    font-family: var(--font-sans) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    color: var(--ink) !important;
    text-decoration: none !important;
    background: transparent !important;
    cursor: pointer !important;
  }
  .mobile-drawer__nav a:last-of-type {
    border-block-end: 1px solid rgba(26, 22, 18, 0.22) !important;
  }
  .mobile-drawer__nav a:hover,
  .mobile-drawer__nav a:active,
  .mobile-drawer__nav a:focus { color: var(--accent) !important; }

  /* Contact block — phone, email, WhatsApp, Get a Quote */
  .mobile-drawer__contact {
    margin-block-start: 22px !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .mobile-drawer__line {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-family: var(--font-mono) !important;
    font-size: 14px !important;
    color: var(--ink) !important;
    text-decoration: none !important;
    padding: 4px 0 !important;
    cursor: pointer !important;
  }
  .mobile-drawer__line svg {
    color: var(--accent) !important;
    flex-shrink: 0 !important;
  }
  .mobile-drawer__line strong {
    color: var(--ink) !important;
    font-weight: 500 !important;
  }
  .mobile-drawer__line--whatsapp,
  .mobile-drawer__line--whatsapp strong,
  .mobile-drawer__line--whatsapp svg { color: #25D366 !important; }

  .mobile-drawer__quote {
    align-self: flex-start !important;
    margin-block-start: 8px !important;
  }
}

/* Above 920px the drawer never shows — toggle is hidden too */
@media (min-width: 920px) {
  .mobile-drawer { display: none !important; }
}


/* =====================================================================
   FIXES (round 10) — Hide language switch for now (per Yasir)
   Arabic strings file is still in place; re-enable by removing this rule.
   ===================================================================== */
.lang-switch { display: none !important; }


/* =====================================================================
   FIXES (round 11) — Bank Gothic for company wordmarks
   Bank Gothic is commercial (Adobe / Office). We use it if locally
   installed, else fall back to Big Shoulders Display (Google Fonts).
   Applied ONLY to the dedicated brand/wordmark elements — never to body.
   ===================================================================== */

:root {
  --font-brand:
    'Bank Gothic',
    'BankGothic Md BT',
    'BankGothic',
    'Bank Gothic Medium',
    'Big Shoulders Display',
    'Saira Condensed',
    'Impact',
    sans-serif;
}

/* Header wordmark — DIRECT (top) + WAY (bottom) */
.brand__name,
.brand__name-bold,
.brand__name-light {
  font-family: var(--font-brand) !important;
}
.brand__name-bold {
  letter-spacing: 0.14em !important;  /* Bank Gothic looks best a touch tighter */
  font-weight: 700 !important;
  font-size: 14px !important;
}
.brand__name-light {
  letter-spacing: 0.18em !important;
  font-weight: 500 !important;
  font-size: 11.5px !important;
}

/* Footer wordmark — DIRECT WAY */
.footer__wordmark {
  font-family: var(--font-brand) !important;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Any explicit company-name span (use class="company-name" anywhere) */
.company-name {
  font-family: var(--font-brand) !important;
  letter-spacing: 0.08em;
}


/* =====================================================================
   FIXES (round 12) — Project gallery lightbox
   Fullscreen viewer triggered by clicking a gallery image.
   Prev/next arrows, X close, photo counter.
   ===================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 13, 11, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  cursor: zoom-out;
  isolation: isolate;
}
.lightbox.is-open { display: flex; }
.lightbox * { cursor: default; }
.lightbox img { cursor: default; }

/* Disable body grain when lightbox is open */
body[data-lightbox-open]::before { display: none !important; }

.lightbox__stage {
  margin: 0;
  max-width: min(1400px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  background: #1a1a1a;
}
.lightbox__caption {
  color: rgba(242, 239, 233, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 80ch;
  line-height: 1.5;
}

/* Close button — top right */
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(242, 239, 233, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer !important;
  transition: background 180ms ease, color 180ms ease, transform 200ms ease;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.06);
}

/* Prev / next arrows */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 239, 233, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer !important;
  transition: background 180ms ease, color 180ms ease;
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.lightbox__nav--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 24px); }

.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(242, 239, 233, 0.65);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
}

/* Gallery images get a subtle zoom-cursor + hover lift */
.project-gallery img {
  cursor: zoom-in;
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}
.project-gallery img:hover {
  transform: scale(1.012);
  filter: brightness(1.04);
}

/* Mobile — smaller chrome */
@media (max-width: 640px) {
  .lightbox__close { width: 38px; height: 38px; top: 12px; right: 12px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__counter { bottom: 14px; font-size: 11px; }
}


/* =====================================================================
   FIXES (round 13) — Home strip swipe carousel
   The stage is a clipping wrapper so cards sliding out don't bleed
   past the section edges. The strip itself translates inside it.
   ===================================================================== */

.project-strip-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Give a hair of vertical breathing room for box-shadows on cards */
  padding: 4px 0;
  margin: -4px 0;
}
.project-strip-stage > .project-strip {
  /* The grid stays a grid; transitions are applied inline by JS. */
  will-change: transform;
}


/* =====================================================================
   FIXES (round 14) — Home strip MARQUEE (continuous scroll)
   Replaces the swipe-batch carousel. All projects render in a single
   horizontal track that scrolls leftward without stopping. Pause on
   hover so users can read or click. Track is duplicated so the loop
   is seamless (translate by -50% lands the clone exactly where the
   original started).
   ===================================================================== */

/* Override the grid layout when marquee mode is active */
.project-strip.project-strip--marquee {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: 100%;
}

.project-strip__track {
  display: flex;
  gap: var(--space-6, 24px);
  width: max-content;
  animation: project-marquee var(--marquee-duration, 120s) linear infinite;
  will-change: transform;
}
.project-strip__track-clone {
  display: flex;
  gap: var(--space-6, 24px);
  padding-inline-start: var(--space-6, 24px);
}

/* Pause when hovered — gives user time to read / click a card */
.project-strip-stage:hover .project-strip__track,
.project-strip-stage:focus-within .project-strip__track {
  animation-play-state: paused;
}

/* Each card in the marquee gets a fixed width */
.project-strip--marquee .project-card {
  flex: 0 0 auto;
  width: clamp(260px, 32vw, 360px);
}

/* Reset the grid-specific aspect-ratio rule for marquee cards — keep them uniform */
.project-strip--marquee .project-card .project-card__image,
.project-strip--marquee .project-card:first-child .project-card__image {
  aspect-ratio: 4 / 5;
}

/* Marquee keyframes — translate from 0 to -50% (the doubled track) */
@keyframes project-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Respect prefers-reduced-motion — for accessibility, stop the marquee */
@media (prefers-reduced-motion: reduce) {
  .project-strip__track {
    animation: none !important;
  }
  .project-strip--marquee {
    overflow-x: auto;
    scroll-behavior: smooth;
  }
}

/* Subtle edge fade so cards entering/leaving don't pop hard */
.project-strip-stage {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%
  );
          mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%
  );
}


/* =====================================================================
   FIXES (round 15) — MARQUEE always plays (even with reduced-motion)
   The earlier global rule sets animation-duration: 0.01ms !important
   on every element when prefers-reduced-motion is on. That kills the
   marquee. We explicitly overrule it for the strip track.
   ===================================================================== */
.project-strip__track {
  animation: project-marquee var(--marquee-duration, 120s) linear infinite !important;
  animation-duration: var(--marquee-duration, 120s) !important;
}
.project-strip-stage:hover .project-strip__track,
.project-strip-stage:focus-within .project-strip__track {
  animation-play-state: paused !important;
}
/* Override the round-14 reduced-motion disable — user wants it to run */
@media (prefers-reduced-motion: reduce) {
  .project-strip__track {
    animation: project-marquee var(--marquee-duration, 120s) linear infinite !important;
  }
  .project-strip--marquee {
    overflow-x: visible !important;
  }
}


/* =====================================================================
   FIXES (round 16) — Marquee preload skeleton
   While card.jpg images are being preloaded by JS, a row of subtle
   skeleton placeholders sits in place of the strip. Once all images
   resolve (or after a 6s safety cap), the skeleton is removed and the
   real strip fades in.
   ===================================================================== */

.project-strip-skeleton {
  display: flex;
  gap: var(--space-6, 24px);
  width: 100%;
  overflow: hidden;
  padding: 2px 0;
}
.project-strip-skeleton__card {
  flex: 0 0 auto;
  width: clamp(260px, 32vw, 360px);
  aspect-ratio: 4 / 5;
  background: linear-gradient(
    100deg,
    rgba(26, 22, 18, 0.04) 30%,
    rgba(26, 22, 18, 0.08) 50%,
    rgba(26, 22, 18, 0.04) 70%
  );
  background-size: 200% 100%;
  border-radius: var(--radius-md, 6px);
  animation: skeleton-shimmer 1.6s linear infinite;
}
@keyframes skeleton-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
/* Honor reduced-motion for the skeleton — pause the shimmer */
@media (prefers-reduced-motion: reduce) {
  .project-strip-skeleton__card {
    animation: none !important;
    background: rgba(26, 22, 18, 0.05);
  }
}


/* =====================================================================
   FIXES (round 17) — Footer wordmark: DIRECT in brand red
   "DIRECT" gets the accent (var(--accent) = #a11d1b). "WAY" keeps the
   normal footer text colour. Both still use Bank Gothic via .footer__wordmark.
   ===================================================================== */
.footer__wordmark-direct {
  color: var(--accent) !important;
  font-weight: 700;
}
.footer__wordmark-way {
  /* Inherits the footer's existing text colour — no override needed,
     but explicit for clarity. */
  color: inherit;
  font-weight: 500;
}


/* =====================================================================
   FIXES (round 18) — Home-page intro overlay
   Brand-ink panel with stacked DIRECT WAY wordmark, holds briefly,
   then wipes upward to reveal the page. Once per browser session.
   ===================================================================== */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    transform 900ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity 600ms ease;
  /* Disable the body grain mix-blend from leaking into the overlay */
  isolation: isolate;
}
.intro-overlay[data-state="leaving"] {
  transform: translateY(-100%);
}
.intro-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.intro-overlay[data-state="visible"] .intro-overlay__inner {
  opacity: 1;
  transform: translateY(0);
}
.intro-overlay__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-brand, 'Bank Gothic', 'Big Shoulders Display', sans-serif);
  line-height: 1;
}
.intro-overlay__direct {
  color: #a11d1b;
  font-weight: 700;
  font-size: clamp(46px, 8vw, 84px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.intro-overlay__way {
  color: #f2efe9;
  font-weight: 500;
  font-size: clamp(36px, 6.4vw, 68px);
  letter-spacing: 0.20em;
  text-transform: uppercase;
}
.intro-overlay__rule {
  width: 64px;
  height: 1px;
  background: rgba(242, 239, 233, 0.4);
  margin-block: 4px 6px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms;
}
.intro-overlay[data-state="visible"] .intro-overlay__rule {
  transform: scaleX(1);
}
.intro-overlay__tag {
  color: rgba(242, 239, 233, 0.66);
  font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Honor reduced-motion — skip the slide animation but keep the brief hold so
   the brand still gets a beat on screen. */
@media (prefers-reduced-motion: reduce) {
  .intro-overlay {
    transition: opacity 280ms ease !important;
  }
  .intro-overlay[data-state="leaving"] {
    opacity: 0;
    transform: none;
  }
  .intro-overlay__inner {
    transition: opacity 280ms ease !important;
    transform: none !important;
  }
  .intro-overlay__rule {
    transition: none !important;
    transform: scaleX(1) !important;
  }
}


/* =====================================================================
   FIXES (round 19) — JS-driven marquee with drag-to-scrub
   Disable the CSS keyframe (JS now owns the transform), add grab/grabbing
   cursors, prevent text-selection during drag, allow vertical page scroll
   to pass through on touch (touch-action: pan-y).
   ===================================================================== */

/* Kill the CSS animation — JS now owns the transform */
.project-strip__track,
.project-strip-stage:hover .project-strip__track,
.project-strip-stage:focus-within .project-strip__track {
  animation: none !important;
  /* Restore transform behavior — let JS-applied inline transform stand */
  transition: none !important;
  /* Performance hint */
  will-change: transform;
}

/* Drag affordance */
.project-strip__track {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  /* Vertical page scroll still works on touch; horizontal pan goes to the strip */
  touch-action: pan-y;
}
.project-strip__track img {
  -webkit-user-drag: none;
  pointer-events: none;     /* clicks bubble to the .project-card anchor */
}
.project-strip__track .project-card {
  /* Re-enable clicks on the card itself (overrides the img rule above) */
  pointer-events: auto;
}
.project-strip--marquee.is-dragging .project-strip__track,
.project-strip--marquee.is-dragging .project-strip__track .project-card {
  cursor: grabbing !important;
}

/* When user is actively dragging, dim hover on links a touch — prevents
   the cursor-pointer flicker that would otherwise compete with grabbing */
.project-strip--marquee.is-dragging .project-card { pointer-events: none; }


/* =====================================================================
   FIXES (round 20) — Intro overlay: render inline (no flash)
   The overlay now lives in index.html so it paints before the homepage.
   The head-script sets html.intro-skip on return visits within a session
   so CSS hides it before the user sees anything.
   ===================================================================== */
html.intro-skip .intro-overlay { display: none !important; }
/* Note: previously had `html:not(.intro-skip) body { overflow: hidden }`
   as belt-and-suspenders, but it locked the page after intro left because
   the class is only set on RETURN visits. JS already handles body.overflow
   during the intro sequence — that's enough. */


/* =====================================================================
   FIXES (round 21) — marquee clicks must reach the project card link
   The previous round-19 block set pointer-events:none on imgs and
   on cards while dragging — combined with setPointerCapture, this
   broke navigation. We now relax those rules.
   ===================================================================== */

/* Let the image receive pointer events so the anchor click target is the
   whole card. (The anchor still wraps everything, so clicks bubble fine.) */
.project-strip__track img {
  pointer-events: auto;
}
/* Only disable card pointer-events while ACTIVELY dragging (after the 5px
   threshold has been crossed) — pure clicks reach the link. */
.project-strip--marquee.is-dragging .project-card {
  pointer-events: none;
}
