/* ==========================================================================
   Fajr Business Solutions — public site (Direction 1: Riyadh Night, navy & gold)
   ========================================================================== */

:root {
  --gold: #C2A15F;
  --gold-hi: #E2C68C;
  --gold-deep: #7A5C24;
  --bg: #0B1428;
  --bg-2: #13213D;
  --bg-3: #1E2F4F;
  --ink: #EDE7DB;
  --white: #FFFFFF;
  --soft: #D6D0C4;
  --muted: #B9B3A6;
  --dim: #8D8778;
  --line: rgba(237, 231, 219, .12);
  --line-2: rgba(237, 231, 219, .22);
  --paper: #F5F0E6;
  --paper-line: #D8CBB0;
  --paper-ink: #0B1428;
  --paper-muted: #4A4F5C;

  --f-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 28px;
  --r-xl: 36px;
  --container: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: #F1DDB2; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); color: var(--white); line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.latin { font-family: var(--f-display); letter-spacing: .02em; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

.skip { position: absolute; top: -60px; right: 16px; z-index: 200; background: var(--gold); color: var(--bg); padding: 10px 18px; border-radius: 999px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 136px); }

/* ---------- type helpers ---------- */
.h2 { font-weight: 300; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.22; }
.h2 strong, .h2 b { font-weight: 600; }
.h3 { font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); }
.kicker { font-family: var(--f-display); font-size: 14px; font-weight: 500; color: var(--gold); margin-bottom: 18px; }
.kicker--dark { color: var(--gold-deep); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 13px; letter-spacing: .26em; color: var(--gold); margin-bottom: 22px; }
.eyebrow__line { display: inline-block; width: 40px; height: 1px; background: currentColor; }
.prose { color: var(--soft); display: grid; gap: 1em; }
.prose--lg { font-size: 18.5px; line-height: 1.95; }
.lead { font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.6; color: var(--white); margin-bottom: 28px; }

