/* ==========================================================================
   fesarts.ae — Fes Arts × Prestige Art Decoration Works
   Shared architectural editorial system.
   Warm ivory base · charcoal typography · muted brass accents ·
   restrained Fes Arts red/terracotta on zellige content only.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --ivory: #f5f0e6;
  --ivory-soft: #faf7f0;
  --ivory-deep: #efe8da;
  --charcoal: #23211f;
  --charcoal-soft: #4a4640;
  --brass: #a5824f;
  --brass-quiet: #8a744f;
  --red: #83120a;
  --terracotta: #ca8269;
  --line: rgba(35, 33, 31, 0.16);
  --line-strong: rgba(35, 33, 31, 0.32);
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", "Helvetica Neue", "Arial", sans-serif;
  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius: 2px;
  --shadow: 0 18px 50px -28px rgba(35, 33, 31, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1.1rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--charcoal-soft); max-width: 44rem; }

::selection { background: rgba(165, 130, 79, 0.28); }

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--charcoal); color: var(--ivory);
  padding: 0.75rem 1.25rem; z-index: 200; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--tint { background: var(--ivory-soft); }
.section--deep { background: var(--ivory-deep); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-quiet);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: var(--brass);
  display: inline-block;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--charcoal-soft); }

.hr-brass {
  border: 0; height: 1px; margin: 0;
  background: linear-gradient(to right, var(--brass), rgba(165,130,79,0));
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn--primary { background: var(--charcoal); color: var(--ivory); }
.btn--primary:hover { background: var(--brass-quiet); color: var(--ivory); }
.btn--outline { border-color: var(--line-strong); color: var(--charcoal); background: transparent; }
.btn--outline:hover { border-color: var(--charcoal); background: rgba(35,33,31,0.05); }
.btn--zellige { background: var(--red); color: #fbf6ee; }
.btn--zellige:hover { background: #6a0e07; }
.btn--ghost { border-color: rgba(251,246,238,0.5); color: #fbf6ee; background: transparent; }
.btn--ghost:hover { border-color: #fbf6ee; }
.btn .ext { font-size: 1em; line-height: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.link-arrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-quiet); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow:hover { color: var(--charcoal); border-color: var(--brass); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.9rem;
  text-decoration: none;
}
.brand__lockup { display: flex; flex-direction: column; gap: 0.3rem; }
.brand__prestige { height: 38px; width: auto; display: block; }
.brand__fes { display: inline-flex; align-items: center; gap: 0.4rem; }
.brand__fes img { height: 22px; width: auto; }
.brand__fes-text {
  font-size: 0.52rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass-quiet); white-space: nowrap;
}
@media (max-width: 76rem) {
  .brand__prestige { height: 34px; }
  .brand__fes img { height: 20px; }
  .brand__fes-text { font-size: 0.48rem; }
}
@media (max-width: 40rem) {
  .brand__prestige { height: 30px; }
  .brand__fes img { height: 18px; }
  .brand__fes-text { font-size: 0.44rem; letter-spacing: 0.1em; }
}
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.main-nav a.nav-link {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
  text-decoration: none; color: var(--charcoal-soft);
  white-space: nowrap;
  padding: 0.4rem 0; position: relative;
}
.main-nav .header-cta { padding: 0.85rem 1.3rem; }
.main-nav a.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--brass);
  transition: width 0.25s ease;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current="page"] { color: var(--charcoal); }
.main-nav a.nav-link:hover::after, .main-nav a.nav-link[aria-current="page"]::after { width: 100%; }
.main-nav a.nav-link--ext { color: var(--brass-quiet); }
.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  width: 2.9rem; height: 2.9rem; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--charcoal); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 4.75rem 0 auto 0;
    flex-direction: column; align-items: flex-start;
    background: var(--ivory-soft);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem var(--gutter) 2.25rem;
    gap: 0.4rem;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--shadow);
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); visibility: visible; }
  .main-nav a.nav-link { font-size: 1rem; padding: 0.65rem 0; width: 100%; }
  .main-nav .header-cta { margin-top: 1rem; }
  .site-header .header-cta--bar { display: none; }
}

/* -------------------------------------------------------------------- hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem) var(--section); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero__copy .lead { margin-top: 1.5rem; }
.hero__meta {
  margin-top: 2.25rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; letter-spacing: 0.08em; color: var(--charcoal-soft);
}
.hero__media { position: relative; }
.hero__media img {
  width: 100%; max-height: 38rem; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero__media::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--brass); border-radius: var(--radius); z-index: -1;
}
@media (max-width: 52rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { max-height: 26rem; }
}

/* ------------------------------------------------------------- page header */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head .lead { margin-top: 1.25rem; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; margin: 0 0 2rem; padding: 0;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; color: var(--charcoal-soft); }
.breadcrumbs li + li::before { content: "/"; color: var(--brass); }
.breadcrumbs a { color: var(--charcoal-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--charcoal); }

