/* ==========================================================================
   Tawoos Power & Telecommunications - site stylesheet
   Sections: tokens / base / layout / buttons / header / hero / sections /
   cards / gallery / lightbox / timeline / clients / footer / forms / effects
   ========================================================================== */

/* ---------- 1. Design tokens ---------------------------------------------- */
:root {
  --brand: #0c6cb4;
  --brand-600: #0a5a9c;
  --link: #0c6cb4;
  --brand-bright: #0c9ce4;
  --brand-deep: #24549c;
  --accent: #f26a1b;
  --accent-600: #d9570a;
  --accent-text: #b84406;
  --accent-grad: linear-gradient(135deg, #e8620f, #cf5208 55%, #bd4606);
  --success: #1fbf8f;
  --danger: #e5484d;

  --navy-950: #030d1b;
  --navy-900: #061a33;
  --navy-800: #0a2547;
  --navy-700: #0e3260;

  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-2: #eaf1f8;
  --ink: #0e1b2e;
  --ink-soft: #2b3d55;
  --muted: #566a82;
  --line: #d9e4ef;
  --logo-card: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.86);
  --header-ink: #0e1b2e;

  --shadow-sm: 0 1px 2px rgba(10, 37, 71, 0.06), 0 6px 16px rgba(10, 37, 71, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 37, 71, 0.12);
  --shadow-lg: 0 28px 70px rgba(6, 26, 51, 0.22);
  --ring: 0 0 0 3px rgba(12, 156, 228, 0.45);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --container: 1200px;
  --header-h: 78px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --link: #55bdf2;
  --accent-text: #ff9a58;
  --bg: #06111f;
  --surface: #0c1d33;
  --surface-2: #0f2540;
  --ink: #e8eff8;
  --ink-soft: #c5d4e6;
  --muted: #9db2ca;
  --line: #1b3555;
  --header-bg: rgba(6, 17, 31, 0.82);
  --header-ink: #e8eff8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* ---------- 2. Base ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
::selection { background: rgba(255, 106, 19, 0.28); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. Layout ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--surface-2); }
.section--dark { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #e8f1fb; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: #b8cde4; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.section-head { max-width: 720px; margin: 0 0 clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(270deg, var(--accent), transparent); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); line-height: 1.7; }
.text-gradient { background: linear-gradient(100deg, #5fd0ff 0%, #2aa6ec 45%, #ff8a3d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.divider { position: absolute; left: 0; width: 100%; height: clamp(36px, 6vw, 80px); pointer-events: none; }
.divider--bottom { bottom: -1px; }
.divider--top { top: -1px; transform: scaleY(-1); }

/* ---------- 4. Buttons & chips -------------------------------------------------- */
.btn { --btn-bg: var(--brand); --btn-ink: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0.82rem 1.45rem; border: 0; border-radius: 999px; font-weight: 600; font-size: 0.97rem; line-height: 1.2; color: var(--btn-ink); background: var(--btn-bg); box-shadow: 0 8px 22px rgba(12, 108, 180, 0.28); overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); z-index: -1; }
.btn:hover { color: var(--btn-ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(12, 108, 180, 0.34); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn-accent { --btn-bg: var(--accent-grad); box-shadow: 0 10px 26px rgba(207, 82, 8, 0.38); }
.btn-accent:hover { box-shadow: 0 16px 34px rgba(207, 82, 8, 0.5); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.12); --btn-ink: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.btn-outline { --btn-bg: transparent; --btn-ink: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }
.btn-outline:hover { --btn-bg: var(--brand); color: #fff; box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn[disabled] { opacity: 0.65; pointer-events: none; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: var(--surface-2); color: var(--ink-soft); }
.chip--glass { background: rgba(255, 255, 255, 0.12); color: #e6f2ff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.pulse-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--success); }
.pulse-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--success); animation: ping 1.8s ease-out infinite; }

/* ---------- 5. Header ----------------------------------------------------------- */
.site-header { position: fixed; z-index: 900; top: 0; left: 0; right: 0; height: var(--header-h); display: flex; align-items: center; color: #fff; transition: height 0.3s var(--ease), color 0.3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(6, 26, 51, 0.08); opacity: 0; transition: opacity 0.3s var(--ease); }
.site-header.is-scrolled { --header-h: 66px; color: var(--header-ink); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; flex: none; background: #fff; border-radius: 12px; padding: 6px 12px; box-shadow: 0 6px 18px rgba(3, 13, 27, 0.18); transition: transform 0.25s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand img { width: auto; height: 38px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a { position: relative; display: block; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: inherit; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.main-nav a:hover { color: inherit; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--accent); }
.site-header:not(.is-scrolled) .main-nav a[aria-current="page"] { color: #ffb27a; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); transition: background 0.2s, transform 0.2s var(--ease); }
.site-header.is-scrolled .icon-btn { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.icon-btn:hover { transform: rotate(12deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; }
.main-nav .nav-cta a { margin-left: 8px; padding: 10px 20px; color: #fff; background: var(--accent-grad); box-shadow: 0 8px 20px rgba(207, 82, 8, 0.34); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.main-nav .nav-cta a::after { display: none; }
.main-nav .nav-cta a:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 106, 19, 0.42); }
.main-nav .nav-cta a[aria-current="page"], .site-header:not(.is-scrolled) .main-nav .nav-cta a[aria-current="page"] { color: #fff; }
.accent-word { color: var(--accent-600); }
[data-theme="dark"] .accent-word { color: #ff8a3d; }
.has-subnav { scroll-padding-top: 150px; }
.reveal-fallback .reveal { opacity: 1 !important; transform: none !important; }
.scroll-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--brand-bright), var(--accent)); }
.nav-backdrop { position: fixed; inset: 0; z-index: 880; background: rgba(3, 13, 27, 0.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }

/* ---------- 6. Hero ------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(160deg, #031126 0%, #06214a 55%, #0a3a73 100%); min-height: min(100vh, 880px); display: flex; align-items: center; padding: calc(var(--header-h) + 36px) 0 clamp(96px, 12vw, 150px); }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(38% 38% at 18% 30%, rgba(12, 156, 228, 0.34), transparent 62%), radial-gradient(32% 32% at 82% 18%, rgba(255, 106, 19, 0.2), transparent 62%), radial-gradient(46% 46% at 58% 86%, rgba(36, 84, 156, 0.5), transparent 62%); animation: meshDrift 20s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 35%, transparent 100%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 35%, transparent 100%); }
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hs { --W: 1440; --H: 640; position: absolute; right: 0; bottom: 0; width: 100%; min-width: 1000px; aspect-ratio: 1440 / 640; }
.hs-layer { position: absolute; inset: 0; transition: transform 0.4s ease-out; will-change: transform; }
.hs-layer > svg:not(.fx) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero-inner { position: relative; }
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; margin: 18px 0 20px; }
.hero .lead { color: #c7daf0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats li { display: flex; flex-direction: column; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); min-width: 130px; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: #fff; }
.hero-stats li > span { font-size: 0.8rem; color: #aac4e0; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); z-index: 2; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(160deg, #031126, #06214a 60%, #0a3a73); padding: calc(var(--header-h) + 56px) 0 clamp(72px, 9vw, 112px); }
.page-hero .hero-bg::before { animation-duration: 26s; }
.page-hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); color: #fff; margin: 14px 0 16px; }
.page-hero .lead { color: #c1d5ec; max-width: 560px; margin-bottom: 26px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: #9fbbd9; }
.breadcrumb a { color: #cfe3f8; }
.breadcrumb a:hover { color: #ffb27a; }
.breadcrumb .sep { opacity: 0.5; }
.page-hero-art { position: relative; justify-self: end; width: min(100%, 440px); }
.page-hero-art .art { border-radius: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12); animation: floaty 7s ease-in-out infinite; }
.page-hero-art::before { content: ""; position: absolute; inset: -14% -10%; background: radial-gradient(closest-side, rgba(12, 156, 228, 0.32), transparent); z-index: -1; }

/* ---------- 7. Trust strip / marquee --------------------------------------------- */
.trust { position: relative; z-index: 3; margin-top: -64px; }
.trust-box { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px 0 22px; border: 1px solid var(--line); }
.trust-label { text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-track[data-ready] { animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee .logo-card { flex: none; width: 190px; height: 84px; margin-right: 18px; box-shadow: none; border: 1px solid var(--line); }

.logo-card { display: grid; place-items: center; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--logo-card); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.logo-card img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.3s, opacity 0.3s, transform 0.3s var(--ease); }
.logo-card:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.logo-card--text { text-align: center; color: #5a6f87; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; line-height: 1.15; transition: color 0.3s; }
.logo-card--text small { display: block; margin-top: 3px; font-family: var(--font-body); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em; color: #7c8da2; }
.logo-card--text:hover { color: var(--brand); }

.clients-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.clients-wall .logo-card { height: 150px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.clients-wall .logo-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand-bright), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.clients-wall .logo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.clients-wall .logo-card:hover::before { transform: scaleX(1); }
.clients-wall .logo-card img { max-height: 82px; filter: none; opacity: 1; }
.clients-wall .logo-card--text { font-size: 1.45rem; }

/* ---------- 8. About / photos / stats -------------------------------------------- */
.photo-stack { position: relative; min-height: 440px; }
.photo-stack figure { position: absolute; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--surface); background: var(--surface-2); }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .p1 { left: 0; top: 0; width: 62%; aspect-ratio: 4/3; transform: rotate(-2.5deg); }
.photo-stack .p2 { right: 0; top: 14%; width: 44%; aspect-ratio: 3/4; transform: rotate(3deg); }
.photo-stack .p3 { left: 12%; bottom: 0; width: 50%; aspect-ratio: 1/1; transform: rotate(1.5deg); }
.badge-float { position: absolute; right: 6%; bottom: 8%; z-index: 3; display: grid; place-items: center; text-align: center; width: 128px; height: 128px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); box-shadow: 0 16px 40px rgba(12, 108, 180, 0.5); }
.badge-float::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px dashed rgba(12, 156, 228, 0.6); animation: spin 24s linear infinite; }
.badge-float strong { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.badge-float span { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.checklist { display: grid; gap: 10px; margin: 22px 0 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checklist .icon { margin-top: 3px; color: var(--success); width: 1.2em; height: 1.2em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(12, 156, 228, 0.18), transparent); }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-icon { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); box-shadow: 0 10px 22px rgba(12, 108, 180, 0.35); }
.stat-icon .icon { width: 26px; height: 26px; }
.stat-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 1.5px dashed rgba(12, 156, 228, 0.55); animation: spin 18s linear infinite; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: var(--ink); }
.stat-num small { font-size: 0.55em; color: var(--accent); margin-left: 2px; }
.stat-label { margin-top: 8px; font-weight: 700; color: var(--ink); }
.stat-sub { font-size: 0.88rem; color: var(--muted); }

/* ---------- 9. Cards: solutions / services / process ------------------------------ */
.feature-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s; transform-style: preserve-3d; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-card__art { overflow: hidden; background: var(--navy-900); }
.feature-card__art .art { transition: transform 0.8s var(--ease); }
.feature-card:hover .feature-card__art .art { transform: scale(1.06); }
.feature-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.feature-card__body p { color: var(--muted); }
.feature-card__body .link-more { margin-top: auto; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--link); }
.link-more .icon { transition: transform 0.25s var(--ease); }
.link-more:hover .icon { transform: translateX(5px); }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(12, 156, 228, 0.16), transparent 60%); transition: opacity 0.3s; z-index: 1; }
.spot:hover::before { opacity: 1; }

.service-card { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(12, 156, 228, 0.5); }
.service-card .ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; color: var(--link); background: rgba(12, 156, 228, 0.12); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.service-card .ico .icon { width: 26px; height: 26px; }
.service-card:hover .ico { background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); color: #fff; transform: rotate(-6deg) scale(1.06); }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.service-card .go { position: absolute; right: 18px; top: 18px; color: var(--muted); opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.service-card:hover .go { opacity: 1; transform: none; color: var(--accent); }

.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38px; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 10px, transparent 10px 20px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-icon { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); box-shadow: 0 0 0 8px rgba(12, 156, 228, 0.16), 0 14px 34px rgba(12, 108, 180, 0.5); transition: transform 0.4s var(--ease); }
.step:hover .step-icon { transform: scale(1.1) rotate(-4deg); }
.step-icon .icon { width: 32px; height: 32px; }
.step-num { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 0.78rem; background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(255, 106, 19, 0.5); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: #b3c9e2; margin: 0; }

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s; overflow: hidden; }
.cert:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cert::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.9s var(--ease); pointer-events: none; }
.cert:hover::before { transform: translateX(120%); }
.cert img { width: 110px; height: 110px; object-fit: contain; border-radius: 50%; margin-bottom: 14px; background: #fff; box-shadow: 0 6px 20px rgba(12, 108, 180, 0.2); }
.cert h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cert p { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.cert .link-more { font-size: 0.88rem; margin-top: auto; }

.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); color: #fff; background: linear-gradient(120deg, var(--navy-800), var(--brand-deep) 60%, var(--brand)); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 70% at 90% 10%, rgba(255, 106, 19, 0.4), transparent 70%), radial-gradient(30% 60% at 10% 100%, rgba(25, 195, 255, 0.3), transparent 70%); }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; z-index: -1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.16); box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.05), 0 0 0 78px rgba(255, 255, 255, 0.03); animation: floaty 9s ease-in-out infinite; }
.cta-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { margin: 0; color: #d3e4f6; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 10. Galleries & filters ------------------------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: all 0.25s var(--ease); }
.chip-btn:hover { color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); transform: translateY(-2px); }
.chip-btn.is-active { color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); box-shadow: 0 10px 24px rgba(12, 108, 180, 0.35); }
.chip-btn .icon { width: 1.15em; height: 1.15em; }

.cat-panel { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; margin-bottom: 28px; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cat-panel h3 { margin-bottom: 6px; font-size: 1.35rem; }
.cat-panel p { margin: 0; color: var(--muted); }
.cat-panel__art .art { display: none; border-radius: 16px; box-shadow: var(--shadow-md); }
.cat-panel__art .art.is-on { display: block; }
.cat-panel.is-swapping { animation: swapIn 0.45s var(--ease); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--surface-2); aspect-ratio: 1/1; box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform 0.4s var(--ease), box-shadow 0.4s, opacity 0.35s; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3, 13, 27, 0.86)); opacity: 0; transition: opacity 0.35s; }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 14px; font-size: 0.82rem; font-weight: 600; color: #fff; transform: translateY(10px); opacity: 0; transition: all 0.35s var(--ease); }
.gallery-item .zoom { position: absolute; z-index: 2; right: 10px; top: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(6, 26, 51, 0.72); opacity: 0; transform: scale(0.7); transition: all 0.3s var(--ease); }
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.gallery-item:hover img { transform: scale(1.09); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { transform: none; opacity: 1; }
.gallery-item:hover .zoom, .gallery-item:focus-visible .zoom { opacity: 1; transform: none; }
.gallery-item.is-hidden { display: none; }

.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.mosaic .gallery-item { aspect-ratio: auto; height: 100%; }
.mosaic .m-tall { grid-row: span 2; }
.mosaic .m-wide { grid-column: span 2; }

/* ---------- 11. Lightbox ------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 1500; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(3, 10, 22, 0.93); backdrop-filter: blur(8px); }
.lightbox.is-open { display: flex; animation: fadeIn 0.25s ease-out; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-img { max-width: min(92vw, 1100px); max-height: 76vh; width: auto; height: auto; border-radius: 14px; background: #0b1626; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: zoomIn 0.3s var(--ease); }
.lb-caption { text-align: center; color: #d6e5f6; font-size: 0.98rem; max-width: 640px; }
.lb-count { display: block; margin-top: 2px; font-size: 0.8rem; color: #8aa6c4; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.12); transition: background 0.2s, transform 0.2s var(--ease); }
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); transform: scale(1.08); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.lb-next { right: 18px; top: 50%; margin-top: -24px; }

/* ---------- 12. Timeline --------------------------------------------------------------- */
.timeline-wrap { position: relative; max-width: 980px; margin: 0 auto; }
.timeline-wrap::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--line); }
.timeline-progress { position: absolute; left: 50%; top: 0; width: 3px; margin-left: -1.5px; height: var(--tl, 0%); border-radius: 3px; background: linear-gradient(var(--brand-bright), var(--accent)); box-shadow: 0 0 16px rgba(25, 195, 255, 0.6); z-index: 1; }
.timeline > li { position: relative; width: 50%; padding: 0 48px 38px 0; }
.timeline > li:nth-child(even) { margin-left: 50%; padding: 0 0 38px 48px; }
.tl-dot { position: absolute; z-index: 2; top: 22px; right: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid var(--line); transition: all 0.5s var(--ease); }
.timeline > li:nth-child(even) .tl-dot { left: -11px; right: auto; }
.timeline > li.is-visible .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 7px rgba(255, 106, 19, 0.18); }
.tl-card { position: relative; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tl-card::after { content: ""; position: absolute; top: 28px; right: -8px; width: 16px; height: 16px; background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); }
.timeline > li:nth-child(even) .tl-card::after { left: -8px; right: auto; transform: rotate(-135deg); }
.tl-year { display: inline-block; margin-bottom: 8px; padding: 4px 14px; border-radius: 999px; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); }
.tl-card p { margin: 0; color: var(--ink-soft); }

