/* ========================================================================== 
   ESPO Projects Page — v2.5.1.99
   Premium portfolio, complete filters, multilingual and RTL-safe.
   ========================================================================== */
.espo-projects-page {
  --projects-ink: #111c27;
  --projects-ink-soft: #273746;
  --projects-muted: #687686;
  --projects-line: rgba(17,28,39,.1);
  --projects-blue: #0072bc;
  --projects-gold: #b89143;
  --projects-green: #007439;
  --projects-ivory: #f7f4ec;
  --projects-paper: #fcfbf7;
  overflow: clip;
  color: var(--projects-ink);
  background: linear-gradient(180deg,#fcfbf7 0%,#fff 24%,#fbfaf7 100%);
}
.espo-projects-page *,
.espo-projects-page *::before,
.espo-projects-page *::after { box-sizing: border-box; }
.espo-projects-page :is(h1,h2,h3,p,figure) { margin-top: 0; }
.espo-projects-page :is(h1,h2,h3) { color: var(--projects-ink); text-wrap: balance; }
.espo-projects-shell { width: min(100% - 3rem, 86rem); margin-inline: auto; }

/* Hero */
.espo-projects-hero {
  position: relative;
  padding: clamp(2.6rem,4.3vw,3.8rem) 0 clamp(2.8rem,4.6vw,4rem);
  background:
    radial-gradient(circle at 10% 18%,rgba(0,114,188,.07),transparent 30%),
    radial-gradient(circle at 92% 10%,rgba(184,145,67,.08),transparent 28%),
    linear-gradient(180deg,#fffefb 0%,#f7f4ec 100%);
  border-bottom: 1px solid var(--projects-line);
}
.espo-projects-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(17,28,39,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(17,28,39,.07) 1px,transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom,rgba(0,0,0,.82),transparent 90%);
}
.espo-projects-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(29rem,1.1fr);
  gap: clamp(2rem,4vw,4rem);
  align-items: center;
}
.espo-projects-hero__copy h1 {
  max-width: 11ch;
  margin: 1rem 0 0;
  font-size: clamp(3rem,5.2vw,5.2rem);
  font-weight: 590;
  line-height: .99;
  letter-spacing: -.055em;
}
.espo-projects-hero__copy > p {
  max-width: 61ch;
  margin: 1.25rem 0 0;
  color: var(--projects-muted);
  font-size: clamp(1rem,1.25vw,1.08rem);
  line-height: 1.9;
}
.espo-projects-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.espo-projects-hero__metrics > div {
  display: flex;
  align-items: center;
  gap: .58rem;
  min-height: 2.8rem;
  padding: .62rem .82rem;
  border: 1px solid rgba(17,28,39,.085);
  border-radius: .78rem;
  background: rgba(255,255,255,.74);
  box-shadow: 0 10px 24px rgba(17,28,39,.04);
}
.espo-projects-hero__metrics strong {
  font-family: Manrope,sans-serif;
  font-size: .98rem;
  font-weight: 760;
  line-height: 1;
}
.espo-projects-hero__metrics span {
  color: var(--projects-muted);
  font-size: .69rem;
  font-weight: 650;
  line-height: 1.35;
}
.espo-projects-hero__visual figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid rgba(17,28,39,.1);
  border-radius: 1.4rem;
  background: #e5e8ea;
  box-shadow: 0 30px 76px rgba(17,28,39,.15);
  isolation: isolate;
}
.espo-projects-hero__visual figure::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: .68rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 1rem;
  pointer-events: none;
}
.espo-projects-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .9s cubic-bezier(.22,1,.36,1),filter .45s ease;
}
.espo-projects-hero__visual:hover img { transform: scale(1.025); filter: saturate(.95); }
.espo-projects-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,transparent 38%,rgba(8,14,21,.73) 100%);
  pointer-events: none;
}
.espo-projects-hero__visual figcaption {
  position: absolute;
  z-index: 2;
  inset-inline: 1.35rem;
  bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem 1rem;
  align-items: end;
  color: #fff;
}
.espo-projects-hero__visual figcaption small {
  grid-column: 1;
  color: rgba(255,255,255,.6);
  font-size: .62rem;
  font-weight: 720;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.espo-projects-hero__visual figcaption strong {
  grid-column: 1;
  max-width: 25rem;
  color: #fff;
  font-size: clamp(1.12rem,2vw,1.5rem);
  font-weight: 650;
  line-height: 1.32;
}
.espo-projects-hero__visual figcaption > span {
  grid-column: 1;
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  line-height: 1.45;
}
.espo-projects-hero__visual figcaption a {
  grid-column: 2;
  grid-row: 1/4;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.45rem;
  padding: .55rem .72rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: .7rem;
  color: #fff;
  background: rgba(17,28,39,.5);
  backdrop-filter: blur(10px);
  font-size: .7rem;
  font-weight: 720;
  text-decoration: none;
}

/* Filter section */
.espo-projects-filter-section {
  padding: clamp(3rem,5vw,4.4rem) 0;
  background: linear-gradient(180deg,#fff 0%,#fbfaf7 100%);
}
.espo-projects-filter-head {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(18rem,.65fr);
  gap: 2rem;
  align-items: end;
}
.espo-projects-filter-head h2 {
  max-width: 18ch;
  margin: .9rem 0 0;
  font-size: clamp(2.1rem,3.8vw,3.55rem);
  font-weight: 590;
  line-height: 1.06;
  letter-spacing: -.045em;
}
.espo-projects-filter-head > p {
  max-width: 38rem;
  margin: 0;
  color: var(--projects-muted);
  line-height: 1.88;
}
.espo-projects-filter-panel {
  margin-top: 1.65rem;
  padding: 1.2rem;
  border: 1px solid rgba(17,28,39,.09);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 96% 0%,rgba(184,145,67,.07),transparent 25%),
    linear-gradient(180deg,#fff,#fbfaf7);
  box-shadow: 0 18px 48px rgba(17,28,39,.06);
}
.espo-projects-search-field label,
.espo-projects-filter-grid label > span {
  display: block;
  margin-bottom: .4rem;
  color: var(--projects-muted);
  font-size: .64rem;
  font-weight: 730;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.espo-projects-search-field > div {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: center;
  min-height: 3.05rem;
  overflow: hidden;
  border: 1px solid rgba(17,28,39,.1);
  border-radius: .82rem;
  background: #fff;
  transition: border-color .2s ease,box-shadow .2s ease;
}
.espo-projects-search-field > div:focus-within {
  border-color: rgba(0,114,188,.55);
  box-shadow: 0 0 0 3px rgba(0,114,188,.08);
}
.espo-projects-search-field > div > span { display: grid; place-items: center; color: var(--projects-gold); }
.espo-projects-search-field input {
  width: 100%;
  height: 100%;
  padding: .7rem .8rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--projects-ink);
  font-size: .86rem;
}
.espo-projects-search-field input::placeholder { color: rgba(104,118,134,.7); }
.espo-projects-filter-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .8rem;
  margin-top: .95rem;
}
.espo-projects-filter-grid label { min-width: 0; }
.espo-projects-filter-grid select {
  width: 100%;
  min-height: 2.9rem;
  padding: .68rem .75rem;
  border: 1px solid rgba(17,28,39,.1);
  border-radius: .78rem;
  outline: 0;
  color: var(--projects-ink-soft);
  background: #fff;
  font-size: .8rem;
  transition: border-color .2s ease,box-shadow .2s ease;
}
.espo-projects-filter-grid select:focus {
  border-color: rgba(0,114,188,.55);
  box-shadow: 0 0 0 3px rgba(0,114,188,.08);
}
.espo-projects-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17,28,39,.07);
}
.espo-projects-clear {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.4rem;
  padding: .5rem .7rem;
  border-radius: .65rem;
  color: var(--projects-muted);
  font-size: .72rem;
  font-weight: 690;
  text-decoration: none;
  transition: color .2s ease,background .2s ease;
}
.espo-projects-clear:hover { color: var(--projects-ink); background: rgba(17,28,39,.05); }
.espo-projects-active-filters {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-top: .9rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(17,28,39,.075);
  border-radius: .9rem;
  background: rgba(255,255,255,.78);
}
.espo-projects-active-filters > strong {
  flex: 0 0 auto;
  padding-top: .42rem;
  color: var(--projects-muted);
  font-size: .65rem;
  font-weight: 730;
}
.espo-projects-active-filters > div { display: flex; flex-wrap: wrap; gap: .45rem; }
.espo-projects-active-filters a {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2rem;
  padding: .36rem .58rem;
  border: 1px solid rgba(0,114,188,.14);
  border-radius: .65rem;
  color: var(--projects-ink-soft);
  background: rgba(0,114,188,.05);
  font-size: .68rem;
  font-weight: 650;
  text-decoration: none;
}
.espo-projects-active-filters a svg { color: var(--projects-blue); }

