/* =========================================================
   ريادة الشرقية — Design System
   Gold #a58f34 · Navy #171645
   ========================================================= */

:root {
  --gold: #a58f34;
  --gold-2: #c9b25a;
  --gold-3: #e8d99a;
  --navy: #171645;
  --navy-2: #0f0e33;
  --navy-3: #24236a;
  --ink: #17163a;
  --muted: #5d5c7a;
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --white: #ffffff;
  --line: rgba(23, 22, 69, 0.09);
  --line-2: rgba(23, 22, 69, 0.16);
  --line-light: rgba(255, 255, 255, 0.08);

  --grad-dark: linear-gradient(100deg, var(--navy) 0%, #34337c 38%, var(--gold) 72%, var(--navy) 100%);
  --grad-light: linear-gradient(100deg, #ffffff 0%, var(--gold-3) 35%, var(--gold) 65%, #ffffff 100%);
  --grad-gold: linear-gradient(135deg, #c9b25a 0%, #a58f34 55%, #8a7629 100%);

  --f-head: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;

  --r-xl: 34px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --grid-size: 64px;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--gold); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Grid texture ---------- */
.grid-tex { position: relative; isolation: isolate; }
.grid-tex::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.grid-tex--dark::before {
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-size: 14px; font-weight: 500;
  color: var(--gold); letter-spacing: 0.02em;
  padding: 7px 16px 7px 14px; border-radius: 100px;
  border: 1px solid rgba(165, 143, 52, 0.35);
  background: rgba(165, 143, 52, 0.07);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; background: var(--gold);
  transform: rotate(45deg); box-shadow: 0 0 0 4px rgba(165, 143, 52, 0.18);
}
.eyebrow--light { color: var(--gold-3); border-color: rgba(232, 217, 154, 0.3); background: rgba(255, 255, 255, 0.05); }

.grad, .grad-light {
  background-image: var(--grad-dark);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 9s var(--ease-io) infinite alternate;
  padding-bottom: 0.08em;
}
.grad-light { background-image: var(--grad-light); }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.display { font-size: clamp(42px, 7.2vw, 104px); font-weight: 700; line-height: 1.12; }
.h2 { font-size: clamp(34px, 5vw, 68px); font-weight: 700; line-height: 1.2; }
.h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 640px; }
.on-dark .lead, .lead--light { color: rgba(255, 255, 255, 0.72); }

.sec-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head--center { justify-items: center; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
.sec-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }
@media (max-width: 860px) { .sec-head--split { grid-template-columns: 1fr; } }

/* split-line reveal */
[data-split] .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
[data-split] .line > span { display: inline-block; transform: translateY(110%) rotate(2deg); transform-origin: right bottom; transition: transform 1.2s var(--ease); }
[data-split].is-in .line > span { transform: none; }
[data-split].is-in .line:nth-child(2) > span { transition-delay: 0.1s; }
[data-split].is-in .line:nth-child(3) > span { transition-delay: 0.2s; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding-inline: 28px 10px; border-radius: 100px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-head); font-weight: 500; font-size: 15.5px;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.4s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-gold); border-radius: inherit;
  transform: translateY(102%); transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { box-shadow: 0 18px 40px -14px rgba(165, 143, 52, 0.65); }
.btn__ico {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #fff; flex: none; overflow: hidden;
  transition: background 0.4s, color 0.4s;
}
.btn:hover .btn__ico { background: #fff; color: var(--navy); }
.btn__ico svg { width: 16px; height: 16px; transition: transform 0.55s var(--ease); }
.btn:hover .btn__ico svg { animation: arrowRun 0.6s var(--ease); }
@keyframes arrowRun { 0% { transform: none; } 49% { transform: translate(-140%, -140%); } 50% { transform: translate(140%, 140%); } 100% { transform: none; } }

.btn--gold { --bg: var(--gold); }
.btn--gold .btn__ico { background: var(--navy); }
.btn--gold::before { background: var(--navy); }
.btn--gold:hover { box-shadow: 0 18px 40px -14px rgba(23, 22, 69, 0.6); }
.btn--gold:hover .btn__ico { background: var(--gold); color: #fff; }

.btn--ghost { --bg: transparent; --fg: var(--navy); border: 1px solid var(--line-2); padding-inline: 26px; }
.btn--ghost:hover { color: #fff; border-color: transparent; }
.btn--ghost-light { --bg: rgba(255, 255, 255, 0.06); --fg: #fff; border: 1px solid rgba(255, 255, 255, 0.18); padding-inline: 26px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Loader & page transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  display: grid; place-items: center;
}
.curtain__panel {
  position: absolute; inset: 0; background: var(--navy-2);
  transform-origin: top; transition: transform 1s var(--ease-io);
}
.curtain__panel:nth-child(2) { background: var(--gold); transition-delay: 0.08s; transform-origin: top; }
.curtain__logo { position: relative; width: 130px; opacity: 1; transition: opacity 0.5s, transform 0.8s var(--ease); }
.curtain__logo img { width: 100%; }
.curtain__bar { position: absolute; bottom: -22px; inset-inline: 0; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; border-radius: 2px; }
.curtain__bar::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: right; animation: load 1s var(--ease-io) forwards; }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.curtain__panel:nth-child(2) { z-index: -1; }
body.is-loaded .curtain__panel { transform: scaleY(0); }
body.is-loaded .curtain__panel:nth-child(1) { transition-delay: 0.1s; }
body.is-loaded .curtain__panel:nth-child(2) { transition-delay: 0.25s; }
body.is-loaded .curtain__logo { opacity: 0; transform: translateY(-20px); }
body.is-leaving .curtain__panel { transform: scaleY(1); transform-origin: bottom; transition-delay: 0s; }
body.is-leaving .curtain__panel:nth-child(1) { transition-delay: 0.12s; }
body.is-leaving .curtain { pointer-events: all; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 300; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad-gold); transform-origin: right; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 900; pointer-events: none; border-radius: 50%; display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-dot { display: block; }
}
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(165, 143, 52, 0.7); transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, border-color 0.35s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor.is-hover { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(165, 143, 52, 0.12); border-color: transparent; }
.cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  padding-top: 26px; transition: padding 0.5s var(--ease), transform 0.6s var(--ease);
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 70px; padding-inline: 22px 12px; border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s, height 0.5s var(--ease);
}
.header.is-scrolled { padding-top: 12px; }
.header.is-scrolled .header__bar {
  height: 64px; background: rgba(255, 255, 255, 0.78);
  border-color: rgba(23, 22, 69, 0.07);
  box-shadow: 0 20px 50px -30px rgba(23, 22, 69, 0.35);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.header.is-hidden { transform: translateY(-120%); }
/* the new logo is stacked (about 1.15 : 1), so the box is tall rather than wide */
.brand { position: relative; display: block; width: 78px; height: 66px; flex: none; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.4s; }
.brand .brand__dark { opacity: 0; }
.header.is-scrolled .brand__dark, .header.is-solid .brand__dark { opacity: 1; }
.header.is-scrolled .brand__light, .header.is-solid .brand__light { opacity: 0; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; font-family: var(--f-head); font-size: 14.5px; font-weight: 500;
  color: rgba(255, 255, 255, 0.82); padding: 9px 16px; border-radius: 100px;
  transition: color 0.3s, background 0.3s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a.is-active { color: #fff; }
.nav a.is-active::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 5px; height: 5px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.header.is-scrolled .nav a, .header.is-solid .nav a { color: var(--muted); }
.header.is-scrolled .nav a:hover, .header.is-scrolled .nav a.is-active { color: var(--navy); background: rgba(23, 22, 69, 0.05); }
.header__cta { height: 48px; font-size: 14.5px; padding-inline: 22px 7px; }
.header__cta .btn__ico { width: 34px; height: 34px; }

.burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.5s var(--ease), top 0.5s var(--ease), opacity 0.3s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 23px; right: 20px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 190; background: var(--navy-2);
  display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 40px;
  clip-path: circle(0% at 10% 6%); transition: clip-path 0.9s var(--ease-io);
  visibility: hidden;
}
body.menu-open .mnav { clip-path: circle(150% at 10% 6%); visibility: visible; }
.mnav a.mnav__link { display: block; overflow: hidden; font-family: var(--f-head); font-size: clamp(34px, 9vw, 56px); font-weight: 600; color: #fff; line-height: 1.5; }
.mnav a.mnav__link span { display: inline-block; transform: translateY(110%); transition: transform 0.8s var(--ease); }
body.menu-open .mnav a.mnav__link span { transform: none; }
body.menu-open .mnav a:nth-child(2) span { transition-delay: 0.06s; }
body.menu-open .mnav a:nth-child(3) span { transition-delay: 0.12s; }
body.menu-open .mnav a:nth-child(4) span { transition-delay: 0.18s; }
.mnav a.mnav__link.is-active span { color: var(--gold-2); }
.mnav__foot { margin-top: 40px; color: rgba(255, 255, 255, 0.6); font-size: 15px; display: grid; gap: 4px; opacity: 0; transition: opacity 0.6s 0.3s; }
body.menu-open .mnav__foot { opacity: 1; }
.mnav__foot span { text-align: right; }
.header.menu-open .brand__light { opacity: 1 !important; }

@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header__bar { padding-inline: 18px 10px; height: 64px; }
  .brand { width: 64px; height: 54px; }
  body.menu-open .header .header__bar { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
  body.menu-open .header .brand__dark { opacity: 0; }
  body.menu-open .header .brand__light { opacity: 1; }
}

/* ---------- Hero (shared shell) ---------- */
.hero { padding: 12px; }
.hero__card {
  position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 50% 108%, rgba(165, 143, 52, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(80, 78, 170, 0.35), transparent 70%),
    linear-gradient(180deg, #1c1b56 0%, var(--navy) 45%, var(--navy-2) 100%);
  color: #fff;
}
.hero__card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.05'/></svg>");
  mix-blend-mode: overlay;
}
.hero__grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size); background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 20%, transparent 80%);
  animation: gridDrift 30s linear infinite;
}
/* lite: drift the grid with transform (compositor only) instead of repainting background-position every frame */
.hero__grid { top: calc(var(--grid-size) * -1); will-change: transform; }
@keyframes gridDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, var(--grid-size), 0); } }

