/* ==========================================================================
   Al Halabi Enterprise — elhalabient.com
   --------------------------------------------------------------------------
   Layout concept: a curtain wall. Content sits on a 12-column grid whose
   gutters read like mullions; section titles take the narrow left bay and
   content fills the wide right bay, the way a drawing's title block sits
   beside the drawing. The one bold moment is the hero: the AH monogram used
   as a set of glazed panels framing a real project.

   Type:   Cinzel (inscription capitals, the logo's wordmark) for H1/H2 only,
           Archivo (a technical grotesque with a width axis) for everything else.
   Colour: limestone and paper grounds, charcoal ink, brushed gold accent,
           all defined as tokens below with a matching dark theme.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset, variable) ------------------ */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-var.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens (light) ---------------------------------------- */
:root {
  /* colour */
  --paper: #FFFFFF;          /* main ground */
  --stone: #EFEBE4;          /* limestone band */
  --ink: #1F1E1C;            /* charcoal, from the wordmark */
  --ink-2: #57534B;          /* secondary text (7.4:1 on paper) */
  --line: #DCD5C9;           /* hairlines */
  --gold: #A07C45;           /* brushed gold accent: rules, numerals, large type */
  --gold-text: #7A5A2E;      /* gold for small text on light grounds (6.4:1) */
  --night: #1F1E1C;          /* dark bands (hero, CTA) */
  --night-2: #171614;        /* footer */
  --on-night: #F1ECE3;
  --on-night-2: #BDB5A7;
  --night-line: #3A3833;
  --champagne: #C9A872;      /* gold on dark grounds */
  --focus: #7A5A2E;
  --logo-ink: var(--ink);
  --logo-gold: var(--gold);
  --overlay: rgba(23, 22, 20, 0.6);

  /* type */
  --font-display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --step--1: 0.875rem;                              /* 14px captions */
  --step-0: 1.0625rem;                              /* 17px body */
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);   /* lead */
  --step-2: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);     /* h3 */
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);     /* h2 */
  --step-4: clamp(2.25rem, 1.6rem + 3.1vw, 4.25rem);     /* h1 */

  /* layout */
  --max: 1240px;
  --gutter: clamp(20px, 2.4vw, 32px);
  --section: clamp(64px, 8vw, 120px);
  --radius: 2px;

  color-scheme: light;
}

/* ---------- Design tokens (dark) ----------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161513;
    --stone: #1F1E1B;
    --ink: #EEE8DE;
    --ink-2: #B3AC9F;
    --line: #36332E;
    --gold: #C9A872;
    --gold-text: #D4B888;
    --night: #0E0D0C;
    --night-2: #0B0A09;
    --on-night: #F1ECE3;
    --on-night-2: #B9B1A3;
    --night-line: #2E2C28;
    --champagne: #D2B37E;
    --focus: #D4B888;
    --overlay: rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161513;
  --stone: #1F1E1B;
  --ink: #EEE8DE;
  --ink-2: #B3AC9F;
  --line: #36332E;
  --gold: #C9A872;
  --gold-text: #D4B888;
  --night: #0E0D0C;
  --night-2: #0B0A09;
  --on-night: #F1ECE3;
  --on-night-2: #B9B1A3;
  --night-line: #2E2C28;
  --champagne: #D2B37E;
  --focus: #D4B888;
  --overlay: rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* Paints the safe-area band above the sticky header on notched phones */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.08;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.005em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* Container with the safe-area-aware side gutter */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.band-stone { background: var(--stone); }
.prose { display: grid; gap: 1.1em; max-width: 38em; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }

/* Section heading row: title in the narrow bay, intro in the wide bay */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 16px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head > h2 { grid-column: 1 / span 6; }
.section-head > .section-intro { grid-column: 7 / span 6; color: var(--ink-2); max-width: 34em; }
.section-head > .section-link { grid-column: 7 / span 6; justify-self: end; }
@media (max-width: 860px) {
  .section-head > h2, .section-head > .section-intro, .section-head > .section-link { grid-column: 1 / -1; justify-self: start; }
}

/* Text link with a gold underline that thickens on hover */
.link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-thickness .15s ease;
}
.link:hover { text-decoration-thickness: 3px; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 0.95rem/1.2 var(--font-text);
  font-stretch: 108%;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--gold-text); }