/* Portfolio */
.espo-projects-portfolio {
  padding: clamp(3rem,5vw,4.6rem) 0;
  background:
    radial-gradient(circle at 94% 10%,rgba(0,116,57,.05),transparent 25%),
    linear-gradient(180deg,#fbfaf7 0%,#fff 100%);
  border-top: 1px solid var(--projects-line);
}
.espo-projects-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.espo-projects-results-head h2 {
  max-width: 20ch;
  margin: .9rem 0 0;
  font-size: clamp(2.1rem,3.7vw,3.45rem);
  font-weight: 590;
  line-height: 1.06;
  letter-spacing: -.045em;
}
.espo-projects-results-head p {
  max-width: 42rem;
  margin: .75rem 0 0;
  color: var(--projects-muted);
  line-height: 1.82;
}
.espo-projects-results-head > strong {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  flex: 0 0 auto;
  padding: .8rem 1rem;
  border: 1px solid rgba(17,28,39,.08);
  border-radius: .82rem;
  background: #fff;
  color: var(--projects-muted);
  font-size: .7rem;
  font-weight: 690;
  box-shadow: 0 10px 24px rgba(17,28,39,.04);
}
.espo-projects-results-head > strong span {
  color: var(--projects-ink);
  font-family: Manrope,sans-serif;
  font-size: 1.2rem;
  font-weight: 780;
}
.espo-projects-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.espo-project-card {
  display: grid;
  grid-template-rows: 13.5rem 1fr;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(17,28,39,.09);
  border-radius: 1.1rem;
  color: inherit;
  background: linear-gradient(180deg,#fff,#fbfaf7);
  box-shadow: 0 15px 38px rgba(17,28,39,.05);
  text-decoration: none;
  transition: transform .34s cubic-bezier(.22,1,.36,1),box-shadow .3s ease,border-color .3s ease;
}
.espo-project-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb,var(--sector-color) 28%,rgba(17,28,39,.08));
  box-shadow: 0 26px 58px rgba(17,28,39,.1);
}
.espo-project-card__media {
  position: relative;
  min-height: 13.5rem;
  overflow: hidden;
  background: #e7ebee;
}
.espo-project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,transparent 50%,rgba(8,15,22,.52));
  pointer-events: none;
}
.espo-project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s cubic-bezier(.22,1,.36,1),filter .35s ease;
}
.espo-project-card:hover .espo-project-card__media img { transform: scale(1.035); filter: saturate(.95); }
.espo-project-card__number,
.espo-project-card__status {
  position: absolute;
  z-index: 2;
  top: .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: .68rem;
  color: #fff;
  background: rgba(17,28,39,.7);
  backdrop-filter: blur(10px);
  font-size: .65rem;
  font-weight: 740;
}
.espo-project-card__number { inset-inline-start: .8rem; min-width: 2.25rem; font-family: Manrope,sans-serif; }
.espo-project-card__status { inset-inline-end: .8rem; max-width: 60%; padding: .45rem .62rem; }
.espo-project-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem 1.05rem 1.05rem;
}
.espo-project-card__eyebrow {
  display: flex;
  align-items: center;
  gap: .48rem;
  min-height: 1.25rem;
  color: var(--projects-muted);
  font-size: .65rem;
  font-weight: 680;
  letter-spacing: .04em;
}
.espo-project-card__eyebrow i {
  flex: 0 0 auto;
  width: .48rem;
  height: .48rem;
  border-radius: 999px;
  background: var(--sector-color);
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--sector-color) 13%,transparent);
}
.espo-project-card h3 {
  margin: .65rem 0 0;
  font-size: 1.13rem;
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: -.018em;
}
.espo-project-card__body > p {
  display: -webkit-box;
  min-height: 3.7rem;
  margin: .55rem 0 0;
  overflow: hidden;
  color: var(--projects-muted);
  font-size: .78rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.espo-project-card__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: .4rem;
  margin-top: .85rem;
  padding-top: .78rem;
  border-top: 1px solid rgba(17,28,39,.07);
}
.espo-project-card__meta span {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  min-width: 0;
  color: var(--projects-muted);
  font-size: .68rem;
  line-height: 1.5;
}
.espo-project-card__meta svg { flex: 0 0 auto; margin-top: .05rem; color: var(--projects-gold); }
.espo-project-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  margin-top: auto;
  padding-top: .9rem;
  color: var(--projects-blue);
  font-size: .7rem;
  font-weight: 730;
}
.espo-projects-empty {
  display: grid;
  justify-items: center;
  max-width: 42rem;
  margin: 2rem auto 0;
  padding: 2.5rem 1.5rem;
  border: 1px dashed rgba(17,28,39,.16);
  border-radius: 1.1rem;
  background: rgba(255,255,255,.7);
  text-align: center;
}
.espo-projects-empty > span { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 1rem; color: var(--projects-blue); background: rgba(0,114,188,.08); }
.espo-projects-empty h3 { margin: 1rem 0 0; font-size: 1.35rem; font-weight: 650; }
.espo-projects-empty p { max-width: 34rem; margin: .65rem 0 1.2rem; color: var(--projects-muted); line-height: 1.75; }