/* --------------------------------------------------------- project cards */
.project-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}
.project-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 52rem) {
  .project-grid, .project-grid--three { grid-template-columns: 1fr; }
}
.project-card { text-decoration: none; display: flex; flex-direction: column; }
.project-card__media {
  overflow: hidden; border-radius: var(--radius); background: var(--ivory-deep);
  aspect-ratio: 4 / 3.4;
}
.project-card--wide .project-card__media { aspect-ratio: 16 / 10; }
.project-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .project-card__media img { transform: scale(1.035); }
.project-card__body { padding-top: 1.35rem; }
.project-card__cat {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-quiet); margin-bottom: 0.5rem;
}
.project-card__title { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-bottom: 0.35rem; }
.project-card__meta { font-size: 0.88rem; color: var(--charcoal-soft); margin: 0 0 0.9rem; }
.project-card__link {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--charcoal); display: inline-flex; align-items: center; gap: 0.45rem;
}
.project-card__link::after { content: "→"; color: var(--brass); transition: transform .25s ease; }
.project-card:hover .project-card__link::after { transform: translateX(4px); }
.project-card--noimg .project-card__media {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.project-card--noimg .project-card__media span {
  font-family: var(--serif); font-size: 1.05rem; color: var(--charcoal-soft);
  padding: 2rem; text-align: center;
}

/* ------------------------------------------------------ brand proposition */
.duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 52rem) { .duo { grid-template-columns: 1fr; } }
.duo__col {
  background: var(--ivory-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex; flex-direction: column;
}
.duo__col--fes { border-top-color: var(--red); }
.duo__logo { height: 40px; width: auto; object-fit: contain; object-position: left; margin-bottom: 1.4rem; }
.duo__logo--fes { height: 56px; }
.duo__col h3 { margin-bottom: 0.6rem; }
.duo__col p { color: var(--charcoal-soft); font-size: 0.95rem; }
.duo__col ul { margin: 0.5rem 0 1.5rem; padding: 0; list-style: none; }
.duo__col li {
  padding: 0.55rem 0 0.55rem 1.4rem; position: relative;
  border-bottom: 1px solid var(--line); font-size: 0.92rem;
}
.duo__col li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 0.55rem; height: 1px; background: var(--brass);
}
.duo__col .link-arrow { margin-top: auto; }

/* ------------------------------------------------------- capability cards */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 62rem) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card {
  background: var(--ivory); padding: clamp(1.6rem, 2.6vw, 2.4rem);
  text-decoration: none; display: flex; flex-direction: column; min-height: 15rem;
  transition: background 0.25s ease;
}
.cap-card:hover { background: var(--ivory-soft); }
.cap-card__num {
  font-family: var(--serif); font-size: 0.95rem; color: var(--brass);
  margin-bottom: 1.6rem;
}
.cap-card h3 { margin-bottom: 0.6rem; }
.cap-card p { font-size: 0.92rem; color: var(--charcoal-soft); margin-bottom: 1.4rem; }
.cap-card .link-arrow { margin-top: auto; }
.cap-card--zellige h3 { color: var(--red); }