.btn-gold { background: var(--champagne); color: #1F1E1C; }
.btn-gold:hover { background: #E2C793; }
.btn-ghost-night { border-color: var(--night-line); color: var(--on-night); }
.btn-ghost-night:hover { border-color: var(--champagne); color: var(--champagne); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; color: var(--logo-ink); text-decoration: none; flex: none; }
.brand svg { height: 46px; width: auto; }
.logo-wm { fill: var(--logo-ink); }
.logo-ent { fill: var(--logo-gold); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.site-nav ul { display: flex; gap: clamp(16px, 2.2vw, 32px); list-style: none; }
.site-nav ul a {
  display: inline-block; padding-block: 8px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.site-nav .btn { min-height: 44px; padding: 10px 18px; }
.nav-toggle {
  display: none;
  width: 48px; height: 48px; margin-right: -10px;
  background: transparent; border: 0; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }
@media (max-width: 900px) {
  .brand svg { height: 40px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25);
  }
  .site-nav[data-open="false"] { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--gold); }
  .site-nav .btn { margin-top: 12px; }
}

/* ---------- Hero (home) -------------------------------------------------- */
.hero { background: var(--night); color: var(--on-night); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px);
}
.hero h1 { color: var(--on-night); max-width: 13ch; }
.hero .lead { color: var(--on-night-2); margin-top: 24px; max-width: 32em; }
.hero .btn-row { margin-top: 36px; }
.hero-mark { margin: 0; justify-self: end; width: 100%; max-width: 580px; }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }
.hero-mark figcaption { margin-top: 14px; font-size: var(--step--1); color: var(--on-night-2); text-align: right; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; max-width: 460px; }
  .hero-mark figcaption { text-align: left; }
}

/* Panels "installed" one after another on load (the page's one animation) */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .pc { animation: panel-in .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
  @keyframes panel-in { from { transform: translateY(14px); } to { transform: none; } }
}

/* Facts strip under the hero */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  margin: 0;
  padding-block: 28px clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--night-line);
}
.facts div { display: grid; gap: 4px; align-content: start; }
.facts dt { font-weight: 600; font-stretch: 112%; color: var(--on-night); }
.facts dd { margin: 0; font-size: var(--step--1); color: var(--on-night-2); line-height: 1.5; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }

/* ---------- Intro (home) ------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 28px;
}
.split > :first-child { grid-column: 1 / span 6; }
.split > :last-child { grid-column: 7 / span 6; }
@media (max-width: 860px) { .split > :first-child, .split > :last-child { grid-column: 1 / -1; } }
.intro-body { display: grid; gap: 20px; align-content: start; }
.intro-body p:first-child { font-size: var(--step-1); line-height: 1.55; }
.intro-body p { color: var(--ink-2); }
.intro-body p:first-child { color: var(--ink); }

/* ---------- Services overview (home) ------------------------------------- */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }
.svc-feature { display: grid; gap: 20px; text-decoration: none; color: inherit; }
.svc-feature .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.svc-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-feature:hover img { transform: scale(1.03); }
.svc-feature h3 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); }
.svc-feature p { color: var(--ink-2); max-width: 34em; }
.svc-feature:hover h3, .svc-row:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.svc-row img { width: 112px; height: 84px; object-fit: cover; background: var(--stone); }
.svc-row h3 { font-size: 1.15rem; }
.svc-row p { color: var(--ink-2); font-size: 0.95rem; margin-top: 4px; }
@media (max-width: 420px) { .svc-row { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; } .svc-row img { width: 84px; height: 64px; } }

/* ---------- Project mosaic (home) ---------------------------------------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.mosaic .proj:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.mosaic .proj:nth-child(2), .mosaic .proj:nth-child(3) { grid-column: span 5; }
.mosaic .proj:nth-child(n+4) { grid-column: span 4; }
.mosaic .proj:nth-child(1) .ph { aspect-ratio: auto; height: 100%; min-height: 360px; }
@media (max-width: 860px) {
  .mosaic .proj:nth-child(n) { grid-column: span 12; grid-row: auto; }
  .mosaic .proj:nth-child(1) .ph { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}
@media (min-width: 560px) and (max-width: 860px) {
  .mosaic .proj:nth-child(n+2) { grid-column: span 6; }
}

/* Project figure (shared by mosaic, project grid and related projects) */
.proj { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 12px; min-width: 0; }
.proj .ph { position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj:hover img { transform: scale(1.03); }
.proj figcaption { display: grid; gap: 2px; }
.proj .p-name { font-weight: 600; }
.proj .p-meta { color: var(--ink-2); font-size: var(--step--1); }
.proj .p-type {
  position: absolute; left: 12px; bottom: 12px;
  padding: 4px 10px;
  background: var(--overlay); color: #FFFFFF;
  font-size: 0.78rem; font-weight: 500; font-stretch: 112%; letter-spacing: 0.04em;
}
.proj-open {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
}

/* ---------- Delivery model (numbered: it is a real sequence) ------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gutter);
  counter-reset: step;
  position: relative;
}
.steps li { position: relative; padding-top: 34px; display: grid; gap: 8px; align-content: start; }
/* survey line with a square datum marker per stage */
.steps li::before { content: ""; position: absolute; left: 0; right: calc(-1 * var(--gutter)); top: 6px; border-top: 1px solid var(--ink); }
.steps li:last-child::before { right: 0; }
.steps li::after { content: ""; position: absolute; left: 0; top: 1px; width: 11px; height: 11px; background: var(--gold); }
.steps .num { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 28px 36px; }
  .steps li::before { left: 5px; right: auto; top: 14px; bottom: 0; border-top: 0; border-left: 1px solid var(--ink); }
  .steps li:last-child::before { display: none; }
  .steps li::after { top: 6px; }
}

