/* ==========================================================================
   Water Line — شركة خط الماء للمقاولات العامة والتوريدات
   Design system & layout  (v3 — calm type scale, eye-friendly palette)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --blue: #0550B0;          /* primary brand blue (accents, buttons, links) */
  --blue-600: #0A5BC4;
  --navy: #0B3B82;          /* headings */
  --navy-900: #0A2A5C;      /* dark sections — softer than pure navy */
  --navy-950: #071F45;      /* footer */
  --red: #C70506;           /* brand red — CTAs & small accents only */
  --red-hover: #A50405;

  /* Neutrals (tinted toward the brand blue so nothing looks harsh) */
  --ink: #16202C;           /* deep, clear body text */
  --ink-soft: #283747;      /* crisp secondary paragraphs */
  --muted: #4B5A6A;         /* captions, labels */
  --sky: #9CC8F3;
  --tint: #F3F7FC;          /* soft section background */
  --mist: #E9F1FB;          /* chips, icon tiles */
  --white: #FFFFFF;

  --line: #DDE6F1;
  --line-strong: #C6D4E6;
  --line-light: rgba(255, 255, 255, .14);
  --shadow-sm: 0 6px 18px -10px rgba(11, 59, 130, .25);
  --shadow-card: 0 22px 50px -26px rgba(11, 59, 130, .35);

  /* Type */
  --f-head: "Cairo", system-ui, -apple-system, sans-serif;
  --f-body: "Cairo", system-ui, -apple-system, sans-serif;
  --f-latin: "Manrope", "Cairo", system-ui, sans-serif;

  --fs-hero: clamp(30px, min(3.5vw, 6.4svh), 56px);
  --fs-h2: clamp(25px, 2.3vw, 38px);
  --fs-h3: clamp(18px, 1.3vw, 21px);
  --fs-body: clamp(16px, 1.05vw, 17.5px);
  --fs-lead: clamp(17px, 1.2vw, 19.5px);
  --fs-small: 14.5px;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(18px, 5vw, 72px);
  --section: clamp(52px, 6vw, 88px);
  --radius: 10px;
  --radius-lg: 20px;
  --header-h: 66px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (min-width: 1080px) { :root { --header-h: 76px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.95;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.45; margin: 0; color: var(--navy); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.latin, [lang="en"] { font-family: var(--f-latin); }
.num { font-family: var(--f-latin); font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; }
::selection { background: var(--sky); color: var(--navy); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: 12px; right: 12px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius); transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--tint); }

.is-placeholder { display: none !important; }
html[data-env="development"] .is-placeholder { display: inline-flex !important; outline: 1px dashed var(--red); outline-offset: 2px; }