.mission { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 30px 34px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg, var(--navy-800), var(--brand-deep)); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.mission::after { content: ""; position: absolute; right: -50px; top: -50px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.04); }
.mission .ico { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; background: rgba(255, 255, 255, 0.14); color: #ffb27a; }
.mission .ico .icon { width: 34px; height: 34px; }
.mission h3 { color: #fff; margin-bottom: 6px; font-size: 1.4rem; }
.mission p { margin: 0; color: #cfe1f5; font-size: 1.05rem; }

/* ---------- 13. Services page ------------------------------------------------------------ */
.svc-nav { position: sticky; top: 64px; z-index: 700; padding: 12px 0; background: var(--header-bg); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.svc-nav-inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }
.svc-nav-inner::-webkit-scrollbar { display: none; }
.svc-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: all 0.25s var(--ease); }
.svc-nav a:hover { color: var(--link); }
.svc-nav a.is-active { color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); box-shadow: 0 8px 20px rgba(12, 108, 180, 0.32); }
.svc-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.svc-block:last-child { border-bottom: 0; }
.svc-block:nth-child(even) .svc-art { order: 2; }
.svc-art .art { border-radius: 24px; box-shadow: var(--shadow-lg); }
.svc-title { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.svc-title .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); }
.svc-title h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0; }
.svc-tag { font-family: var(--font-head); font-weight: 700; color: var(--accent-text); margin: 10px 0 8px; }
.svc-points { display: grid; gap: 8px; margin: 18px 0 22px; }
.svc-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.svc-points .icon { margin-top: 4px; width: 1.1em; height: 1.1em; color: var(--success); }
.gallery--sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 8px; }
.gallery--sm .gallery-item { border-radius: 12px; }