/* floating squares */
.shape { position: absolute; z-index: -1; pointer-events: none; border: 1px solid rgba(201, 178, 90, 0.45); }
.shape--fill { background: linear-gradient(135deg, rgba(201, 178, 90, 0.35), rgba(165, 143, 52, 0.05)); border-color: rgba(201, 178, 90, 0.25); }
.shape--1 { width: 46px; height: 46px; top: 22%; right: 9%; animation: float 9s ease-in-out infinite; }
.shape--2 { width: 22px; height: 22px; top: 36%; left: 12%; animation: float 7s ease-in-out -2s infinite; }
.shape--3 { width: 80px; height: 80px; top: 14%; left: 22%; animation: float 12s ease-in-out -5s infinite; opacity: .5; }
.shape--4 { width: 14px; height: 14px; top: 52%; right: 20%; animation: float 6s ease-in-out -1s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(45deg); }
}

/* ---------- Home hero ---------- */
.hhero__card { min-height: max(calc(100svh - 24px), 820px); display: flex; flex-direction: column; padding-top: 118px; }
.hhero__content { text-align: center; display: grid; justify-items: center; gap: 18px; position: relative; z-index: 2; }
.hhero__content .btn-row { margin-top: 6px; }
.hhero__title { font-size: clamp(40px, 5vw, 76px); line-height: 1.15; font-weight: 700; }
.hhero__tag { font-family: var(--f-head); font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); color: var(--gold-3); }
.hhero__lead { font-size: clamp(15.5px, 1.25vw, 18px); color: rgba(255, 255, 255, 0.7); max-width: 680px; }
.hhero__stage { position: relative; flex: 1; min-height: 330px; margin-top: -10px; }
.hhero__stage .ring { bottom: 64px; }
@media (max-width: 600px) {
  .hhero__card { min-height: auto; padding-top: 108px; }
  .hhero__stage { flex: none; min-height: 300px; margin-top: 8px; }
  .hhero__tag { font-size: 16px; }
  .hhero__lead { font-size: 15px; line-height: 1.8; }
  .hhero__content .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .ring__card--brand, .ring__card--navy { padding: 12px; }
  .ring__card--brand b, .ring__card--navy b { font-size: 28px; }
  .ring__card--brand span, .ring__card--navy span { font-size: 12px; line-height: 1.5; }
  .ring__mini { width: 28px; height: 28px; border-radius: 8px; }
  .ring__card figcaption { font-size: 11px; bottom: 8px; inset-inline: 9px; line-height: 1.4; }
}
.hhero__trust { position: absolute; bottom: 22px; inset-inline: 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.75); z-index: 3; display: grid; justify-items: center; gap: 6px; }
.hhero__trust .stars { display: flex; gap: 6px; }
.hhero__trust .stars i { width: 9px; height: 9px; background: var(--gold-2); transform: rotate(45deg); display: block; animation: twinkle 2.4s ease-in-out infinite; }
.hhero__trust .stars i:nth-child(2) { animation-delay: 0.2s; }
.hhero__trust .stars i:nth-child(3) { animation-delay: 0.4s; }
.hhero__trust .stars i:nth-child(4) { animation-delay: 0.6s; }
.hhero__trust .stars i:nth-child(5) { animation-delay: 0.8s; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: rotate(45deg) scale(1); } 50% { opacity: 0.4; transform: rotate(45deg) scale(0.7); } }

