/* =============================================================================
   style.css - Tarmeem Center for the Preservation of Heritage
   Mobile-first. Logical properties are used throughout so the layout mirrors
   automatically between RTL (Arabic) and LTR (English).
   ============================================================================ */

/* ------------------------------------------------------------------ tokens */
:root {
  /* palette */
  --sand: #f5ecdd;
  --sand-light: #fbf7f0;
  --sand-deep: #e6d8bf;
  --sand-line: #d9c9a8;
  --teal: #144b52;
  --teal-deep: #0c3439;
  --teal-soft: #1c5a60;
  --gold: #b8923f;
  --gold-light: #d4b36a;
  --gold-text: #7a5c1e;
  --ink: #26221e;
  --ink-muted: #5b534a;
  --white: #fffdf9;

  --bg: var(--sand);
  --surface: var(--sand-light);
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --primary: var(--teal);
  --primary-deep: var(--teal-deep);
  --accent: var(--gold);
  --line: rgba(20, 75, 82, 0.14);

  /* type */
  --font-heading: "Noto Naskh Arabic", "Lora", Georgia, serif;
  --font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --lh-body: 1.85;
  --lh-heading: 1.35;

  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.35rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --text-2xl: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --text-hero: clamp(2.2rem, 1.6rem + 3.4vw, 4.4rem);

  /* layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --header-h: 4.75rem;
  --radius: 1rem;
  --radius-sm: 0.6rem;

  --shadow-sm: 0 1px 2px rgba(38, 34, 30, 0.06), 0 6px 18px -8px rgba(38, 34, 30, 0.18);
  --shadow-md: 0 2px 4px rgba(38, 34, 30, 0.06), 0 22px 40px -18px rgba(12, 52, 57, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;
}

html[lang="en"] {
  --font-heading: "Lora", "Noto Naskh Arabic", Georgia, serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --lh-body: 1.7;
  --lh-heading: 1.2;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  text-align: start;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.modal-open,
body.nav-open { overflow: hidden; }

[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--primary-deep);
  text-wrap: balance;
}

p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--primary-deep); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-light); color: var(--ink); }

/* --------------------------------------------------------------- utilities */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 200ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* directional icons flip in RTL */
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

.eyebrow {
  margin-block-end: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}
.eyebrow--light { color: var(--gold-light); }
.eyebrow--light::before { background: var(--gold-light); }
html[lang="en"] .eyebrow { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  line-height: 1.3;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon--dir { transform: scaleX(-1) translateX(3px); }

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--gold-light); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 253, 249, 0.6);
}
.btn--ghost:hover { background: rgba(255, 253, 249, 0.12); color: var(--white); border-color: var(--white); }

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section-y); }

.section-header {
  max-width: 44rem;
  margin-block-end: clamp(2.5rem, 6vw, 4rem);
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  position: relative;
  padding-block-end: 1rem;
  margin-block-end: 1.25rem;
}
.section-title::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 4.5rem;
  height: 3px;
  background: linear-gradient(to var(--grad-end, right), var(--gold), var(--gold-light));
  border-radius: 2px;
}
[dir="rtl"] .section-title::after { --grad-end: left; }

