@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Arabic glyphs only; downloaded only on pages that contain Arabic text */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/noto-sans-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #003070;
  --brand-600: #0a4596;
  --brand-50: #eef3fa;
  --navy: #0a1628;
  --navy-800: #0f2140;
  --accent: #f2a900;
  --accent-600: #d99500;
  --ink: #0f1a2a;
  --muted: #5a6577;
  --line: #e2e7ef;
  --bg: #fff;
  --bg-soft: #f4f6f9;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(15 26 42 / .06), 0 8px 24px -8px rgb(15 26 42 / .14);
  --shadow-lg: 0 24px 60px -20px rgb(15 26 42 / .35);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font: 400 1rem/1.65 'Manrope', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); }
h3, .h3 { font-size: 1.15rem; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-xs { width: 1em; height: 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 8vw, 104px); }
.section-soft { background: var(--bg-soft); }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- languages ---------- */
/* Directional icons (arrows) point the other way in right-to-left languages */
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
[dir="rtl"] .hero::before {
  background:
    linear-gradient(180deg, rgb(10 22 40 / .55) 0%, rgb(10 22 40 / 0) 30%),
    linear-gradient(270deg, rgb(10 22 40 / .85) 0%, rgb(10 22 40 / .35) 60%, rgb(10 22 40 / .1) 100%),
    linear-gradient(0deg, rgb(10 22 40 / .9) 0%, rgb(10 22 40 / 0) 45%);
}
/* Letter-spacing breaks Arabic letter joining */
:lang(ar) * { letter-spacing: 0 !important; }
:lang(ar) body { line-height: 1.8; }
:lang(ar) :is(h1, h2, h3) { line-height: 1.35; }
:lang(de) :is(h1, h2, h3, .card-title) { hyphens: auto; }

.lang-menu { position: relative; margin-inline: 6px; }
.lang-menu summary {
  display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--brand-50); color: var(--brand); }