/* ---------- Specialist network ------------------------------------------ */
.network { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.network li { display: grid; gap: 12px; }
.network .logo-tile { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #0D0D0D; overflow: hidden; }
.network .logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.network .n-name { font-weight: 600; }
.network .n-role { color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 520px) { .network { grid-template-columns: 1fr; } }

/* ---------- CTA band ----------------------------------------------------- */
.cta { background: var(--night); color: var(--on-night); }
.cta h2 { color: var(--on-night); max-width: 16ch; }
.cta .lead { color: var(--on-night-2); margin-top: 20px; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; border-top: 1px solid var(--night-line); }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--night-line); align-items: baseline; }
.contact-list .k { color: var(--on-night-2); font-size: var(--step--1); }
.contact-list a, .contact-list span.v { color: var(--on-night); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--champagne); text-decoration: underline; text-underline-offset: 5px; }
.cta .btn-row { margin-top: 28px; }

/* Light variant of the contact list (contact page) */
.contact-list.on-paper { border-top-color: var(--line); }
.contact-list.on-paper li { border-bottom-color: var(--line); }
.contact-list.on-paper .k { color: var(--ink-2); }
.contact-list.on-paper a, .contact-list.on-paper span.v { color: var(--ink); }
.contact-list.on-paper a:hover { color: var(--gold-text); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--night-2); color: var(--on-night-2); font-size: 0.95rem; }
.site-footer .wrap { padding-block: clamp(48px, 6vw, 80px) 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.foot-brand { display: grid; gap: 18px; align-content: start; max-width: 26em; }
.foot-brand svg { height: 44px; width: auto; }
.site-footer .logo-wm { fill: var(--on-night); }
.site-footer .logo-ent { fill: var(--champagne); }
.site-footer h2 { font-family: var(--font-text); font-size: 0.95rem; font-weight: 600; color: var(--on-night); letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--on-night-2); text-decoration: none; }
.site-footer a:hover { color: var(--champagne); text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--night-line);
  font-size: var(--step--1);
}
.foot-bottom .tagline { font-stretch: 118%; letter-spacing: 0.14em; color: var(--champagne); font-size: 0.78rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page header ------------------------------------------- */
.page-head { background: var(--stone); }
.page-head .wrap { padding-block: clamp(40px, 6vw, 88px); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.page-head-grid.no-media { grid-template-columns: minmax(0, 1fr); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 20px; }
.page-head .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.page-head .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-head-grid { grid-template-columns: 1fr; } }
.crumbs { margin-bottom: 20px; font-size: var(--step--1); color: var(--ink-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Services index ---------------------------------------------- */
.svc-index { list-style: none; display: grid; gap: clamp(56px, 7vw, 96px); }
.svc-item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 24px;
  align-items: center;
}
.svc-item .ph { grid-column: 1 / span 5; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.svc-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.svc-item .txt { grid-column: 7 / span 6; display: grid; gap: 16px; }
.svc-item:nth-child(even) .ph { grid-column: 8 / span 5; grid-row: 1; }
.svc-item:nth-child(even) .txt { grid-column: 1 / span 6; grid-row: 1; }
.svc-item h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); }
.svc-item p { color: var(--ink-2); }
@media (max-width: 860px) {
  .svc-item .ph, .svc-item .txt, .svc-item:nth-child(even) .ph, .svc-item:nth-child(even) .txt { grid-column: 1 / -1; grid-row: auto; }
}

/* Checklist with square gold datum bullets */
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--gold); }
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
@media (max-width: 600px) { .ticks.cols { grid-template-columns: 1fr; } }