/* ---------- 14. Footer --------------------------------------------------------------------- */
.site-footer { position: relative; margin-top: 0; color: #b8cde4; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); padding: clamp(56px, 8vw, 96px) 0 0; }
.site-footer .footer-title { color: #fff; font-size: 1.02rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { display: inline-block; margin-bottom: 18px; }
.footer-brand p { color: #9fb7d1; max-width: 320px; }
.footer-list { display: grid; gap: 10px; }
.footer-list a { color: #b8cde4; }
.footer-list a:hover { color: #ffb27a; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--accent); }
.footer-contact a { color: #cfe1f5; }
.hours-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: rgba(255, 255, 255, 0.08); }
.hours-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #7f93ab; }
.hours-status.is-open .dot { background: var(--success); box-shadow: 0 0 0 4px rgba(31, 191, 143, 0.25); }
.hours-status.is-open { color: #8ff0cb; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #cfe1f5; background: rgba(255, 255, 255, 0.08); transition: all 0.25s var(--ease); }
.social a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.88rem; color: #8aa3bf; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 800; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; color: #fff; background: var(--accent-grad); box-shadow: 0 12px 28px rgba(255, 106, 19, 0.45); opacity: 0; visibility: hidden; transform: translateY(14px); transition: all 0.35s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 15. Contact & forms --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.info-stack { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-card .ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); }
.info-card h3 { margin: 0 0 2px; font-size: 1rem; }
.info-card p, .info-card a { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.info-card .hours-status { background: var(--surface-2); color: var(--muted); }
.info-card .hours-status.is-open { color: #0f9b72; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-bright); box-shadow: var(--ring); background: var(--surface); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 6px 0 0; font-size: 0.82rem; color: var(--danger); min-height: 0; }
.hp-field { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { display: flex; align-items: center; gap: 12px; }
.captcha-q { flex: none; padding: 12px 16px; border-radius: 12px; font-family: var(--font-head); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy-800), var(--brand-deep)); letter-spacing: 0.04em; min-width: 120px; text-align: center; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-status { font-weight: 600; font-size: 0.95rem; }
.form-status.is-ok { color: #0f9b72; }
.form-status.is-error { color: var(--danger); }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.is-loading .spinner { display: block; }
.map-frame { overflow: hidden; margin-top: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--surface-2); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--surface); border-top: 1px solid var(--line); }

.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.center-page .lead { max-width: 520px; margin: 0 auto 26px; }
.check-anim { width: 120px; height: 120px; margin: 0 auto 24px; }
.check-anim circle { fill: none; stroke: var(--success); stroke-width: 4; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 0.9s 0.1s var(--ease) forwards; }
.check-anim path { fill: none; stroke: var(--success); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw 0.5s 0.8s var(--ease) forwards; }
.lost-art { width: min(100%, 420px); margin: 0 auto 10px; border-radius: 28px; box-shadow: var(--shadow-lg); }

/* ---------- 16. Effects & keyframes ------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal[data-reveal="left"] { transform: translate3d(-34px, 0, 0); }
.js .reveal[data-reveal="right"] { transform: translate3d(34px, 0, 0); }
.js .reveal[data-reveal="zoom"] { transform: scale(0.93); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* First-screen entrance: pure CSS, so the headline is visible at the first paint (no waiting for scripts).
   "backwards" fill = nothing is left running once it has played. */
.enter { animation: enterUp 0.8s var(--ease) var(--d, 0ms) backwards; }
.enter--text { animation-name: enterRise; }
.enter--zoom { animation-name: enterZoom; }
.reveal-fallback .enter { animation: none; }
@keyframes enterUp { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
@keyframes enterRise { from { transform: translate3d(0, 16px, 0); } }
@keyframes enterZoom { from { opacity: 0; transform: scale(0.94); } }

/* ---------- Motion overlays: signal rings, blinking lights, data packets --------------------------
   The illustrations are plain, static SVG pictures (drawn once). Everything that moves is a small
   element placed on top of the picture and animated with transform / opacity only, which the browser
   hands to the graphics card - so a page full of motion costs the processor almost nothing.
   Positions are written as design units (--x, --y out of --W x --H) and become percentages here,
   so the overlays stay locked to the picture at every screen size. */
.art { --W: 480; --H: 360; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-900); }
.art > img { display: block; width: 100%; height: 100%; }
.fx { --fxc: #19c3ff; position: absolute; left: calc(var(--x) / var(--W) * 100%); top: calc(var(--y) / var(--H) * 100%); margin: 0; pointer-events: none; }
.c-orange { --fxc: #ff8a3d; }
.c-green { --fxc: #3ddc97; }
.c-red { --fxc: #ff4d5a; }
.c-white { --fxc: #eaf6ff; }
.c-amber { --fxc: #ffc247; }
.fx-ring { width: calc(var(--r) * 2 / var(--W) * 100%); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--fxc); opacity: 0; transform: translate(-50%, -50%) scale(0.06); animation: fxRing var(--t, 3.6s) cubic-bezier(0.25, 0.6, 0.35, 1) var(--d, 0s) infinite; }
.fx-dot { width: calc(var(--s) / var(--W) * 100%); aspect-ratio: 1; border-radius: 50%; background: var(--fxc); box-shadow: 0 0 7px 2px var(--fxc); opacity: 0.2; transform: translate(-50%, -50%); animation: fxBlink var(--t, 1.8s) ease-in-out var(--d, 0s) infinite; }
.fx-pkt { width: calc(var(--s) / var(--W) * 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 24%, var(--fxc) 25% 62%, transparent 72%); box-shadow: 0 0 9px 1px var(--fxc); opacity: 0; transform: translate(-50%, -50%); animation: fxPkt var(--t, 3.2s) linear var(--d, 0s) infinite; }
.fx-needle { width: calc(var(--len) / var(--W) * 100%); height: 2px; border-radius: 2px; background: var(--fxc); box-shadow: 0 0 6px var(--fxc); transform-origin: 0 50%; transform: rotate(-90deg); animation: fxSpin var(--t, 12s) linear var(--d, 0s) infinite; }
.tw { left: 0; top: 0; width: 100%; height: calc(332 / var(--H) * 100%); max-width: none; opacity: 0.3; animation: fxTwinkle 3.4s ease-in-out infinite alternate; }
.tw-b { animation-duration: 4.7s; animation-delay: -2.1s; }
.fx-wave { width: calc(var(--r) * 2 / var(--W) * 100%); aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; border-right-color: var(--fxc); opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) scale(0.45); animation: fxWave var(--t, 2.6s) ease-out var(--d, 0s) infinite; }
.fx-scan { width: calc(var(--sw) / var(--W) * 100%); height: calc(var(--h) / var(--H) * 100%); background: var(--fxc); box-shadow: 0 0 6px 1px var(--fxc); opacity: 0.9; transform: translate(0, -50%); animation: fxScan var(--t, 6.5s) linear var(--d, 0s) infinite; }
.fx-cover { width: calc(var(--w) / var(--W) * 100%); height: calc(var(--h) / var(--H) * 100%); background: #04162f; transform: translate(-50%, -50%); transform-origin: 100% 50%; animation: fxCover var(--t, 6.5s) linear var(--d, 0s) infinite; }
.fx-sweep { width: calc(var(--r) * 2 / var(--W) * 100%); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(rgba(25, 195, 255, 0) 0deg, rgba(25, 195, 255, 0) 240deg, rgba(25, 195, 255, 0.4) 360deg); transform: translate(-50%, -50%); animation: fxRot var(--t, 6.5s) linear var(--d, 0s) infinite; }
.fx-glow { width: calc(var(--w) / var(--W) * 100%); height: calc(var(--h) / var(--H) * 100%); border-radius: 9px; background: #fff; opacity: 0; transform: translate(-50%, -50%); animation: fxGlow var(--t, 6s) ease-in-out var(--d, 0s) infinite; }
.fx-move { width: calc(var(--w) / var(--W) * 100%); opacity: 0; transform: translate(0, -50%); animation: fxMove var(--t, 12s) linear var(--d, 0s) infinite; }
.fx-move svg { display: block; width: 100%; height: auto; max-width: none; }
@keyframes fxWave { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) scale(0.45); } 25% { opacity: 0.85; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) scale(1.1); } }
@keyframes fxScan { 0% { transform: translate(0, -50%); opacity: 0.9; } 72% { transform: translate(calc(var(--len) / var(--sw) * 100%), -50%); opacity: 0.9; } 80%, 100% { transform: translate(calc(var(--len) / var(--sw) * 100%), -50%); opacity: 0; } }
@keyframes fxCover { 0% { transform: translate(-50%, -50%) scaleX(1); } 72%, 100% { transform: translate(-50%, -50%) scaleX(0); } }
@keyframes fxRot { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes fxGlow { 0% { opacity: 0; } 5% { opacity: 0.32; } 12%, 100% { opacity: 0; } }
@keyframes fxMove { 0% { opacity: 0; transform: translate(0, -50%); } 3% { opacity: 1; } 97% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--len) / var(--w) * 100%), -50%); } }
@keyframes fxRing { 0% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.06); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@keyframes fxBlink { 0%, 100% { opacity: 0.18; } 45%, 55% { opacity: 1; } }
@keyframes fxPkt { 0% { opacity: 0; transform: translate(-50%, -50%); } 12%, 88% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) translate(calc(var(--dx) / var(--s) * 100%), calc(var(--dy) / var(--s) * 100%)); } }
@keyframes fxSpin { to { transform: rotate(270deg); } }
@keyframes fxTwinkle { from { opacity: 0.12; } to { opacity: 1; } }
/* Motion that is off-screen is paused (the page script adds .is-off) */
.is-off, .is-off *, .is-off::before, .is-off::after, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
.reveal-fallback .fx-cover { display: none; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes meshDrift { 0% { transform: translate3d(-3%, -2%, 0) scale(1); } 100% { transform: translate3d(3%, 3%, 0) scale(1.08); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 17. Responsive ------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .grid-4, .stats, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .process::before { display: none; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .main-nav { position: fixed; z-index: 890; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); padding: 96px 22px 30px; background: var(--surface); color: var(--ink); transform: translateX(104%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s linear 0.4s; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta a { margin: 10px 0 0; text-align: center; }
  .main-nav a[aria-current="page"] { background: rgba(255, 106, 19, 0.12); color: var(--accent-600); }
  .nav-open .main-nav { transform: none; visibility: visible; box-shadow: -20px 0 60px rgba(3, 13, 27, 0.4); transition: transform 0.4s var(--ease), visibility 0s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { color: var(--header-ink); }
  .split, .page-hero-inner, .contact-grid, .svc-block, .cta-band { grid-template-columns: 1fr; }
  .page-hero-art { justify-self: start; width: min(100%, 380px); }
  .svc-block:nth-child(even) .svc-art { order: 0; }
  .cat-panel { grid-template-columns: 1fr; }
  .cat-panel__art { max-width: 300px; }
  .photo-stack { min-height: 380px; max-width: 520px; margin: 0 auto; }
  .hero-art { opacity: 0.75; }
  .hero-stats li { background: rgba(5, 20, 45, 0.72); }
  .timeline-wrap::before, .timeline-progress { left: 14px; margin-left: 0; }
  .timeline > li, .timeline > li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 30px 46px; }
  .tl-dot, .timeline > li:nth-child(even) .tl-dot { left: 3px; right: auto; }
  .tl-card::after, .timeline > li:nth-child(even) .tl-card::after { left: -8px; right: auto; transform: rotate(-135deg); }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats, .cert-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 22px 18px; }
  .clients-wall { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .clients-wall .logo-card { height: 120px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .process { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic .m-wide { grid-column: span 2; }
  .form-grid { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; padding: 26px; }
  .hero { padding-bottom: 130px; }
  .hero-stats li { min-width: 0; flex: 1 1 140px; background: rgba(5, 20, 45, 0.72); }
  .trust { margin-top: -44px; }
  .badge-float { width: 104px; height: 104px; }
  .badge-float strong { font-size: 1.5rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { top: 10px; right: 10px; }
}
@media (max-width: 460px) {
  .brand img { height: 32px; }
  .stats, .cert-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .btn-lg { padding: 0.9rem 1.4rem; }
}

/* ---------- 18. Services grid, OSI 7-layer diagram, current projects ----------------------------------------- */
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.grid-5 .service-card { padding: 22px 20px; }
.grid-5 .service-card h3 { font-size: 1.05rem; }
.grid-5 .service-card p { font-size: 0.9rem; }
.svc-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 0.92rem; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); }
.svc-note .icon { flex: none; margin-top: 3px; color: var(--link); }
.svc-block .link-more { margin: 0 0 18px; }

.osi-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.osi-visual { position: sticky; top: calc(var(--header-h) + 74px); padding: 22px; border-radius: var(--radius-lg); color: #e8f1fb; background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); box-shadow: var(--shadow-lg); }
.osi-stage { --row: 44px; --gap: 8px; --step: calc(var(--row) + var(--gap)); --head: 30px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 17% minmax(0, 1fr); }
.osi-col { position: relative; }
.osi-head { display: flex; align-items: center; height: var(--head); font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9fbbd9; }
.osi-col--rx .osi-head { justify-content: flex-end; }
.osi-col ol { display: grid; gap: var(--gap); }
.osi-col li { position: relative; display: flex; align-items: center; gap: 8px; height: var(--row); padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--c); background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.osi-col li::after { content: ""; position: absolute; inset: 0; background: var(--c); opacity: 0; animation: osiGlow 16s linear var(--g, 0s) infinite; }
.osi-n { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; font-family: var(--font-head); font-weight: 800; font-size: 0.8rem; color: var(--navy-950); background: var(--c); }
.osi-name { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 0.86rem; color: #fff; }
.osi-pdu { position: relative; z-index: 1; margin-left: auto; white-space: nowrap; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #9fbbd9; }
.osi-mid { position: relative; }
.osi-lane { position: absolute; left: 0; right: 0; top: calc(var(--head) + var(--step) * 6 + var(--row) / 2); height: 0; border-top: 2px dashed rgba(143, 211, 255, 0.55); }
.osi-runner { position: absolute; left: 0; top: -7px; width: 100%; height: 14px; opacity: 0; animation: osiAcross 16s linear infinite; }
.osi-dot { position: absolute; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #fff 0 24%, #ff8a3d 25% 62%, rgba(255, 138, 61, 0) 72%); box-shadow: 0 0 10px 2px rgba(255, 138, 61, 0.7); }
.osi-runner .osi-dot { left: -7px; top: 0; }
.osi-dot--down { right: -7px; top: calc(var(--head) + var(--row) / 2 - 7px); opacity: 0; animation: osiDown 16s linear infinite; }
.osi-dot--up { left: -7px; top: calc(var(--head) + var(--row) / 2 - 7px); opacity: 0; animation: osiUp 16s linear infinite; }
.osi-medium { position: absolute; left: 0; right: 0; top: calc(var(--head) + var(--step) * 6 + var(--row) / 2 - 50px); height: 44px; display: flex; align-items: flex-end; justify-content: center; text-align: center; font-size: 0.6rem; line-height: 1.25; letter-spacing: 0.06em; text-transform: uppercase; color: #9fbbd9; }
.osi-caption { margin: 18px 0 12px; font-size: 0.9rem; color: #b3c9e2; }
.osi-why { margin: 0; gap: 8px; }
.osi-why li { font-size: 0.9rem; color: #d3e4f6; }
.osi-list { display: grid; gap: 14px; }
.osi-card { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); box-shadow: var(--shadow-sm); }
.osi-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.osi-badge { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font-family: var(--font-head); font-weight: 800; color: var(--navy-950); background: var(--c); }
.osi-card h3 { margin: 0; font-size: 1.08rem; }
.osi-unit { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.osi-card p { margin: 0 0 10px; font-size: 0.95rem; color: var(--ink-soft); }
.osi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.osi-chips li { padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); }
.osi-card .osi-gear { font-size: 0.88rem; color: var(--muted); }
.osi-card .osi-ours { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--ink); background: rgba(255, 106, 19, 0.1); border: 1px solid rgba(255, 106, 19, 0.35); }
.osi-ours .icon { flex: none; margin-top: 3px; color: var(--accent-text); }
.osi-foot { margin: 22px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.project-art .art { border-radius: 0; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.project-body h3 { margin-bottom: 8px; font-size: 1.4rem; }
.project-lead { color: var(--ink-soft); }
.facts { display: grid; gap: 10px; margin: 8px 0 18px; }
.facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.93rem; }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-soft); }
.project-src { margin: 16px 0 0; font-size: 0.78rem; color: var(--muted); }
.project .link-more { margin-top: auto; }
.projects--stack { grid-template-columns: 1fr; }
.projects--stack .project { flex-direction: row; }
.projects--stack .project:nth-child(even) { flex-direction: row-reverse; }
.projects--stack .project-art { flex: 0 0 min(42%, 440px); display: grid; align-content: center; background: var(--navy-900); }
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .osi-layout, .projects { grid-template-columns: 1fr; }
  .osi-visual { position: static; }
  .projects--stack .project, .projects--stack .project:nth-child(even) { flex-direction: column; }
  .projects--stack .project-art { flex-basis: auto; }
}
@media (max-width: 720px) {
  .grid-5 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .osi-visual { padding: 14px; }
  .osi-stage { --row: 40px; --gap: 6px; grid-template-columns: minmax(0, 1fr) 14% minmax(0, 1fr); }
  .osi-pdu, .osi-medium { display: none; }
  .osi-name { font-size: 0.78rem; }
}

@keyframes osiDown { 0% { opacity: 0; transform: translateY(0); } 1.562% { opacity: 1; transform: translateY(0); } 3.125% { transform: translateY(calc(var(--step) * 0)); } 6.25% { transform: translateY(calc(var(--step) * 1)); } 9.375% { transform: translateY(calc(var(--step) * 1)); } 12.5% { transform: translateY(calc(var(--step) * 2)); } 15.625% { transform: translateY(calc(var(--step) * 2)); } 18.75% { transform: translateY(calc(var(--step) * 3)); } 21.875% { transform: translateY(calc(var(--step) * 3)); } 25% { transform: translateY(calc(var(--step) * 4)); } 28.125% { transform: translateY(calc(var(--step) * 4)); } 31.25% { transform: translateY(calc(var(--step) * 5)); } 34.375% { transform: translateY(calc(var(--step) * 5)); } 37.5% { transform: translateY(calc(var(--step) * 6)); } 38.75% { opacity: 1; transform: translateY(calc(var(--step) * 6)); } 40.625%, 100% { opacity: 0; transform: translateY(calc(var(--step) * 6)); } }
@keyframes osiUp { 0%, 49.375% { opacity: 0; transform: translateY(calc(var(--step) * 6)); } 50% { opacity: 1; transform: translateY(calc(var(--step) * 6)); } 53.125% { transform: translateY(calc(var(--step) * 6)); } 56.25% { transform: translateY(calc(var(--step) * 5)); } 59.375% { transform: translateY(calc(var(--step) * 5)); } 62.5% { transform: translateY(calc(var(--step) * 4)); } 65.625% { transform: translateY(calc(var(--step) * 4)); } 68.75% { transform: translateY(calc(var(--step) * 3)); } 71.875% { transform: translateY(calc(var(--step) * 3)); } 75% { transform: translateY(calc(var(--step) * 2)); } 78.125% { transform: translateY(calc(var(--step) * 2)); } 81.25% { transform: translateY(calc(var(--step) * 1)); } 84.375% { transform: translateY(calc(var(--step) * 1)); } 87.5% { transform: translateY(calc(var(--step) * 0)); } 89.375% { opacity: 1; transform: translateY(0); } 92.5%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes osiAcross { 0%, 37.188% { opacity: 0; transform: translateX(0); } 37.5% { opacity: 1; transform: translateX(0); } 50% { opacity: 1; transform: translateX(100%); } 50.625%, 100% { opacity: 0; transform: translateX(100%); } }
@keyframes osiGlow { 0% { opacity: 0; } 1.5% { opacity: 0.5; } 3.5% { opacity: 0.5; } 5.5%, 100% { opacity: 0; } }

/* ---------- 19. Overview cards, end-to-end picture, lifecycle, solutions and standards pages --------------------- */
.art--wide { --W: 960; --H: 360; aspect-ratio: 8 / 3; }
.e2e .art { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.section-more { margin-top: 34px; text-align: center; }
.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.overview-card { position: relative; display: block; padding: 24px 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.overview-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(12, 156, 228, 0.5); }
.overview-card .ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); }
.overview-card .ico .icon { width: 26px; height: 26px; }
.overview-card .ov-num { position: absolute; right: 18px; top: 14px; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--line); }
.overview-card h3 { margin-bottom: 6px; font-size: 1.08rem; }
.overview-card p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.overview-card .go { position: absolute; right: 18px; bottom: 16px; color: var(--muted); opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.overview-card:hover .go { opacity: 1; transform: none; color: var(--accent); }
.lifecycle { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 18px; }
.lc-step a { display: block; height: 100%; padding: 22px 18px 20px; border-radius: var(--radius); color: #e8f1fb; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: transform 0.3s var(--ease), background 0.3s; }
.lc-step a:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.11); color: #fff; }
.lc-ico { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); box-shadow: 0 10px 22px rgba(12, 108, 180, 0.4); }
.lc-ico .icon { width: 26px; height: 26px; }
.lc-ico b { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--font-head); font-size: 0.74rem; font-weight: 800; color: #fff; background: var(--accent); box-shadow: 0 4px 12px rgba(255, 106, 19, 0.5); }
.lc-step h3 { margin-bottom: 6px; font-size: 1rem; color: #fff; }
.lc-step p { margin: 0; font-size: 0.86rem; color: #b3c9e2; }
.std-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.std-card { display: grid; gap: 6px; padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.std-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.std-card b { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.std-card span { font-size: 0.9rem; color: var(--muted); }

.domain { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.domain:last-child { border-bottom: 0; }
.domain:nth-child(even) .domain-art { order: 2; }
.domain-art .art { border-radius: 24px; box-shadow: var(--shadow-lg); }
.domain-num { display: inline-block; margin-bottom: 8px; font-family: var(--font-head); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.domain-sum { color: var(--ink-soft); }
.domain-items { display: grid; gap: 12px; margin: 16px 0 18px; }
.domain-items li { display: flex; gap: 12px; align-items: flex-start; }
.domain-items .it-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; color: #fff; background: var(--success); }
.domain-items .icon { width: 14px; height: 14px; }
.domain-items h4 { margin: 0 0 2px; font-size: 1rem; }
.domain-items p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.chip-row > span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chip-link { padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--link); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s, color 0.2s; }
.chip-link:hover { color: #fff; background: var(--brand); }
#field-gallery { scroll-margin-top: 140px; }

.std-lead { max-width: 900px; margin: 0 auto; text-align: center; }
.std-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.std-head .ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); }
.std-head .ico .icon { width: 28px; height: 28px; }
.std-head h2 { margin: 0; }
.std-head .svc-tag { margin: 2px 0 0; }
.std-intro { max-width: 900px; margin-bottom: 26px; }
.std-intro p { color: var(--ink-soft); }
.std-block { margin-top: 28px; scroll-margin-top: 140px; }
.std-block h3 { margin-bottom: 12px; }
.std-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.std-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.std-table th, .std-table td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.std-table thead { background: linear-gradient(135deg, var(--navy-800), var(--brand-deep)); }
.std-table thead th { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; border-bottom: 0; }
.std-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.std-table td { color: var(--ink-soft); }
.std-table tbody tr:last-child th, .std-table tbody tr:last-child td { border-bottom: 0; }
.std-table tbody tr:hover { background: var(--surface-2); }
.std-table tr.is-ref td, .std-table tr.is-ref th { color: var(--muted); font-style: italic; }
.std-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); }
.std-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.std-card-lg { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); box-shadow: var(--shadow-sm); scroll-margin-top: 140px; }
.std-card-lg h3 { margin-bottom: 8px; font-size: 1.1rem; }
.std-card-lg p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.small-h { font-size: 1.3rem; margin-bottom: 8px; }
.sources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 28px; margin-top: 14px; }
.sources a { display: inline-flex; gap: 6px; align-items: center; font-size: 0.88rem; }
.sources .icon { width: 0.95em; height: 0.95em; }
@media (max-width: 1100px) {
  .overview-grid, .std-teaser { grid-template-columns: repeat(2, 1fr); }
  .lifecycle { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .domain { grid-template-columns: 1fr; }
  .domain:nth-child(even) .domain-art { order: 0; }
  .std-blocks, .sources { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .overview-grid, .std-teaser, .lifecycle { grid-template-columns: 1fr; }
  .std-table thead { display: none; }
  .std-table, .std-table tbody, .std-table tr, .std-table th, .std-table td { display: block; width: 100%; }
  .std-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .std-table th, .std-table td { padding: 3px 0; border: 0; white-space: normal; }
  .std-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .fx-ring, .fx-pkt, .fx-needle, .fx-wave, .fx-scan, .fx-cover, .fx-sweep, .fx-glow { display: none; }
  .fx-move { opacity: 1; transform: translate(167%, -50%); animation: none; }
  .osi-dot, .osi-col li::after { display: none; }
  .fx-dot { opacity: 0.9; animation: none; }
  .tw { opacity: 0.7; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 14px; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

@media print {
  .site-header, .nav-backdrop, .to-top, .scroll-cue, .hero-art, .lightbox, .map-frame, .fx { display: none !important; }
  .hero, .page-hero { padding: 24px 0; color: #000; background: none; }
  .hero h1, .page-hero h1, .hero .lead { color: #000; }
  body { background: #fff; }
}

/* generated with the illustrations (graphics.py): paths followed by data packets */
@keyframes rt1{0.0%{opacity:0.00;transform:translate(-50%,-50%) translate(0.0%,0.0%)}7.0%{opacity:1.00;transform:translate(-50%,-50%) translate(546.9%,-529.5%)}27.8%{opacity:1.00;transform:translate(-50%,-50%) translate(2172.4%,-2103.4%)}56.0%{opacity:1.00;transform:translate(-50%,-50%) translate(4758.6%,-448.3%)}93.0%{opacity:1.00;transform:translate(-50%,-50%) translate(757.8%,-71.4%)}100.0%{opacity:0.00;transform:translate(-50%,-50%) translate(0.0%,0.0%)}}@keyframes rt2{0.0%{opacity:0.00;transform:translate(-50%,-50%) translate(0.0%,0.0%)}7.0%{opacity:1.00;transform:translate(-50%,-50%) translate(162.2%,-127.5%)}20.8%{opacity:1.00;transform:translate(-50%,-50%) translate(482.8%,-379.3%)}37.9%{opacity:1.00;transform:translate(-50%,-50%) translate(965.5%,-241.4%)}68.6%{opacity:1.00;transform:translate(-50%,-50%) translate(1551.7%,-931.0%)}93.0%{opacity:1.00;transform:translate(-50%,-50%) translate(2061.0%,-1440.3%)}100.0%{opacity:0.00;transform:translate(-50%,-50%) translate(2206.9%,-1586.2%)}}@keyframes rt3{0.0%{opacity:0.00;transform:translate(-50%,-50%) translate(0.0%,0.0%)}7.0%{opacity:1.00;transform:translate(-50%,-50%) translate(266.8%,22.2%)}32.6%{opacity:1.00;transform:translate(-50%,-50%) translate(1241.4%,103.4%)}77.7%{opacity:1.00;transform:translate(-50%,-50%) translate(2965.5%,34.5%)}93.0%{opacity:1.00;transform:translate(-50%,-50%) translate(3533.4%,-107.5%)}100.0%{opacity:0.00;transform:translate(-50%,-50%) translate(3793.1%,-172.4%)}}@keyframes rt4{0.0%{opacity:0.00;transform:translate(-50%,-50%) translate(0.0%,0.0%)}7.0%{opacity:1.00;transform:translate(-50%,-50%) translate(-313.8%,78.5%)}22.3%{opacity:1.00;transform:translate(-50%,-50%) translate(-1000.0%,250.0%)}67.4%{opacity:1.00;transform:translate(-50%,-50%) translate(-3083.3%,333.3%)}93.0%{opacity:1.00;transform:translate(-50%,-50%) translate(-4261.0%,235.2%)}100.0%{opacity:0.00;transform:translate(-50%,-50%) translate(-4583.3%,208.3%)}}@keyframes rt5{0.0%{opacity:0.00;transform:translate(-50%,-50%) translate(0.0%,0.0%)}7.0%{opacity:1.00;transform:translate(-50%,-50%) translate(474.2%,0.0%)}93.0%{opacity:1.00;transform:translate(-50%,-50%) translate(6300.0%,0.0%)}100.0%{opacity:0.00;transform:translate(-50%,-50%) translate(6774.2%,0.0%)}}@keyframes rt6{0.0%{opacity:0.00;transform:translate(-50%,-50%) translate(0.0%,0.0%)}7.0%{opacity:1.00;transform:translate(-50%,-50%) translate(-554.7%,0.0%)}93.0%{opacity:1.00;transform:translate(-50%,-50%) translate(-7369.8%,0.0%)}100.0%{opacity:0.00;transform:translate(-50%,-50%) translate(-7924.5%,0.0%)}}@keyframes rt7{0.0%{opacity:0.00;transform:translate(-50%,-50%) translate(0.0%,0.0%)}7.0%{opacity:1.00;transform:translate(-50%,-50%) translate(768.0%,-136.3%)}10.7%{opacity:1.00;transform:translate(-50%,-50%) translate(1169.8%,-207.5%)}29.6%{opacity:1.00;transform:translate(-50%,-50%) translate(3245.3%,169.8%)}50.3%{opacity:1.00;transform:translate(-50%,-50%) translate(5509.4%,-283.0%)}69.2%{opacity:1.00;transform:translate(-50%,-50%) translate(7584.9%,94.3%)}86.3%{opacity:1.00;transform:translate(-50%,-50%) translate(9471.7%,-169.8%)}93.0%{opacity:1.00;transform:translate(-50%,-50%) translate(10207.2%,-77.9%)}100.0%{opacity:0.00;transform:translate(-50%,-50%) translate(10981.1%,18.9%)}}@keyframes rt8{0.0%{opacity:0.00;transform:translate(-50%,-50%) translate(0.0%,0.0%)}7.0%{opacity:1.00;transform:translate(-50%,-50%) translate(-953.9%,-119.2%)}13.7%{opacity:1.00;transform:translate(-50%,-50%) translate(-1860.5%,-232.6%)}30.8%{opacity:1.00;transform:translate(-50%,-50%) translate(-4186.0%,93.0%)}49.7%{opacity:1.00;transform:translate(-50%,-50%) translate(-6744.2%,-372.1%)}70.4%{opacity:1.00;transform:translate(-50%,-50%) translate(-9534.9%,186.0%)}89.3%{opacity:1.00;transform:translate(-50%,-50%) translate(-12093.0%,-279.1%)}93.0%{opacity:1.00;transform:translate(-50%,-50%) translate(-12588.3%,-191.2%)}100.0%{opacity:0.00;transform:translate(-50%,-50%) translate(-13534.9%,-23.3%)}}@keyframes rt9{0.0%{opacity:0.00;transform:translate(-50%,-50%) translate(0.0%,0.0%)}7.0%{opacity:1.00;transform:translate(-50%,-50%) translate(-48.7%,39.0%)}35.0%{opacity:1.00;transform:translate(-50%,-50%) translate(-243.9%,195.1%)}79.2%{opacity:1.00;transform:translate(-50%,-50%) translate(-439.0%,536.6%)}93.0%{opacity:1.00;transform:translate(-50%,-50%) translate(-487.6%,423.2%)}100.0%{opacity:0.00;transform:translate(-50%,-50%) translate(-512.2%,365.9%)}}
