/* ==========================================================================
   Amaar Soft - public website styles
   Built on the Bootstrap 5 grid and components.
   Sections: tokens, base, buttons, header, hero, content blocks, pages,
   footer, motion, mobile layout.
   ========================================================================== */

@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b1b3a;
  --ink-2: #102449;
  --ink-3: #1a3466;
  --blue: #1d5bd8;
  --blue-dark: #1548b0;
  --blue-soft: #e8effc;
  --cyan: #0fb5c9;
  --paper: #f3f6fa;
  --line: #dce3ee;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #1d2b45;
  --muted: #55657f;
  --white: #fff;
  --ok: #157a4f;
  --wa: #1fae55;

  --font-display: "Geologica", "Segoe UI", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, sans-serif;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;

  --shadow-panel: 0 1px 2px rgba(11, 27, 58, .06), 0 12px 32px -12px rgba(11, 27, 58, .18);
  --shadow-lift: 0 2px 4px rgba(11, 27, 58, .04), 0 18px 40px -18px rgba(11, 27, 58, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --gutter: 1.5rem;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-link-color: var(--blue);
  --bs-link-color-rgb: 29, 91, 216;
  --bs-link-hover-color: var(--blue-dark);
  --bs-link-hover-color-rgb: 21, 72, 176;
  --bs-border-color: var(--line);
  --bs-primary: var(--blue);
  --bs-primary-rgb: 29, 91, 216;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, .display-type {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
h1, .h1 { font-size: clamp(2.1rem, 2.6vw + 1.3rem, 4rem); line-height: 1.07; }
h2, .h2 { font-size: clamp(1.7rem, 1.6vw + 1.15rem, 2.75rem); line-height: 1.14; }
h3, .h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; }
h4, .h4 { font-size: 1.1rem; line-height: 1.35; letter-spacing: -0.005em; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 40rem; }
.text-muted-2 { color: var(--muted) !important; }
img { max-width: 100%; height: auto; }

/* Links never show an underline; hover changes colour only.
   Links inside running text are bold so they stand out without colour alone. */
a, a:hover, a:focus { text-decoration: none; }
p a:not(.btn), .form-text a, .prose a { font-weight: 600; }
a { transition: color .18s ease; }

/* Focus ring only for keyboard users, never after a mouse click or hover. */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible { box-shadow: none; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-s);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Container padding always matches the widest row gutter, so rows never
   stick out of the page and cause sideways scrolling. */
.container { --bs-gutter-x: calc(var(--gutter) * 2); max-width: calc(1180px + var(--gutter) * 2); }
.row.g-5, .row.gx-5 { --bs-gutter-x: calc(var(--gutter) * 2); }
@media (min-width: 992px) { .row.g-lg-5 { --bs-gutter-x: calc(var(--gutter) * 2); } }
@media (max-width: 575.98px) {
  :root { --gutter: 1.25rem; }
  .row.g-5, .row.gy-5 { --bs-gutter-y: 2.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: .72rem;
  --bs-btn-border-radius: 10px;
  font-family: var(--font-body);
  letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .9rem; --bs-btn-font-size: 1.0625rem; }
.btn-sm { --bs-btn-padding-x: .8rem; --bs-btn-padding-y: .4rem; }
.btn-primary {
  --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue);
  --bs-btn-hover-bg: var(--blue-dark); --bs-btn-hover-border-color: var(--blue-dark);
  --bs-btn-active-bg: var(--blue-dark); --bs-btn-active-border-color: var(--blue-dark);
  --bs-btn-disabled-bg: var(--blue); --bs-btn-disabled-border-color: var(--blue);
}
.btn-primary:hover { box-shadow: 0 12px 24px -12px rgba(29, 91, 216, .7); }
.btn-ink {
  --bs-btn-color: #fff; --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ink-3); --bs-btn-hover-border-color: var(--ink-3);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ink-3); --bs-btn-active-border-color: var(--ink-3);
}
.btn-outline-ink {
  --bs-btn-color: var(--ink); --bs-btn-border-color: #c4cfe0; --bs-btn-bg: #fff;
  --bs-btn-hover-color: var(--blue); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--blue);
  --bs-btn-active-color: var(--blue); --bs-btn-active-bg: var(--paper); --bs-btn-active-border-color: var(--blue);
}
.btn-light-line {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.35); --bs-btn-bg: transparent;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255,255,255,.08); --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255,255,255,.12); --bs-btn-active-border-color: #fff;
}
.btn-wa {
  --bs-btn-color: #fff; --bs-btn-bg: var(--wa); --bs-btn-border-color: var(--wa);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #178f45; --bs-btn-hover-border-color: #178f45;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #178f45;
}
.link-arrow { font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow:hover { color: var(--blue-dark); }
.link-arrow .bi { transition: transform .25s var(--ease); }
.link-arrow:hover .bi { transform: translateX(4px); }

.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c9d4ea; font-size: .875rem; }
.topbar a { color: #e6ecf7; }
.topbar a:hover { color: #fff; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar-list { display: flex; gap: 1.5rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.topbar-list .bi { color: var(--cyan); margin-right: .4rem; }
.topbar-social { display: flex; gap: .25rem; }
.topbar-social a {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: #c9d4ea;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.topbar-social a:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateY(-1px); }

/* ---------- Header ---------- */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform-origin: left; transform: scaleX(var(--progress, 0));
}
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 28px -20px rgba(11,27,58,.5); }
.site-header > .container {
  position: relative; display: flex; align-items: stretch; justify-content: space-between;
  min-height: var(--header-h); gap: 1.25rem; transition: min-height .25s ease;
}
.site-header.is-scrolled > .container { min-height: 66px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; max-width: 210px; object-fit: contain; transition: height .25s ease; }
.site-header.is-scrolled .brand img { height: 38px; }

.main-nav-wrap { display: flex; margin-left: auto; }
.main-nav { display: flex; align-items: stretch; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.main-nav > li { display: flex; align-items: center; }
.nav-link-item {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border-radius: 10px; border: 0; background: none;
  color: var(--ink); font-weight: 550; font-size: .97rem; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.nav-link-item:hover, .nav-drop:hover > .nav-link-item, .nav-drop.is-open > .nav-link-item { background: var(--paper); color: var(--blue); }
.nav-link-item.active { color: var(--blue); }
.nav-link-item .bi-chevron-down { font-size: .7rem; transition: transform .25s var(--ease); }
.nav-drop:hover .bi-chevron-down, .nav-drop.is-open .bi-chevron-down { transform: rotate(180deg); }

/* Mega menu: opens on hover (desktop) or click/keyboard, no focus box */
.nav-drop { position: static; }
.mega {
  position: absolute; top: 100%; left: 50%; z-index: 20;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-panel);
  overflow: hidden; text-align: left;
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .22s ease, transform .3s var(--ease), visibility 0s linear .3s;
}
.nav-drop:hover > .mega, .nav-drop.is-open > .mega, .nav-drop:has(:focus-visible) > .mega {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .22s ease, transform .3s var(--ease), visibility 0s;
}
.mega-services { width: min(880px, calc(100vw - 2rem)); }
.mega-solutions { width: min(760px, calc(100vw - 2rem)); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.mega-col { padding: 1.25rem; border-right: 1px solid var(--line); }
.mega-col:last-child { border-right: 0; }
.mega-col .mega-title { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink); margin: 0 0 .1rem .55rem; }
.mega-col .mega-note { font-size: .82rem; color: var(--muted); margin: 0 0 .6rem .55rem; }
.mega-link {
  display: flex; gap: .7rem; align-items: flex-start; padding: .55rem; border-radius: 10px;
  color: var(--ink); font-weight: 550; font-size: .95rem; line-height: 1.3;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.mega-link .bi { color: var(--blue); font-size: 1.05rem; margin-top: .05rem; transition: transform .2s var(--ease); }
.mega-link:hover { background: var(--paper); color: var(--blue); transform: translateX(3px); }
.mega-solutions .mega-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .15rem; padding: 1rem; }
.mega-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem 1.25rem; background: var(--paper); border-top: 1px solid var(--line); font-size: .9rem;
}

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-call { display: none; font-weight: 600; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.header-call .bi { color: var(--blue); }
.header-call:hover { color: var(--blue); }
@media (min-width: 1400px) { .header-call { display: inline-flex; gap: .45rem; align-items: center; } }
@media (min-width: 1200px) and (max-width: 1299.98px) {
  .nav-link-item { padding: .5rem .6rem; font-size: .94rem; }
  .brand img { max-width: 180px; height: 40px; }
}

.nav-toggle {
  align-self: center;
  border: 1px solid var(--line); background: #fff; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.45rem; color: var(--ink);
  transition: border-color .2s ease, color .2s ease;
}
.nav-toggle:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 1199.98px) {
  .main-nav-wrap, .header-actions .btn-quote { display: none; }
}
@media (min-width: 1200px) { .nav-toggle { display: none; } }

/* Mobile menu */
.mobile-nav { --bs-offcanvas-width: min(380px, 90vw); }
.mobile-nav .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-nav .brand img { height: 38px; }
.mobile-nav nav > a, .mobile-nav nav > button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: .85rem 0; border: 0; background: none; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 600; text-align: left; font-size: 1.02rem;
}
.mobile-nav nav > a:hover, .mobile-nav nav > button:hover { color: var(--blue); }
.mobile-nav nav > button .bi { transition: transform .25s var(--ease); }
.mobile-nav nav > button[aria-expanded="true"] .bi { transform: rotate(180deg); }
.mobile-nav .sub { border-bottom: 1px solid var(--line); }
.mobile-nav .sub a { display: flex; align-items: center; gap: .55rem; padding: .55rem 0 .55rem .5rem; font-weight: 500; font-size: .95rem; color: var(--text); }
.mobile-nav .sub a:hover { color: var(--blue); }
.mobile-nav .sub a .bi { color: var(--blue); }
.mobile-nav.show nav > * { animation: slide-in .45s var(--ease) both; }
.mobile-nav.show nav > *:nth-child(2) { animation-delay: .03s; }
.mobile-nav.show nav > *:nth-child(3) { animation-delay: .06s; }
.mobile-nav.show nav > *:nth-child(4) { animation-delay: .09s; }
.mobile-nav.show nav > *:nth-child(5) { animation-delay: .12s; }
.mobile-nav.show nav > *:nth-child(6) { animation-delay: .15s; }
.mobile-nav.show nav > *:nth-child(7) { animation-delay: .18s; }
.mobile-nav.show nav > *:nth-child(8) { animation-delay: .21s; }
.mobile-nav.show nav > *:nth-child(9) { animation-delay: .24s; }
.mobile-nav.show nav > *:nth-child(10) { animation-delay: .27s; }
.mobile-nav.show nav > *:nth-child(n+11) { animation-delay: .3s; }
.mobile-contact { display: grid; gap: .5rem; padding-top: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: #c9d4ea; position: relative; overflow: hidden; }
.section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
.section-ink .lead { color: #a9b8d4; }
@media (max-width: 991.98px) { .section { padding: 76px 0; } }
@media (max-width: 767.98px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 .75rem; max-width: 22ch; }
.section-head .lead { margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: #fff; }
.hero::before {
  content: ""; position: absolute; inset: -48px 0 0 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(220,227,238,.6) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, rgba(220,227,238,.6) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  animation: grid-drift 18s linear infinite;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -140px; top: -120px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(15,181,201,.16), rgba(29,91,216,.08) 55%, transparent);
  animation: glow 9s ease-in-out infinite alternate;
}
.hero > .container { position: relative; z-index: 1; }
@keyframes grid-drift { to { transform: translateY(48px); } }
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }
.hero h1 { max-width: 15ch; margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-contact { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .95rem; color: var(--muted); }
.hero-contact a { color: var(--ink); font-weight: 600; }
.hero-contact a:hover { color: var(--blue); }
.hero-contact .bi { color: var(--blue); margin-right: .35rem; }
@media (max-width: 991.98px) { .hero { padding: 48px 0 64px; } }

/* Hero entrance sequence */
.hero [data-enter] { opacity: 0; transform: translateY(18px); animation: enter .8s var(--ease) forwards; }
.hero [data-enter="2"] { animation-delay: .1s; }
.hero [data-enter="3"] { animation-delay: .2s; }
.hero [data-enter="4"] { animation-delay: .3s; }
.hero [data-enter="5"] { animation-delay: .45s; }
@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* System rack: the interactive preview of systems we build */
.rack-wrap { animation: float 7s ease-in-out 1.4s infinite; }
.rack {
  display: grid; grid-template-columns: 196px minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-lift); overflow: hidden; min-height: 430px;
}
.rack-list { background: var(--ink); padding: .9rem .6rem; display: flex; flex-direction: column; gap: 2px; }
.rack-list-title { color: #8ea0c2; font-size: .78rem; padding: .2rem .65rem .6rem; }
.rack-tab {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .55rem .65rem; border: 0; border-radius: 8px; background: none;
  color: #c9d4ea; font-size: .92rem; font-weight: 500; text-align: left; position: relative;
  transition: background-color .2s ease, color .2s ease;
}
.rack-tab .bi { font-size: 1rem; color: #7f93b8; transition: color .2s ease; }
.rack-tab:hover { background: rgba(255,255,255,.06); color: #fff; }
.rack-tab[aria-selected="true"] { background: rgba(255,255,255,.1); color: #fff; }
.rack-tab[aria-selected="true"] .bi { color: var(--cyan); }
.rack-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px;
  background: var(--cyan); transform-origin: top; animation: rack-progress var(--rack-ms, 4200ms) linear forwards;
}
.rack.is-paused .rack-tab[aria-selected="true"]::after,
.rack.is-manual .rack-tab[aria-selected="true"]::after { animation: none; }
@keyframes rack-progress { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.rack-screen { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; min-width: 0; }
.rack-panel[hidden] { display: none; }
.rack-panel { display: flex; flex-direction: column; height: 100%; }
.rack-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.rack-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 .15rem !important; }
.rack-top p { margin: 0; font-size: .85rem; color: var(--muted); }
.rack-status { font-size: .78rem; color: var(--ok); background: #e7f5ee; border-radius: 999px; padding: .2rem .6rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.rack-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.rack-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.rack-module { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .75rem .6rem; background: var(--paper); opacity: 0; transform: translateY(8px); }
.rack-panel.is-live .rack-module { animation: enter .5s var(--ease) forwards; }
.rack-panel.is-live .rack-module:nth-child(2) { animation-delay: .06s; }
.rack-panel.is-live .rack-module:nth-child(3) { animation-delay: .12s; }
.rack-panel.is-live .rack-module:nth-child(4) { animation-delay: .18s; }
.rack-panel.is-live .rack-module:nth-child(5) { animation-delay: .24s; }
.rack-panel.is-live .rack-module:nth-child(6) { animation-delay: .3s; }
.rack-module span { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; line-height: 1.25; overflow-wrap: anywhere; }
.rack-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.rack-bars i { flex: 1; background: #c9d6ee; border-radius: 2px 2px 0 0; transform-origin: bottom; }
.rack-panel.is-live .rack-bars i { animation: bar-grow .7s var(--ease) both; }
.rack-panel.is-live .rack-bars i:nth-child(2) { animation-delay: .05s; }
.rack-panel.is-live .rack-bars i:nth-child(3) { animation-delay: .1s; }
.rack-panel.is-live .rack-bars i:nth-child(4) { animation-delay: .15s; }
.rack-panel.is-live .rack-bars i:nth-child(5) { animation-delay: .2s; }
.rack-panel.is-live .rack-bars i:nth-child(6) { animation-delay: .25s; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rack-bars i:last-child { background: var(--blue); }
.rack-features { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: .4rem; font-size: .88rem; color: var(--text); }
.rack-features .bi { color: var(--blue); margin-right: .45rem; }
.rack-foot { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; }

@media (max-width: 575.98px) {
  .rack { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rack-list { flex-direction: row; overflow-x: auto; padding: .6rem; scrollbar-width: none; scroll-behavior: smooth; }
  .rack-list::-webkit-scrollbar { display: none; }
  .rack-list-title { display: none; }
  .rack-tab { white-space: nowrap; width: auto; flex-shrink: 0; }
  .rack-tab[aria-selected="true"]::after { top: auto; right: 0; width: auto; height: 3px; transform-origin: left; animation-name: rack-progress-x; }
  .rack-screen { padding: 1.1rem; }
  .rack-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@keyframes rack-progress-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Client strip ---------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.clients-inner { display: flex; align-items: center; gap: 2.5rem; }
.clients-label { flex-shrink: 0; font-size: .9rem; color: var(--muted); max-width: 11rem; line-height: 1.4; }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 38px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.marquee-track .client-item:hover img { filter: none; opacity: 1; }
.marquee-track .client-name { font-family: var(--font-display); font-weight: 600; color: #8a98b2; font-size: 1.1rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services (grouped list) ---------- */
.service-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service-group { padding: 2rem 2rem 1rem 0; border-right: 1px solid var(--line); }
.service-group + .service-group { padding-left: 2rem; }
.service-group:last-child { border-right: 0; padding-right: 0; }
.service-group > h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.service-group > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.service-row {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: .9rem; padding: 1rem .75rem; margin: 0 -.75rem;
  border-radius: 12px; color: inherit;
  transition: background-color .25s ease, transform .25s var(--ease);
}
.service-row:hover { background: var(--paper); color: inherit; transform: translateX(4px); }
.service-row .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 1.15rem;
  transition: background-color .25s ease, color .25s ease, transform .3s var(--ease);
}
.service-row:hover .icon { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-row h4 { margin: .1rem 0 .25rem; font-size: 1.05rem; transition: color .2s ease; }
.service-row p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.service-row:hover h4 { color: var(--blue); }
.service-list .service-row { grid-template-columns: 52px minmax(0, 1fr); padding: 1.4rem .9rem; margin: 0 -.9rem; }
.service-list .service-row .icon { width: 52px; height: 52px; font-size: 1.35rem; border-radius: 14px; }
.service-list .service-row .features-line { font-size: .88rem; color: var(--ink); margin: .5rem 0 0; }
@media (max-width: 991.98px) {
  .service-groups { grid-template-columns: 1fr; border-top: 0; }
  .service-group, .service-group + .service-group { padding: 1.75rem 0; border-right: 0; border-top: 1px solid var(--line); }
}

/* ---------- Solutions grid ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 1px 1px 0; }
.solution-tile {
  position: relative; border: 1px solid var(--line-dark); margin: 0 -1px -1px 0;
  background: var(--ink); padding: 1.4rem 1.3rem; color: #c9d4ea; display: flex; flex-direction: column; gap: .35rem;
  transition: background-color .25s ease;
}
.solution-tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.solution-tile .bi { font-size: 1.5rem; color: var(--cyan); margin-bottom: .5rem; transition: transform .35s var(--ease); display: inline-block; }
.solution-tile strong { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.solution-tile span { font-size: .86rem; color: #93a5c6; line-height: 1.45; }
.solution-tile:hover { background: var(--ink-2); color: #c9d4ea; }
.solution-tile:hover::after { transform: scaleX(1); }
.solution-tile:hover .bi { transform: translateY(-4px); }
@media (max-width: 991.98px) { .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .solution-tile { padding: 1.15rem .95rem; } }

.solution-grid.is-light .solution-tile { background: #fff; color: var(--text); border-color: var(--line); }
.solution-grid.is-light .solution-tile::after { background: var(--blue); }
.solution-grid.is-light .solution-tile .bi { color: var(--blue); }
.solution-grid.is-light .solution-tile strong { color: var(--ink); }
.solution-grid.is-light .solution-tile span { color: var(--muted); }
.solution-grid.is-light .solution-tile:hover { background: var(--paper); }

/* ---------- Work / portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.25rem 1.75rem; }
.work-card { grid-column: span 4; color: inherit; display: flex; flex-direction: column; }
.work-card:hover { color: inherit; }
.work-media {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); margin-bottom: 1rem;
  transition: box-shadow .35s ease, transform .35s var(--ease);
}
.work-card:hover .work-media { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-media .placeholder-mark {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display);
  font-size: 3rem; font-weight: 700; color: #c4d0e4;
}
.work-meta { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.work-card h3 { font-size: 1.2rem; margin: 0 0 .35rem; transition: color .2s ease; }
.work-card:hover h3 { color: var(--blue); }
.work-card p { font-size: .95rem; color: var(--muted); margin: 0; }
.work-cta { font-weight: 600; color: var(--blue); display: none; align-items: center; gap: .4rem; }
.work-cta .bi { transition: transform .25s var(--ease); }
.work-card:hover .work-cta .bi { transform: translateX(4px); }

.work-grid.is-featured .work-card { grid-column: span 3; }
.work-grid.is-featured .work-card:first-child {
  grid-column: span 12; display: grid; grid-template-columns: 7fr 5fr; gap: 0 3rem; align-items: center;
  padding-bottom: 2.25rem; border-bottom: 1px solid var(--line);
}
.work-grid.is-featured .work-card:first-child .work-media { margin: 0; }
.work-grid.is-featured .work-card:first-child h3 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); margin-bottom: .75rem; }
.work-grid.is-featured .work-card:first-child p { font-size: 1.05rem; -webkit-line-clamp: unset; display: block; }
.work-grid.is-featured .work-card:first-child .work-cta { display: inline-flex; margin-top: 1.25rem; }
.work-grid.is-featured .work-card:not(:first-child) h3 { font-size: 1.05rem; }
.work-grid.is-featured .work-card:not(:first-child) p { font-size: .9rem; }
@media (max-width: 991.98px) {
  .work-card, .work-grid.is-featured .work-card { grid-column: span 6; }
  .work-grid.is-featured .work-card:first-child { grid-column: span 12; grid-template-columns: minmax(0, 1fr); }
  .work-grid.is-featured .work-card:first-child .work-media { margin-bottom: 1.25rem; }
}
@media (max-width: 575.98px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .work-card, .work-grid.is-featured .work-card, .work-grid.is-featured .work-card:first-child { grid-column: auto; }
}

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; padding: 0; list-style: none; }
.filter-bar a {
  display: inline-block; padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); font-weight: 550; font-size: .92rem; background: #fff;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.filter-bar a:hover { border-color: var(--blue); color: var(--blue); }
.filter-bar a.active, .filter-bar a.active:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: var(--line); }
.process::after {
  content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease) .2s;
}
.process.is-in::after { transform: scaleX(1); }
.process li { position: relative; counter-increment: step; z-index: 1; }
.process li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); color: var(--blue); font-family: var(--font-display); font-weight: 600;
  margin-bottom: 1.1rem; position: relative; transition: background-color .25s ease, color .25s ease;
}
.process li:hover::before { background: var(--blue); color: #fff; }
.process h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.process p { font-size: .93rem; color: var(--muted); margin: 0; }
.section-paper .process li::before { background: var(--paper); }
.section-paper .process li:hover::before { background: var(--blue); }
@media (max-width: 991.98px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .process::before, .process::after { top: 0; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .process::after { transform: scaleY(0); transform-origin: top; }
  .process.is-in::after { transform: scaleY(1); }
  .process li { padding-left: 64px; }
  .process li::before { position: absolute; left: 0; top: -6px; margin: 0; }
}
.process.is-vertical { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.process.is-vertical::before, .process.is-vertical::after { top: 0; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
.process.is-vertical::after { transform: scaleY(0); transform-origin: top; }
.process.is-vertical.is-in::after { transform: scaleY(1); }
.process.is-vertical li { padding-left: 64px; }
.process.is-vertical li::before { position: absolute; left: 0; top: -6px; margin: 0; }

/* ---------- Facts & numbers ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s ease; }
.fact:hover { background: var(--paper); }
.fact strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 2vw + 1.2rem, 2.6rem); font-weight: 600; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: .95rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.check-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .6rem; }
.check-list .bi { color: var(--blue); font-size: 1.15rem; line-height: 1.5; }
.check-list strong { color: var(--ink); }

/* ---------- Testimonials ---------- */
.quote-card { border-left: 3px solid var(--blue); padding: .25rem 0 .25rem 1.5rem; height: 100%; display: flex; flex-direction: column; }
.quote-card blockquote { font-size: 1.08rem; color: var(--ink); line-height: 1.6; margin: 0 0 1.25rem; }
.quote-card figcaption { margin-top: auto; display: flex; align-items: center; gap: .75rem; font-size: .92rem; color: var(--muted); }
.quote-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-card figcaption strong { color: var(--ink); display: block; }
.stars { color: #e3a008; font-size: .85rem; letter-spacing: 2px; margin-bottom: .75rem; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; }
.faq .accordion-item:first-child { border-top: 1px solid var(--line); }
.faq .accordion-button {
  background: transparent; box-shadow: none; padding: 1.2rem 0; font-family: var(--font-display);
  font-weight: 600; font-size: 1.08rem; color: var(--ink); letter-spacing: -0.01em; gap: 1rem;
  transition: color .2s ease;
}
.faq .accordion-button:hover, .faq .accordion-button:not(.collapsed) { color: var(--blue); }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-button::after { background-size: 1rem; transition: transform .3s var(--ease); }
.faq .accordion-body { padding: 0 0 1.4rem; color: var(--muted); max-width: 46rem; }

.support-card { background: var(--ink); color: #c9d4ea; border-radius: var(--r-l); padding: 2rem; }
.support-card h3, .support-card .h3 { color: #fff; }
.support-line { display: flex; gap: .9rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--line-dark); color: #fff; }
.support-line .bi {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--cyan); flex-shrink: 0;
  transition: background-color .25s ease, color .25s ease, transform .25s var(--ease);
}
.support-line small { display: block; color: #93a5c6; font-size: .82rem; }
.support-line:hover { color: #7fd8e4; }
.support-line:hover .bi { background: var(--cyan); color: var(--ink); transform: scale(1.06); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; color: inherit; height: 100%; }
.post-card:hover { color: inherit; }
.post-card .post-media {
  aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--paper); margin-bottom: 1rem; border: 1px solid var(--line); position: relative;
  transition: box-shadow .35s ease, transform .35s var(--ease);
}
.post-card:hover .post-media { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.post-card .post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: .35rem; display: flex; gap: .25rem .9rem; flex-wrap: wrap; }
.post-card h3 { font-size: 1.15rem; margin-bottom: .45rem; transition: color .2s ease; }
.post-card:hover h3 { color: var(--blue); }
.post-card p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #c9d4ea; padding: 84px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0 -48px 0 0; opacity: .55; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  animation: grid-drift-x 22s linear infinite;
}
.cta-band::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(15,181,201,.22), transparent);
  animation: glow 10s ease-in-out infinite alternate;
}
@keyframes grid-drift-x { to { transform: translateX(-48px); } }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 56px 0 52px; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background:
    linear-gradient(90deg, rgba(196,208,228,.35) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, rgba(196,208,228,.35) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000);
  mask-image: linear-gradient(90deg, transparent 35%, #000);
}
.page-head .container { position: relative; }
.page-head .container > * { animation: enter .7s var(--ease) both; }
.page-head .container > *:nth-child(2) { animation-delay: .08s; }
.page-head .container > *:nth-child(3) { animation-delay: .16s; }
.page-head .container > *:nth-child(4) { animation-delay: .24s; }
.page-head h1 { font-size: clamp(2rem, 2vw + 1.25rem, 3.25rem); margin-bottom: .9rem; max-width: 22ch; }
.page-head .lead { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #a6b2c6; }

/* ---------- Content (rich text) ---------- */
.prose { max-width: 46rem; font-size: 1.075rem; overflow-wrap: break-word; }
.prose h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: 12px; margin: 1rem 0; }
.prose blockquote { border-left: 3px solid var(--blue); padding-left: 1.25rem; color: var(--ink); font-size: 1.15rem; }
.prose a { color: var(--blue); font-weight: 500; }
.prose a:hover { color: var(--blue-dark); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; }
.prose iframe { max-width: 100%; }

.side-panel { border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.75rem; background: #fff; }
.side-panel h3 { font-size: 1.15rem; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 991.98px) { .sticky-side { position: static; } }

.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: .35rem .8rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; color: var(--ink); font-weight: 500; transition: border-color .2s ease, color .2s ease; }
.pill-list li:hover { border-color: var(--blue); color: var(--blue); }

.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.module-grid > div {
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem; font-weight: 600; color: var(--ink); background: #fff;
  display: flex; gap: .6rem; align-items: center; min-width: 0; overflow-wrap: anywhere; line-height: 1.3;
  transition: border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.module-grid > div:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-panel); }
.module-grid .bi { color: var(--blue); flex-shrink: 0; }
@media (max-width: 767.98px) { .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .module-grid > div { padding: .85rem; font-size: .95rem; } }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 550; transition: color .2s ease, padding .25s var(--ease); }
.link-list a .bi { transition: transform .25s var(--ease); }
.link-list a:hover, .link-list a.active { color: var(--blue); }
.link-list a:hover { padding-left: .35rem; }
.link-list a:hover .bi { transform: translateX(3px); }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; border-color: #cdd6e4; padding: .75rem .95rem; font-size: 1rem; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.form-control:hover, .form-select:hover { border-color: #aebcd2; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 91, 216, .14); }
.form-label { font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: .4rem; }
.form-text { color: var(--muted); }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 2rem; box-shadow: var(--shadow-panel); }
@media (max-width: 575.98px) { .form-panel { padding: 1.35rem; } }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; border: 0 !important; opacity: 0; }
.alert { border-radius: 12px; }
.alert-success { background: #e7f5ee; border-color: #bfe3cf; color: #0f5c3b; }

.contact-item { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-item > .bi { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 1.15rem; flex-shrink: 0; transition: background-color .25s ease, color .25s ease; }
.contact-item:hover > .bi { background: var(--blue); color: #fff; }
.contact-item small { display: block; color: var(--muted); font-size: .85rem; }
.contact-item a, .contact-item strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--blue); }
.social-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.social-row a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-size: 1.1rem;
  transition: border-color .2s ease, color .2s ease, transform .25s var(--ease);
}
.social-row a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }
.map-frame { border: 0; width: 100%; height: 380px; border-radius: var(--r-l); filter: grayscale(.2); display: block; }
@media (max-width: 575.98px) { .map-frame { height: 300px; } }

/* Ticket thread */
.thread { display: grid; gap: 1rem; }
.thread-item { border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; background: #fff; }
.thread-item.is-staff { background: var(--blue-soft); border-color: #c9d8f6; }
.thread-item header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }
.thread-item header strong { color: var(--ink); }
.status-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.status-open, .status-customer_reply { background: #fff6e0; border-color: #f2dfa6; color: #7a5300; }
.status-answered { background: #e7f5ee; border-color: #bfe3cf; color: #0f5c3b; }
.status-closed { background: #eef1f5; color: #55657f; }

/* Pricing */
.price-card { border: 1px solid var(--line); border-radius: var(--r-l); padding: 2rem; background: #fff; height: 100%; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: #c4cfe0; }
.price-card.is-popular { border: 2px solid var(--blue); box-shadow: var(--shadow-panel); }
.price-card .price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.price-card .price small { font-size: .95rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .55rem; font-size: .95rem; text-align: left; }
.price-card ul .bi { color: var(--blue); margin-right: .5rem; }
.price-card .btn { margin-top: auto; }
.popular-tag { display: inline-block; align-self: flex-start; font-size: .8rem; font-weight: 600; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: .2rem .7rem; margin-bottom: .75rem; }

/* Team */
.team-card .photo { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); margin-bottom: 1rem; display: grid; place-items: center; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .photo img { transform: scale(1.05); }
.team-card .photo .initials { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: #9fb0cd; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .1rem; }
.team-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.team-social { display: flex; gap: .6rem; margin-top: .5rem; }
.team-social a { color: var(--muted); }
.team-social a:hover { color: var(--blue); }

/* Jobs */
.job-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); color: inherit; transition: padding .25s var(--ease); }
.job-row:hover { color: inherit; padding-left: .5rem; }
.job-row h3 { font-size: 1.2rem; margin: 0 0 .3rem; transition: color .2s ease; }
.job-row:hover h3 { color: var(--blue); }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9rem; color: var(--muted); }
.job-meta .bi { margin-right: .3rem; }

/* Empty states */
.empty-state { border: 1px dashed #c4cfe0; border-radius: var(--r-l); padding: 3rem 2rem; text-align: center; color: var(--muted); }
.empty-state .bi { font-size: 2rem; color: var(--blue); display: block; margin-bottom: .75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: #a9b8d4; font-size: .95rem; padding-top: 72px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 1.1rem; letter-spacing: 0; }
.site-footer a { color: #c9d4ea; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { display: inline-block; transition: color .2s ease, transform .25s var(--ease); }
.footer-links a:hover { color: #7fd8e4; transform: translateX(4px); }
.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-brand .brand img { height: 44px; max-width: 220px; }
.footer-logo-plate { display: inline-flex; background: #fff; border-radius: 12px; padding: .5rem .85rem; }
.footer-logo-plate img { height: 36px !important; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.footer-contact li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .6rem; }
.footer-contact .bi { color: var(--cyan); }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.footer-social a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-dark); color: #fff; font-size: 1.05rem;
  transition: background-color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.newsletter { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.newsletter .form-control { flex: 1; min-width: 0; background: rgba(255,255,255,.06); border-color: var(--line-dark); color: #fff; }
.newsletter .form-control::placeholder { color: #8ea0c2; }
.newsletter .form-control:focus { background: rgba(255,255,255,.1); }
.newsletter .btn { flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 56px; padding: 22px 0; font-size: .88rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; }
.footer-bottom a { color: #fff; font-weight: 600; }
.footer-bottom ul a { font-weight: 500; color: #c9d4ea; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; }

/* ---------- Floating actions ---------- */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 1.65rem;
  box-shadow: 0 10px 24px -8px rgba(15, 80, 40, .55); transition: transform .25s var(--ease);
}
.float-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.float-wa:hover { color: #fff; transform: translateY(-3px) scale(1.04); }
.to-top {
  position: fixed; right: 27px; bottom: 92px; z-index: 1040; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s var(--ease), color .2s ease, border-color .2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--blue); border-color: var(--blue); }
.mobile-bar { display: none; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* Pagination */
.pagination { --bs-pagination-color: var(--ink); --bs-pagination-hover-color: var(--blue); --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); --bs-pagination-focus-box-shadow: none; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-link { border-radius: 10px !important; }

/* ==========================================================================
   Mobile layout: content is centred on phones
   ========================================================================== */
@media (max-width: 767.98px) {
  body { padding-bottom: 64px; }
  .brand img { height: 38px; max-width: 170px; }
  .site-header.is-scrolled .brand img { height: 34px; }
  .site-header > .container { min-height: 68px; }

  /* headings, intros and actions */
  .section-head { flex-direction: column; align-items: center; text-align: center; margin-bottom: 2.25rem; }
  .section-head h2, .section-head .lead { margin-left: auto; margin-right: auto; }
  .center-mobile, .center-mobile .lead, .center-mobile h2 { text-align: center; margin-left: auto; margin-right: auto; }
  .lead { font-size: 1.08rem; }

  .hero { text-align: center; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-contact, .cta-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero .rack { text-align: left; }

  .page-head { text-align: center; padding: 44px 0 40px; }
  .page-head h1, .page-head .lead { margin-left: auto; margin-right: auto; }
  .crumbs { justify-content: center; }

  .cta-band { text-align: center; padding: 64px 0; }
  .cta-band h2 { margin-left: auto; margin-right: auto; }
  .cta-actions .btn { flex: 1 1 100%; }

  /* lists and cards */
  .clients-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .clients-label { max-width: none; }
  .marquee { width: 100%; }

  .service-group { text-align: center; }
  .service-row, .service-list .service-row { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: .65rem; margin: 0; padding: 1.15rem .5rem; }
  .service-row:hover { transform: none; }

  .solution-tile { align-items: center; text-align: center; }
  .work-card, .post-card, .team-card { text-align: center; }
  .work-grid.is-featured .work-card:first-child .work-cta { justify-content: center; }
  .post-meta { justify-content: center; }
  .team-social { justify-content: center; }

  .process { gap: 2rem; }
  .process::before, .process::after { display: none; }
  .process li { padding-left: 0 !important; text-align: center; }
  .process li::before { position: relative !important; left: auto !important; top: auto !important; margin: 0 auto .9rem !important; }

  .facts { text-align: center; }
  .check-list li { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: .35rem; }

  .quote-card { border-left: 0; border-top: 3px solid var(--blue); padding: 1.25rem 0 0; text-align: center; }
  .quote-card figcaption { justify-content: center; }

  .faq .accordion-button { font-size: 1rem; }
  .support-card { text-align: center; padding: 1.75rem 1.25rem; }
  .support-line { flex-direction: column; text-align: center; gap: .5rem; }

  .side-panel { text-align: center; padding: 1.5rem 1.25rem; }
  .side-panel .pill-list { justify-content: center; }
  .side-panel dl, .side-panel ul.list-unstyled { text-align: center; }
  .pill-list { justify-content: center; }
  .prose { text-align: left; }

  .contact-item { flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
  .social-row { justify-content: center; }

  .price-card { text-align: center; }
  .popular-tag { align-self: center; }
  .job-row { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .job-row > .bi { display: none; }
  .job-meta { justify-content: center; }
  .link-list a:hover { padding-left: 0; }
  .empty-state { padding: 2.25rem 1.25rem; }
  .filter-bar { justify-content: center; }

  /* footer */
  .site-footer { text-align: center; padding-top: 56px; }
  .footer-brand .brand { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-links a:hover { transform: none; }
  .footer-contact li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .25rem; }
  .footer-bottom { margin-top: 40px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-bottom ul { justify-content: center; }

  /* quick action bar */
  .float-wa { display: none; }
  .to-top { bottom: 84px; right: 16px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 24px -18px rgba(11,27,58,.5);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem 0 .5rem; color: var(--ink); font-size: .78rem; font-weight: 600; }
  .mobile-bar a .bi { font-size: 1.2rem; color: var(--blue); }
  .mobile-bar a.is-wa .bi { color: var(--wa); }
  .mobile-bar a.is-quote { background: var(--blue); color: #fff; }
  .mobile-bar a.is-quote .bi { color: #fff; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero [data-enter], .rack-module, .js [data-reveal], .js [data-stagger] > *, .page-head .container > * { opacity: 1 !important; transform: none !important; }
  .marquee-track, .rack-wrap, .float-wa::before { animation: none !important; }
}
