@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 89%; ascent-override: 98%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 88%; }
/* nasj.media — header + hero
   Palette lock: merlot #3D1519, ice-light #D7E4EE, ice #94B1C8. Nothing else. */

:root {
  --merlot: #3D1519;
  --ice-light: #D7E4EE;
  --ice: #94B1C8;
  --header-h: 78px;
  --gutter: 24px;
  --container: 1608px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--merlot);
  color: var(--ice-light);
  font-family: Archivo, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden makes body a scroll box and breaks position: sticky */
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgb(61 21 25 / .92);
  border-bottom: 1px solid rgb(148 177 200 / .10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 50;
  transition: background 160ms cubic-bezier(.22,.61,.36,1), border-color 160ms cubic-bezier(.22,.61,.36,1);
}

.site-header.is-scrolled {
  background: rgb(61 21 25 / .92);
  border-bottom-color: rgb(148 177 200 / .10);
}

.site-header .container {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; display: block; }

.main-nav { display: none; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a,
.main-nav button {
  font: 500 14px/1 Archivo, "Archivo Fallback", sans-serif;
  color: var(--ice-light);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-nav a:hover,
.main-nav button:hover { color: var(--ice); }

.chev { width: 12px; height: 12px; display: block; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ice);
  color: var(--merlot);
  font: 600 14px/1 Archivo, "Archivo Fallback", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms cubic-bezier(.22,.61,.36,1);
}

.btn-pill:hover { background: var(--ice-light); }
.btn-pill:focus-visible { outline: 2px solid var(--ice-light); outline-offset: 2px; }

.burger {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ice-light);
  cursor: pointer;
  justify-self: center;
  display: grid;
  place-items: center;
}

.burger svg { width: 24px; height: 24px; display: block; }

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--merlot);
  display: none;
  flex-direction: column;
  padding: var(--header-h) var(--gutter) var(--gutter);
}

.mobile-menu[data-open="true"] { display: flex; }

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 48px 0 0;
  display: grid;
  gap: 24px;
}

.mobile-menu a {
  font: 300 32px/1.1 Archivo, "Archivo Fallback", sans-serif;
  color: var(--ice-light);
}

.mobile-menu .menu-close {
  position: absolute;
  top: 27px;
  right: var(--gutter);
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  color: var(--ice-light);
  cursor: pointer;
}

/* Services mega-menu stub */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--ice-light);
  color: var(--merlot);
  box-shadow: 0 28px 60px -28px rgb(61 21 25 / .55);
  border-top: 0;
  border-bottom: 0;
  display: none;
}

.mega[data-open="true"] { display: block; }

.mega .container { padding-top: 36px; padding-bottom: 44px; }

/* Services mega-menu: three groups, each a labelled button over its services */
.mega .mg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 56px; align-items: start; justify-content: stretch; }
.mg-col { display: flex; flex-direction: column; }
.mg-head {
  align-self: start; display: inline-flex; align-items: center; gap: 8px;
  font: 400 19px/1.1 "Instrument Serif", "Serif Fallback", Georgia, serif; font-style: italic;
  padding: 11px 18px; border-radius: 12px; margin-bottom: 14px;
}
.mg-head svg { width: 15px; height: 15px; }

.mg-head.a, .mg-head.b, .mg-head.c { background: var(--merlot); color: var(--ice-light); }

.mg-item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid rgb(61 21 25 / .10);
  transition: padding-left 160ms cubic-bezier(.22,.61,.36,1);
}
.mg-item:last-child { border-bottom: 0; }
.mg-item:hover { padding-left: 6px; }
.mg-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mg-txt b { font: 400 15px/1.25 Archivo, "Archivo Fallback", sans-serif; color: var(--merlot); }
.mg-txt small { font: 400 12.5px/1.35 Archivo, "Archivo Fallback", sans-serif; color: rgb(61 21 25 / .62); }
.mg-item svg { width: 19px; height: 19px; flex: 0 0 auto; color: rgb(61 21 25 / .45); }
.mg-item:hover .mg-txt b { color: var(--merlot); text-decoration: underline; text-underline-offset: 3px; }
.mg-item:hover svg { color: var(--merlot); }
@media (max-width: 900px) {
  .mg-grid { grid-template-columns: 1fr; gap: 28px; }
  .mega { display: none !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--merlot);
  min-height: 100svh;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100svh;
  padding-top: 120px;
  padding-bottom: 48px;
}

.hero h1 {
  margin: 0;
  font: 300 44px/46px Archivo, "Archivo Fallback", sans-serif;
  letter-spacing: .1px;
  color: var(--ice-light);
  max-width: 700px;
}

.hero h1 em {
  font-family: "Instrument Serif", "Serif Fallback", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ice);
}

.hero p {
  margin: 24px 0 0;
  font: 400 16px/26px Archivo, "Archivo Fallback", sans-serif;
  color: rgb(215 228 238 / .84);
  max-width: 532px;
}

.hero .btn-pill { margin-top: 40px; }