/* split text */
.split-words .w, [data-words] .w { display: inline-block; }
/* extra room so Arabic descenders (ح ج ع ي) are not clipped by the reveal mask */
.line { display: block; overflow: hidden; padding: .06em 0 .24em; margin-bottom: -.18em; }
.line__in { display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 24px; border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: 15.5px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  will-change: transform;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(-4px); }
.btn--sm { --bh: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--lg { --bh: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: #F1DDB2; color: var(--bg); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.btn--dark { background: var(--bg); color: var(--white); }
.btn--dark:hover { background: var(--bg-2); color: var(--white); }
.btn--outline-dark { border-color: var(--bg); color: var(--bg); }
.btn--outline-dark:hover { background: var(--bg); color: var(--white); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; font-size: 15.5px; }
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(-6px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled { background: rgba(11, 20, 40, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); }
.brand img { height: 50px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; border-right: 1px solid var(--line-2); padding-right: 14px; }
.brand__text strong { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.brand__text small { font-family: var(--f-display); font-weight: 300; font-size: 12px; color: var(--muted); }
.nav__links { display: flex; gap: 6px; }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); font-size: 15px; }
.nav__link::after { content: ''; position: absolute; right: 14px; left: 14px; bottom: 8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__end { display: flex; align-items: center; gap: 14px; }
.nav__phone { color: var(--muted); font-family: var(--f-display); font-size: 14px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle .ico { width: 22px; height: 22px; }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner { display: flex; flex-direction: column; justify-content: center; gap: 40px; min-height: 100%; padding-block: 100px 40px; }
.mobile-menu__close { position: absolute; top: 20px; left: var(--gutter); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu ul a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 9vw, 56px); color: var(--white); border-bottom: 1px solid var(--line); }
.mobile-menu ul a.is-active { color: var(--gold); }
.mobile-menu .num { font-size: 13px; color: var(--gold); font-weight: 500; }
.mobile-menu__contact { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-display); }

@media (max-width: 1080px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .nav__end .btn { display: none; }
  .brand img { height: 42px; }
}

/* ==========================================================================
   Curtain (page transitions) + cursor
   ========================================================================== */
.curtain { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: grid; place-items: center; }
.curtain__panel { position: absolute; inset: 0; background: var(--bg); transform-origin: top; }
.curtain__mark { position: relative; width: 90px; height: 120px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; }
.curtain__mark .dot { fill: var(--gold); stroke: none; }
.js .curtain { visibility: visible; }
html:not(.js) .curtain { display: none; }
/* failsafe: if scripts never boot, lift the curtain and show content */
html.js:not(.js-ready) .curtain { animation: failsafe-hide 0s 3.5s forwards; }
html.js-anim:not(.js-ready) [data-reveal], html.js-anim:not(.js-ready) [data-hero-item], html.js-anim:not(.js-ready) .network { animation: failsafe-show 0s 3.5s forwards; }
@keyframes failsafe-hide { to { visibility: hidden; } }
@keyframes failsafe-show { to { opacity: 1; transform: none; } }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 140; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold);
  display: grid; place-items: center; opacity: 0;
  font-family: var(--f-display); font-size: 12px; font-weight: 600; color: var(--bg);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-label { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { position: relative; min-height: max(760px, 100svh); display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--header-h); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: 30% 40%; filter: saturate(.85); }
.hero__shade { position: absolute; inset: 0; background: rgba(11, 20, 40, .62); }
.hero__shade::after { content: ''; position: absolute; inset: auto 0 0 0; height: 280px; background: linear-gradient(to bottom, rgba(11, 20, 40, 0), var(--bg)); }
.hero__motif { position: absolute; left: -120px; top: 60px; width: 720px; height: 720px; opacity: .25; fill: none; stroke: var(--gold); stroke-width: 1; pointer-events: none; }
.hero__motif .dot { fill: var(--gold); stroke: none; }
.hero__inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px 96px; }
.hero__copy { flex: 999 1 560px; min-width: 0; }
.hero__title { font-weight: 300; font-size: clamp(46px, 6.6vw, 96px); line-height: 1.1; letter-spacing: -.01em; }
.hero__title .gold { font-weight: 600; }
.hero__sub { margin-top: 28px; max-width: 620px; font-size: 19px; line-height: 1.85; color: var(--soft); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.network { position: relative; flex: 1 1 380px; min-width: 300px; max-width: 460px; height: 400px; border-radius: 32px; background: rgba(30, 47, 79, .72); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.network svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-line { fill: none; stroke: rgba(237, 231, 219, .45); stroke-width: 1; }
.net-dot { fill: var(--gold); }
.pill { position: absolute; padding: 7px 22px; border-radius: 999px; font-family: var(--f-display); font-size: 15px; font-weight: 500; white-space: nowrap; }
.pill--solid { background: var(--white); color: var(--bg); }
.pill--gold { background: var(--gold); color: var(--bg); font-weight: 600; }
.pill--line { padding: 6px 18px; border: 1px solid rgba(237, 231, 219, .6); color: var(--ink); font-size: 12px; letter-spacing: .08em; font-weight: 400; }
.network__loc { position: absolute; bottom: 22px; left: 28px; font-size: 12px; color: var(--muted); }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-2); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- facts ---------- */
.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-block: 1px solid var(--line); }
.facts--inline { margin-bottom: clamp(40px, 6vw, 80px); }
.fact { padding: 30px 28px; border-left: 1px solid var(--line); }
.fact:last-child { border-left: 0; }
.fact__num { font-family: var(--f-display); font-weight: 300; font-size: 52px; line-height: 1; color: var(--white); direction: ltr; text-align: right; }
.fact__num.gold { color: var(--gold); }
.fact__label { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-left: 0; border-bottom: 1px solid var(--line); }
  .fact:nth-child(odd) { border-left: 1px solid var(--line); }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) { .fact { padding: 22px 14px; } .fact__num { font-size: 40px; } .fact__label { font-size: 13.5px; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 22px 0; direction: ltr; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2.6vw, 34px); color: var(--soft); white-space: nowrap; }
.marquee span.latin { color: transparent; -webkit-text-stroke: 1px rgba(237, 231, 219, .55); letter-spacing: .06em; }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head > div { flex: 1 1 480px; }
.sec-head__text { flex: 1 1 340px; max-width: 460px; color: var(--muted); }