/* hero intro animation */
.intro { opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
body.is-ready .intro { opacity: 1; transform: none; filter: none; }
body.is-ready .intro.d1 { transition-delay: 0.15s; }
body.is-ready .intro.d2 { transition-delay: 0.3s; }
body.is-ready .intro.d3 { transition-delay: 0.45s; }
body.is-ready .intro.d4 { transition-delay: 0.6s; }
body.is-ready .intro.d5 { transition-delay: 0.8s; }

/* 3D ring */
.ring { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 40%; display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring.is-drag { cursor: grabbing; }
.ring__track { position: relative; width: var(--cw); height: var(--ch); transform-style: preserve-3d; will-change: transform; }
.ring__card {
  position: absolute; inset: 0; margin: 0; border-radius: 18px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  background: var(--navy-3);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ring__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 0.8s var(--ease); }
.ring__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15, 14, 51, 0.85)); }
.ring__card figcaption { position: absolute; bottom: 12px; inset-inline: 14px; z-index: 2; font-family: var(--f-head); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.ring__card figcaption::before { content: ""; width: 6px; height: 6px; background: var(--gold-2); transform: rotate(45deg); flex: none; }
.ring__card--brand { background: linear-gradient(150deg, var(--gold) 0%, #7d6b22 100%); display: grid; align-content: space-between; padding: 18px; }
.ring__card--brand::after { display: none; }
.ring__card--brand b { font-family: var(--f-head); font-size: 40px; line-height: 1; }
.ring__card--brand span { font-family: var(--f-head); font-size: 14px; }
.ring__card--navy { background: #fff; color: var(--navy); display: grid; align-content: space-between; padding: 18px; }
.ring__card--navy::after { display: none; }
.ring__card--navy b { font-family: var(--f-head); font-size: 40px; line-height: 1; background: var(--grad-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ring__card--navy span { font-family: var(--f-head); font-size: 14px; }
.ring__mini { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); }
.ring__card--navy .ring__mini { background: rgba(165, 143, 52, 0.15); color: var(--gold); }
.ring__mini svg { width: 18px; height: 18px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 34px; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 56px; padding-inline-end: 56px; direction: rtl; }
.marquee__item { display: flex; align-items: center; gap: 14px; font-family: var(--f-head); font-weight: 600; font-size: clamp(18px, 2vw, 24px); color: rgba(23, 22, 69, 0.38); white-space: nowrap; transition: color 0.3s; }
.marquee__item:hover { color: var(--navy); }
.marquee__item svg { width: 26px; height: 26px; color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Reveal system ---------- */
[data-reveal] { opacity: 0; transform: translateY(46px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="blur"] { transform: translateY(20px); filter: blur(10px); transition-property: opacity, transform, filter; }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-tilt].is-in { transition: opacity 1.1s var(--ease), transform 0.5s var(--ease), box-shadow 0.6s var(--ease); }

.mask { overflow: hidden; clip-path: inset(18% 12% 18% 12% round var(--r-lg)); transition: clip-path 1.5s var(--ease-io); }
.mask > img, .mask > .mask__inner { transform: scale(1.3); transition: transform 2s var(--ease); }
.mask.is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.mask.is-in > img, .mask.is-in > .mask__inner { transform: scale(1); }

/* corner ticks */
.ticks { position: relative; }
.ticks > i { position: absolute; width: 14px; height: 14px; border-color: var(--gold); border-style: solid; border-width: 0; pointer-events: none; transition: transform 0.5s var(--ease); }
.ticks > i:nth-of-type(1) { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.ticks > i:nth-of-type(2) { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.ticks > i:nth-of-type(3) { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.ticks > i:nth-of-type(4) { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.ticks:hover > i:nth-of-type(1) { transform: translate(6px, -6px); }
.ticks:hover > i:nth-of-type(2) { transform: translate(-6px, -6px); }
.ticks:hover > i:nth-of-type(3) { transform: translate(6px, 6px); }
.ticks:hover > i:nth-of-type(4) { transform: translate(-6px, 6px); }

/* ---------- About (home) ---------- */
.about-card { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #fff; min-height: 640px; display: grid; grid-template-columns: 1fr 1fr; isolation: isolate; border: 1px solid var(--line); }
.about-card__media { position: absolute; inset: 0; z-index: -1; }
.about-card__media.mask { clip-path: inset(0 0 0 100% round 0); }
.about-card__media.mask.is-in { clip-path: inset(0 0 0 0 round 0); }
.about-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.about-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,.92) 36%, rgba(255,255,255,0) 62%); }
.about-card__body { padding: clamp(36px, 5vw, 76px); display: grid; align-content: center; justify-items: start; gap: 24px; }
.about-card__body p { color: var(--muted); }
.about-card__chip { position: absolute; bottom: 30px; left: 30px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 14px 18px; border-radius: 18px; display: flex; gap: 14px; align-items: center; box-shadow: 0 20px 40px -20px rgba(23, 22, 69, .4); animation: float2 6s ease-in-out infinite; }
.about-card__chip b { font-family: var(--f-head); font-size: 30px; line-height: 1; color: var(--navy); }
.about-card__chip span { font-size: 13px; color: var(--muted); line-height: 1.4; }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 860px) {
  .about-card { grid-template-columns: 1fr; min-height: 0; }
  .about-card__media { position: relative; height: 300px; z-index: 0; }
  .about-card__media::after { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 40%); }
  .about-card__chip { bottom: auto; top: 220px; left: 18px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stat { position: relative; padding: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 44px); display: grid; gap: 10px; }
.stat + .stat { border-inline-start: 1px solid var(--line-2); }
.stat__num { font-family: var(--f-head); font-weight: 700; font-size: clamp(64px, 9vw, 132px); line-height: 1; direction: ltr; text-align: right; }
.stat__label { font-family: var(--f-head); font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; }
.stat__sub { color: var(--muted); font-size: 15px; }
.stat__bar { height: 2px; background: var(--line); overflow: hidden; margin-top: 10px; }
.stat__bar span { display: block; height: 100%; background: var(--grad-gold); transform: scaleX(0); transform-origin: right; transition: transform 2s var(--ease) 0.3s; }
.stat.is-in .stat__bar span { transform: scaleX(var(--p, 1)); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line-2); } }

/* ---------- Services list ---------- */
.svc-list { border-top: 1px solid var(--line-2); }
.svc {
  position: relative; display: grid; grid-template-columns: 90px 64px 1fr 1.1fr 56px; gap: 24px; align-items: center;
  padding: 30px 20px; border-bottom: 1px solid var(--line-2); isolation: isolate; overflow: hidden;
  transition: color 0.5s var(--ease), padding 0.6s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.svc:hover::before { transform: scaleY(1); }
.svc:hover { color: #fff; padding-inline: 34px; }
.svc__num { font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--gold); direction: ltr; text-align: right; }
.svc__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(165, 143, 52, 0.1); color: var(--gold); transition: background 0.5s, color 0.5s, transform 0.6s var(--ease); }
.svc__ico svg { width: 28px; height: 28px; }
.svc:hover .svc__ico { background: var(--gold); color: #fff; transform: rotate(-8deg) scale(1.05); }
.svc__title { font-size: clamp(21px, 2.2vw, 30px); font-weight: 600; }
.svc__desc { color: var(--muted); font-size: 15.5px; transition: color 0.5s; }
.svc:hover .svc__desc { color: rgba(255, 255, 255, 0.7); }
.svc__arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.5s, border-color 0.5s, transform 0.6s var(--ease); }
.svc__arrow svg { width: 18px; height: 18px; }
.svc:hover .svc__arrow { background: var(--gold); border-color: var(--gold); transform: rotate(-45deg); color: #fff; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 56px 1fr 44px; grid-template-areas: "ico title arrow" "ico desc desc"; gap: 6px 16px; padding: 24px 6px; }
  .svc:hover { padding-inline: 14px; }
  .svc__num { display: none; }
  .svc__ico { grid-area: ico; align-self: start; width: 50px; height: 50px; }
  .svc__title { grid-area: title; }
  .svc__desc { grid-area: desc; }
  .svc__arrow { grid-area: arrow; width: 42px; height: 42px; }
}

.preview { position: fixed; top: 0; left: 0; z-index: 150; width: 300px; height: 380px; pointer-events: none; border-radius: 20px; overflow: hidden; opacity: 0; transform: scale(0.6) rotate(-6deg); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.preview.is-on { opacity: 1; transform: scale(1) rotate(-4deg); }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity 0.5s, transform 0.9s var(--ease); }
.preview img.is-on { opacity: 1; transform: scale(1); }
@media (hover: none), (max-width: 900px) { .preview { display: none; } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
@media (max-width: 960px) { .why { grid-template-columns: 1fr; } }
.ba { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 560px; background: #fff; border: 1px solid var(--line); user-select: none; -webkit-user-select: none; touch-action: pan-y; --pos: 50%; cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 20px rgba(0,0,0,.2); }
.ba__knob { position: absolute; top: 50%; left: var(--pos); width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(165, 143, 52, 0.25), 0 20px 40px -10px rgba(0,0,0,.4); transition: transform 0.4s var(--ease); }
.ba:hover .ba__knob { transform: scale(1.08); }
.ba__knob svg { width: 28px; height: 28px; }
.ba__tag { position: absolute; top: 22px; padding: 8px 16px; border-radius: 100px; font-family: var(--f-head); font-size: 13.5px; font-weight: 500; background: rgba(23, 22, 69, 0.85); color: #fff; backdrop-filter: blur(6px); }
.ba__tag--before { left: 22px; }
.ba__tag--after { right: 22px; background: var(--gold); }
.ba__hint { position: absolute; bottom: 22px; inset-inline: 22px; text-align: center; font-size: 14px; color: var(--navy); background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border-radius: 100px; padding: 8px 16px; width: fit-content; margin-inline: auto; }
@media (max-width: 600px) { .ba { min-height: 360px; } }

.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .feat-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat-grid, .feat-grid--4 { grid-template-columns: 1fr; } }
.feat {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--r-lg); padding: 30px 26px; background: #fff; border: 1px solid var(--line);
  display: grid; gap: 14px; align-content: start; overflow: hidden; isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.feat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(165, 143, 52, 0.16), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.feat:hover::before { opacity: 1; }
.feat:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(23, 22, 69, 0.35); }
.feat__ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); transition: transform 0.6s var(--ease), background .4s; }
.feat__ico svg { width: 28px; height: 28px; }
.feat:hover .feat__ico { transform: rotate(-10deg) scale(1.08); background: var(--gold); color: #fff; }
.feat h3 { font-size: 21px; font-weight: 600; }
.feat p { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.feat__n { position: absolute; top: 20px; left: 24px; font-family: var(--f-head); font-size: 13px; color: rgba(23,22,69,.25); direction: ltr; }
.feat--dark { background: var(--navy); color: #fff; border-color: transparent; }
.feat--dark p { color: rgba(255, 255, 255, 0.68); }
.feat--dark .feat__ico { background: var(--gold); color: #fff; }
.feat--dark .feat__n { color: rgba(255,255,255,.3); }

/* ---------- Projects horizontal ---------- */
.hs { position: relative; }
.hs__sticky.grid-tex { position: sticky; }
.hs__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hs__track { display: flex; gap: 24px; padding-inline: var(--gutter); will-change: transform; width: max-content; }
.pcard { position: relative; flex: none; height: min(56vh, 560px); width: min(42vh, 420px); border-radius: var(--r-lg); overflow: hidden; background: var(--navy); color: #fff; }
.pcard--wide { width: min(84vh, 800px); }
.pcard img { position: absolute; inset: -6% ; width: 112%; height: 112%; object-fit: cover; transition: transform 1.2s var(--ease); will-change: transform; }
.pcard:hover img { transform: scale(1.06); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15, 14, 51, 0.9)); }
.pcard__body { position: absolute; bottom: 0; inset-inline: 0; padding: 26px; z-index: 2; display: grid; gap: 8px; }
.pcard__tag { justify-self: start; font-size: 12.5px; font-family: var(--f-head); padding: 5px 12px; border-radius: 100px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); }
.pcard h3 { font-size: 22px; font-weight: 600; }
.pcard__num { position: absolute; top: 20px; left: 22px; z-index: 2; font-family: var(--f-head); font-size: 14px; opacity: .8; direction: ltr; }
.hs__head { margin-bottom: 40px; }
.hs__bar { margin-top: 36px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hs__bar span { display: block; height: 100%; background: var(--grad-gold); transform-origin: right; transform: scaleX(0); }
@media (max-width: 900px) {
  .hs { height: auto !important; }
  .hs__sticky { position: relative; height: auto; padding-block: 80px; }
  .hs__track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; transform: none !important; scrollbar-width: none; }
  .hs__track::-webkit-scrollbar { display: none; }
  .pcard { scroll-snap-align: center; width: 78vw; height: auto; aspect-ratio: 3 / 4; }
  .pcard--wide { width: 86vw; aspect-ratio: 4 / 5; }
  .hs__bar { display: none; }
}

/* ---------- Trust teaser ---------- */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }
.trust__visual { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.trust__frame { position: relative; width: 62%; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(23, 22, 69, 0.6); transform: rotate(-5deg); border: 8px solid #fff; transition: transform 0.8s var(--ease); }
.trust__frame img { width: 100%; height: 100%; object-fit: cover; }
.trust__visual:hover .trust__frame { transform: rotate(0deg) scale(1.03); }
.trust__frame--back { position: absolute; width: 50%; transform: rotate(9deg) translate(-40%, 6%); opacity: .9; z-index: -1; }
.trust__visual:hover .trust__frame--back { transform: rotate(12deg) translate(-48%, 4%); }
.trust__badge { position: absolute; bottom: 12%; right: 4%; background: var(--navy); color: #fff; border-radius: 20px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 30px 60px -20px rgba(23,22,69,.6); animation: float2 7s ease-in-out infinite; }
.trust__badge .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); display: grid; place-items: center; }
.trust__badge .ico svg { width: 22px; height: 22px; }
.trust__badge b { display: block; font-family: var(--f-head); font-size: 15px; }
.trust__badge span { font-size: 13px; color: rgba(255,255,255,.65); }
.trust__ring { position: absolute; inset: 6%; border: 1px dashed rgba(165, 143, 52, 0.45); border-radius: 50%; animation: spin 50s linear infinite; z-index: -2; }
.trust__ring::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.trust__body { display: grid; gap: 24px; justify-items: start; }

/* ---------- Partners marquee ---------- */
.pmarq { display: grid; gap: 16px; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pmarq__row { overflow: hidden; }
.pmarq__track { display: flex; gap: 16px; width: max-content; animation: marquee 55s linear infinite; }
.pmarq__row--rev .pmarq__track { animation-direction: reverse; animation-duration: 62s; }
.pmarq:hover .pmarq__track { animation-play-state: paused; }
.pmarq__item { flex: none; width: 200px; height: 108px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s; }
.pmarq__item img { max-width: 150px; max-height: 62px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .5s, opacity .5s; }
.pmarq__item:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -26px rgba(23,22,69,.35); border-color: rgba(165,143,52,.4); }
.pmarq__item:hover img { filter: none; opacity: 1; }
@media (max-width: 600px) { .pmarq__item { width: 150px; height: 84px; border-radius: 16px; } .pmarq__item img { max-width: 112px; max-height: 48px; } }

/* ---------- Testimonials (certificates) ---------- */
.voices__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 14px; overscroll-behavior-x: contain; }
.voices__track::-webkit-scrollbar { display: none; }
.voices--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .voices--grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .voices--grid { grid-template-columns: 1fr; } }
.voice { position: relative; flex: 0 0 clamp(270px, 28vw, 350px); scroll-snap-align: start; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: auto 1fr; isolation: isolate; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.voice:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -34px rgba(23,22,69,.4); }
.voice__img { position: relative; display: block; width: 100%; padding: 20px 20px 0; cursor: zoom-in; background: linear-gradient(160deg, #fff, var(--paper-2)); }
.voice__img img { width: 100%; aspect-ratio: 215 / 152; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 34px -22px rgba(23,22,69,.55); transform: translateY(8px); transition: transform 1s var(--ease); }
.voice:hover .voice__img img { transform: translateY(0) rotate(-1.5deg) scale(1.03); }
.voice__zoom { position: absolute; top: 30px; left: 30px; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .6s var(--ease); }
.voice__zoom svg { width: 18px; height: 18px; }
.voice:hover .voice__zoom { opacity: 1; transform: none; }
.voice__body { padding: 30px 24px 26px; display: grid; gap: 8px; align-content: start; text-align: right; background: #fff; }
.voice__type { justify-self: start; font-family: var(--f-head); font-size: 12.5px; font-weight: 500; color: var(--gold); padding: 4px 12px; border-radius: 100px; background: rgba(165,143,52,.1); }
.voice__body b { font-family: var(--f-head); font-weight: 600; font-size: 19px; line-height: 1.5; color: var(--navy); }
.voice__body p { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.voices__nav { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.voices__bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.voices__bar span { position: absolute; inset: 0; background: var(--grad-gold); border-radius: inherit; transform-origin: right; transform: scaleX(.2); transition: transform .5s var(--ease); }
.voices__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--navy); transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease); }
/* the sprite arrow points up-left; rotate it to → (previous) and ← (next) for RTL */
.voices__btn svg { width: 18px; height: 18px; transform: rotate(135deg); }
.voices__btn--next svg { transform: rotate(-45deg); }
.voices__btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: scale(1.06); }
.lightbox.is-cert img { width: min(92vw, 720px); height: auto; background: #fff; }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(165, 143, 52, 0.55), transparent 70%), linear-gradient(160deg, var(--navy-3), var(--navy) 50%, var(--navy-2)); color: #fff; padding: clamp(60px, 9vw, 130px) var(--gutter); text-align: center; display: grid; justify-items: center; gap: 26px; }
.cta .hero__grid { animation-duration: 40s; }
.cta__title { font-size: clamp(36px, 6vw, 84px); line-height: 1.18; }
.cta__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; color: rgba(255,255,255,.7); font-size: 15px; margin-top: 8px; }
.cta__meta a { display: inline-flex; align-items: center; gap: 8px; transition: color .3s; direction: ltr; }
.cta__meta a:hover { color: var(--gold-3); }
.cta__meta svg { width: 18px; height: 18px; color: var(--gold-2); }
.orbit { position: absolute; width: 620px; height: 620px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; z-index: -1; top: 50%; left: 50%; margin: -310px 0 0 -310px; animation: spin 60s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 12px; height: 12px; background: var(--gold-2); transform: rotate(45deg); }
.orbit::before { top: -6px; left: 50%; }
.orbit::after { bottom: 20%; right: 4%; background: transparent; border: 1px solid var(--gold-2); width: 20px; height: 20px; }
.orbit--2 { width: 980px; height: 980px; margin: -490px 0 0 -490px; animation-direction: reverse; animation-duration: 90s; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-2); color: rgba(255, 255, 255, 0.7); padding-top: clamp(70px, 8vw, 110px); position: relative; overflow: hidden; margin-top: 12px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { width: 120px; margin-bottom: 20px; }
.footer__brand p { font-size: 15px; max-width: 340px; }
.footer h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.footer h4::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer ul a { position: relative; transition: color 0.3s, padding 0.4s var(--ease); }
.footer ul a:hover { color: var(--gold-3); padding-inline-start: 8px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--gold-2); flex: none; margin-top: 5px; }
.footer__contact .ltr { direction: ltr; unicode-bidi: isolate; }
.footer__big { display: block; width: min(100% - 2 * var(--gutter), 1200px); margin: 70px auto 0; user-select: none; pointer-events: none; }
/* the fade (0 → 20% → 0) and gold edges live inside footer-logo-fade.svg */
.footer__big img { width: 100%; height: auto; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; position: relative; z-index: 2; background: var(--navy-2); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.to-top span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: background .3s, transform .5s var(--ease); }
.to-top:hover span { background: var(--gold); transform: translateY(-4px); }
.to-top svg { width: 14px; height: 14px; }

/* ---------- Inner page hero ---------- */
.phero__card { min-height: 78svh; display: grid; align-content: end; padding: 170px clamp(24px, 6vw, 80px) clamp(44px, 6vw, 80px); }
.phero__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; position: relative; z-index: 2; }
@media (max-width: 860px) { .phero__inner { grid-template-columns: 1fr; } .phero__card { min-height: 70svh; } }
.phero__title { font-size: clamp(44px, 8vw, 118px); line-height: 1.1; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.crumbs a:hover { color: var(--gold-3); }
.crumbs i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); display: block; }
.phero__side { display: grid; gap: 22px; }
.phero__side p { color: rgba(255,255,255,.72); font-size: 17px; }
.phero__bgimg { position: absolute; inset: 0; z-index: -1; }
.phero__bgimg img { width: 100%; height: 115%; object-fit: cover; opacity: .2; mix-blend-mode: luminosity; }
.phero__bgimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,22,69,.3), var(--navy) 85%); }
.scroll-cue { position: absolute; bottom: 30px; left: clamp(24px, 6vw, 80px); width: 30px; height: 50px; border-radius: 20px; border: 1px solid rgba(255,255,255,.3); z-index: 3; }
.scroll-cue::after { content: ""; position: absolute; top: 9px; left: 50%; width: 4px; height: 9px; margin-left: -2px; background: var(--gold-2); border-radius: 4px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 860px) { .scroll-cue { display: none; } }