/* ----------------------------------------------------------- zellige band */
.zellige-band { background: var(--ivory-soft); border-block: 1px solid var(--line); }
.zellige-band__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
@media (max-width: 52rem) { .zellige-band__grid { grid-template-columns: 1fr; } }
.zellige-band__media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: 34rem; width: 100%; object-fit: cover;
}
.zellige-band .eyebrow { color: var(--red); }
.zellige-band .eyebrow::before { background: var(--terracotta); }
.zellige-note {
  font-size: 0.8rem; color: var(--charcoal-soft); margin-top: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}

/* ------------------------------------------------------------------ steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 62rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .steps { grid-template-columns: 1fr; } }
.steps li { border-top: 1px solid var(--line-strong); padding-top: 1.4rem; counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  font-family: var(--serif); font-size: 1.05rem; color: var(--brass);
  display: block; margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.steps p { font-size: 0.92rem; color: var(--charcoal-soft); margin: 0; }

/* -------------------------------------------------------------- references */
.refs { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.9rem 0;
}
.refs li {
  font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: var(--charcoal-soft); display: flex; align-items: center;
}
.refs li + li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass); margin-inline: 1.6rem; display: inline-block;
}

/* ------------------------------------------------------------- CTA banner */
.cta-banner {
  background: var(--charcoal); color: #f3eee4;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
}
.cta-banner h2 { color: #f7f2e9; }
.cta-banner p { color: rgba(243, 238, 228, 0.78); max-width: 38rem; margin-inline: auto; }
.cta-banner .btn-row { justify-content: center; }
.cta-banner .btn--primary { background: var(--brass); color: var(--charcoal); }
.cta-banner .btn--primary:hover { background: #f3eee4; }
.cta-banner__contact {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 238, 228, 0.2);
  font-size: 0.9rem; letter-spacing: 0.06em;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem;
}
.cta-banner__contact a { color: #f3eee4; text-decoration: none; border-bottom: 1px solid rgba(165,130,79,.6); }
.cta-banner__contact a:hover { color: var(--terracotta); }

/* --------------------------------------------------------- project page */
.proj-hero { padding-block: clamp(2rem, 5vw, 4rem) var(--section); }
.proj-hero__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: end;
}
@media (max-width: 52rem) { .proj-hero__grid { grid-template-columns: 1fr; } }
.proj-hero__scope {
  font-size: 0.95rem; color: var(--charcoal-soft);
  border-left: 2px solid var(--brass); padding-left: 1rem; margin-top: 1.5rem;
}
.proj-hero__media img {
  width: 100%; max-height: 34rem; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

.facts {
  margin: 0; border-block: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.facts > div { padding: 1.4rem 1.6rem 1.4rem 0; }
.facts dt {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-quiet); margin-bottom: 0.35rem;
}
.facts dd { margin: 0; font-size: 0.95rem; }

.scope-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 3rem; }
@media (max-width: 40rem) { .scope-list { columns: 1; } }
.scope-list li {
  break-inside: avoid; position: relative;
  padding: 0.65rem 0 0.65rem 1.5rem; border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.scope-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 0.65rem; height: 1px; background: var(--brass);
}

/* gallery */
.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.gallery--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 40rem) { .gallery, .gallery--three { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery__btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--ivory-deep); border-radius: var(--radius); overflow: hidden;
}
.gallery__btn img { width: 100%; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.gallery__btn:hover img { transform: scale(1.02); }
.gallery figcaption {
  font-size: 0.82rem; color: var(--charcoal-soft);
  padding-top: 0.75rem; letter-spacing: 0.02em;
}
.gallery-title {
  grid-column: 1 / -1; font-family: var(--serif); font-size: 1.3rem;
  margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.gallery-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.render-note {
  border: 1px solid var(--brass); border-left-width: 3px;
  background: rgba(165, 130, 79, 0.07);
  padding: 1.1rem 1.4rem; border-radius: var(--radius);
  font-size: 0.9rem; color: var(--charcoal-soft);
  margin-bottom: 2rem;
}
.render-badge {
  display: inline-block; font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-quiet); border: 1px solid var(--brass);
  padding: 0.2rem 0.6rem; border-radius: 2px; margin-bottom: 0.6rem;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(28, 26, 24, 0.94);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(72rem, 92vw); max-height: 82dvh;
  object-fit: contain; border-radius: var(--radius);
}
.lightbox__caption {
  position: absolute; bottom: clamp(0.75rem, 3vh, 2rem); left: 50%; transform: translateX(-50%);
  color: rgba(243, 238, 228, 0.85); font-size: 0.85rem; letter-spacing: 0.03em;
  text-align: center; max-width: 90vw;
}
.lightbox__close {
  position: absolute; top: 1.1rem; right: 1.25rem;
  background: none; border: 1px solid rgba(243,238,228,0.4); color: #f3eee4;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.lightbox__close:hover { border-color: #f3eee4; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(243,238,228,0.4); color: #f3eee4;
  width: 2.9rem; height: 2.9rem; border-radius: 50%; font-size: 1.25rem; cursor: pointer;
}
.lightbox__nav:hover { border-color: #f3eee4; }
.lightbox__prev { left: 1.1rem; }
.lightbox__next { right: 1.1rem; }

/* ------------------------------------------------------------ capability */
.cap-hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 52rem) { .cap-hero__grid { grid-template-columns: 1fr; } }
.cap-hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); max-height: 30rem; width: 100%; object-fit: cover; }

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative; padding: 0.7rem 0 0.7rem 1.75rem;
  border-bottom: 1px solid var(--line); font-size: 0.98rem;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 1.2rem;
  width: 0.8rem; height: 1px; background: var(--brass);
}