.section-lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ornamental divider between sections: the emblem flanked by two hairlines */
.divider {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 5.5rem;
  background: url("../assets/images/emblem.webp") center / auto 3.25rem no-repeat;
}
.divider::before,
.divider::after {
  content: "";
  flex: 0 1 11rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
  opacity: 0.7;
}
.divider::after { background: linear-gradient(to left, transparent, var(--gold)); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(245, 236, 221, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(245, 236, 221, 0.94);
  border-color: var(--line);
  box-shadow: 0 8px 24px -16px rgba(12, 52, 57, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--primary-deep);
  border-radius: var(--radius-sm);
}
.brand__logo { width: auto; height: 3.25rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.brand__sub { font-size: 0.78rem; color: var(--text-muted); }

/* hamburger */
.nav-toggle {
  position: relative;
  z-index: 110;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.nav-toggle__bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--primary-deep);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* navigation - mobile panel */
.site-nav {
  position: fixed;
  inset-inline: 0;
  inset-block-start: var(--header-h);
  z-index: 105;
  padding: 1rem var(--gutter) 2rem;
  background: var(--sand-light);
  border-block-end: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.site-nav__list { display: flex; flex-direction: column; }
.site-nav__link {
  display: block;
  padding: 0.85rem 0.25rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--primary-deep);
  border-block-end: 1px solid var(--line);
  position: relative;
}
.site-nav__link[aria-current="true"] { color: var(--gold-text); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-toggle__btn {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-toggle__btn:hover { color: var(--primary-deep); }
.lang-toggle__btn[aria-pressed="true"] { background: var(--primary); color: var(--white); }
.lang-toggle__sep { color: var(--sand-line); }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    inset: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .site-nav__list { flex-direction: row; gap: 0.1rem; }
  .site-nav__link {
    padding: 0.5rem 0.8rem;
    border: 0;
    border-radius: 999px;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    inset-inline: 0.8rem;
    inset-block-end: 0.15rem;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--dur) var(--ease);
  }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav__link[aria-current="true"] { color: var(--primary-deep); }
  .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .lang-toggle { align-self: center; }

  /* Opportunities dropdown */
  .site-nav__item--sub { position: relative; }
  .site-nav__item--sub > .site-nav__link { display: inline-flex; align-items: center; gap: 0.3rem; }
  .site-nav__caret { display: block; width: 0.9em; height: 0.9em; transition: transform var(--dur) var(--ease); }
  .site-nav__item--sub:hover .site-nav__caret,
  .site-nav__item--sub:focus-within .site-nav__caret { transform: rotate(180deg); }
  .site-nav__sub {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0;
    z-index: 120;
    min-width: 12rem;
    margin-block-start: 0.35rem;
    padding: 0.4rem;
    background: var(--sand-light);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.35rem);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  /* invisible bridge so the menu stays open while the pointer moves down to it */
  .site-nav__sub::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: 100%; height: 0.5rem; }
  .site-nav__item--sub:hover .site-nav__sub,
  .site-nav__item--sub:focus-within .site-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

/* sub-links: indented under "Opportunities" in the mobile panel */
.site-nav__sublink {
  display: block;
  padding: 0.6rem 0.25rem;
  margin-inline-start: 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  border-block-end: 1px solid var(--line);
}
.site-nav__sublink:hover { color: var(--primary-deep); }
.site-nav__sublink[aria-current="page"] { color: var(--gold-text); font-weight: 600; }
.site-nav__link[aria-current="page"] { color: var(--gold-text); }
.site-nav__item--sub > .site-nav__link .site-nav__caret { display: none; }
.site-nav__subtoggle { display: none; }
@media (max-width: 1099.98px) {
  .site-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }

  /* Opportunities: link + chevron button; Jobs / Calls collapse underneath */
  .site-nav__item--sub { display: flex; flex-wrap: wrap; align-items: stretch; }
  .site-nav__item--sub > .site-nav__link { flex: 1; }
  .js .site-nav__subtoggle {
    display: grid;
    place-items: center;
    width: 3rem;
    color: var(--primary-deep);
    border-block-end: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav__subtoggle .icon { transition: transform var(--dur) var(--ease); }
  .site-nav__subtoggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .site-nav__sub { flex-basis: 100%; }
  .js .site-nav__sub { display: none; }
  .js .is-sub-open > .site-nav__sub { display: block; }
}
@media (min-width: 1100px) {
  .site-nav__item--sub > .site-nav__link .site-nav__caret { display: block; }
  .site-nav__sublink {
    padding: 0.55rem 0.85rem;
    margin: 0;
    border: 0;
    border-radius: calc(var(--radius-sm) - 0.2rem);
    white-space: nowrap;
  }
  .site-nav__sublink:hover { background: var(--sand); }
}

/* ------------------------------------------------------- section variants */
.section--tint { background: var(--sand-deep); background: linear-gradient(180deg, #efe3cd 0%, var(--sand-deep) 100%); }
.section--dark {
  position: relative;
  isolation: isolate;
  background: var(--teal-deep);
  color: rgba(255, 253, 249, 0.82);
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgba(184, 146, 63, 0.16), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, rgba(28, 90, 96, 0.7), transparent 70%);
  pointer-events: none;
}
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--center .eyebrow { justify-content: center; }
.section-header--center .section-title::after { inset-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"] .section-header--center .section-title::after { transform: translateX(50%); }
.section-title--light { color: var(--white); }
.section-lead--light { color: rgba(255, 253, 249, 0.78); }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  color: var(--white);
  overflow: hidden;
}
@supports (height: 100svh) {
  .hero { min-height: calc(100svh - var(--header-h)); }
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to top, rgba(12, 52, 57, 0.95) 0%, rgba(12, 52, 57, 0.62) 40%, rgba(12, 52, 57, 0.45) 100%),
    radial-gradient(ellipse at center, rgba(12, 52, 57, 0.15) 0%, rgba(12, 52, 57, 0.55) 100%);
}

/* the Center's emblem, faintly watermarked behind the hero text */
.hero__pattern {
  position: absolute;
  inset: 8% 10% 22%;
  z-index: -1;
  background: url("../assets/images/emblem.webp") center / contain no-repeat;
  opacity: 0.13;
  filter: brightness(1.9);
  pointer-events: none;
}

.hero__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 56rem;
  padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 8vw, 5rem);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 700;
  color: var(--white);
  margin-block-end: 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.hero__mission {
  font-size: var(--text-lg);
  color: rgba(255, 253, 249, 0.9);
  max-width: 40rem;
  margin-block-end: 2.25rem;
  text-wrap: balance;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.hero__strip {
  position: relative;
  border-block-start: 1px solid rgba(212, 179, 106, 0.35);
  background: rgba(12, 52, 57, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero__strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
}
.hero__strip-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
}
html[lang="en"] .hero__strip-label { letter-spacing: 0.14em; text-transform: uppercase; }
.hero__strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  font-size: var(--text-sm);
  color: rgba(255, 253, 249, 0.88);
}
.hero__strip-list li { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero__strip-list li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------- about */
.about__layout {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  margin-block-end: clamp(3rem, 7vw, 5rem);
}
.about__text > p { color: var(--text-muted); text-wrap: pretty; }
.about__text > p + p { margin-block-start: 1rem; }
.about__text .about__lead { font-size: var(--text-lg); color: var(--primary-deep); font-weight: 500; }

.about__media {
  position: relative;
  padding-block-end: 18%;
  padding-inline-end: 8%;
}
.about__img {
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.about__img--main { width: 100%; aspect-ratio: 4 / 3; }
.about__img--inset {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  width: 52%;
  aspect-ratio: 16 / 9;
  border: 5px solid var(--sand);
}
.about__badge {
  position: absolute;
  inset-block-start: 1.25rem;
  inset-inline-start: -0.75rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: rgba(255, 253, 249, 0.85);
  font-size: 0.8rem;
  box-shadow: var(--shadow-md);
}
.about__badge strong { font-family: var(--font-heading); font-size: 1.6rem; line-height: 1.1; color: var(--gold-light); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem;
  background: var(--surface);
  text-align: center;
}
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; }

@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .about__layout { grid-template-columns: 1fr 1.05fr; }
}

/* -------------------------------------------------------- vision & mission */
.vm__grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.vm__card {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.vm__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-deep); }
.vm__media img { width: 100%; height: 100%; object-fit: cover; }
.vm__card:first-child .vm__media img { object-position: center 25%; }
.vm__body { position: relative; padding: clamp(1.5rem, 4vw, 2.25rem); }
.vm__mark {
  position: absolute;
  inset-block-start: -1.6rem;
  inset-inline-start: clamp(1.5rem, 4vw, 2.25rem);
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.vm__mark svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.vm__title { font-size: var(--text-xl); margin-block: 1rem 0.75rem; }
.vm__body p { color: var(--text-muted); }

@media (min-width: 760px) {
  .vm__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .vm__card { grid-template-columns: 0.85fr 1fr; }
  .vm__media { aspect-ratio: auto; min-height: 100%; }
  .vm__mark { inset-block-start: clamp(1.5rem, 4vw, 2.25rem); position: static; margin-block-end: 0.25rem; }
  .vm__title { margin-block-start: 0.75rem; }
}

/* --------------------------------------------------------------- expertise */
.exp__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(212, 179, 106, 0.22);
  border: 1px solid rgba(212, 179, 106, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}
.exp__card {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--teal-deep);
  transition: background-color var(--dur) var(--ease);
}
.exp__card:hover { background: #10403f; background: color-mix(in srgb, var(--teal-deep) 82%, var(--teal-soft)); }
.exp__num {
  position: absolute;
  inset-block-start: 1.25rem;
  inset-inline-end: 1.5rem;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(212, 179, 106, 0.18);
}
.exp__icon {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.55rem;
  margin-block-end: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(212, 179, 106, 0.14);
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.exp__icon circle { fill: var(--gold-light); stroke: none; }
.exp__title { font-size: var(--text-lg); color: var(--white); margin-block-end: 0.5rem; }
.exp__card p { font-size: var(--text-sm); color: rgba(255, 253, 249, 0.72); }
.exp__photo { min-height: 14rem; background: var(--teal-deep); }
@media (min-width: 640px) { .exp__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .exp__grid { grid-template-columns: repeat(3, 1fr); } }
.exp__photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

/* --------------------------------------------------------------- materials */
.mat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.mat__card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mat__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-deep); }
.mat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.mat__card:hover .mat__media img { transform: scale(1.04); }
.mat__body { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.5rem 1.5rem 1.75rem; flex: 1; }
.mat__title { font-size: var(--text-xl); }
.mat__body > p { color: var(--text-muted); font-size: var(--text-sm); }
.mat__delivered {
  margin-block-start: auto;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(184, 146, 63, 0.1);
  border-inline-start: 3px solid var(--gold);
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.7;
}
.mat__delivered strong { color: var(--gold-text); margin-inline-end: 0.25rem; }
html[lang="en"] .mat__delivered strong { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }

/* ------------------------------------------------------------- methodology */
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 clamp(2.5rem, 6vw, 3.5rem);
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-block-end: 1rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 0 0 6px rgba(20, 75, 82, 0.1);
}
.step__title { font-size: var(--text-lg); margin-block-end: 0.5rem; }
.step p { font-size: var(--text-sm); color: var(--text-muted); }

.method__bottom { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; }
.method__scan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.method__scan-row img {
  width: 100%;
  aspect-ratio: 580 / 314;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.method__scans figcaption { margin-block-start: 0.75rem; font-size: var(--text-sm); color: var(--text-muted); }
.method__note {
  margin: 0;
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--primary);
  color: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-md);
}
.method__note::before {
  content: "\201C";
  position: absolute;
  inset-block-start: -0.35rem;
  inset-inline-end: 1.25rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .method__bottom { grid-template-columns: 1.3fr 1fr; }
}

/* ---------------------------------------------------------------- projects */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 700px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid__item:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .project-grid { grid-template-columns: repeat(6, 1fr); }
  .project-grid__item { grid-column: span 2; }
  .project-grid__item:nth-child(-n + 2) { grid-column: span 3; }
  .project-grid__item:first-child { grid-column: span 3; }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184, 146, 63, 0.5);
}
.project-card:has(.project-card__trigger:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }

.project-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--sand-deep);
}
.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 52, 57, 0.55), transparent 45%);
  pointer-events: none;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.05); }

.project-card__badges {
  position: absolute;
  z-index: 1;
  inset-block-start: 0.9rem;
  inset-inline-start: 0.9rem;
  display: flex;
  gap: 0.4rem;
}
.project-card__badge {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(251, 247, 240, 0.92);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.project-card__badge--num { font-family: var(--font-heading); font-weight: 700; }
.project-card__badge--done { background: var(--primary); color: var(--white); }
.project-card__badge--done::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.3rem;
  margin-inline-end: 0.4rem;
  border-inline-start: 2px solid var(--gold-light);
  border-block-end: 2px solid var(--gold-light);
  transform: rotate(-45deg) translateY(-0.1em);
}

/* category filter (All / Ongoing / Accomplished) */
.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-end: clamp(1.5rem, 4vw, 2.25rem);
}
.project-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-deep);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.project-filter__btn:hover { border-color: var(--primary); }
.project-filter__btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.project-filter__count {
  min-width: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--primary-deep);
  font-size: 0.78rem;
  line-height: 1.6rem;
  text-align: center;
}
.project-filter__count:empty { display: none; }
.project-filter__btn[aria-pressed="true"] .project-filter__count { background: var(--gold); color: var(--ink); }
.project-grid__empty {
  grid-column: 1 / -1;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--sand-line);
  border-radius: var(--radius);
}
.project-card__badge--live { background: var(--gold); color: var(--ink); }
.project-card__badge--live::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-end: 0.4rem;
  border-radius: 50%;
  background: var(--teal-deep);
  vertical-align: 0.05em;
}

.project-card__photos {
  position: absolute;
  z-index: 1;
  inset-block-end: 0.8rem;
  inset-inline-end: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 253, 249, 0.92);
}
.project-card__photos .icon { width: 1.05rem; height: 1.05rem; stroke-width: 1.8; }

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.5rem 1.6rem;
  flex: 1;
}
.project-card__kicker { font-size: 0.8rem; font-weight: 600; color: var(--gold-text); }
html[lang="en"] .project-card__kicker { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; }
.project-card__title { font-size: var(--text-lg); }
.project-card__trigger {
  text-align: start;
  color: inherit;
  font: inherit;
  line-height: inherit;
}
/* stretched trigger: makes the whole card clickable with one tab stop */
.project-card__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.project-card__trigger:focus-visible { outline: none; }

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.project-card__dot { color: var(--gold); }
.project-card__summary {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.project-card__cta {
  margin-block-start: auto;
  padding-block-start: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-text);
}
.project-card__cta .icon { transition: transform var(--dur) var(--ease); }
.project-card:hover .project-card__cta .icon { transform: translateX(4px); }
[dir="rtl"] .project-card:hover .project-card__cta .icon--dir { transform: scaleX(-1) translateX(4px); }