/* Pagination */
.espo-projects-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(17,28,39,.08);
}
.espo-projects-pagination > div { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.espo-projects-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  min-height: 2.3rem;
  padding: .45rem .6rem;
  border: 1px solid rgba(17,28,39,.09);
  border-radius: .68rem;
  color: var(--projects-ink-soft);
  background: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;
}
.espo-projects-pagination a.is-current { color: #fff; border-color: var(--projects-ink); background: var(--projects-ink); }
.espo-projects-pagination__nav { gap: .4rem; width: fit-content; }
.espo-projects-pagination__nav:last-child { justify-self: end; }
html[dir="rtl"] .espo-projects-pagination__nav svg { transform: scaleX(-1); }

html[dir="rtl"] .espo-projects-page :is(h1,h2,h3) { letter-spacing: 0; }
html[dir="rtl"] .espo-project-card__body > p { line-height: 1.82; }

@media (max-width: 1100px) {
  .espo-projects-hero__inner { grid-template-columns: minmax(0,.9fr) minmax(25rem,1.1fr); gap: 2.4rem; }
  .espo-projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .espo-projects-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .espo-projects-hero__inner,
  .espo-projects-filter-head { grid-template-columns: 1fr; }
  .espo-projects-hero__copy { max-width: 48rem; }
  .espo-projects-hero__copy h1 { max-width: 14ch; }
  .espo-projects-hero__visual { max-width: 48rem; width: 100%; margin-inline: auto; }
  .espo-projects-results-head { align-items: flex-start; }
}
@media (max-width: 680px) {
  .espo-projects-shell { width: min(100% - 1.4rem,86rem); }
  .espo-projects-hero { padding-top: 2.1rem; padding-bottom: 2.5rem; }
  .espo-projects-hero__copy h1 { font-size: clamp(2.45rem,11vw,3.35rem); }
  .espo-projects-hero__metrics { display: grid; grid-template-columns: 1fr; }
  .espo-projects-hero__metrics > div { justify-content: flex-start; }
  .espo-projects-hero__visual figcaption { grid-template-columns: 1fr; }
  .espo-projects-hero__visual figcaption a { grid-column: 1; grid-row: auto; margin-top: .35rem; }
  .espo-projects-filter-grid,
  .espo-projects-grid { grid-template-columns: 1fr; }
  .espo-projects-filter-panel { padding: .9rem; }
  .espo-projects-filter-actions,
  .espo-projects-active-filters,
  .espo-projects-results-head { align-items: stretch; flex-direction: column; }
  .espo-projects-filter-actions { display: grid; grid-template-columns: 1fr; }
  .espo-projects-filter-actions .espo-btn { width: 100%; justify-content: center; }
  .espo-projects-clear { justify-content: center; }
  .espo-projects-active-filters { display: grid; }
  .espo-projects-results-head > strong { width: fit-content; }
  .espo-project-card { grid-template-rows: 13rem 1fr; }
  .espo-projects-pagination { grid-template-columns: 1fr 1fr; }
  .espo-projects-pagination > div { grid-column: 1/-1; grid-row: 1; }
  .espo-projects-pagination__nav { grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .espo-projects-page *,
  .espo-projects-page *::before,
  .espo-projects-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* --------------------------------------------------------------------------
   Exact Home final CTA on Projects, scoped so Home styles cannot affect the
   Projects archive layout.
   -------------------------------------------------------------------------- */
.espo-projects-home-cta .espo-final-cta__panel {
  box-shadow: 0 26px 72px rgba(0,0,0,.16);
}
.espo-projects-home-cta .espo-final-cta__copy > p {
  max-width: 50ch;
}
.espo-projects-home-cta .espo-final-cta__actions {
  gap: .62rem;
}
.espo-projects-home-cta .espo-final-cta__actions .espo-btn {
  min-height: 46px;
  border-radius: var(--espo-cta-radius) !important;
  padding-inline: 1.16rem;
  font-size: .76rem;
}
.espo-projects-home-cta .espo-final-cta__actions .espo-btn--primary {
  color: var(--espo-cta-navy) !important;
  border-color: var(--espo-cta-ivory) !important;
  background: var(--espo-cta-ivory) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.16) !important;
}
.espo-projects-home-cta .espo-final-cta__actions .espo-btn--primary:hover,
.espo-projects-home-cta .espo-final-cta__actions .espo-btn--primary:focus-visible {
  color: #fff !important;
  border-color: var(--espo-cta-navy-hover) !important;
  background: var(--espo-cta-navy-hover) !important;
  box-shadow: 0 15px 34px rgba(11,109,168,.25) !important;
}
.espo-projects-home-cta .espo-final-cta__actions .espo-btn--accent {
  color: #e8cf79 !important;
  border-color: rgba(215,183,92,.52) !important;
  background: rgba(215,183,92,.035) !important;
  box-shadow: none !important;
}
.espo-projects-home-cta .espo-final-cta__actions .espo-btn--accent:hover,
.espo-projects-home-cta .espo-final-cta__actions .espo-btn--accent:focus-visible {
  color: #19150c !important;
  border-color: var(--espo-cta-gold) !important;
  background: var(--espo-cta-gold) !important;
  box-shadow: 0 14px 30px rgba(202,166,74,.18) !important;
}
.espo-projects-home-cta .espo-final-cta__actions .espo-button-on-dark {
  color: rgba(255,255,255,.80) !important;
  border-color: rgba(255,255,255,.17) !important;
  background: rgba(255,255,255,.025) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}
.espo-projects-home-cta .espo-final-cta__actions .espo-button-on-dark:hover,
.espo-projects-home-cta .espo-final-cta__actions .espo-button-on-dark:focus-visible {
  color: #fff !important;
  border-color: rgba(255,255,255,.34) !important;
  background: rgba(255,255,255,.075) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.14) !important;
}
@media (max-width: 640px) {
  .espo-projects-home-cta .espo-final-cta__actions {
    gap: .65rem !important;
  }
  .espo-projects-home-cta .espo-final-cta__actions .espo-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ESPO 2.5.1.99 — completed project filter controls */
.espo-projects-featured-filter {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  min-height: 2.9rem;
  margin-top: 1.03rem;
  padding: .62rem .75rem;
  border: 1px solid rgba(17,28,39,.1);
  border-radius: .78rem;
  background: #fff;
  color: var(--projects-ink-soft);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.espo-projects-featured-filter:hover {
  border-color: rgba(184,145,67,.35);
  background: #fffdf8;
}
.espo-projects-featured-filter:focus-within {
  border-color: rgba(0,114,188,.55);
  box-shadow: 0 0 0 3px rgba(0,114,188,.08);
}
.espo-projects-featured-filter input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.espo-projects-filter-grid .espo-projects-featured-filter > .espo-projects-featured-filter__box {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  border: 1px solid rgba(17,28,39,.16);
  border-radius: .42rem;
  background: #fff;
  color: transparent;
  letter-spacing: 0;
  text-transform: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.espo-projects-featured-filter input:checked + .espo-projects-featured-filter__box {
  border-color: var(--projects-blue);
  background: var(--projects-blue);
  color: #fff;
}
.espo-projects-featured-filter strong {
  min-width: 0;
  color: var(--projects-ink-soft);
  font-size: .78rem;
  font-weight: 670;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .espo-projects-featured-filter { margin-top: 0; }
}


/* ESPO 2.5.1.123.10 — Projects pagination position retention
   Pagination URLs target the portfolio section instead of reloading at page top. */
#espo-project-results {
  scroll-margin-top: clamp(5.75rem, 8vw, 7.5rem);
}


/* --------------------------------------------------------------------------
   ESPO 2.5.1.123.11 — Curated luxury refresh for the Projects archive.
   Targeted visual upgrade only; no structural or data-model changes.
   -------------------------------------------------------------------------- */
.espo-projects-page {
  background:
    radial-gradient(circle at 8% 6%, rgba(184,145,67,.06), transparent 24%),
    radial-gradient(circle at 92% 11%, rgba(0,114,188,.045), transparent 24%),
    linear-gradient(180deg, #fdfcf8 0%, #fff 23%, #faf8f2 58%, #fff 100%);
}
.espo-projects-hero {
  padding-top: clamp(2.9rem, 4.7vw, 4.4rem);
  padding-bottom: clamp(3rem, 4.8vw, 4.4rem);
  background:
    radial-gradient(circle at 8% 18%, rgba(0,114,188,.065), transparent 30%),
    radial-gradient(circle at 85% 8%, rgba(184,145,67,.11), transparent 24%),
    linear-gradient(180deg, #fffefb 0%, #faf6ec 52%, #f6f2e6 100%);
}
.espo-projects-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(184,145,67,.28) 20%, rgba(17,28,39,.08) 50%, rgba(0,114,188,.20) 80%, transparent 100%);
}
.espo-projects-hero__copy {
  position: relative;
  padding-inline-start: clamp(.2rem, 1vw, .7rem);
}
.espo-projects-hero__copy::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .2rem;
  bottom: .35rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(184,145,67,.95), rgba(0,114,188,.45));
  opacity: .72;
}
.espo-projects-hero__copy h1 {
  max-width: 10.5ch;
  letter-spacing: -.06em;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.espo-projects-hero__copy > p {
  max-width: 58ch;
  color: color-mix(in srgb, var(--projects-muted) 90%, #534420 10%);
}
.espo-projects-hero__metrics {
  gap: .78rem;
  margin-top: 1.7rem;
}
.espo-projects-hero__metrics > div {
  position: relative;
  gap: .72rem;
  min-height: 3rem;
  padding: .72rem .92rem;
  border-color: rgba(17,28,39,.08);
  border-radius: .95rem;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  box-shadow: 0 14px 34px rgba(17,28,39,.05);
  backdrop-filter: blur(12px);
}
.espo-projects-hero__metrics > div::before {
  content: "";
  width: .56rem;
  height: .56rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--projects-gold), rgba(0,114,188,.78));
  box-shadow: 0 0 0 6px rgba(184,145,67,.08);
}
.espo-projects-hero__metrics strong {
  font-size: 1rem;
}
.espo-projects-hero__visual figure {
  border-color: rgba(17,28,39,.08);
  border-radius: 1.6rem;
  box-shadow: 0 30px 90px rgba(17,28,39,.14);
}
.espo-projects-hero__visual figure::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(184,145,67,.24) 0%, rgba(184,145,67,.07) 42%, transparent 72%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}
.espo-projects-hero__visual figcaption a {
  min-height: 2.6rem;
  padding-inline: .88rem;
  border-radius: .82rem;
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(17,28,39,.56), rgba(17,28,39,.72));
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.espo-projects-filter-section {
  position: relative;
  padding-top: clamp(3.2rem, 5vw, 4.7rem);
  padding-bottom: clamp(3.1rem, 4.8vw, 4.5rem);
  background: linear-gradient(180deg, #fff 0%, #fbfaf6 100%);
}
.espo-projects-filter-head h2,
.espo-projects-results-head h2 {
  letter-spacing: -.052em;
}
.espo-projects-filter-panel {
  position: relative;
  overflow: hidden;
  margin-top: 1.9rem;
  padding: 1.28rem;
  border-color: rgba(17,28,39,.08);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(184,145,67,.10), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(0,114,188,.06), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,250,247,.96));
  box-shadow: 0 22px 58px rgba(17,28,39,.07);
}
.espo-projects-filter-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.espo-projects-search-field > div,
.espo-projects-filter-grid select,
.espo-projects-featured-filter {
  border-color: rgba(17,28,39,.09);
  border-radius: .9rem;
  background: rgba(255,255,255,.90);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.espo-projects-search-field > div:hover,
.espo-projects-filter-grid select:hover,
.espo-projects-featured-filter:hover {
  border-color: rgba(184,145,67,.30);
}
.espo-projects-filter-actions {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
}
.espo-projects-active-filters {
  margin-top: 1rem;
  padding: .95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  box-shadow: 0 8px 24px rgba(17,28,39,.03);
}
.espo-projects-active-filters a {
  min-height: 2.06rem;
  padding-inline: .68rem;
  border-radius: .72rem;
  background: linear-gradient(180deg, rgba(0,114,188,.055), rgba(184,145,67,.05));
}

.espo-projects-portfolio {
  position: relative;
  padding-top: clamp(3.35rem, 5.2vw, 4.9rem);
  padding-bottom: clamp(3.1rem, 4.9vw, 4.8rem);
  background:
    radial-gradient(circle at 7% 12%, rgba(184,145,67,.045), transparent 20%),
    radial-gradient(circle at 93% 7%, rgba(0,116,57,.04), transparent 22%),
    linear-gradient(180deg, #fbfaf7 0%, #fff 100%);
}
.espo-projects-results-head {
  align-items: flex-end;
  gap: 2.2rem;
}
.espo-projects-results-head > strong {
  min-height: 3rem;
  padding: .86rem 1.06rem;
  border-radius: .95rem;
  background: linear-gradient(180deg, #fff, #fbfaf7);
  box-shadow: 0 16px 34px rgba(17,28,39,.055);
}
.espo-projects-grid {
  gap: 1.18rem;
  margin-top: 1.95rem;
}
.espo-project-card {
  position: relative;
  isolation: isolate;
  border-color: rgba(17,28,39,.08);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #fcfbf7 100%);
  box-shadow: 0 18px 46px rgba(17,28,39,.055);
}
.espo-project-card::before {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184,145,67,0), color-mix(in srgb, var(--sector-color) 72%, var(--projects-gold) 28%), rgba(0,114,188,0));
  opacity: .9;
}
.espo-project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68);
}
.espo-project-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--sector-color) 32%, rgba(17,28,39,.08));
  box-shadow: 0 30px 64px rgba(17,28,39,.10);
}
.espo-project-card__media {
  min-height: 14rem;
}
.espo-project-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, transparent 34%);
  pointer-events: none;
}
.espo-project-card__number,
.espo-project-card__status {
  top: .9rem;
  min-height: 2.35rem;
  border-radius: .78rem;
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(17,28,39,.50), rgba(17,28,39,.70));
  box-shadow: 0 10px 24px rgba(0,0,0,.13);
}
.espo-project-card__number {
  inset-inline-start: .9rem;
  min-width: 2.35rem;
}
.espo-project-card__status {
  inset-inline-end: .9rem;
  padding-inline: .72rem;
}
.espo-project-card__body {
  padding: 1.05rem 1.08rem 1.08rem;
}
.espo-project-card__eyebrow {
  min-height: 1.35rem;
  color: color-mix(in srgb, var(--projects-muted) 78%, #4f3b13 22%);
  font-size: .67rem;
  font-weight: 720;
  letter-spacing: .07em;
  text-transform: uppercase;
}
html[dir="rtl"] .espo-project-card__eyebrow {
  letter-spacing: 0;
}
.espo-project-card h3 {
  margin-top: .72rem;
  font-size: 1.16rem;
  line-height: 1.38;
}
.espo-project-card__body > p {
  min-height: 4rem;
  margin-top: .58rem;
  font-size: .79rem;
  line-height: 1.7;
}
.espo-project-card__meta {
  gap: .5rem;
  margin-top: .94rem;
  padding-top: .86rem;
}
.espo-project-card__meta span {
  align-items: center;
  gap: .5rem;
  min-height: 2rem;
  padding: .42rem .58rem;
  border: 1px solid rgba(17,28,39,.06);
  border-radius: .72rem;
  background: rgba(249,248,243,.9);
  color: var(--projects-ink-soft);
  font-size: .69rem;
}
.espo-project-card__link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17,28,39,.06);
  color: var(--projects-ink);
}
.espo-project-card__link svg {
  color: var(--projects-blue);
}