/* Collage: reserved box, no layout shift */
/* Collage — real project tiles in sliding columns */
.hero-collage {
  margin-top: 32px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* Below 1024px: two rows sliding sideways (hero.js), the first screen shows copy + moving work */
.hero-collage .hrows { display: grid; gap: 12px; }
.hero-collage .hrow { position: relative; overflow: hidden; height: var(--row-h, 176px); contain: layout paint; }
.hero-collage .hrow .tile { position: absolute; left: 0; top: 0; height: 100%; width: calc(var(--row-h, 176px) * var(--r, 0.9067)); will-change: transform; backface-visibility: hidden; }

.hero-collage .tile {
  position: relative;
  display: block;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: rgb(148 177 200 / .12);
}

.hero-collage .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms cubic-bezier(.22,.61,.36,1);
}

.hero-collage .tile-brand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 12px;
  text-align: center;
  font: 400 11px/1 Archivo, "Archivo Fallback", sans-serif;
  letter-spacing: .08em;
  color: var(--ice-light);
  transition: opacity 400ms cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}

.hero-collage .tile:hover img { transform: scale(1.03); }
.hero-collage .tile:hover .tile-brand { opacity: 0; }

/* ---------- Section below the hero ---------- */

.after-hero {
  background: var(--ice-light);
  color: var(--merlot);
  padding-top: 96px;
  padding-bottom: 96px;
}

.after-hero h2 {
  margin: 0;
  font: 300 32px/1.1 Archivo, "Archivo Fallback", sans-serif;
  max-width: 22ch;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 1023px) {
  .hero { min-height: 0; padding-bottom: 40px; }
  .hero-copy { min-height: 0; padding-top: 84px; padding-bottom: 0; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 52px); line-height: 1.05; }
  .hero p { margin-top: 12px; font-size: 14px; line-height: 21px; }
  .hero .btn-pill { margin-top: 20px; width: 100%; max-width: 420px; height: 52px; font-size: 16px; }
  .hero-collage { --row-h: clamp(140px, 41vw, 240px); margin-top: 24px; min-height: calc(var(--row-h) * 2 + 12px); }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 56px; line-height: 58px; }
  .hero p { font-size: 18px; line-height: 28px; }
  .after-hero h2 { font-size: 40px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 64px; }

  .main-nav { display: block; justify-self: center; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }

  .hero-copy {
    width: 50%;
    align-items: flex-start;
    text-align: left;
    padding-top: var(--header-h);
    padding-bottom: 0;
    max-width: calc(var(--container) / 2);
    margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-left: 0;
    padding-right: 24px;
  }

  .hero h1 { font-size: 64px; line-height: 64px; }

  .hero-collage {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50%;
    margin: 0;
    padding-left: var(--gutter);
    padding-right: 40px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
  }

  .hero-collage .cols {
    display: flex;
    gap: 16px;
    height: 100%;
    overflow: hidden;
    padding: 0;
    scroll-snap-type: none;
    /* whole gallery leans a few degrees, top to the left; scaled so the corners stay covered */
    transform: rotate(-3deg) scale(1.08);
    transform-origin: 50% 50%;
    will-change: transform;
  }

  .hero-collage .col {
    display: block;
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
  }

  .hero-collage .track {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    will-change: transform;
  }

  .hero-collage .tile {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    aspect-ratio: var(--r, 0.9067);
  }
}

@media (min-width: 1440px) {
  :root { --gutter: 156px; }
  .hero h1 { font-size: 88px; line-height: 88px; }
}

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

/* ── Mobile header + menu (below the desktop nav breakpoint) ─────────── */
@media (max-width: 1023px) {
  :root { --header-h: 60px; }
  .site-header .container { grid-template-columns: 1fr auto; gap: 12px; }
  .site-header .header-actions { display: none; }
  .brand img { height: 28px; }
  .burger { justify-self: end; width: 44px; height: 44px; margin-right: -10px; }
  .burger svg { width: 26px; height: 26px; }
  .mobile-menu { padding: calc(var(--header-h) + 16px) var(--gutter) 32px; overflow-y: auto; }
  .mobile-menu .menu-close { top: 8px; right: calc(var(--gutter) - 10px); width: 44px; height: 44px; display: grid; place-items: center; }
  .mobile-menu .menu-close svg { width: 26px; height: 26px; }
  .mobile-menu .menu-cta { width: 100%; height: 52px; font-size: 16px; }
  .mobile-menu ul { padding-top: 28px; gap: 4px; }
  .mobile-menu ul a { display: flex; align-items: center; min-height: 56px; font-size: 30px; border-bottom: 1px solid rgb(148 177 200 / .14); }
}

.mobile-menu a.menu-cta { color: var(--merlot); font: 600 16px/1 Archivo, "Archivo Fallback", sans-serif; }

/* EN / ع toggle — identical box in both languages */
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid rgb(148 177 200 / .28); direction: ltr; }
.lang-toggle a { display: inline-grid; place-items: center; width: 36px; height: 30px; padding: 0; box-sizing: border-box; border-radius: 999px;
  font: 600 13px/1 Archivo, "Archivo Fallback", sans-serif; color: rgb(215 228 238 / .8); text-decoration: none; }
.lang-toggle a[aria-current="true"] { background: var(--ice, #94B1C8); color: var(--merlot, #3D1519); }
.lang-toggle a:hover:not([aria-current]) { color: #fff; }

/* phones: the Book-a-call pill hides, the toggle stays in the header next to the menu button */
@media (max-width: 1023px) {
  .site-header .container { grid-template-columns: 1fr auto auto; }
  .site-header .header-actions { display: flex; order: 2; }
  .site-header .header-actions .btn-pill { display: none; }
  .burger { order: 3; }
}
.header-actions { gap: 12px; }