/* ---------- about (home) ---------- */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.about__copy { flex: 1 1 420px; min-width: 0; }
.about__copy .prose { margin-top: 28px; }
.tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink); }
.about__copy .link-arrow { margin-top: 22px; }
.about__mosaic { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 210px 210px; gap: 14px; }
.mosaic__a, .mosaic__b { border-radius: var(--r-lg); overflow: hidden; }
.mosaic__a { grid-column: 1 / 4; grid-row: 1 / 3; }
.mosaic__b { grid-column: 4 / 6; grid-row: 1 / 2; }
.mosaic__a img, .mosaic__b img { width: 100%; height: 115%; object-fit: cover; }
.mosaic__b img { height: 100%; }
.mosaic__c { grid-column: 4 / 6; grid-row: 2 / 3; border-radius: var(--r-lg); background: var(--gold); color: var(--bg); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.mosaic__c .ico { width: 36px; height: 36px; stroke-width: 1.3; }
.mosaic__c strong { font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.4; }

/* ---------- method (paper) ---------- */
.method { position: relative; background: var(--paper); color: var(--paper-ink); overflow: hidden; }
.method h2 { color: var(--paper-ink); }
.method .sec-head__text { color: var(--paper-muted); }
.method__motif { position: absolute; right: -80px; bottom: -120px; width: 520px; height: 520px; fill: none; stroke: var(--paper-line); stroke-width: 1; opacity: .7; }
.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--paper-line); }
.steps__progress { position: absolute; top: -1px; right: 0; height: 2px; width: 100%; background: var(--paper-ink); transform-origin: right; transform: scaleX(0); }
.step { position: relative; padding: 36px 28px 12px; border-left: 1px solid var(--paper-line); }
.step:last-child { border-left: 0; }
.step__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.step__title { font-family: var(--f-display); font-weight: 600; font-size: 44px; line-height: 1.1; }
.step__en { font-size: 12.5px; color: var(--gold-deep); }
.step p { margin-top: 18px; font-size: 16px; color: var(--paper-muted); }
@media (max-width: 560px) { .step { border-left: 0; border-bottom: 1px solid var(--paper-line); padding-inline: 0; } }

/* ---------- services (home bento) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1180px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  min-height: 330px; padding: 32px; border-radius: var(--r-lg);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .4s var(--ease), transform .5s var(--ease);
  transform-style: preserve-3d;
}
.svc:hover { border-color: rgba(194, 161, 95, .6); color: var(--ink); }
.svc--wide { grid-column: span 2; }
@media (max-width: 700px) { .svc--wide { grid-column: auto; } }
.svc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc:hover .svc__img { transform: scale(1.06); }
.svc__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 20, 40, .96) 10%, rgba(11, 20, 40, .15) 70%); }
.svc__num { position: relative; font-size: 13px; color: var(--gold); }
.svc__icon { position: relative; color: var(--gold); }
.svc__icon .ico { width: 44px; height: 44px; stroke-width: 1.2; }
.svc__body { position: relative; margin-top: auto; display: grid; gap: 8px; }
.svc__body h3 { font-weight: 500; font-size: 24px; }
.svc--wide .svc__body h3 { font-size: 30px; }
.svc__body p { color: var(--muted); font-size: 15px; max-width: 560px; }
.svc--photo .svc__body p { color: var(--soft); }
.svc__go { position: absolute; top: 26px; left: 26px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--white); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.svc:hover .svc__go { background: var(--gold); color: var(--bg); border-color: var(--gold); transform: rotate(-45deg); }

/* ---------- project cards ---------- */
.work { border-top: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 290px; gap: 16px; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .work-grid { grid-template-columns: 1fr; } }
.work-grid .pcard--big { grid-row: span 2; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-rows: 320px; gap: 18px; }
.proj-grid--masonry .pcard--big { grid-column: span 2; }
@media (max-width: 700px) { .proj-grid--masonry .pcard--big, .work-grid .pcard--big { grid-column: auto; grid-row: auto; } }
.pcard { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--bg-2); }
.pcard__link { position: absolute; inset: 0; display: block; color: var(--white); }
.pcard__media { position: absolute; inset: 0; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pcard__empty { width: 100%; height: 100%; background: var(--bg-3); }
.pcard__link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 20, 40, .92) 0%, rgba(11, 20, 40, 0) 55%); transition: opacity .5s; }
.pcard__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pcard__cat { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(11, 20, 40, .7); border: 1px solid var(--line-2); color: var(--gold-hi); font-size: 13px; backdrop-filter: blur(6px); }
.pcard__title { font-weight: 500; font-size: 22px; transform: translateY(6px); transition: transform .5s var(--ease); }
.pcard__arrow { position: absolute; left: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--bg); transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard:hover .pcard__title { transform: translateY(0); }
.pcard:hover .pcard__arrow { transform: scale(1) rotate(0); }
.pcard--big .pcard__title { font-size: 28px; }