@media (min-width: 1100px) {
  .project-grid__item:nth-child(-n + 2) .project-card__media { aspect-ratio: 16 / 9; }
}

/* ------------------------------------------------------------------- modal */
.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(100vw - 1.5rem, 1180px);
  max-width: none;
  max-height: min(100vh - 1.5rem, 94vh);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.modal:not([open]) { display: none; }
.modal::backdrop {
  background: rgba(12, 42, 46, 0.75);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* never let the thumbnail strip widen the modal */
  grid-template-rows: auto 1fr;
  max-height: min(100vh - 1.5rem, 94vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__close {
  position: absolute;
  z-index: 5;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.92);
  color: var(--primary-deep);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.modal__close:hover { background: var(--white); transform: rotate(90deg); }

.gallery { min-width: 0; background: var(--teal-deep); }
.gallery__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #0a2b2f;
}
.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show the whole photograph; letterbox on the dark background */
}
.gallery__nav {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.9);
  color: var(--primary-deep);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur) var(--ease);
}
.gallery__nav:hover { background: var(--white); }
.gallery__nav--prev { inset-inline-start: 0.75rem; }
.gallery__nav--next { inset-inline-end: 0.75rem; }

.gallery__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 1rem 0;
  font-size: 0.8rem;
  line-height: 1.5;
}
.gallery__alt { color: rgba(255, 253, 249, 0.78); }
.gallery__counter { flex: none; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 1rem 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery__thumbs > li { flex: none; }
.gallery__thumb {
  display: block;
  width: 4.75rem;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 0.85; }
.gallery__thumb[aria-pressed="true"] { opacity: 1; border-color: var(--gold-light); }
.gallery__thumb:focus-visible { outline-offset: 0; }

.modal__content { padding: clamp(1.5rem, 4vw, 2.75rem); }
.modal__kicker {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-text);
  margin-block-end: 0.5rem;
}
html[lang="en"] .modal__kicker { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
.modal__title { font-size: var(--text-xl); margin-block-end: 1.25rem; padding-inline-end: 2.5rem; }

.modal__meta {
  display: grid;
  gap: 0.9rem;
  padding-block: 1.1rem;
  margin-block-end: 1.25rem;
  border-block: 1px solid var(--line);
}
.modal__meta-item dt { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-block-end: 0.1rem; }
html[lang="en"] .modal__meta-item dt { letter-spacing: 0.1em; text-transform: uppercase; }
.modal__meta-item dd { font-weight: 500; color: var(--primary-deep); line-height: 1.6; }

.modal__summary { color: var(--text-muted); margin-block-end: 1.5rem; }

.modal__figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  margin-block-end: 1.75rem;
}
.modal__figure {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(20, 75, 82, 0.06);
  border: 1px solid var(--line);
}
.modal__figure strong { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.15; color: var(--primary); text-align: start; }
.modal__figure span { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }

.modal__section + .modal__section { margin-block-start: 1.75rem; }
.modal__section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-text);
  margin-block-end: 0.85rem;
}
html[lang="en"] .modal__section-title { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
.modal__section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* bulleted list with a small gold diamond (also used in the team section) */
.ticks { display: grid; gap: 0.6rem; }
.ticks li {
  position: relative;
  padding-inline-start: 1.35rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.15rem;
  inset-block-start: 0.6em;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--gold);
  transform: rotate(45deg);
}
.ticks--check li { padding-inline-start: 1.85rem; color: var(--ink); }
.ticks--check li::before {
  inset-inline-start: 0;
  inset-block-start: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  transform: none;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4b36a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

.boq { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.boq table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.boq th {
  padding: 0.65rem 0.9rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: start;
}
.boq td { padding: 0.6rem 0.9rem; border-block-start: 1px solid var(--line); color: var(--ink-muted); vertical-align: top; }
.boq tbody tr:nth-child(even) td { background: rgba(20, 75, 82, 0.04); }
.boq__qty { white-space: nowrap; font-weight: 600; color: var(--primary-deep) !important; text-align: end; }
.boq th:last-child { text-align: end; }

@media (min-width: 640px) {
  .modal__meta { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem 1.5rem; }
}
@media (min-width: 960px) {
  .modal__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: none;
    overflow: hidden;
  }
  .gallery { display: flex; flex-direction: column; min-height: 0; }
  .gallery__stage { aspect-ratio: auto; flex: 1; min-height: 22rem; }
  .gallery__image { position: absolute; inset: 0; }
  .modal__content { overflow-y: auto; max-height: min(100vh - 1.5rem, 94vh); overscroll-behavior: contain; }
}

/* ------------------------------------------------------------ project page */
/* project.html: the same gallery + content as the pop-up, laid out in the page */
a.project-card__trigger { text-decoration: none; }
.section.project-page { padding-block-start: clamp(1.5rem, 4vw, 2.5rem); }

.project-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.project-page__back:hover { color: var(--primary-deep); text-decoration: underline; }
.project-page__back .icon { width: 1.1rem; height: 1.1rem; }

.project-page__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.project-page .modal__content { max-height: none; overflow: visible; }

/* full-width layout: gallery on top, text below across the whole page */
.project-page .gallery__stage { aspect-ratio: auto; height: clamp(16rem, 62vh, 40rem); }
.project-page .gallery__image { position: absolute; inset: 0; }
.project-page .modal__content { padding: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 960px) {
  .project-page .modal__sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 3rem;
    align-items: start;
  }
  .project-page .modal__section + .modal__section { margin-block-start: 0; }
}