/* ---------- 3. Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-size: 14px; font-weight: 700; color: var(--blue); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(199, 5, 6, .12); }
.eyebrow--light { color: var(--sky); }
.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.4; }
.h2 em { font-style: normal; color: var(--blue); }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.95; max-width: 58ch; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head--center { text-align: center; justify-items: center; }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.head-bar { display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--blue); }
.section-head--center .head-bar { margin-inline: auto; }

/* ---------- 4. Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff; --fill: var(--navy);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  font-family: var(--f-head); font-size: 15.5px; font-weight: 700; line-height: 1;
  color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--bg); border-radius: 12px;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill); transform: scaleX(0); transform-origin: left center; transition: transform .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: right center; }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(-4px); }
.btn--red { --bg: var(--red); --fill: var(--red-hover); box-shadow: 0 12px 26px -16px rgba(199, 5, 6, .7); }
.btn--outline { --bg: #fff; --fg: var(--navy); --fill: var(--blue); border-color: var(--blue); }
.btn--outline:hover, .btn--outline:focus-visible { color: #fff; }
.btn--light { --bg: #fff; --fg: var(--navy); --fill: var(--mist); border-color: #fff; }
.btn--sm { min-height: 42px; padding-inline: 18px; font-size: 14.5px; }
.btn__play { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background-color .4s var(--ease), color .4s; }
.btn__play svg { width: 9px; height: 9px; }
.btn--outline:hover .btn__play { background: #fff; color: var(--blue); }
.arrow { width: 17px; height: 17px; flex: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .98); border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(11, 59, 130, .5); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 46px; height: 46px; }
.brand__text { display: grid; line-height: 1.35; }
.brand__ar { font-family: var(--f-head); font-weight: 800; font-size: clamp(16px, 1.35vw, 19px); color: var(--blue); }
.brand__sub { font-family: var(--f-head); font-weight: 700; font-size: clamp(10.5px, .85vw, 12px); color: var(--red); }
.brand__divider { display: none; width: 1px; height: 32px; background: var(--line-strong); }
.nav { display: none; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 clamp(10px, 1vw, 15px);
  font-family: var(--f-head); font-size: 14.5px; font-weight: 600; color: var(--ink-soft); border-radius: 999px;
  transition: color .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav__link::after { content: ""; position: absolute; inset-inline: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { background: var(--blue); color: #fff; box-shadow: 0 8px 18px -10px rgba(5, 80, 176, .8); }
.nav__link.is-active::after { display: none; }
.header-cta { display: none; }
.header-cta .btn { min-height: 42px; padding-inline: 20px; font-size: 14.5px; border-radius: 999px; }
.header-cta .btn svg { width: 16px; height: 16px; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--navy); }
.menu-toggle__bars { width: 18px; height: 12px; position: relative; }
.menu-toggle__bars span { position: absolute; inset-inline: 0; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), opacity .3s var(--ease), top .5s var(--ease); }
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5.2px; }
.menu-toggle__bars span:nth-child(3) { top: 10.4px; }
.menu-open .menu-toggle__bars span:nth-child(1) { top: 5.2px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__bars span:nth-child(3) { top: 5.2px; transform: rotate(-45deg); }
@media (min-width: 1080px) {
  .nav { display: block; margin-inline-end: auto; }
  .brand__divider { display: block; margin-inline-start: 6px; }
  .header-cta { display: block; }
  .menu-toggle { display: none; }
  .brand img { width: 50px; height: 50px; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; background: var(--navy-900); color: #fff;
  padding: 20px var(--gutter) max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s linear .7s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-in-out), visibility 0s; }
.mobile-menu__list a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; font-family: var(--f-head); font-size: clamp(22px, 6vw, 30px); font-weight: 700; border-bottom: 1px solid var(--line-light); opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mobile-menu__list a .num { font-size: 12.5px; color: var(--sky); }
.menu-open .mobile-menu__list a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * 60ms); }
.mobile-menu__foot { display: grid; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, .8); }
@media (min-width: 1080px) { .mobile-menu { display: none; } }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform-origin: right; transform: scaleX(0); }

/* ---------- 6. Hero — one screen: content + service strip ---------- */
.hero {
  position: relative; overflow: hidden; background: #fff;
  height: 100svh; min-height: 560px; max-height: 920px;
  padding-top: var(--header-h);
  display: grid; grid-template-rows: 1fr auto;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg picture, .hero__bg img { width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: left bottom; }
.hero__fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to left, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 34%, rgba(255,255,255,0) 60%); }
.hero__inner { position: relative; z-index: 2; display: flex; align-items: center; }
.hero__content { max-width: min(560px, 100%); padding-block: clamp(12px, 3svh, 36px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(8px, 1.6svh, 16px); font-family: var(--f-head); font-weight: 700; font-size: 13px; line-height: 1.6; color: var(--blue); background: var(--mist); padding: 4px 12px; border-radius: 999px; }
.hero__eyebrow svg { width: 12px; height: 12px; flex: none; color: var(--red); }
.hero__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.3; color: var(--blue); }
.hero__title .t-lead { font-size: .6em; font-weight: 700; color: var(--ink-soft); }
.hero__title .t-red { color: var(--red); }
.hero__bar { display: block; width: 80px; height: 4px; border-radius: 4px; background: var(--blue); margin-block: clamp(10px, 2svh, 20px); transform-origin: right; }
.hero__text { max-width: 42ch; font-size: clamp(15px, min(1.15vw, 2.3svh), 18px); line-height: 1.8; color: var(--ink-soft); font-weight: 500; }
.hero__actions { margin-top: clamp(14px, 2.8svh, 28px); display: flex; flex-wrap: wrap; gap: 10px; }
.hero__strip-wrap { position: relative; z-index: 3; padding-bottom: clamp(14px, 3svh, 32px); }
.hero-strip { background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); display: grid; grid-template-columns: repeat(2, 1fr); padding: 6px; }
.hero-strip__item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: clamp(10px, 1.6svh, 16px) 12px; position: relative; border-radius: 16px; transition: background-color .4s var(--ease); }
.hero-strip__item:hover { background: var(--tint); }
.hero-strip__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--mist); color: var(--blue); transition: transform .5s var(--ease), background-color .4s var(--ease), color .4s; }
.hero-strip__icon svg { width: 30px; height: 30px; }
.hero-strip__item:hover .hero-strip__icon { transform: translateY(-3px); background: var(--blue); color: #fff; }
.hero-strip__label { font-family: var(--f-head); font-weight: 700; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.4; color: var(--navy); }
.hero-strip__label::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--red); margin-top: 6px; transition: width .5s var(--ease); }
.hero-strip__item:hover .hero-strip__label::after { width: 44px; }
@media (min-width: 900px) {
  .hero-strip { grid-template-columns: repeat(4, 1fr); }
  .hero-strip__item + .hero-strip__item::before { content: ""; position: absolute; inset-inline-start: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
}
@media (max-width: 899px) {
  .hero { height: auto; max-height: none; min-height: 0; grid-template-rows: auto auto; }
  .hero__fade { background: linear-gradient(to bottom, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 55%, rgba(255,255,255,0) 80%); }
  .hero__bg img { object-position: 22% 100%; }
  .hero__content { padding-top: 28px; }
  .hero__strip-wrap { margin-top: clamp(48px, 12vw, 100px); }
  .hero-strip__item { flex-direction: column; text-align: center; gap: 8px; }
  .hero-strip__label::after { margin-inline: auto; }
}
@media (max-height: 640px) and (min-width: 900px) { .hero__eyebrow { display: none; } }

/* ---------- 7. Marquee (soft band) ---------- */
.marquee { background: var(--tint); color: var(--navy); overflow: hidden; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 22px; padding: 16px 0; padding-inline-end: 22px; font-family: var(--f-head); font-weight: 700; font-size: clamp(15px, 1.1vw, 17px); white-space: nowrap; }
.marquee__item svg { width: 12px; height: 12px; color: var(--red); flex: none; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- 8. About (GSAP-driven) ---------- */
.about { overflow: hidden; }
.about__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 700px) { .about__grid { grid-template-columns: 1.15fr .85fr; } }
.about__visual { position: relative; padding-bottom: 12%; padding-inline-end: 10%; width: 100%; max-width: 440px; justify-self: center; }
.about__main { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 5 / 4; background: var(--mist); box-shadow: var(--shadow-card); }
.about__main img { width: 100%; height: 118%; object-fit: cover; object-position: center 22%; will-change: transform; }
.about__float { position: absolute; inset-inline-end: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); border: 6px solid #fff; box-shadow: var(--shadow-card); background: var(--mist); z-index: 2; will-change: transform; }
.about__float img { width: 100%; height: 115%; object-fit: cover; object-position: center 25%; }
.about__badge {
  position: absolute; inset-inline-start: -4%; top: 10%; z-index: 3;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); border: 1px solid var(--line);
}
.about__badge-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.about__badge-icon svg { width: 24px; height: 24px; }
.about__badge strong { display: block; font-family: var(--f-head); font-size: 15px; color: var(--navy); line-height: 1.4; }
.about__badge span { font-size: 13px; color: var(--muted); }
.about__ring { position: absolute; inset-inline-end: -40px; bottom: -30px; width: 220px; height: 220px; z-index: -1; color: var(--sky); opacity: .6; pointer-events: none; }
@media (max-width: 600px) { .about__badge { inset-inline-start: 8px; top: 8px; padding: 8px 12px; } .about__badge-icon { width: 34px; height: 34px; } }
.about__body { display: grid; gap: 20px; }
.about__body > p { color: var(--ink-soft); font-size: clamp(16.5px, 1.1vw, 18px); font-weight: 500; line-height: 2.05; }
.about__lead-text { font-family: var(--f-head); font-weight: 700; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.95; color: var(--navy) !important; }
.about__lead-text .w { display: inline-block; white-space: pre; }
.about__specs { margin-top: 8px; display: grid; gap: 12px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); will-change: transform, opacity; }
.spec:hover { border-color: rgba(5, 80, 176, 0.35); box-shadow: 0 10px 24px -6px rgba(5, 80, 176, 0.12), var(--shadow-sm); transform: translateY(-4px); }
.spec__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--blue); display: grid; place-items: center; transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease); }
.spec:hover .spec__icon { transform: scale(1.08) rotate(4deg); background: var(--blue); color: #fff; }
.spec__icon svg { width: 26px; height: 26px; }
.spec strong { display: block; font-family: var(--f-head); font-weight: 700; color: var(--navy); font-size: 16.5px; line-height: 1.5; }
.spec span { color: var(--ink-soft); font-size: 15.5px; font-weight: 500; line-height: 1.85; }
.about__actions { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 9. Vision & Mission cards ---------- */
.vm { display: grid; gap: clamp(18px, 2.4vw, 28px); }
@media (min-width: 700px) { .vm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vm-card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; border-radius: 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transform-style: preserve-3d; transition: box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.vm-card::before { /* spotlight that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(5, 80, 176, .09), transparent 45%);
}
.vm-card:hover { box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.vm-card:hover::before { opacity: 1; }
.vm-card__media { position: relative; height: clamp(150px, 15vw, 210px); overflow: hidden; }
.vm-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.vm-card:hover .vm-card__media img { transform: scale(1.1); }
.vm-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 42, 92, .82), rgba(10, 42, 92, .1) 70%); }
.vm-card__head { position: absolute; inset-inline: clamp(20px, 2.4vw, 32px); bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 14px; color: #fff; }
.vm-card__icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--blue); display: grid; place-items: center; flex: none; box-shadow: 0 10px 22px -12px rgba(0,0,0,.5); }
.vm-card__icon svg { width: 30px; height: 30px; }
.vm-card__head h3 { color: #fff; font-size: clamp(21px, 1.8vw, 26px); font-weight: 800; }
.vm-card__head small { display: block; font-family: var(--f-latin); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.vm-card__num { position: absolute; top: 14px; inset-inline-end: 18px; z-index: 2; font-family: var(--f-latin); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vm-card__body { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 18px; align-content: start; }
.vm-card__body > p { color: var(--ink-soft); font-size: clamp(15.5px, 1.05vw, 17px); line-height: 2; }
.vm-card__label { font-family: var(--f-head); font-size: 13.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.vm-card__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vm-feats { display: grid; gap: 10px; }
@media (min-width: 560px) { .vm-feats { grid-template-columns: 1fr 1fr; } }
.vm-feat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--tint); border: 1px solid transparent; font-family: var(--f-head); font-weight: 600; font-size: 14.5px; color: var(--navy); line-height: 1.5; transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.vm-feat:hover { background: #fff; border-color: var(--line-strong); transform: translateY(-2px); }
.vm-feat svg { width: 20px; height: 20px; flex: none; color: #fff; background: var(--blue); border-radius: 50%; padding: 4px; }
.vm-card--mission .vm-feat svg { background: var(--red); }

.core { margin-top: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.core li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: clamp(14px, 2vw, 22px) 8px; font-family: var(--f-head); font-weight: 800; font-size: clamp(16px, 1.4vw, 20px); color: var(--navy); position: relative; }
.core li + li::before { content: ""; position: absolute; inset-inline-start: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line-strong); }
.core__icon { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--blue); flex: none; }
.core__icon svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .core li { flex-direction: column; gap: 6px; } .core__icon { width: 38px; height: 38px; } }

/* Values */
.values-head { margin-top: clamp(32px, 4vw, 48px); }
.values { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { position: relative; overflow: hidden; padding: 26px 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 10px; align-content: start; transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease); }
.value:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.value__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.value__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--mist); color: var(--blue); display: grid; place-items: center; transition: background-color .4s var(--ease), color .4s; }
.value__icon svg { width: 30px; height: 30px; }
.value:hover .value__icon { background: var(--blue); color: #fff; }
.value__num { font-family: var(--f-latin); font-size: 13px; font-weight: 700; color: var(--blue); background: var(--mist); padding: 2px 10px; border-radius: 999px; }
.value h3 { font-size: var(--fs-h3); color: var(--navy); }
.value p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; }

/* ---------- 10. Services (accordion) ---------- */
.services { display: grid; gap: 12px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.service.is-open { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.service__trigger { width: 100%; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 1.6vw, 22px); padding: clamp(16px, 1.8vw, 22px) clamp(16px, 2vw, 26px); text-align: start; }
.service__num { font-family: var(--f-latin); font-size: 13px; font-weight: 700; color: var(--blue); }
.service__ico { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); color: var(--blue); display: grid; place-items: center; transition: background-color .4s, color .4s; }
.service__ico svg { width: 30px; height: 30px; }
.service.is-open .service__ico { background: var(--blue); color: #fff; }
.service__titles { display: grid; gap: 2px; }
.service__title { font-family: var(--f-head); font-size: clamp(18px, 1.5vw, 22px); font-weight: 800; color: var(--navy); line-height: 1.45; transition: color .4s; }
.service__sub { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.7; }
.service__trigger:hover .service__title { color: var(--blue); }
.service__icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--navy); transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s; }
.service__icon svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.service.is-open .service__icon { background: var(--blue); color: #fff; border-color: var(--blue); }
.service.is-open .service__icon svg { transform: rotate(45deg); }
@media (max-width: 560px) { .service__num { display: none; } .service__trigger { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 16px 12px; } .service__ico { width: 38px; height: 38px; } .service__icon { width: 36px; height: 36px; } }
.service__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.service.is-open .service__panel { grid-template-rows: 1fr; }
.service__panel > div { overflow: hidden; min-height: 0; }
.service__content { display: grid; gap: clamp(20px, 3vw, 40px); padding: 4px clamp(16px, 2vw, 26px) clamp(20px, 2.4vw, 30px); opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.service.is-open .service__content { opacity: 1; transform: none; transition-delay: .12s; }
@media (min-width: 900px) { .service__content { grid-template-columns: .85fr 1.15fr; } }
.service__media { aspect-ratio: 4 / 3; border-radius: 14px; }
.service__media img { transform: scale(1.06); transition: transform 1.3s var(--ease); }
.service.is-open .service__media img { transform: scale(1); }
.service__body { display: grid; gap: 16px; align-content: start; }
.service__body > p { color: var(--ink-soft); }
.checklist { display: grid; gap: 8px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--tint); }
.checklist svg { width: 20px; height: 20px; color: #fff; background: var(--blue); border-radius: 50%; padding: 4px; margin-top: 3px; }
.checklist strong { font-family: var(--f-head); font-weight: 700; color: var(--navy); display: block; font-size: 15.5px; line-height: 1.6; }
.checklist span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.service__tag { font-size: 14.5px; color: var(--red); font-family: var(--f-head); font-weight: 700; }

/* ---------- 11. Projects ---------- */
.projects { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.project { display: grid; grid-template-rows: auto 1fr; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; min-width: 0; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project__media { position: relative; }
.project__frame { aspect-ratio: 16 / 10; border-radius: 12px; }
.project__frame img { transition: transform 1.2s var(--ease); }
.project:hover .project__frame img { transform: scale(1.035); }
.project__note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.project__index { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; min-width: 52px; height: 52px; padding-inline: 10px; border-radius: 14px; background: #fff; color: var(--blue); display: grid; place-items: center; font-family: var(--f-latin); font-size: 19px; font-weight: 800; box-shadow: var(--shadow-sm); }
.project__body { display: grid; gap: 12px; align-content: start; padding: 0 4px 6px; }
.project__cat { font-family: var(--f-head); font-size: 14px; font-weight: 700; color: var(--blue); display: inline-flex; gap: 10px; align-items: center; }
.project__cat::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--red); }
.project__title { font-size: clamp(17px, 1.35vw, 20px); font-weight: 700; line-height: 1.75; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-family: var(--f-head); font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--navy); line-height: 1.6; }
.tag svg { width: 15px; height: 15px; color: var(--blue); }
.tag--live { background: #FCEBEB; color: var(--red); }
.tag--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 12. Field work (tabs) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); }
.tab { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--navy); transition: background-color .4s var(--ease), color .4s, border-color .4s, box-shadow .4s; }
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(5, 80, 176, .8); }
.work { display: grid; gap: clamp(24px, 3.5vw, 48px); }
@media (min-width: 980px) { .work { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.work__info { display: grid; gap: 16px; align-content: start; }
.work__info h3 { font-size: clamp(21px, 1.8vw, 27px); font-weight: 800; }
.work__info > p { color: var(--ink-soft); }
.work__list-title { font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--navy); background: var(--mist); padding: 6px 16px; border-radius: 10px; justify-self: start; }
.work__list { display: grid; gap: 8px; }
.work__list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.6; }
.work__list svg { width: 14px; height: 14px; color: var(--blue); flex: none; }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.work__grid .gp__item:first-child { grid-column: span 2; }
@media (min-width: 700px) {
  .work__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(120px, 10.5vw, 170px); }
  .work__grid .gp__item { aspect-ratio: auto; }
  .work__grid .gp__item:first-child { grid-column: span 2; grid-row: span 2; }
}
.tabpanel[hidden] { display: none !important; }
.gp__item { position: relative; display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--mist); cursor: zoom-in; }
.gp__item picture { width: 100%; height: 100%; }
.gp__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gp__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,42,92,.72), rgba(10,42,92,0) 55%); opacity: 0; transition: opacity .5s var(--ease); }
.gp__label { position: absolute; z-index: 2; inset-inline: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #fff; font-size: 13.5px; font-family: var(--f-head); font-weight: 600; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.gp__label .plus { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.gp__label .plus svg { width: 13px; height: 13px; }
.gp__item:hover img, .gp__item:focus-visible img { transform: scale(1.05); }
.gp__item:hover::after, .gp__item:focus-visible::after, .gp__item:hover .gp__label, .gp__item:focus-visible .gp__label { opacity: 1; transform: none; }
@media (hover: none) { .gp__label .plus { display: none; } }
.work__foot { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 13. Why ---------- */
.why { background: var(--navy-900); color: #fff; overflow: hidden; }
.why .h2 { color: #fff; }
.why .lead { color: rgba(255,255,255,.82); }
.why__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }
.why__item { position: relative; padding: 24px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 16px; transition: background-color .4s var(--ease), border-color .4s, transform .5s var(--ease); }
.why__item:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); transform: translateY(-3px); }
.why__icon { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; flex: none; }
.why__icon svg { width: 32px; height: 32px; }
.why__item h3 { color: #fff; font-size: clamp(16.5px, 1.25vw, 19px); font-weight: 700; line-height: 1.6; }
.why__item .num { position: absolute; top: 12px; left: 14px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); }
.why__lines { position: absolute; inset: auto 0 0 0; height: 55%; pointer-events: none; opacity: .5; }
.why__lines path { fill: none; stroke: #2E6BC4; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- 14. Chairman ---------- */
.chairman { background: var(--tint); overflow: hidden; }
.chairman__card { position: relative; display: grid; gap: clamp(20px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 56px); box-shadow: var(--shadow-sm); }
@media (min-width: 980px) { .chairman__card { grid-template-columns: .5fr 1.5fr; align-items: start; } }
.chairman__side { display: grid; gap: 14px; align-content: start; }
.chairman__side h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.35; }
.chairman__side h2 span { display: block; color: var(--red); font-size: .62em; }
.chairman__mark { width: 52px; height: 52px; color: var(--blue); }
.chairman__quote blockquote { margin: 0; font-family: var(--f-head); font-size: clamp(16.5px, 1.35vw, 20px); font-weight: 600; line-height: 2.05; color: var(--navy); }
.chairman__sig { margin-top: 26px; display: flex; align-items: center; gap: 16px; }
.chairman__sig::before { content: ""; width: 40px; height: 3px; border-radius: 3px; background: var(--red); }
.chairman__sig strong { display: block; font-family: var(--f-head); font-weight: 800; font-size: 18px; color: var(--navy); }
.chairman__sig span { color: var(--red); font-size: 14.5px; font-weight: 700; font-family: var(--f-head); }
.chairman__ripple { position: absolute; inset-inline-end: -200px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); pointer-events: none; opacity: .7; }
.chairman__ripple circle { fill: none; stroke: #CFE0F5; stroke-width: 1; }

/* ---------- 15. Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
@media (min-width: 980px) { .contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.contact__info { display: grid; gap: 24px; align-content: start; }
.contact__list { display: grid; gap: 12px; }
.contact__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; align-items: center; }
.contact__ico { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.contact__ico svg { width: 22px; height: 22px; }
.contact__row h3 { font-size: 14.5px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.contact__row a { font-family: var(--f-latin); font-weight: 600; font-size: clamp(16px, 1.25vw, 18.5px); color: var(--navy); transition: color .3s; }
.contact__row a:hover { color: var(--blue); }
.contact__phones { display: grid; gap: 2px; }
.contact__phones a { text-align: right; }
.contact__row .name { font-family: var(--f-head); font-weight: 800; font-size: 17px; color: var(--navy); }
.form { display: grid; gap: 16px; background: var(--tint); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3.5vw, 40px); }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-family: var(--f-head); font-weight: 700; font-size: 14.5px; color: var(--navy); }
.field label .opt { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 15.5px; color: var(--ink); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: right; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3B82' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 18px; padding-left: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5, 80, 176, .14); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field__error { font-size: 13px; color: var(--red); }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form__note { font-size: 13.5px; color: var(--muted); max-width: 42ch; }
.form__status { font-size: 15px; padding: 12px 16px; border-radius: 12px; display: none; }
.form__status.is-visible { display: block; }
.form__status.is-ok { background: #E6F4EC; color: #1C5A37; }
.form__status.is-error { background: #FBEAEA; color: #7A1F22; }
.form__status a { text-decoration: underline; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* ---------- 16. Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,.78); padding-top: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.footer__cta { display: grid; gap: 22px; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-light); }
@media (min-width: 900px) { .footer__cta { grid-template-columns: 1fr auto; align-items: center; } }
.footer__cta h2 { color: #fff; font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; line-height: 1.5; }
.footer__cta h2 em { font-style: normal; color: var(--sky); }
.footer__grid { display: grid; gap: 32px; padding-block: clamp(40px, 5vw, 60px); }
@media (max-width: 759px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer__brand, .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer__links { font-size: 14px; }
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__brand img { width: 64px; height: 64px; margin-bottom: 16px; }
.footer__brand p { font-size: 15px; line-height: 1.9; max-width: 36ch; }
.footer h3 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.footer__links { display: grid; gap: 8px; font-size: 15px; }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--line-light); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: rgba(255,255,255,.66); }

/* ---------- 17. Floating actions ---------- */
.fab-wa { position: fixed; z-index: 80; bottom: 20px; left: 20px; width: 54px; height: 54px; border-radius: 50%; background: #1E8A52; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(11,59,130,.45); transform: translateY(16px) scale(.9); opacity: 0; pointer-events: none; transition: transform .6s var(--ease), opacity .6s var(--ease), background-color .3s; }
.fab-wa svg { width: 26px; height: 26px; }
.fab-wa.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.to-top { position: fixed; z-index: 80; bottom: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); border: 1px solid var(--line-strong); display: grid; place-items: center; box-shadow: var(--shadow-sm); transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform .6s var(--ease), opacity .6s var(--ease), background-color .3s, color .3s; }
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--blue); color: #fff; }
.menu-open .fab-wa, .menu-open .to-top, .lb-open .fab-wa, .lb-open .to-top { opacity: 0; pointer-events: none; }