/* ---------- goals ---------- */
.goals { background: var(--bg-2); }
.goals__inner { max-width: 1080px; padding-block: clamp(90px, 10vw, 130px); text-align: center; }
.goals__inner .kicker { font-weight: 400; }
.goals__text { font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.6; color: var(--white); }
.goals__text .w { opacity: .18; transition: opacity .2s; }

/* ---------- clients ---------- */
.clients { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.clients li { min-height: 116px; display: grid; place-items: center; text-align: center; padding: 18px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 16px; color: var(--soft); transition: background-color .35s, color .35s; }
.clients li:hover { background: rgba(194, 161, 95, .08); color: var(--white); }
.clients li.clients__more { color: var(--gold); }
@media (max-width: 1200px) { .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clients li { min-height: 96px; font-size: 14px; } }
.clients img { max-height: 56px; max-width: 150px; object-fit: contain; filter: grayscale(1) brightness(1.8); opacity: .75; transition: filter .35s, opacity .35s; }
.clients li:hover img { filter: none; opacity: 1; }

/* ---------- CTA ---------- */
.cta-wrap { padding-top: 0; }
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--gold); color: var(--bg); padding: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.cta__motif { position: absolute; left: -60px; top: -90px; width: 420px; height: 420px; fill: none; stroke: var(--bg); stroke-width: 1; opacity: .35; }
.cta__motif .fill { fill: var(--bg); stroke: none; }
.cta__text { position: relative; flex: 1 1 460px; }
.cta__text h2 { color: var(--bg); font-weight: 300; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.2; }
.cta__text p { margin-top: 18px; max-width: 520px; font-size: 18px; color: #2A2A2A; }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn { --bh: 56px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-block: 64px 40px; }
.footer__brand img { height: 92px; width: auto; }
.footer__brand p { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 260px; }
.site-footer h3 { font-weight: 500; font-size: 15px; margin-bottom: 16px; }
.footer__links { display: grid; gap: 6px; }
.footer__links a { color: var(--muted); font-size: 15px; }
.footer__links a:hover { color: var(--white); }
.site-footer address { color: var(--muted); font-size: 15px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); transition: background-color .3s, color .3s; }
.social a:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 36px; border-top: 1px solid rgba(237, 231, 219, .08); font-size: 13px; color: var(--dim); }
.footer__bottom .latin { letter-spacing: .2em; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(60px, 9vw, 120px)); padding-bottom: clamp(60px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.page-hero.has-image { min-height: 620px; display: flex; align-items: flex-end; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 120%; object-fit: cover; filter: saturate(.85); }
.page-hero.has-image::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--bg) 4%, rgba(11, 20, 40, .7) 50%, rgba(11, 20, 40, .55)); }
.page-hero__motif { position: absolute; left: -160px; top: 20px; width: 640px; height: 640px; z-index: 1; fill: none; stroke: var(--gold); stroke-width: 1; opacity: .22; pointer-events: none; }
.page-hero__inner { position: relative; z-index: 2; width: 100%; }
.page-hero__title { font-weight: 300; font-size: clamp(42px, 6vw, 84px); line-height: 1.12; max-width: 14ch; }
.page-hero__title .gold { font-weight: 600; }
.page-hero__text { margin-top: 24px; max-width: 620px; font-size: 19px; color: var(--soft); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--ink); }