/* -------------------------------------------------------------------- team */
.team__intro {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-block-end: clamp(2rem, 5vw, 3rem);
}
.team__intro .section-header { margin-block-end: 0; }
.team__photo img {
  width: 100%;
  aspect-ratio: 1400 / 655;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
@media (min-width: 1000px) {
  .team__intro { grid-template-columns: 1fr 1.1fr; }
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-block-start: 4px solid var(--gold);
}
.person__head { display: flex; align-items: flex-start; gap: 1rem; }
.person__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 4px rgba(184, 146, 63, 0.25);
}
.person__name { font-size: var(--text-lg); }
.person__role { font-size: 0.82rem; color: var(--gold-text); line-height: 1.55; margin-block-start: 0.25rem; }
.person__bio { font-size: var(--text-sm); color: var(--text-muted); }
.person__roleat {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(20, 75, 82, 0.06);
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.65;
}
.person__roleat strong { color: var(--primary-deep); font-size: 0.8rem; }
.person__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-text);
  margin-block-end: -0.25rem;
}
html[lang="en"] .person__label { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; }

.edu { display: grid; gap: 0.7rem; }
.edu__item { display: flex; gap: 0.85rem; align-items: baseline; }
.edu__year {
  flex: none;
  min-width: 3.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--sand-deep);
  color: var(--primary-deep);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.edu__text { display: grid; font-size: 0.85rem; line-height: 1.55; }
.edu__text strong { color: var(--ink); font-weight: 600; }
.edu__text span { color: var(--text-muted); font-size: 0.8rem; }

.person__more { border-block-start: 1px solid var(--line); padding-block-start: 0.85rem; }
.person__more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--primary);
  border-radius: 4px;
}
.person__more summary::-webkit-details-marker { display: none; }
.person__chev {
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
  margin-inline-end: 0.3rem;
}
.person__more[open] .person__chev { transform: rotate(-135deg); }
.person__more-body { display: grid; gap: 1.25rem; padding-block-start: 1rem; }
.person__group .person__label { margin-block-end: 0.6rem; }

/* ---------------------------------------------------------------- partners */
.partners__group + .partners__group { margin-block-start: clamp(2rem, 5vw, 3rem); }
.partners__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-text);
  margin-block-end: 1.25rem;
}
html[lang="en"] .partners__heading { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
.partners__heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.partners__grid {
  --cols: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.partners__grid > .partner { flex: 0 0 calc((100% - (var(--cols) - 1) * 0.9rem) / var(--cols)); }
@media (min-width: 560px) { .partners__grid { --cols: 3; } }
@media (min-width: 900px) { .partners__grid { --cols: 4; } }
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(184, 146, 63, 0.5); }
.partner__logo { display: flex; align-items: center; justify-content: center; height: 4.5rem; width: 100%; }
.partner__logo img {
  max-height: 4.5rem;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.15);
}
.partner__name { font-size: 0.75rem; line-height: 1.45; color: var(--text-muted); }

.partners__statement {
  max-width: 50rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  color: var(--ink-muted);
  text-align: start;
}

/* ----------------------------------------------------------------- contact */
.contact__grid {
  display: grid;
  gap: 2.5rem;
}