@media (min-width: 1101px) {
  .espo-projects-grid > .espo-project-card:first-child {
    grid-column: span 2;
    grid-template-columns: minmax(0, 1.05fr) minmax(21rem, .95fr);
    grid-template-rows: none;
    min-height: 21.5rem;
  }
  .espo-projects-grid > .espo-project-card:first-child .espo-project-card__media {
    min-height: 100%;
    height: 100%;
  }
  .espo-projects-grid > .espo-project-card:first-child .espo-project-card__body {
    padding: 1.2rem 1.25rem 1.2rem;
  }
  .espo-projects-grid > .espo-project-card:first-child h3 {
    font-size: 1.42rem;
    line-height: 1.35;
  }
  .espo-projects-grid > .espo-project-card:first-child .espo-project-card__body > p {
    min-height: 4.8rem;
    -webkit-line-clamp: 4;
  }
  .espo-projects-grid > .espo-project-card:first-child .espo-project-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.espo-projects-pagination {
  gap: 1.1rem;
  margin-top: 1.9rem;
  padding-top: 1.35rem;
}
.espo-projects-pagination > div {
  gap: .5rem;
}
.espo-projects-pagination a {
  min-width: 2.45rem;
  min-height: 2.45rem;
  border-color: rgba(17,28,39,.08);
  border-radius: .82rem;
  background: linear-gradient(180deg, #fff, #fbfaf7);
  box-shadow: 0 10px 22px rgba(17,28,39,.035);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
}
.espo-projects-pagination a:hover {
  transform: translateY(-1px);
  border-color: rgba(184,145,67,.28);
  box-shadow: 0 14px 28px rgba(17,28,39,.06);
}
.espo-projects-pagination a.is-current {
  border-color: transparent;
  background: linear-gradient(135deg, var(--projects-ink) 0%, color-mix(in srgb, var(--projects-ink) 78%, var(--projects-blue) 22%) 100%);
  box-shadow: 0 18px 34px rgba(17,28,39,.12);
}
.espo-projects-pagination__nav {
  padding-inline: .85rem !important;
}

@media (max-width: 1100px) {
  .espo-projects-grid {
    gap: 1rem;
  }
}
@media (max-width: 900px) {
  .espo-projects-hero__copy::before {
    width: 1px;
    opacity: .55;
  }
}
@media (max-width: 680px) {
  .espo-projects-hero {
    padding-top: 2.4rem;
    padding-bottom: 2.9rem;
  }
  .espo-projects-hero__copy {
    padding-inline-start: .72rem;
  }
  .espo-projects-filter-panel {
    padding: .95rem;
    border-radius: 1.1rem;
  }
  .espo-project-card,
  .espo-project-card:first-child {
    grid-template-columns: 1fr !important;
    grid-template-rows: 13rem 1fr !important;
    min-height: 0 !important;
  }
  .espo-project-card__meta {
    grid-template-columns: 1fr !important;
  }
  .espo-projects-pagination a {
    box-shadow: none;
  }
}


/* ==========================================================================
   ESPO 2.5.1.123.13 — Editorial card rhythm refinement
   Improved project card proportions and spacing.
   ========================================================================== */

.espo-projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.15rem, 1.7vw, 1.65rem);
    align-items: stretch;
}