/* about page */
.about-intro { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.about-intro__side { flex: 1 1 240px; }
.about-intro__body { flex: 999 1 560px; min-width: 0; display: grid; gap: 28px; align-content: start; }
.big-num { font-family: var(--f-display); font-weight: 200; font-size: clamp(110px, 14vw, 200px); line-height: .9; color: var(--white); display: flex; align-items: flex-start; direction: ltr; justify-content: flex-end; }
.big-num span:first-child { color: var(--gold); font-size: .5em; margin-top: .12em; }

.timeline { position: relative; display: grid; gap: 28px; padding-right: 56px; }
.timeline__rail { position: absolute; top: 8px; bottom: 8px; right: 15px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline__fill { position: absolute; inset: 0 0 auto 0; height: 100%; background: var(--gold); transform-origin: top; transform: scaleY(0); }
.timeline__item { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 24px; align-items: start; }
.timeline__dot { position: absolute; right: -48px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.timeline__num { font-weight: 200; font-size: 56px; line-height: 1; color: var(--gold); padding-top: 12px; }
.timeline__card { padding: 28px 30px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.timeline__card h3 { font-weight: 600; font-size: 30px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.timeline__card small { font-size: 12.5px; font-weight: 400; color: var(--gold); letter-spacing: .12em; }
.timeline__card p { margin-top: 10px; color: var(--muted); }
@media (max-width: 600px) { .timeline__item { grid-template-columns: 1fr; gap: 6px; } .timeline__num { font-size: 40px; } }

.svc-list { border-top: 1px solid var(--line); }
.svc-list a { display: flex; align-items: center; gap: 22px; padding: 22px 8px; border-bottom: 1px solid var(--line); color: var(--white); transition: background-color .3s, padding .4s var(--ease); }
.svc-list a:hover { background: rgba(194, 161, 95, .06); padding-right: 22px; }
.svc-list .num { font-size: 13px; color: var(--gold); width: 28px; }
.svc-list__icon { color: var(--gold); }
.svc-list__icon .ico { width: 28px; height: 28px; stroke-width: 1.3; }
.svc-list__title { flex: 1; font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 400; }
.svc-list__go { color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.svc-list a:hover .svc-list__go { transform: translateX(-8px); color: var(--gold); }

/* services page rows */
.svc-rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.svc-row { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; }
.svc-row.is-flip { flex-direction: row-reverse; }
.svc-row__media { flex: 1 1 460px; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); display: block; }
.svc-row__media img { width: 100%; height: 115%; object-fit: cover; }
.svc-row__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); }
.svc-row__ph .ico { width: 96px; height: 96px; stroke-width: .8; }
.svc-row__body { flex: 1 1 380px; display: grid; gap: 16px; align-content: start; }
.svc-row__num { font-size: 72px; font-weight: 200; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.svc-row__icon { color: var(--gold); }
.svc-row__icon .ico { width: 34px; height: 34px; stroke-width: 1.3; }
.svc-row__body p { color: var(--soft); max-width: 480px; }

/* detail layout (service + project) */
.detail { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.detail__body { flex: 999 1 560px; min-width: 0; display: grid; gap: 32px; justify-items: start; }
.detail__side { flex: 1 1 300px; display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { padding: 28px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.side-card h2 { font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.side-card ul { display: grid; gap: 2px; }
.side-card ul a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--soft); font-size: 15px; }
.side-card ul a .ico { color: var(--gold); }
.side-card ul a:hover, .side-card ul a.is-active { background: rgba(194, 161, 95, .1); color: var(--white); }
.side-card--gold { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.side-card--gold h2 { color: var(--bg); font-size: 22px; margin-bottom: 6px; }
.side-card__phone { display: inline-block; margin-top: 14px; font-family: var(--f-display); font-size: 24px; font-weight: 600; color: var(--bg); }
.side-card__phone:hover { color: var(--bg-2); }
.meta { padding: 8px 28px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.meta > div:last-child { border-bottom: 0; }
.meta dt { color: var(--muted); font-size: 14px; }
.meta dd { margin: 0; color: var(--white); font-weight: 500; text-align: left; }
@media (max-width: 900px) { .detail__side { position: static; } }

.next-link { display: flex; align-items: center; gap: 24px; padding-block: 48px; margin-bottom: clamp(60px, 8vw, 110px); border-block: 1px solid var(--line); color: var(--white); }
.next-link__label { font-size: 14px; color: var(--gold); }
.next-link__title { flex: 1; font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 4vw, 52px); }
.next-link__go { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .4s var(--ease); }
.next-link:hover { color: var(--white); }
.next-link:hover .next-link__go { background: var(--gold); color: var(--bg); transform: translateX(-8px); }

/* projects page */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; font-size: 15px; transition: background-color .3s, color .3s, border-color .3s; }
.filter sup { font-family: var(--f-display); font-size: 11px; color: var(--gold); margin-right: 4px; }
.filter:hover { border-color: var(--gold); }
.filter.is-active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.filter.is-active sup { color: var(--bg); }
.pcard.is-hidden { display: none; }
.empty { color: var(--muted); padding: 40px 0; }

/* project page */
.proj-hero { position: relative; min-height: max(640px, 88svh); display: flex; align-items: flex-end; overflow: hidden; }
.proj-hero__media { position: absolute; inset: 0; }
.proj-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.proj-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(11, 20, 40, .55) 45%, rgba(11, 20, 40, .35)); }
.proj-hero__inner { position: relative; z-index: 2; padding-block: 140px 70px; display: grid; justify-items: start; gap: 18px; }
.proj-hero__title { font-weight: 300; font-size: clamp(42px, 6.4vw, 92px); line-height: 1.1; max-width: 16ch; }

.gallery-wrap { padding-bottom: clamp(80px, 10vw, 130px); }
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery__item { margin: 0 0 16px; break-inside: avoid; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); border-radius: 18px; overflow: hidden; cursor: zoom-in; }
.gallery__btn img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__item figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(5, 10, 22, .96); display: grid; place-items: center; padding: 60px 80px; }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lightbox__fig img { max-width: min(1400px, 100%); max-height: calc(100svh - 160px); object-fit: contain; border-radius: 12px; }
.lightbox__fig figcaption { color: var(--soft); font-size: 15px; }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(19, 33, 61, .8); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.lightbox__close { top: 20px; left: 20px; }
.lightbox__prev { right: 20px; top: 50%; margin-top: -26px; }
.lightbox__next { left: 20px; top: 50%; margin-top: -26px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .lightbox { padding: 70px 12px; } .lightbox__nav { top: auto; bottom: 16px; margin: 0; } }

.next-project { position: relative; display: block; height: clamp(320px, 50vw, 520px); overflow: hidden; color: var(--white); }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.next-project:hover img { transform: scale(1.06); }
.next-project__shade { position: absolute; inset: 0; background: rgba(11, 20, 40, .7); transition: background-color .5s; }
.next-project:hover .next-project__shade { background: rgba(11, 20, 40, .5); }
.next-project__inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.next-project__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 6vw, 84px); line-height: 1.1; }
.next-project:hover { color: var(--white); }