/* ---------- About page ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.story__media { position: relative; aspect-ratio: 4 / 4.4; }
.story__media .mask { position: absolute; inset: 0; border-radius: var(--r-lg); }
.story__media .mask img { width: 100%; height: 100%; object-fit: cover; }
.story__media .story__sub { position: absolute; width: 46%; aspect-ratio: 3/4; bottom: -8%; left: -6%; border-radius: 20px; overflow: hidden; border: 8px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(23,22,69,.5); }
.story__media .story__sub img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .story__media .story__sub { left: 0; } }
.story__body { display: grid; gap: 22px; }
.story__body p { color: var(--muted); }
.quote { position: relative; padding: 24px 28px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-family: var(--f-head); font-weight: 500; color: var(--navy); font-size: 18px; line-height: 1.7; }
.quote::before { content: "”"; position: absolute; top: -18px; right: 20px; font-size: 80px; line-height: 1; color: var(--gold); font-family: Georgia, serif; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .mv { grid-template-columns: 1fr; } }
.mv__card { position: relative; border-radius: var(--r-xl); padding: clamp(34px, 4vw, 56px); overflow: hidden; isolation: isolate; min-height: 380px; display: grid; align-content: space-between; gap: 40px; }
.mv__card--navy { background: var(--navy); color: #fff; }
.mv__card--gold { background: linear-gradient(145deg, #b39c41, var(--gold) 50%, #82701f); color: #fff; }
.mv__card p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.9; opacity: .9; }
.mv__card h3 { font-size: clamp(30px, 3.4vw, 46px); display: flex; align-items: center; gap: 16px; }
.mv__ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.mv__ico svg { width: 30px; height: 30px; }
.mv__bg { position: absolute; left: -40px; bottom: -60px; width: 300px; height: 300px; z-index: -1; opacity: .12; border: 2px solid #fff; transform: rotate(20deg); transition: transform 1.4s var(--ease); }
.mv__bg::after { content: ""; position: absolute; inset: 40px; border: 2px solid #fff; }
.mv__card:hover .mv__bg { transform: rotate(65deg) scale(1.1); }

.v2030 { position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; color: #fff; background: var(--navy); display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
@media (max-width: 900px) { .v2030 { grid-template-columns: 1fr; } }
.v2030__body { padding: clamp(36px, 5vw, 76px); display: grid; align-content: center; gap: 22px; position: relative; z-index: 2; }
.v2030__body p { color: rgba(255,255,255,.72); }
.v2030__media { position: relative; min-height: 360px; }
.v2030__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2030__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, var(--navy) 0%, rgba(23,22,69,.2) 45%, transparent); }
@media (max-width: 900px) { .v2030__media::after { background: linear-gradient(0deg, var(--navy), transparent 60%); } }
.v2030__num { font-family: var(--f-head); font-weight: 800; font-size: clamp(76px, 10vw, 160px); line-height: .95; color: transparent; -webkit-text-stroke: 1.5px rgba(201,178,90,.8); direction: ltr; text-align: right; white-space: nowrap; }
.v2030__num span { display: inline-block; animation: numPulse 4s var(--ease-io) infinite; }
.v2030__num span:nth-child(2) { animation-delay: .25s; } .v2030__num span:nth-child(3) { animation-delay: .5s; } .v2030__num span:nth-child(4) { animation-delay: .75s; }
@keyframes numPulse { 0%, 70%, 100% { color: transparent; transform: none; } 35% { color: rgba(201,178,90,.9); transform: translateY(-6px); } }

/* ---------- Clients page ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logo-cell { position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); overflow: hidden; isolation: isolate; transition: background .5s; }
.logo-cell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scale(0.6); opacity: 0; transition: transform .6s var(--ease), opacity .5s; }
.logo-cell:hover::before { transform: none; opacity: 1; }
.logo-cell img { max-width: 60%; max-height: 50%; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .5s, opacity .5s, transform .6s var(--ease); }
.logo-cell:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.logo-ph { color: rgba(23,22,69,.32); font-family: var(--f-head); font-size: 15px; font-weight: 500; letter-spacing: .04em; direction: ltr; transition: color .5s, transform .6s var(--ease); }
.logo-cell:hover .logo-ph, .cert--ph:hover .logo-ph { color: var(--gold); transform: scale(1.06); }

.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .certs { grid-template-columns: 1fr; } }
.cert { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 3 / 4; cursor: zoom-in; isolation: isolate; text-align: start; padding: 0; }
.cert img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cert:hover img { transform: scale(1.06); }
.cert__over { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,14,51,.92)); display: flex; align-items: flex-end; justify-content: space-between; padding: 22px; color: #fff; gap: 12px; }
.cert__over b { font-family: var(--f-head); font-weight: 600; font-size: 18px; display: block; }
.cert__over span { font-size: 13.5px; opacity: .75; }
.cert__zoom { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; flex: none; transform: scale(.7); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.cert__zoom svg { width: 20px; height: 20px; }
.cert:hover .cert__zoom { transform: none; opacity: 1; }
.cert--ph { cursor: default; display: grid; place-items: center; background: linear-gradient(160deg, #fff, var(--paper-2)); }
.cert--ph .doc { width: 58%; aspect-ratio: 3/4; background: #fff; border-radius: 10px; box-shadow: 0 30px 50px -30px rgba(23,22,69,.45); padding: 18% 12%; display: grid; align-content: start; gap: 9px; transition: transform .8s var(--ease); position: relative; }
.cert--ph:hover .doc { transform: translateY(-8px) rotate(-2deg); }
.cert--ph .doc i { display: block; height: 6px; border-radius: 3px; background: var(--line-2); }
.cert--ph .doc i:nth-child(1) { width: 60%; height: 9px; background: var(--navy); opacity: .8; margin-bottom: 8px; }
.cert--ph .doc i:nth-child(4) { width: 70%; }
.cert--ph .doc i:nth-child(6) { width: 45%; }
.cert--ph .doc em { position: absolute; bottom: 14%; left: 14%; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold); }
.cert--ph .doc em svg { width: 18px; height: 18px; }
.cert--ph .cert__cap { position: absolute; bottom: 20px; inset-inline: 22px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; }
.cert--ph .cert__cap b { color: var(--navy); font-family: var(--f-head); font-weight: 600; }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10, 9, 36, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 40px 16px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 900px); max-height: 86vh; border-radius: 14px; transform: scale(.9) translateY(20px); transition: transform .7s var(--ease); box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 22px; left: 22px; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; transition: transform .5s var(--ease); }
.lightbox__close:hover { transform: rotate(90deg); }
.lightbox__close svg { width: 20px; height: 20px; }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.cinfo { display: grid; gap: 14px; }
.cinfo__item { --mx: 50%; --my: 50%; position: relative; display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.cinfo__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(165,143,52,.14), transparent 60%); opacity: 0; transition: opacity .4s; }
.cinfo__item:hover::before { opacity: 1; }
.cinfo__item:hover { transform: translateX(-6px); box-shadow: 0 24px 50px -30px rgba(23,22,69,.35); }
.cinfo__ico { width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; flex: none; transition: background .4s, color .4s, transform .6s var(--ease); }
.cinfo__item:hover .cinfo__ico { background: var(--gold); color: #fff; transform: rotate(-8deg); }
.cinfo__ico svg { width: 24px; height: 24px; }
.cinfo__item small { display: block; color: var(--muted); font-size: 13.5px; }
.cinfo__item b { font-family: var(--f-head); font-weight: 600; font-size: 17px; color: var(--navy); }
.cinfo__item .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.form { position: relative; border-radius: var(--r-xl); background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 54px); overflow: hidden; isolation: isolate; }
.form h3 { font-size: clamp(26px, 3vw, 38px); margin: 14px 0 8px; }
.form > p { color: rgba(255,255,255,.65); margin-bottom: 30px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 26px 18px 10px; outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { cursor: pointer; }
.field select option { color: var(--ink); }
.field label { position: absolute; top: 18px; right: 18px; color: rgba(255,255,255,.55); font-size: 15.5px; pointer-events: none; transition: transform .35s var(--ease), color .3s, font-size .35s var(--ease); transform-origin: right top; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(165,143,52,.18); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select.has-value + label { transform: translateY(-11px); font-size: 12.5px; color: var(--gold-3); }
.field__chev { position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: rgba(255,255,255,.5); pointer-events: none; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: #e07a6a; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.form__note { font-size: 13.5px; color: rgba(255,255,255,.5); }
.form__ok { position: absolute; inset: 0; z-index: 5; background: var(--navy); display: grid; place-items: center; text-align: center; padding: 30px; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.form.is-sent .form__ok { opacity: 1; visibility: visible; }
.form__ok-ico { width: 90px; height: 90px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; margin: 0 auto 22px; transform: scale(0); transition: transform .8s var(--ease) .2s; }
.form.is-sent .form__ok-ico { transform: none; }
.form__ok-ico svg { width: 40px; height: 40px; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .8s var(--ease) .6s; }
.form.is-sent .form__ok-ico svg { stroke-dashoffset: 0; }

.map { position: relative; border-radius: var(--r-xl); overflow: hidden; height: clamp(380px, 50vw, 560px); border: 1px solid var(--line); background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05) sepia(.15); transition: filter .8s; }
.map:hover iframe { filter: none; }
.map__card { position: absolute; top: 22px; right: 22px; background: #fff; border-radius: 20px; padding: 20px 22px; max-width: 320px; box-shadow: 0 30px 60px -30px rgba(23,22,69,.5); display: grid; gap: 6px; }
.map__card b { font-family: var(--f-head); color: var(--navy); font-size: 17px; }
.map__card span { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.map__card a { color: var(--gold); font-family: var(--f-head); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.map__card a svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.map__card a:hover svg { transform: translate(-3px, -3px); }
@media (max-width: 600px) { .map__card { right: 12px; left: 12px; top: auto; bottom: 12px; max-width: none; } }

/* ---------- v4: full-width before/after (client's aligned pair is 1263 × 640) ---------- */
.why--stack { grid-template-columns: 1fr; }
.why--stack .ba { min-height: 0; aspect-ratio: 1263 / 640; }