/* Trades */
.trades { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.trades li { padding: 22px 20px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.trades h3 { font-size: 1.05rem; }
.trades p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 960px) { .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trades { grid-template-columns: 1fr; } }

/* Trade gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--stone); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: var(--step--1); color: var(--ink-2); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:first-child .ph { aspect-ratio: auto; height: 100%; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery figure:first-child { grid-row: auto; } .gallery figure:first-child .ph { aspect-ratio: 16 / 9; } }

/* ---------- Service detail ---------------------------------------------- */
.detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.detail-main { grid-column: 1 / span 7; display: grid; gap: 40px; align-content: start; }
.detail-aside { grid-column: 9 / span 4; display: grid; gap: 32px; align-content: start; }
@media (max-width: 900px) { .detail-main, .detail-aside { grid-column: 1 / -1; } }
.detail h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-bottom: 18px; }
.aside-block { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 12px; }
.aside-block h2 { font-family: var(--font-text); font-size: 1.05rem; letter-spacing: 0; margin: 0; }
.aside-block .trade { display: grid; gap: 2px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.aside-block .trade b { font-weight: 600; }
.aside-block .trade span { color: var(--ink-2); font-size: 0.95rem; }
.aside-figure { margin: 0; }
.aside-figure .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.aside-figure img { width: 100%; height: 100%; object-fit: cover; }
.aside-figure figcaption { margin-top: 8px; font-size: var(--step--1); color: var(--ink-2); }
.other-services { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); border-top: 1px solid var(--line); }
.other-services a { display: grid; gap: 4px; padding-block: 18px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); height: 100%; }
.other-services a:hover b { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.other-services span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 860px) { .other-services { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Projects page ----------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button {
  min-height: 44px; padding: 10px 18px;
  font: 500 0.95rem/1.2 var(--font-text);
  color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-status { color: var(--ink-2); font-size: var(--step--1); margin-bottom: 28px; }
.proj-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) var(--gutter); }
.proj-grid > li[hidden] { display: none; }
@media (max-width: 960px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }
.note { margin-top: 40px; color: var(--ink-2); font-size: var(--step--1); max-width: 48em; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: var(--on-night); }
.lightbox::backdrop { background: rgba(10, 10, 9, 0.88); }
.lightbox figure { margin: 0; display: grid; gap: 12px; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #0D0D0D; }
.lightbox figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.95rem; }
.lightbox .lb-bar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.lightbox button {
  min-width: 44px; min-height: 44px; padding: 8px 14px;
  font: 500 0.95rem var(--font-text); color: #F1ECE3;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); cursor: pointer;
}
.lightbox button:hover { border-color: #C9A872; color: #C9A872; }

/* ---------- Why Al Halabi ------------------------------------------------ */
.reasons { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px var(--gutter); }
.reasons li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); }
.reasons h3 { font-size: 1.12rem; }
.reasons p { color: var(--ink-2); }
@media (max-width: 860px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .reasons { grid-template-columns: 1fr; } }

/* Image pair (about) */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); }
.pair figure { margin: 0; display: grid; gap: 10px; }
.pair .ph { aspect-ratio: 16 / 9; overflow: hidden; background: var(--stone); }
.pair img { width: 100%; height: 100%; object-fit: cover; }
.pair figcaption { font-size: var(--step--1); color: var(--ink-2); }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; } }

/* Since-1993 marker on the about page */
.since { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.since b { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 1; color: var(--gold); font-weight: 600; }
.since span { color: var(--ink-2); }

/* ---------- Contact page / form ----------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.contact-grid > .c-info { grid-column: 1 / span 5; display: grid; gap: 28px; align-content: start; }
.contact-grid > .c-form { grid-column: 7 / span 6; }
@media (max-width: 900px) { .contact-grid > .c-info, .contact-grid > .c-form { grid-column: 1 / -1; } }
.form { display: grid; gap: 20px; }
.form .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-text); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field .err { color: #A4372A; font-size: 0.9rem; }
:root[data-theme="dark"] .field .err { color: #F0A193; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #F0A193; } }
.field [aria-invalid="true"] { border-color: #A4372A; }
.form-note { font-size: var(--step--1); color: var(--ink-2); }
.result { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-top: 2px solid var(--gold); background: var(--stone); }
.result h3 { font-size: 1.15rem; }
.result pre { margin: 0; white-space: pre-wrap; font: 400 0.92rem/1.5 var(--font-text); color: var(--ink-2); max-height: 220px; overflow: auto; }

/* ---------- 404 ---------------------------------------------------------- */
.nf { min-height: 50vh; display: grid; align-content: center; gap: 20px; padding-block: var(--section); }
.nf b { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 8rem); color: var(--gold); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