/* contact page */
.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact__info { flex: 1 1 320px; display: grid; gap: 14px; }
.info-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); color: var(--white); transition: border-color .3s, transform .4s var(--ease); }
a.info-card:hover { border-color: rgba(194, 161, 95, .55); color: var(--white); transform: translateX(-4px); }
.info-card__icon { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 16px; display: grid; place-items: center; background: rgba(194, 161, 95, .12); color: var(--gold); }
.info-card__icon .ico { width: 24px; height: 24px; }
.info-card small { display: block; font-size: 13px; color: var(--muted); }
.info-card strong { font-family: var(--f-display); font-weight: 500; font-size: 19px; }
.info-card strong.addr { font-family: var(--f-body); font-size: 15px; font-weight: 400; line-height: 1.7; }
.contact__form-wrap { flex: 999 1 560px; min-width: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.form__title { font-weight: 500; font-size: 28px; margin-bottom: 26px; }
.form__error { margin-bottom: 20px; padding: 14px 18px; border-radius: 14px; background: rgba(220, 90, 70, .14); border: 1px solid rgba(220, 90, 70, .5); color: #FFD7CF; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--soft); }
.field label span { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--white);
  font: inherit; font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(194, 161, 95, .18); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field select option { background: var(--bg); }
.field input[type="date"] { color-scheme: dark; }
.form__hint { margin: 18px 0 24px; font-size: 13px; color: var(--muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sent { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 30px 0; }
.sent h2 { font-size: 30px; font-weight: 500; }
.sent p { color: var(--soft); margin-bottom: 10px; }
.sent__check { width: 84px; height: 84px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sent__check circle, .sent__check path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.1s var(--ease) forwards; }
.sent__check path { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 404 */
.notfound { position: relative; min-height: 80svh; display: grid; place-items: center; overflow: hidden; padding-top: var(--header-h); }
.notfound__motif { position: absolute; width: 700px; height: 700px; fill: none; stroke: var(--gold); opacity: .2; }
.notfound__inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 16px; }
.notfound__code { font-weight: 200; font-size: clamp(110px, 20vw, 220px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }

/* ==========================================================================
   Motion defaults — elements start hidden only when JS + GSAP are running
   ========================================================================== */
.js-anim [data-reveal] { opacity: 0; transform: translateY(40px); }
.js-anim [data-reveal-img] { clip-path: inset(100% 0 0 0); }
.js-anim [data-hero-item] { opacity: 0; transform: translateY(24px); }
.js-anim .hero__title .line__in, .js-anim .split-lines .line__in { transform: translateY(110%); }
.js-anim .network { opacity: 0; }

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