.lang-menu summary .icon { width: 1.1em; height: 1.1em; }
.lang-menu ul {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 10; min-width: 180px;
  display: grid; gap: 2px; padding: 6px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.lang-menu ul a {
  display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
}
.lang-menu ul a:hover { background: var(--brand-50); color: var(--brand); }
.lang-menu ul a[aria-current] { color: var(--brand); font-weight: 800; }
.lang-menu ul small { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .75rem; align-self: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-sm { padding: .6em 1.05em; font-size: .875rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 8px 20px -8px rgb(0 48 112 / .6); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #ffbb1f; box-shadow: 0 10px 24px -10px rgb(242 169 0 / .8); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-light { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn-ghost-light:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge { background: var(--bg-soft); border-radius: 999px; padding: .1em .55em; font-size: .8em; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }
.eyebrow-light { color: #fff; }
.lead { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); color: var(--muted); max-width: 62ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgb(255 255 255 / .88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; position: relative; }
.brand img { height: 46px; width: auto; }
.brand-light { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.brand-dark { transition: opacity .3s; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav > ul { display: flex; gap: 2px; }
.nav > ul a {
  display: block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.nav > ul a:hover { background: var(--brand-50); color: var(--brand); }
.nav-toggle { display: none; }

/* transparent header over the hero (home only) */
.has-hero .site-header { position: fixed; inset: 0 0 auto; }
.has-hero .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header:not(.is-scrolled) .brand-dark { opacity: 0; }
.has-hero .site-header:not(.is-scrolled) .brand-light { opacity: 1; }
.has-hero .site-header:not(.is-scrolled) :is(.nav > ul a, .lang-menu summary) { color: #fff; }
.has-hero .site-header:not(.is-scrolled) :is(.nav > ul a, .lang-menu summary):hover { background: rgb(255 255 255 / .12); }
.has-hero .site-header:not(.is-scrolled) .lang-menu summary { border-color: rgb(255 255 255 / .35); }
.has-hero .site-header:not(.is-scrolled) .nav-toggle { color: #fff; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -16px rgb(15 26 42 / .4); }

@media (max-width: 1080px) {
  .nav-cta span { display: none; }
  .nav-cta { padding: .6em; }
}
@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; background: none; color: var(--ink); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle .icon { width: 26px; height: 26px; grid-area: 1 / 1; transition: opacity .2s, transform .2s; }
  .nav-toggle .icon:last-child { opacity: 0; transform: rotate(-90deg); }
  .nav-toggle[aria-expanded="true"] .icon:first-child { opacity: 0; transform: rotate(90deg); }
  .nav-toggle[aria-expanded="true"] .icon:last-child { opacity: 1; transform: none; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 24px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav > ul { flex-direction: column; }
  .nav > ul a { padding: 14px 12px; font-size: 1.1rem; border-radius: 10px; }
  .has-hero .site-header:not(.is-scrolled) :is(.nav > ul a, .lang-menu summary) { color: var(--ink); }
  .has-hero .site-header:not(.is-scrolled) .lang-menu summary { border-color: var(--line); }
  .lang-menu { align-self: stretch; margin: 0 12px; }
  .lang-menu summary { width: max-content; }
  .lang-menu ul { position: static; margin-top: 8px; grid-template-columns: 1fr 1fr; box-shadow: none; background: var(--bg-soft); border: 0; }
  .nav-cta { justify-content: center; padding: .85em 1.4em; }
  .nav-cta span { display: inline; }
  .site-header:has(.nav.is-open) { background: #fff !important; }
  .site-header:has(.nav.is-open) .brand-dark { opacity: 1 !important; }
  .site-header:has(.nav.is-open) .brand-light { opacity: 0 !important; }
  .site-header:has(.nav.is-open) .nav-toggle { color: var(--ink) !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 48px) 0 40px;
  color: #fff; background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; z-index: -2; animation: hero-zoom 18s var(--ease) both; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(10 22 40 / .55) 0%, rgb(10 22 40 / 0) 30%),
    linear-gradient(90deg, rgb(10 22 40 / .85) 0%, rgb(10 22 40 / .35) 60%, rgb(10 22 40 / .1) 100%),
    linear-gradient(0deg, rgb(10 22 40 / .9) 0%, rgb(10 22 40 / 0) 45%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { margin-bottom: clamp(40px, 8vh, 88px); }
.hero h1 { max-width: 16ch; margin-bottom: 20px; }
.hero-text { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: rgb(255 255 255 / .82); max-width: 54ch; }
.hero .btn-row { margin-top: 32px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  border-top: 1px solid rgb(255 255 255 / .18);
}
.stats div { padding-block: 24px 4px; padding-inline: 0 24px; display: flex; flex-direction: column-reverse; }
.stats div + div { padding-inline-start: 24px; border-inline-start: 1px solid rgb(255 255 255 / .12); }
.stats dd { margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stats dt { color: rgb(255 255 255 / .7); font-size: .9rem; margin-top: 6px; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { padding-block: 18px; padding-inline: 0 12px; }
  .stats div + div { padding-inline-start: 0; border-inline-start: 0; }
  .stats div:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid rgb(255 255 255 / .12); }
  .stats div:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .12); }
}

/* ---------- section heads ---------- */
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { margin-bottom: .35em; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.cards-featured { grid-template-columns: repeat(12, 1fr); }
.cards-featured .card { grid-column: span 4; }
.cards-featured .card:nth-child(1), .cards-featured .card:nth-child(2) { grid-column: span 6; }
.cards-featured .card:nth-child(1) a, .cards-featured .card:nth-child(2) a { aspect-ratio: 16 / 10; }
@media (max-width: 900px) {
  .cards-featured .card, .cards-featured .card:nth-child(-n+2) { grid-column: span 6; }
  .cards-featured .card:nth-child(-n+2) a { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .cards-featured .card, .cards-featured .card:nth-child(-n+2) { grid-column: 1 / -1; } }

.card a {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  text-decoration: none; color: #fff; background: var(--navy-800);
  box-shadow: var(--shadow);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.card a::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(10 22 40 / 0) 40%, rgb(10 22 40 / .88) 100%);
  transition: opacity .3s;
}
.card a:hover img { transform: scale(1.06); }
.card-tags { position: absolute; top: 16px; inset-inline-start: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-tags span, .tags span {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--brand);
}
.card-body { position: absolute; inset: auto 0 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 1.2rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.card-meta { display: flex; gap: 14px; font-size: .85rem; color: rgb(255 255 255 / .78); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  padding: .6em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filters button span { color: var(--muted); font-weight: 600; margin-inline-start: 2px; }
.filters button:hover { border-color: var(--brand); }
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters button[aria-pressed="true"] span { color: rgb(255 255 255 / .7); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; padding: 12px; margin-bottom: 20px;
  border-radius: 14px; background: var(--brand-50); color: var(--brand);
}
.service p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about-media { position: relative; margin: 0; }
.about-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.about-media figcaption {
  position: absolute; inset-inline-start: clamp(-12px, -2vw, 0px); bottom: -28px; max-width: 320px;
  background: var(--brand); color: #fff; padding: 22px 26px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-media blockquote { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.about-media figcaption span { font-size: .85rem; color: rgb(255 255 255 / .7); }
@media (max-width: 900px) { .about-media figcaption { inset-inline: 16px; max-width: none; } .about-text { margin-top: 24px; } }
.about-text > p:not(.eyebrow) { color: var(--muted); }
.values { display: grid; gap: 14px; margin-top: 28px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values .icon { width: 28px; height: 28px; padding: 5px; border-radius: 8px; background: var(--brand-50); color: var(--brand); margin-top: 2px; }
.values strong { display: block; }
.values span { color: var(--muted); font-size: .95rem; }

/* ---------- references ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 720px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logos li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 22px; height: 120px; }
.logos img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--muted); }

/* ---------- contact ---------- */
.contact { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: ''; position: absolute; z-index: -1; width: 760px; aspect-ratio: 1; inset-inline-end: -240px; top: -320px;
  border-radius: 50%; border: 90px solid rgb(255 255 255 / .03);
}
.contact .eyebrow { color: #fff; }
.contact .lead { color: rgb(255 255 255 / .72); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro .contact-cards { margin-top: 32px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 12px; }
.contact-cards a {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px;
  border-radius: var(--radius); text-decoration: none;
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1);
  transition: background-color .2s, border-color .2s;
  overflow-wrap: anywhere;
}
.contact-cards a:hover { background: rgb(255 255 255 / .09); border-color: rgb(255 255 255 / .22); }
.contact-cards .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--accent); color: var(--navy); }
.contact-cards span { font-weight: 700; font-size: 1.05rem; line-height: 1.45; }
.contact-cards small { display: block; font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .55); margin-bottom: 2px; }
.contact-cards em { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-style: normal; font-size: .88rem; color: var(--accent); }
.contact-cards em .icon { width: 1em; height: 1em; padding: 0; border-radius: 0; background: none; color: inherit; }

/* ---------- contact form ---------- */
.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.contact-form[hidden] { display: none; }
.contact-form h3 { font-size: 1.35rem; margin-bottom: 20px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; }
.field-full, .field:first-child { grid-column: 1 / -1; }
.field input, .field textarea {
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-soft);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-50); }
.was-validated .field :invalid { border-color: #c62828; background: #fff5f5; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .cf-turnstile { margin-top: 16px; min-height: 65px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 16px 0 20px; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { margin: 14px 0 0; font-weight: 600; font-size: .95rem; min-height: 1.5em; }
.form-status[data-type="success"] { color: #1b7a3d; }
.form-status[data-type="error"] { color: #c62828; }

/* ---------- footer ---------- */
.site-footer { background: #060e1b; color: rgb(255 255 255 / .6); padding: 36px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner img { width: 140px; margin-bottom: 8px; }
.footer-inner p { margin: 0; }

/* ---------- cookie consent ---------- */
.link { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin-inline-start: 8px; text-decoration: underline; cursor: pointer; }
.consent {
  position: fixed; z-index: 45; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 560px;
  display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .92rem;
  animation: fade .3s ease;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--muted); }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- inner pages ---------- */
.page-head { background: var(--bg-soft); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); max-width: 24ch; margin-bottom: .3em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.tags { display: flex; gap: 6px; margin-bottom: 14px; }
.tags span { background: var(--brand-50); }

.project { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .project { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery .wide { grid-column: 1 / -1; }
.gallery a { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--bg-soft); cursor: zoom-in; }
.gallery .wide a { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery-single .wide a { aspect-ratio: auto; }
.gallery-pair { grid-template-columns: repeat(2, 1fr); }

.project-info { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 16px 20px; align-items: center; }
.facts div + div { border-top: 1px solid var(--line); }
.facts .icon { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--brand-50); color: var(--brand); }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; line-height: 1.4; }
.project-info h2 { margin: 0; }
.scope { display: grid; gap: 10px; margin-top: -10px; }
.scope li { display: flex; gap: 10px; align-items: flex-start; }
.scope .icon { color: var(--brand); margin-top: 3px; width: 1.1em; height: 1.1em; }
.project-cta { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 24px; }
.project-cta strong { font-size: 1.1rem; }
.project-cta p { color: rgb(255 255 255 / .7); margin: 6px 0 18px; font-size: .95rem; }
.project-cta .btn-primary { background: var(--accent); color: var(--navy); }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 700; }
.pager a[rel="next"] { justify-content: flex-end; text-align: end; }
.pager small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1.5px solid var(--line); transition: border-color .2s, color .2s; }
.pager a:hover .icon { border-color: var(--brand); color: var(--brand); }
.pager-all { padding: .6em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9rem; }
.pager-all:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 720px) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .pager a span { font-size: 0; }
  .pager small { font-size: .75rem; }
}

.not-found { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.not-found .lead { margin-inline: auto; }
.not-found .btn-row { justify-content: center; }
.not-found h1 { margin-inline: auto; }
.big { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--brand); margin: 0; }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(6 14 27 / .96); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .2s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(100vw - 32px, 1600px); max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: 8px; user-select: none; }
.lightbox-count { position: absolute; top: 22px; inset-inline-start: 24px; margin: 0; font-weight: 700; font-size: .9rem; color: rgb(255 255 255 / .7); }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: rgb(255 255 255 / .1);
  transition: background-color .2s;
}
.lb-btn:hover { background: rgb(255 255 255 / .2); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: 12px; inset-inline-end: 12px; }
.lb-prev { inset-inline-start: 16px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 720px) { .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- reveal on scroll (added by JS only for off-screen elements) ---------- */
.reveal-pending { opacity: 0; transform: translateY(24px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