.espo-project-card {
    min-height: 0;
    overflow: hidden;
}

.espo-project-card__media {
    aspect-ratio: 16 / 10;
    min-height: auto;
    height: auto;
}

.espo-project-card__media img {
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22,1,.36,1);
}

.espo-project-card:hover .espo-project-card__media img {
    transform: scale(1.035);
}

.espo-project-card__body {
    padding: 1.15rem 1.2rem 1.25rem;
}

.espo-project-card h3 {
    font-size: clamp(1.08rem, 1.2vw, 1.28rem);
    line-height: 1.35;
    min-height: 3.45rem;
}

.espo-project-card__body > p {
    min-height: 3.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.espo-project-card__meta {
    margin-top: .8rem;
    padding-top: .8rem;
}

.espo-project-card__meta span {
    min-height: 1.85rem;
    padding: .35rem .55rem;
}

.espo-projects-grid > .espo-project-card:first-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 23rem;
}

.espo-projects-grid > .espo-project-card:first-child .espo-project-card__media {
    aspect-ratio: auto;
    height: 100%;
}

.espo-projects-grid > .espo-project-card:first-child h3 {
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    min-height: auto;
}

@media (max-width: 1100px) {
    .espo-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .espo-projects-grid > .espo-project-card:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .espo-projects-grid {
        grid-template-columns: 1fr;
    }

    .espo-projects-grid > .espo-project-card:first-child {
        grid-column: span 1;
        display: block;
        min-height: 0;
    }

    .espo-project-card__media,
    .espo-projects-grid > .espo-project-card:first-child .espo-project-card__media {
        aspect-ratio: 16 / 10;
        height: auto;
    }
}