.contact__list {
  display: grid;
  gap: 1px;
  margin-block-start: 2rem;
  background: rgba(212, 179, 106, 0.2);
  border: 1px solid rgba(212, 179, 106, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact__item { padding: 1rem 1.25rem; background: var(--teal-deep); }
.contact__item dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-block-end: 0.2rem;
}
html[lang="en"] .contact__item dt { letter-spacing: 0.12em; text-transform: uppercase; }
.contact__item dd { font-size: var(--text-base); color: var(--white); }
.contact__item dd a { color: var(--white); text-decoration: none; }
.contact__item dd a:hover { color: var(--gold-light); text-decoration: underline; }
.contact__item dd a[dir="ltr"] { unicode-bidi: isolate; }
.contact__map {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-inline-start: 0.5rem;
  font-size: var(--text-sm);
  color: var(--gold-light) !important;
}
.contact__map .icon { width: 1rem; height: 1rem; }
@media (min-width: 560px) {
  .contact__list { grid-template-columns: 1fr 1fr; }
  .contact__item--wide { grid-column: 1 / -1; }
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.contact-form__note { font-size: var(--text-sm); color: var(--text-muted); }

.field { display: grid; gap: 0.4rem; }
.field__label { font-weight: 600; font-size: var(--text-sm); color: var(--primary-deep); }
.field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input:hover { border-color: var(--primary); }
.field__input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 75, 82, 0.18);
}
textarea.field__input { resize: vertical; min-height: 8rem; }
.contact-form .btn { justify-self: start; }

@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  position: relative;
  padding-block: 3.5rem 2rem;
  background: #092a2e;
  border-block-start: 1px solid rgba(212, 179, 106, 0.18);
  color: rgba(255, 253, 249, 0.82);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: -12%;
  inset-inline-end: 4%;
  height: 124%;
  aspect-ratio: 675 / 822;
  background: url("../assets/images/emblem.webp") center / contain no-repeat;
  opacity: 0.14;
  filter: brightness(1.9);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: grid;
  gap: 2rem;
}
.footer__brand { display: flex; align-items: center; gap: 1.25rem; }
.footer__logo {
  width: auto;
  height: 9rem;
  padding: 0.7rem 1rem;
  background: var(--sand-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.footer__name { font-family: var(--font-heading); font-weight: 700; color: var(--white); font-size: 1.1rem; }
.footer__meta { font-size: var(--text-sm); color: var(--gold-light); }
.footer__contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-block-start: 0.5rem; font-size: var(--text-sm); }
.footer__contact a { color: rgba(255, 253, 249, 0.82); text-decoration: none; }
.footer__contact a:hover { color: var(--gold-light); }

.footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__nav a { color: rgba(255, 253, 249, 0.82); text-decoration: none; font-weight: 500; }
.footer__nav a:hover { color: var(--gold-light); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid rgba(255, 253, 249, 0.14);
  font-size: var(--text-sm);
}
.footer__copy { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-light);
  text-decoration: none;
}
.footer__top:hover { color: var(--white); }
.footer__top .icon { transition: transform var(--dur) var(--ease); }
.footer__top:hover .icon { transform: translateY(-3px); }

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__bottom { grid-column: 1 / -1; }
}

/* ------------------------------------------------- inner pages: page header */
.page-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(3rem, 6vw, 4.5rem); }
.page-hero .section-lead { max-width: 44rem; }
.page-hero__title { font-size: var(--text-2xl); }

.page-hero--compact { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.page-hero--compact .breadcrumb { margin-block-end: 0.75rem; }
.page-hero--compact .page-hero__title { color: var(--white); font-weight: 700; }
/* a dark section right under the dark page header gets a hairline so they don't merge */
.page-hero + .section--dark { border-block-start: 1px solid rgba(212, 179, 106, 0.28); }

.breadcrumb { margin-block-end: 1.5rem; font-size: var(--text-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; padding: 0; margin: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.6rem; }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 253, 249, 0.4); }
.breadcrumb a { color: rgba(255, 253, 249, 0.78); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--white); font-weight: 500; }

/* ------------------------------------------------- home: explore the pages */
.explore__grid { display: grid; gap: clamp(1.25rem, 3vw, 1.75rem); }
@media (min-width: 640px) { .explore__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .explore__grid { grid-template-columns: repeat(3, 1fr); } }
.explore__grid > li { display: flex; }

.explore-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.explore-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.explore-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-deep); }
.explore-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.explore-card:hover .explore-card__media img { transform: scale(1.05); }
.explore-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-block-start: 3px solid var(--gold);
}
.explore-card__title { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; color: var(--primary-deep); line-height: var(--lh-heading); }
.explore-card__text { color: var(--text-muted); font-size: var(--text-sm); }
.explore-card__cta {
  margin-block-start: auto;
  padding-block-start: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--primary);
}
.explore-card__cta .icon { transition: transform var(--dur) var(--ease); }
.explore-card:hover .explore-card__cta .icon { transform: translateX(4px); }
[dir="rtl"] .explore-card:hover .explore-card__cta .icon--dir { transform: scaleX(-1) translateX(4px); }