/* ---------- 18. Gallery page ---------- */
.media { position: relative; overflow: hidden; background: var(--mist); }
.media picture { width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero { background: #fff; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 100px)); padding-bottom: clamp(48px, 7vw, 100px); position: relative; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 2; }
.page-hero .hero__bg img { object-position: left 75%; }
.page-hero h1 { color: var(--blue); font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; margin-top: 16px; }
.page-hero p { margin-top: 12px; color: var(--ink-soft); font-size: var(--fs-lead); max-width: 46ch; font-weight: 500; }
@media (max-width: 899px) { .page-hero .hero__bg { opacity: .16; } }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); font-family: var(--f-head); font-weight: 700; }
.crumbs a:hover { color: var(--blue); }
.filters { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filters__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.filters__inner::-webkit-scrollbar { display: none; }
.filters__list { display: flex; gap: 8px; }
.filter-btn { white-space: nowrap; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--f-head); font-weight: 700; font-size: 14.5px; color: var(--navy); transition: background-color .4s var(--ease), color .4s, border-color .4s; }
.filter-btn .count { font-family: var(--f-latin); font-size: 12px; opacity: .7; margin-inline-start: 6px; }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.filters__meta { font-size: 14px; color: var(--muted); white-space: nowrap; }
.masonry { columns: 2 200px; column-gap: 12px; padding-block: clamp(32px, 4vw, 60px); }
@media (min-width: 900px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1280px) { .masonry { columns: 4; } }
.tile { break-inside: avoid; margin-bottom: 12px; position: relative; display: block; width: 100%; border-radius: 14px; overflow: hidden; background: var(--mist); cursor: zoom-in; text-align: start; }
@media (min-width: 900px) { .tile { margin-bottom: 16px; } }
.tile img { width: 100%; height: auto; transition: transform 1.1s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,42,92,.78), rgba(10,42,92,0) 50%); opacity: 0; transition: opacity .5s var(--ease); }
.tile__cap { position: absolute; z-index: 2; inset-inline: 14px; bottom: 12px; color: #fff; font-size: 14px; line-height: 1.6; font-family: var(--f-head); font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.tile__cap small { display: block; font-size: 12px; color: var(--sky); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile:hover::after, .tile:focus-visible::after, .tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }
.tile.is-entering { animation: tileIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.gallery-note { padding-bottom: clamp(48px, 6vw, 88px); color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
noscript .ns { display: block; padding: 16px; background: var(--mist); text-align: center; }

/* ---------- 19. Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(7, 25, 52, .96); color: #fff; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(16px, 3vw, 32px); }
.lb__count { font-family: var(--f-latin); font-size: 14px; color: rgba(255,255,255,.75); }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 7vw, 110px); min-height: 0; touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.lb__img.is-loading { opacity: 0; transform: scale(.985); }
.lb__cap { padding: 14px clamp(16px, 3vw, 32px) 20px; text-align: center; font-size: 15px; font-family: var(--f-head); font-weight: 600; color: rgba(255,255,255,.9); min-height: 60px; }
.lb__cap small { display: block; color: var(--sky); font-size: 12.5px; }
.lb__btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; color: #fff; transition: background-color .3s, border-color .3s; }
.lb__btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.lb__btn svg { width: 20px; height: 20px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb__prev { right: clamp(8px, 2vw, 32px); }
.lb__next { left: clamp(8px, 2vw, 32px); }
@media (max-width: 640px) { .lb__nav { top: auto; bottom: -60px; transform: none; } .lb__prev { right: 16px; } .lb__next { left: 16px; } .lb__cap { padding-inline: 80px; } }
.lb-open { overflow: hidden; }
.about__main picture, .about__float picture, .vm-card__media picture { display: block; width: 100%; height: 100%; }
.project__frame { --slat: var(--tint); }

/* Compact layouts and responsive interactions. */
.contact__info, .form, .contact__row > div { min-width: 0; }
.contact__row a, .footer__links a, .form__note { overflow-wrap: anywhere; }
.contact__row a[dir="ltr"] { display: inline-block; max-width: 100%; }
.field input, .field select, .field textarea { min-width: 0; font-size: 16px; }
.mobile-menu__list, .mobile-menu__foot { flex-shrink: 0; }
.mobile-menu__foot a { overflow-wrap: anywhere; }
.projects-more { margin-top: 24px; }
.projects-more > summary { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin-inline: auto; min-height: 46px; padding: 8px 22px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--blue); font-weight: 700; cursor: pointer; list-style: none; }
.projects-more > summary::-webkit-details-marker { display: none; }
.projects-more > summary svg { width: 16px; height: 16px; }
.projects-more__open, .projects-more[open] .projects-more__closed { display: none; }
.projects-more[open] .projects-more__open { display: inline; }
.projects-more[open] > summary { margin-bottom: 24px; }
.projects-more[open] > summary svg { transform: rotate(45deg); }
.projects-more > summary:hover { border-color: var(--blue); background: var(--mist); }
:where(a, button, summary):focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.mobile-menu a:focus-visible { outline-color: #fff; }
@media (min-width: 640px) and (max-width: 1099px) {
  .projects > .project:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto; align-items: center; }
}
@media (max-width: 639px) {
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__content { padding-top: 20px; }
  .hero__eyebrow { font-size: 11px; }
  .hero-strip__item { flex-direction: row; justify-content: flex-start; padding: 12px 8px; gap: 8px; text-align: start; }
  .hero-strip__icon { width: 36px; height: 36px; border-radius: 10px; }
  .hero-strip__icon svg { width: 25px; height: 25px; }
  .hero-strip__label { font-size: 12px; }
  .hero-strip__label::after { display: none; }
  .service__title { font-size: 17px; }
  .service__media { aspect-ratio: 16 / 10; }
  .contact__row { gap: 10px; padding: 14px 12px; }
  .contact__row a { font-size: 15px; }
  .form { padding: 18px 14px; }
  .value { padding: 16px; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
  .value__top { grid-row: span 2; margin: 0; align-items: flex-start; }
  .value__icon { width: 38px; height: 38px; }
  .value__icon svg { width: 23px; height: 23px; }
  .value p { font-size: 14px; }
  .why__grid { gap: 10px; }
}
@media (max-width: 1079px) and (max-height: 500px) {
  .mobile-menu { padding-block: 12px max(16px, env(safe-area-inset-bottom)); gap: 20px; }
  .mobile-menu__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .mobile-menu__list a { font-size: 20px; padding-block: 8px; min-height: 44px; }
  .mobile-menu__foot { font-size: 13px; gap: 4px; }
}