/* ==========================================================================
   ESPO 2.5.1.123.18 — Project card readability & media separation
   Keeps project titles fully visible and prevents media from competing with
   long multilingual titles / the new longer three-service labels.
   ========================================================================== */

/* Use a strict vertical card flow so media can never overlap textual content. */
.espo-project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.espo-project-card__media {
    position: relative;
    z-index: 0;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden;
}

.espo-project-card__media img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.espo-project-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    padding: 1.12rem 1.18rem 1.2rem;
    background: linear-gradient(180deg, #fff 0%, #fcfbf7 100%);
}

/* Project name is never clamped or cropped. */
.espo-project-card .espo-project-card-title,
.espo-project-card h3.espo-project-card-title {
    display: block !important;
    width: 100%;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: .66rem 0 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    text-wrap: pretty;
    font-size: clamp(1.06rem, 1.15vw, 1.24rem) !important;
    line-height: 1.46 !important;
}

html:lang(fa) .espo-project-card .espo-project-card-title,
html:lang(ar) .espo-project-card .espo-project-card-title {
    line-height: 1.72 !important;
}

/* Keep summaries controlled while leaving the title untouched. */
.espo-project-card__body > p {
    min-height: 0;
    margin-top: .62rem;
    -webkit-line-clamp: 2;
}