/* ------------------------------------------------------------------ about */
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); }
@media (max-width: 52rem) { .about-cols { grid-template-columns: 1fr; } }
.about-cols article {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ivory-soft); padding: clamp(1.75rem, 3vw, 2.75rem);
}
.about-cols img { height: 44px; width: auto; object-fit: contain; object-position: left; margin-bottom: 1.4rem; }
.about-cols img.about-cols__fes { height: 58px; }

/* ------------------------------------------------------------------ forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.form-field label .req { color: var(--red); }
.form-field .opt { font-weight: 400; text-transform: none; letter-spacing: 0.02em; color: var(--charcoal-soft); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--charcoal);
  background: var(--ivory-soft);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--brass); outline: 2px solid rgba(165,130,79,0.35); outline-offset: 1px;
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field .hint { font-size: 0.78rem; color: var(--charcoal-soft); }
.form-consent { display: flex; gap: 0.8rem; align-items: flex-start; grid-column: 1 / -1; font-size: 0.9rem; color: var(--charcoal-soft); }
.form-consent input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--brass-quiet); }
.form-status { grid-column: 1 / -1; font-size: 0.95rem; padding: 1rem 1.25rem; border-radius: var(--radius); display: none; }
.form-status.is-error { display: block; background: rgba(131, 18, 10, 0.08); border: 1px solid rgba(131,18,10,.4); color: var(--red); }
.form-status.is-info { display: block; background: rgba(165,130,79,0.1); border: 1px solid var(--brass); color: var(--charcoal); }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); background: var(--ivory-soft); border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.5rem); }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-quiet); margin: 1.4rem 0 0.3rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0; }
.contact-card dd a { color: var(--charcoal); text-decoration-color: rgba(165,130,79,.55); text-underline-offset: 3px; }
.contact-card dd a:hover { color: var(--brass-quiet); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--charcoal); color: rgba(243, 238, 228, 0.75); margin-top: var(--section); }
.site-footer a { color: rgba(243, 238, 228, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--terracotta); }
.site-footer__top {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 62rem) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer__brands { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.5rem; }
.footer-brand-primary { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-prestige-plaque {
  display: inline-flex; background: #fefaf5; border-radius: 4px; padding: 8px 12px;
  align-self: flex-start;
}
.footer-prestige-plaque img.footer-prestige { height: 34px; width: auto; display: block; }
.footer-prestige-sub {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(243,238,228,0.72);
}
.footer-brand-secondary { display: flex; align-items: center; gap: 0.65rem; }
.footer-brand-secondary img { height: 44px; width: auto; filter: none; }
.footer-fes-sub {
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.5; color: rgba(243,238,228,0.55); white-space: nowrap;
}
.site-footer__brands .sep { width: 1px; height: 64px; background: rgba(243,238,228,0.25); }
@media (max-width: 40rem) {
  .site-footer__brands { align-items: flex-start; gap: 1rem; }
  .footer-fes-sub { white-space: normal; font-size: 0.52rem; }
  .footer-brand-secondary img { height: 38px; }
}
.site-footer h2, .site-footer h3 {
  color: #f3eee4; font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1.3rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.65rem; font-size: 0.92rem; }
.site-footer__pos { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: #f3eee4; max-width: 22rem; }
.site-footer__pos small { display: block; font-family: var(--sans); font-size: 0.8rem; color: rgba(243,238,228,.6); margin-top: 1rem; line-height: 1.6; }
.site-footer address { font-style: normal; font-size: 0.92rem; line-height: 1.8; }
.site-footer__bottom {
  border-top: 1px solid rgba(243, 238, 228, 0.15);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(243, 238, 228, 0.55);
}
.site-footer__bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* -------------------------------------------------------------- utility */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 2.25rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.text-link { color: var(--brass-quiet); text-decoration-color: rgba(165,130,79,.5); text-underline-offset: 3px; }
.text-link:hover { color: var(--charcoal); }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .split-2 { grid-template-columns: 1fr; } }