.cta-band { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; }
.cta-band .section-lead { max-width: 40rem; }
.cta-band .btn { justify-self: start; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

/* ---------------------------------------------- opportunities hub (cards) */
.opp-hub__grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 760px) { .opp-hub__grid { grid-template-columns: repeat(2, 1fr); } }

.opp-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-block-start: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.opp-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.opp-card__mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--gold-light);
}
.opp-card__mark svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opp-card__title { font-size: var(--text-xl); font-weight: 700; }
.opp-card__text { color: var(--text-muted); }
.opp-card__count {
  align-self: flex-start;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 75, 82, 0.1);
  color: var(--primary-deep);
  font-size: var(--text-sm);
  font-weight: 600;
}
.opp-card__count:empty { display: none; }
.opp-card__count.is-empty { background: var(--sand); color: var(--text-muted); font-weight: 500; }
.opp-card__cta {
  margin-block-start: auto;
  padding-block-start: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}
.opp-card__cta .icon { transition: transform var(--dur) var(--ease); }
.opp-card:hover .opp-card__cta .icon { transform: translateX(4px); }
[dir="rtl"] .opp-card:hover .opp-card__cta .icon--dir { transform: scaleX(-1) translateX(4px); }

.opp-cv {
  margin-block-start: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px dashed var(--sand-line);
  border-radius: var(--radius);
  background: rgba(251, 247, 240, 0.6);
}
.opp-cv__title { font-size: var(--text-lg); font-weight: 700; margin-block-end: 0.35rem; }
.opp-cv p { color: var(--text-muted); }
.opp-cv .btn { justify-self: start; }
@media (min-width: 760px) {
  .opp-cv { grid-template-columns: 1fr auto; }
}

/* -------------------------------------------------- jobs / calls listings */
.listings { display: grid; gap: clamp(1.25rem, 3vw, 1.75rem); }
.listings-section,
.opp-hub { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }

.listing {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.listing--closed { border-inline-start-color: var(--sand-line); }
.listing--closed .listing__title,
.listing--closed .listing__summary { color: var(--text-muted); }

.listing__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.listing__badge {
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 600;
}
.listing__badge--open { background: var(--primary); border-color: var(--primary); color: var(--white); }
.listing__badge--closed { background: var(--sand-deep); color: var(--text-muted); }

.listing__title { font-size: var(--text-xl); font-weight: 700; }
.listing__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: var(--text-sm); color: var(--text-muted); }
.listing__meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.listing__meta .icon { width: 1.1em; height: 1.1em; color: var(--gold-text); }
.listing__summary { max-width: 70ch; color: var(--text); text-wrap: pretty; }
.listing__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 0.35rem; }

.btn--outline { color: var(--primary); border: 1.5px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }

.listing--empty {
  align-items: center;
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  border-inline-start: 1px solid var(--line);
  border-block-start: 4px solid var(--gold);
}
.listing--empty .listing__summary { max-width: 34rem; color: var(--text-muted); }
.listing--empty .listing__actions { justify-content: center; }
.listing__empty-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--gold-text);
}
.listing__empty-mark .icon { width: 1.8rem; height: 1.8rem; stroke-width: 1.6; }

/* ------------------------------------------------- floating back-to-top */
.to-top {
  position: fixed;
  inset-block-end: clamp(1rem, 3vw, 1.75rem);
  inset-inline-end: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--gold-light); color: var(--ink); transform: translateY(-3px); }
.to-top .icon { width: 1.3rem; height: 1.3rem; stroke-width: 2.2; }
/* out of the way while the mobile menu or a project window is open */
body.nav-open .to-top,
body.modal-open .to-top { opacity: 0; visibility: hidden; }

/* ------------------------------------------------------------- animations */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .modal[open] { animation: modal-in 260ms var(--ease); }
  .modal[open]::backdrop { animation: backdrop-in 260ms ease-out; }
  .hero__content > * {
    animation: hero-rise 800ms var(--ease) both;
  }
  .hero__content > :nth-child(2) { animation-delay: 90ms; }
  .hero__content > :nth-child(3) { animation-delay: 180ms; }
  .hero__content > :nth-child(4) { animation-delay: 270ms; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .project-card:hover { transform: none; }
  .project-card:hover .project-card__media img { transform: none; }
  .mat__card:hover .mat__media img { transform: none; }
}

/* ------------------------------------------------------------------- print */
@media print {
  .site-header, .hero__actions, .hero__strip, .contact-form, .footer__top, .to-top, .modal { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
}