/* Longer service names in the new three-service model must wrap naturally. */
.espo-project-card__meta {
    grid-template-columns: 1fr;
    gap: .46rem;
    margin-top: .88rem;
    padding-top: .8rem;
}

.espo-project-card__meta span {
    min-width: 0;
    min-height: 0;
    height: auto;
    align-items: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.48;
}

.espo-project-card__meta svg {
    margin-top: .15rem;
}

/* Preserve the editorial first-card emphasis without the previous side-by-side
   image/body arrangement that could squeeze long multilingual project names. */
@media (min-width: 1101px) {
    .espo-projects-grid > .espo-project-card:first-child {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .espo-projects-grid > .espo-project-card:first-child .espo-project-card__media {
        width: 100%;
        height: auto !important;
        aspect-ratio: 16 / 7.6;
    }

    .espo-projects-grid > .espo-project-card:first-child .espo-project-card__body {
        padding: 1.2rem 1.3rem 1.28rem;
    }

    .espo-projects-grid > .espo-project-card:first-child .espo-project-card-title {
        max-width: 34ch !important;
        font-size: clamp(1.32rem, 1.7vw, 1.62rem) !important;
        line-height: 1.4 !important;
    }

    html:lang(fa) .espo-projects-grid > .espo-project-card:first-child .espo-project-card-title,
    html:lang(ar) .espo-projects-grid > .espo-project-card:first-child .espo-project-card-title {
        line-height: 1.68 !important;
    }

    .espo-projects-grid > .espo-project-card:first-child .espo-project-card__body > p {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 1100px) {
    .espo-project-card__body {
        padding: 1.08rem 1.1rem 1.15rem;
    }
}

@media (max-width: 720px) {
    .espo-project-card,
    .espo-projects-grid > .espo-project-card:first-child {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        min-height: 0 !important;
    }

    .espo-project-card__media,
    .espo-projects-grid > .espo-project-card:first-child .espo-project-card__media {
        aspect-ratio: 16 / 9;
        height: auto !important;
    }

    .espo-project-card .espo-project-card-title,
    .espo-projects-grid > .espo-project-card:first-child .espo-project-card-title {
        max-width: none !important;
        font-size: 1.08rem !important;
    }
}

/* ========================================================================== 
   ESPO 2.5.1.123.19 — Uniform project cards
   Removes the editorial first-card enlargement. Every project card now uses
   the same grid span, image ratio, body spacing and typography at desktop.
   ========================================================================== */
@media (min-width: 1101px) {
    .espo-projects-grid > .espo-project-card:first-child {
        grid-column: span 1 !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    .espo-projects-grid > .espo-project-card:first-child .espo-project-card__media {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    .espo-projects-grid > .espo-project-card:first-child .espo-project-card__body {
        padding: 1.12rem 1.18rem 1.2rem !important;
    }

    .espo-projects-grid > .espo-project-card:first-child .espo-project-card-title {
        max-width: none !important;
        font-size: clamp(1.06rem, 1.15vw, 1.24rem) !important;
        line-height: 1.46 !important;
    }

    html:lang(fa) .espo-projects-grid > .espo-project-card:first-child .espo-project-card-title,
    html:lang(ar) .espo-projects-grid > .espo-project-card:first-child .espo-project-card-title {
        line-height: 1.72 !important;
    }

    .espo-projects-grid > .espo-project-card:first-child .espo-project-card__body > p {
        -webkit-line-clamp: 2 !important;
    }
}