.tag {
  display: inline-block; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--charcoal-soft);
  padding: 0.3rem 0.7rem; border-radius: 2px;
}

.notice {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center; color: var(--charcoal-soft);
  background: var(--ivory-soft);
}

/* reveal on scroll — subtle */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* 404 / thank-you */
.slim-hero { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }
.slim-hero .lead { margin-inline: auto; }
.slim-hero .btn-row { justify-content: center; }
/* ================================================================
   FESARTS.AE — PRODUCTION LAYOUT + DUAL BRAND HEADER OVERRIDE
   ================================================================ */

/* Wider architectural layout */
.container {
  max-width: 96rem;
  padding-inline: clamp(1.25rem, 2.5vw, 2.75rem);
}

/* Slightly more presence for the global header */
.site-header__bar {
  min-height: 5.75rem;
}

/* Prestige + Fes Arts horizontal dual-brand lockup */
.brand__lockup {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  row-gap: 0.15rem;
  align-items: center;
}

/* Prestige logo */
.brand__prestige {
  grid-column: 1;
  grid-row: 1;
  width: 150px;
  height: auto;
  display: block;
}

/* UAE Project Execution text beneath Prestige */
.brand__lockup::after {
  content: "UAE PROJECT EXECUTION";
  grid-column: 1;
  grid-row: 2;
  font-family: var(--sans);
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.18em;
  color: var(--charcoal-soft);
}

/* Fes Arts side of the lockup */
.brand__fes {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-strong);
  min-height: 3.7rem;
}

.brand__fes img {
  height: 38px;
  width: auto;
  flex: 0 0 auto;
}

.brand__fes-text {
  font-size: 0.54rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass-quiet);
  white-space: normal;
  max-width: 11.5rem;
}

/* Tablet */
@media (max-width: 76rem) {
  .brand__prestige {
    width: 130px;
    height: auto;
  }

  .brand__fes {
    padding-left: 0.9rem;
    gap: 0.5rem;
  }

  .brand__fes img {
    height: 31px;
  }

  .brand__fes-text {
    font-size: 0.47rem;
    max-width: 9.5rem;
  }

  .brand__lockup::after {
    font-size: 0.46rem;
  }
}

/* Mobile */
@media (max-width: 40rem) {
  .site-header__bar {
    min-height: 4.75rem;
  }

  .brand__lockup {
    column-gap: 0.65rem;
  }

  .brand__prestige {
    width: 92px;
    height: auto;
  }

  .brand__lockup::after {
    font-size: 0.39rem;
    letter-spacing: 0.12em;
  }

  .brand__fes {
    padding-left: 0.65rem;
    gap: 0.4rem;
    min-height: 2.8rem;
  }

  .brand__fes img {
    height: 25px;
  }

  .brand__fes-text {
    font-size: 0.39rem;
    line-height: 1.35;
    letter-spacing: 0.09em;
    max-width: 7rem;
  }
}