/* "see all works" card at the end of the projects track */
.pcard--more { display: block; background: linear-gradient(160deg, var(--gold) 0%, #7d6b22 100%); color: #fff; }
.pcard--more::after { display: none; }
.pcard--more .pcard__num { font-size: 40px; opacity: .5; }
.pcard--more .pcard__tag { background: rgba(255,255,255,.18); }
.pcard--more h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.4; }
.pcard__go .btn__ico { width: 54px; height: 54px; background: #fff; color: var(--navy); margin-top: 10px; transition: transform .6s var(--ease); }
.pcard--more:hover .pcard__go .btn__ico { transform: rotate(-45deg) scale(1.06); }

/* ---------- Our Works page ---------- */
.wfilters { position: sticky; top: 92px; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; margin-bottom: 34px; border-radius: 100px; background: rgba(255,255,255,.82); border: 1px solid var(--line); box-shadow: 0 20px 40px -30px rgba(23,22,69,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); width: fit-content; max-width: 100%; margin-inline: auto; }
.wchip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 18px 8px; border-radius: 100px; font-family: var(--f-head); font-size: 14.5px; font-weight: 600; color: var(--muted); transition: background .4s, color .4s; white-space: nowrap; }
.wchip span { min-width: 28px; height: 28px; padding-inline: 6px; border-radius: 100px; display: grid; place-items: center; font-size: 12px; background: rgba(23,22,69,.06); color: var(--navy); transition: background .4s, color .4s; }
.wchip:hover { color: var(--navy); background: rgba(23,22,69,.04); }
.wchip.is-active { background: var(--navy); color: #fff; }
.wchip.is-active span { background: var(--gold); color: #fff; }
@media (max-width: 760px) {
  .wfilters { top: 78px; border-radius: 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .wfilters::-webkit-scrollbar { display: none; }
}
.wgroups { display: grid; gap: clamp(56px, 7vw, 96px); }
.wgroup.is-out { display: none; }
.wgroup.is-enter .wtile { animation: wIn .7s var(--ease) both; }
.wgroup.is-enter .wtile:nth-child(2) { animation-delay: .05s; } .wgroup.is-enter .wtile:nth-child(3) { animation-delay: .1s; }
.wgroup.is-enter .wtile:nth-child(4) { animation-delay: .15s; } .wgroup.is-enter .wtile:nth-child(n+5) { animation-delay: .2s; }
.wgroup__head { display: flex; align-items: center; gap: 20px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line-2); }
.wgroup__n { font-family: var(--f-head); font-weight: 800; font-size: clamp(34px, 4vw, 54px); line-height: 1; background: var(--grad-dark); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; flex: none; direction: ltr; }
.wgroup__head h2 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; color: var(--navy); }
.wgroup__head p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.wgroup__count { margin-inline-start: auto; flex: none; font-family: var(--f-head); font-size: 13.5px; font-weight: 600; color: var(--gold); padding: 6px 14px; border-radius: 100px; background: rgba(165,143,52,.1); }
@media (max-width: 600px) { .wgroup__count { display: none; } }
.wgrid { columns: 4 240px; column-gap: 16px; }
@media (max-width: 600px) {
  .wgrid { columns: 2; column-gap: 10px; }
  .wtile { margin-bottom: 10px; border-radius: 14px; }
  .wtile__cap { padding: 12px 12px 10px; }
  .wtile__cap b { font-size: 13.5px; }
  .wtile__cap small { font-size: 11px; }
}
.wtile { position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; border-radius: 18px; overflow: hidden; background: var(--paper-2); break-inside: avoid; cursor: zoom-in; isolation: isolate; text-align: right; }
.wtile img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.wtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,14,51,.88) 0%, rgba(15,14,51,0) 55%); opacity: .55; transition: opacity .5s; }
.wtile:hover img { transform: scale(1.06); }
.wtile:hover::after { opacity: 1; }
.wtile__cap { position: absolute; z-index: 2; bottom: 0; inset-inline: 0; padding: 18px 18px 16px; color: #fff; display: grid; gap: 2px; transform: translateY(8px); transition: transform .6s var(--ease); }
.wtile:hover .wtile__cap { transform: none; }
.wtile__cap small { font-size: 12px; color: var(--gold-3); }
.wtile__cap b { font-family: var(--f-head); font-weight: 700; font-size: 16.5px; line-height: 1.4; }
.wtile__zoom { position: absolute; z-index: 2; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .6s var(--ease); }
.wtile__zoom svg { width: 18px; height: 18px; }
.wtile:hover .wtile__zoom { opacity: 1; transform: none; }
.wtile.is-out { display: none; }
.wtile.is-enter { animation: wIn .7s var(--ease) both; animation-delay: var(--wd, 0s); }
@keyframes wIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

/* gallery lightbox */
.glb { position: fixed; inset: 0; z-index: 600; background: rgba(10, 9, 36, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 70px 16px 96px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.glb.is-open { opacity: 1; visibility: visible; }
.glb img { max-width: min(94vw, 1100px); max-height: 76vh; border-radius: 14px; object-fit: contain; box-shadow: 0 40px 100px rgba(0,0,0,.5); opacity: 0; transform: scale(.94); transition: opacity .45s, transform .7s var(--ease); }
.glb img.is-shown { opacity: 1; transform: none; }
.glb__cap { position: absolute; bottom: 26px; inset-inline: 0; text-align: center; color: #fff; display: grid; gap: 2px; padding-inline: 16px; }
.glb__cap b { font-family: var(--f-head); font-size: 19px; }
.glb__cap span { font-size: 13.5px; color: var(--gold-3); }
.glb__count { position: absolute; top: 30px; right: 28px; color: rgba(255,255,255,.7); font-family: var(--f-head); letter-spacing: .1em; direction: ltr; }
.glb__btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.25); transition: background .4s, border-color .4s, transform .5s var(--ease); }
.glb__btn:hover { background: var(--gold); border-color: var(--gold); }
.glb__btn svg { width: 20px; height: 20px; }
.glb__close { top: 20px; left: 20px; }
.glb__close:hover { transform: rotate(90deg); }
/* sprite arrow points up-left: → for previous, ← for next (RTL) */
.glb__prev { top: 50%; right: 20px; margin-top: -27px; }
.glb__prev svg { transform: rotate(135deg); }
.glb__next { top: 50%; left: 20px; margin-top: -27px; }
.glb__next svg { transform: rotate(-45deg); }
@media (max-width: 640px) { .glb__prev, .glb__next { top: auto; bottom: 88px; margin: 0; } }

/* ==========================================================
   Lite performance layer
   ========================================================== */

/* only the scrolled header keeps a real blur; everything else gets a solid tint instead */
body *:not(.header__bar) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.about-card__chip { background: rgba(255, 255, 255, 0.96); }
.pcard__tag { background: rgba(15, 14, 51, 0.55); }
.ba__tag { background: rgba(23, 22, 69, 0.92); }
.ba__hint { background: rgba(255, 255, 255, 0.95); }
.btn--ghost-light { background: rgba(255, 255, 255, 0.1); }
.wfilters { background: rgba(255, 255, 255, 0.97); }
.glb { background: rgba(10, 9, 36, 0.97); }

/* decorative loops pause while their section is off screen (class set from JS) */
.is-off, .is-off *, .is-off::before, .is-off::after { animation-play-state: paused !important; }

/* weak devices: html.lite is added by JS (few cores, little memory, Save-Data, or slow first frames) */
.lite .grad, .lite .grad-light { animation: none; background-position: 30% 50%; }
.lite .hero__grid, .lite .shape, .lite .orbit, .lite .trust__ring, .lite .hhero__trust .stars i, .lite .about-card__chip { animation: none; }
.lite .hero__card::after { display: none; }
.lite .cursor, .lite .cursor-dot { display: none !important; }
.lite .pmarq__track { animation-duration: 90s; }
.lite .pmarq__row--rev .pmarq__track { animation-duration: 100s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], .intro, [data-split] .line > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .mask { clip-path: none !important; }
}
