/* =====================================================================
   FIBVO — corporate site styles
   Palette is derived from the logo: gradient reds on near-black ink.
   ===================================================================== */

:root {
  --red: #e52521;
  --red-dark: #be1818;
  --red-light: #e62f32;
  --red-grad: linear-gradient(135deg, #be1818 0%, #e52521 45%, #e62f32 100%);

  --ink: #141416;
  --ink-2: #232329;
  --ink-3: #3a3a42;
  --slate: #5c5c68;
  --muted: #7c7c88;
  --line: #e3e3e8;
  --line-dark: rgba(255, 255, 255, .14);
  --paper: #ffffff;
  --paper-2: #f6f6f8;
  --paper-3: #eeeef2;

  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-head: "Archivo", "Inter", "Segoe UI Semibold", system-ui, Arial, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sect: clamp(64px, 8vw, 112px);
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 22, .06), 0 2px 8px rgba(20, 20, 22, .04);
  --shadow: 0 2px 6px rgba(20, 20, 22, .06), 0 16px 40px rgba(20, 20, 22, .08);
  --shadow-lg: 0 30px 80px rgba(20, 20, 22, .18);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.075rem; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
strong { color: var(--ink); font-weight: 650; }
blockquote { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- layout helpers ------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1440px; }
.wrap-narrow { max-width: 820px; }
.section { padding-block: var(--sect); }
.section-sm { padding-block: clamp(44px, 5vw, 72px); }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #c8c8d0; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }

@media (max-width: 960px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.25rem); color: var(--slate); line-height: 1.6; }
.section--ink .lead { color: #a9a9b6; }
.measure { max-width: 68ch; }

/* ---------- eyebrow + section head ---------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red-grad); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--slate); font-size: 1.08rem; }
.section--ink .section-head p { color: #a9a9b6; }

/* ---------- buttons -------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--ff-body); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }
.btn--primary { background: var(--red-grad); --btn-fg: #fff; box-shadow: 0 6px 18px rgba(229, 37, 33, .28); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(229, 37, 33, .34); }
.btn--ghost { background: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn--light { background: #fff; --btn-fg: var(--ink); }
.btn--outline-light { background: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
}
.link-arrow::after {
  content: "→"; color: var(--red);
  transition: transform .2s var(--ease);
}
.link-arrow:hover { color: var(--red); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--ink .link-arrow { color: #fff; }

/* ---------- header --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 4px 24px rgba(20, 20, 22, .08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand span { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav li { list-style: none; margin: 0; }
.nav-item { position: relative; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius);
  color: var(--ink-2); font-size: .95rem; font-weight: 550;
}
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--red); background: var(--paper-2); }
.nav-link[aria-current="true"], .nav-link.is-active { color: var(--red); }
.nav-link[aria-current="true"]::after,
.nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--red-grad); border-radius: 2px;
}
/* The wrapper takes the icon's own size: a smaller fixed box let the 14px
   inline SVG overflow downwards and sit 6px below the label. */
.nav-caret { display: inline-flex; flex: none; opacity: .5; transition: transform .2s var(--ease); }
.nav-caret svg { display: block; }
.nav-item:hover .nav-caret, .nav-item.is-open .nav-caret { transform: rotate(180deg); opacity: .9; }

.nav-panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 268px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item:hover > .nav-panel,
.nav-item:focus-within > .nav-panel,
.nav-item.is-open > .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-panel a {
  display: block; padding: 10px 12px; border-radius: var(--radius);
  color: var(--ink-2); font-size: .92rem; font-weight: 500;
}
.nav-panel a small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.nav-panel a:hover { background: var(--paper-2); color: var(--red); }
.nav-panel a:hover small { color: var(--slate); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { font-size: .9rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.header-phone:hover { color: var(--red); }

.nav-toggle {
  display: none; width: 46px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { position: relative; display: block; width: 20px; height: 2px; background: var(--ink); transition: background .15s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  /* backdrop-filter makes the header the containing block for its fixed
     descendants, which squeezed the drawer into the header's own height and
     hid every item below the first. The drawer needs the viewport. */
  .site-header { background: #fff; backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(380px, 88vw);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px var(--gutter) 40px;
    background: #fff; border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(100%); transition: transform .3s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateX(0); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link[aria-current="true"]::after, .nav-link.is-active::after { display: none; }
  .nav-panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 4px 0 10px 12px; min-width: 0;
    display: none; background: transparent;
  }
  .nav-item.is-open > .nav-panel { display: block; }
  .nav-mobile-cta { margin-top: 22px; display: grid; gap: 10px; }
}
@media (min-width: 901px) { .nav-mobile-cta { display: none; } }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 20, 22, .45);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ---------- hero carousel -------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-viewport { position: relative; }
.hero-track { position: relative; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; z-index: 2; }
.hero-slide-media { position: absolute; inset: 0; overflow: hidden; }
.hero-slide-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 9s linear;
}
.hero-slide.is-active .hero-slide-media img { transform: scale(1); }
.hero-slide-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 17, .94) 0%, rgba(15, 15, 17, .82) 42%, rgba(15, 15, 17, .42) 72%, rgba(15, 15, 17, .3) 100%),
    linear-gradient(180deg, rgba(15, 15, 17, .5) 0%, rgba(15, 15, 17, 0) 40%, rgba(15, 15, 17, .65) 100%);
}
.hero-slide-body {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  min-height: clamp(520px, 76vh, 760px);
  padding-block: clamp(72px, 9vw, 120px);
}
.hero-copy { max-width: 660px; }
.hero-copy .eyebrow { color: #ff6d5a; }
.hero-copy .eyebrow::before { background: var(--red-grad); }
.hero-copy h1 { color: #fff; margin-bottom: 20px; }
.hero-copy h1 em { font-style: normal; color: #ff6b58; }
.hero-copy p { color: #c9c9d4; font-size: clamp(1.03rem, 1.5vw, 1.2rem); max-width: 56ch; margin-bottom: 30px; }
.hero-slide .btn-row { margin-bottom: 34px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; padding: 0; margin: 0; list-style: none; }
.hero-facts li { margin: 0; display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #b6b6c4; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }

/* animation of slide content */
.hero-slide.is-active .hero-anim { animation: heroIn .7s var(--ease) both; }
.hero-slide.is-active .hero-anim:nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-anim:nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-anim:nth-child(4) { animation-delay: .24s; }
.hero-slide.is-active .hero-anim:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-nav {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%;
  cursor: pointer; backdrop-filter: blur(6px);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.hero-nav:hover { background: var(--red); border-color: var(--red); }
.hero-nav--prev { left: clamp(10px, 2vw, 28px); }
.hero-nav--next { right: clamp(10px, 2vw, 28px); }
.hero-nav:hover { transform: translateY(-50%) scale(1.06); }

.hero-controls {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: clamp(20px, 3vw, 34px);
}
.hero-controls-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hero-dots { display: flex; align-items: center; gap: 12px; }
.hero-dot {
  position: relative; width: 46px; height: 4px; padding: 0;
  background: rgba(255, 255, 255, .3); border: 0; border-radius: 2px; cursor: pointer;
  overflow: hidden;
}
.hero-dot::after {
  content: ""; position: absolute; inset: 0; width: 0;
  background: var(--red-grad);
}
.hero-dot[aria-selected="true"]::after { width: 100%; }
.hero-dot[aria-selected="true"].is-timing::after { animation: dotFill var(--hero-interval, 6500ms) linear forwards; }
@keyframes dotFill { from { width: 0; } to { width: 100%; } }
.hero-dot:hover { background: rgba(255, 255, 255, .55); }

.hero-count { font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .1em; color: rgba(255, 255, 255, .75); }
.hero-count b { color: #fff; font-weight: 600; }
.hero-pause {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 100px; cursor: pointer;
}
.hero-pause:hover { color: #fff; background: rgba(255, 255, 255, .16); }

@media (max-width: 780px) {
  .hero-nav { display: none; }
  .hero-controls-inner { justify-content: center; }
  .hero-count, .hero-pause { display: none; }
  .hero-slide-media::after {
    background:
      linear-gradient(180deg, rgba(15, 15, 17, .78) 0%, rgba(15, 15, 17, .86) 60%, rgba(15, 15, 17, .95) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide-media img { transition: none; }
  .hero-slide.is-active .hero-anim { animation: none; }
  .hero-dot[aria-selected="true"].is-timing::after { animation: none; width: 100%; }
}

/* ---------- trust strip ---------------------------------------------- */
.trust {
  background: var(--ink-2); color: #a9a9b6;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-block: 26px;
}
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.trust-label { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #85858f; }
.trust-items { display: flex; flex-wrap: wrap; gap: 14px 34px; list-style: none; margin: 0; padding: 0; }
.trust-items li { margin: 0; display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 550; color: #d2d2db; }
.trust-items svg { color: var(--red); flex: none; }

/* ---------- stats ----------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: #fff; padding: clamp(24px, 3vw, 36px); }
.stat b { display: block; font-family: var(--ff-head); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat b i { font-style: normal; color: var(--red); }
.stat span { display: block; margin-top: 10px; font-size: .92rem; color: var(--slate); }
.section--ink .stats { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1); }
.section--ink .stat { background: var(--ink); }
.section--ink .stat b { color: #fff; }
.section--ink .stat span { color: #a9a9b6; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- cards ------------------------------------------------------ */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6d6de; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--red); }
.card-body p { color: var(--slate); font-size: .97rem; }
.card-body .link-arrow { margin-top: auto; padding-top: 18px; }
.card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(20, 20, 22, .82); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.card--flat { border-color: var(--line); }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }

.card-num {
  font-family: var(--ff-mono); font-size: .8rem; color: var(--red);
  letter-spacing: .12em; margin-bottom: 14px; display: block;
}

.icon-box {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(229, 37, 33, .08); color: var(--red);
  margin-bottom: 20px;
}
.section--ink .icon-box { background: rgba(229, 37, 33, .16); }

/* service list card */
.service-card { position: relative; }
.service-card .card-body { padding-top: 26px; }
.service-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.service-card ul li {
  position: relative; padding-left: 20px; font-size: .92rem; color: var(--slate); margin-bottom: 6px;
}
.service-card ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 2px; background: var(--red);
}

/* ---------- feature rows ---------------------------------------------- */
.figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper-2);
}
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure--tall img { aspect-ratio: 4 / 5; }
.figure-badge {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 18px 24px; background: var(--ink); color: #fff;
  border-top-right-radius: var(--radius-lg);
}
.figure-badge b { display: block; font-family: var(--ff-head); font-size: 1.5rem; line-height: 1; }
.figure-badge span { font-size: .8rem; color: #a9a9b6; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--slate); }
.checklist li strong { display: block; color: var(--ink); font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 18px no-repeat,
           linear-gradient(#000, #000);
  -webkit-mask-composite: source-over;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.section--ink .checklist li { color: #a9a9b6; }
.section--ink .checklist li strong { color: #fff; }

/* ---------- process steps ---------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: #fff; padding: clamp(24px, 3vw, 36px); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--ff-mono); font-size: .8rem; color: var(--red); letter-spacing: .1em;
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .95rem; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps--4 { grid-template-columns: 1fr; } }

/* ---------- testimonial / evidence -------------------------------------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 38px); margin: 0;
  display: flex; flex-direction: column; height: 100%;
}
.quote-rating { display: flex; gap: 3px; margin-bottom: 14px; color: #f5a623; }
.quote blockquote { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 22px; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--red-grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem;
}
.quote figcaption b { display: block; color: var(--ink); font-size: .95rem; }
.quote figcaption span { display: block; color: var(--muted); font-size: .85rem; }
.quote figcaption .quote-avatar { display: inline-flex; color: #fff; font-size: .95rem; }
.quote-consent { margin-top: 16px; font-size: .78rem; color: var(--muted); }

.review-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.review-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink-2); font-size: .9rem; font-weight: 600;
}
.review-link:hover { border-color: var(--red); color: var(--red); }
.review-link svg { color: var(--red); }

/* ---------- page hero (inner pages) -------------------------------------- */
.page-hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding-block: clamp(56px, 7vw, 92px);
}
.page-hero-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .32;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15, 15, 17, .95) 30%, rgba(15, 15, 17, .6) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: #bfbfcb; max-width: 62ch; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.page-hero .eyebrow { color: #ff6d5a; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .85rem; }
.crumbs li { margin: 0; color: rgba(255, 255, 255, .55); display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .3); }
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current="page"] { color: #fff; }

/* ---------- CTA band ------------------------------------------------------ */
.cta-band { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 78% 30%, rgba(229, 37, 33, .35) 0%, rgba(229, 37, 33, 0) 62%);
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #bfbfcb; max-width: 52ch; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }

/* ---------- forms ---------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  font-family: inherit; font-size: .97rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 37, 33, .12); outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-hint { font-size: .82rem; color: var(--muted); }
.field-error { font-size: .82rem; color: var(--red-dark); font-weight: 600; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-dark); }
.field.has-error .field-error { display: block; }
.field--check { display: flex; align-items: flex-start; gap: 12px; }
.field--check input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--red); }
.field--check label { font-weight: 450; color: var(--slate); font-size: .9rem; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 44px); box-shadow: var(--shadow-sm);
}

/* ---------- accordion / FAQ ------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--ff-head); font-size: 1.08rem; font-weight: 600; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5h2v14h-2z'/%3E%3Cpath fill='%23000' d='M5 11h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5h2v14h-2z'/%3E%3Cpath fill='%23000' d='M5 11h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion-body { padding-bottom: 24px; color: var(--slate); max-width: 74ch; }

/* ---------- tables / meta lists --------------------------------------------- */
.meta-list { list-style: none; padding: 0; margin: 0; }
.meta-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .94rem; }
.meta-list b { flex: none; width: 132px; color: var(--ink); font-weight: 600; }
.meta-list span { color: var(--slate); }
.section--ink .meta-list li { border-color: var(--line-dark); }
.section--ink .meta-list span { color: #a9a9b6; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { font-family: var(--ff-head); color: var(--ink); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; background: var(--paper-2); }
td { color: var(--slate); }
tr:last-child td { border-bottom: 0; }

/* ---------- pills / filters ---------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; padding: 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--line); background: #fff;
  font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: all .2s var(--ease);
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"], .pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill[aria-pressed="true"]:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pill-count { font-size: .78rem; opacity: .65; }

.tagline-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.tagline-tags li { margin: 0; }
.tag {
  display: inline-block; padding: 5px 12px; border-radius: 100px;
  background: var(--paper-3); color: var(--slate);
  font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.tag--red { background: rgba(229, 37, 33, .1); color: var(--red-dark); }

/* ---------- article body ---------------------------------------------------------- */
.article { max-width: 760px; }
.article h2 { margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: var(--ink-2); }
.article figure { margin: 2.4em 0; }
.article figcaption { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.article .article-cover { margin: 0 0 2.2em; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .88rem; color: var(--muted); margin-bottom: 28px; }
.article-meta b { color: var(--ink); font-weight: 600; }
.pull {
  margin: 2em 0; padding: 26px 30px; border-left: 3px solid var(--red);
  background: var(--paper-2); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-family: var(--ff-head); font-size: 1.2rem; line-height: 1.45; color: var(--ink);
}

.toc { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--paper-2); position: sticky; top: calc(var(--header-h) + 24px); }
.toc h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--ff-mono); font-weight: 500; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 10px; }
.toc a { color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.toc a:hover { color: var(--red); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- resource rows ---------------------------------------------------------- */
.resource {
  display: flex; align-items: center; gap: 20px; justify-content: space-between;
  padding: 22px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.resource h3 { font-size: 1.08rem; margin-bottom: 6px; }
.resource p { color: var(--slate); font-size: .93rem; margin: 0; max-width: 60ch; }
.resource-type {
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px; display: block;
}

/* ---------- job list ------------------------------------------------------------------ */
.job {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.job:hover { border-color: #d2d2da; box-shadow: var(--shadow-sm); }
.job h3 { margin-bottom: 6px; font-size: 1.12rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .87rem; color: var(--muted); }
@media (max-width: 620px) { .job { grid-template-columns: 1fr; } }

/* ---------- team ------------------------------------------------------------------------ */
.person { text-align: left; }
.person-photo {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.person-photo span {
  font-family: var(--ff-head); font-size: clamp(2rem, 5vw, 3rem); color: #fff; letter-spacing: -.02em;
  position: relative; z-index: 2;
}
.person-photo::before {
  content: ""; position: absolute; inset: 0;
  background: var(--red-grad); opacity: .22;
}
.person h3 { font-size: 1.1rem; margin-bottom: 2px; }
.person-role { color: var(--red); font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.person p { font-size: .93rem; color: var(--slate); }

/* ---------- footer -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9a9aa6; padding-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .95rem; color: #9a9aa6; max-width: 42ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--ff-mono); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #9a9aa6; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .93rem; }
.footer-contact svg { flex: none; color: var(--red); margin-top: 4px; }
.footer-contact a { color: #c8c8d2; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  font-size: .86rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.footer-legal li { margin: 0; }
.footer-legal a { color: #9a9aa6; }
.footer-legal a:hover { color: #fff; }

.social { display: flex; gap: 10px; margin-top: 22px; }
.social a, .social .social-soon {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .16); color: #c8c8d2;
  transition: all .2s var(--ease);
}
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- reveal on scroll ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- misc ------------------------------------------------------------------------------- */
.note {
  padding: 18px 22px; border-radius: var(--radius-lg);
  background: rgba(229, 37, 33, .06); border: 1px solid rgba(229, 37, 33, .18);
  font-size: .93rem; color: var(--ink-2);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider-red { width: 48px; height: 3px; background: var(--red-grad); border-radius: 2px; margin-bottom: 24px; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }

@media print {
  .site-header, .site-footer, .hero-nav, .hero-controls, .to-top, .cta-band { display: none !important; }
  body { font-size: 12pt; color: #000; }
}

/* =====================================================================
   Mega menu + utility bar (reference: grouped service columns with icons)
   ===================================================================== */
.utility-bar {
  background: var(--ink);
  color: #9a9aa6;
  font-size: .84rem;
}
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
/* Without min-width:0, a flex item won't shrink past its content's natural
   width — so at tablet widths the location line had nowhere to go but wrap
   onto a second row, silently doubling the bar's height. min-width:0 plus
   an ellipsis on the text keeps this row a fixed, single-line 40px always. */
/* The location line is a <p>; its default bottom margin counts toward the
   flex item's height, which lifted the text 8px above the bar's centre. */
.utility-left { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; margin: 0; }
.utility-left svg { color: var(--red); flex: none; }
.utility-left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility-right { display: flex; align-items: center; gap: 22px; flex: none; }
.utility-right a { color: #c8c8d2; }
.utility-right a:hover { color: #fff; }
.utility-social { display: flex; align-items: center; gap: 14px; }
.utility-social a, .utility-social .social-soon { display: inline-flex; color: #9a9aa6; }
/* A profile with no link yet: same icon, without pretending to be clickable. */
.social-soon { cursor: default; }
.utility-social a:hover { color: var(--red-light); }
@media (max-width: 760px) { .utility-bar { display: none; } }

.brand-lockup { display: flex; flex-direction: column; line-height: 1; }
.brand-lockup b { font-family: var(--ff-head); font-size: 1.12rem; letter-spacing: .06em; color: var(--ink); }
.brand-lockup small { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-panel--mega {
  left: 50%; transform: translate(-50%, 8px);
  width: min(1120px, calc(100vw - 48px));
  padding: 30px 32px 26px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 28px;
}
.nav-item:hover > .nav-panel--mega,
.nav-item:focus-within > .nav-panel--mega,
.nav-item.is-open > .nav-panel--mega { transform: translate(-50%, 0); }
.mega-col > h4 {
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin: 0; }
.mega-link { display: flex !important; align-items: center; gap: 12px; padding: 9px 10px !important; }
.mega-link svg { flex: none; color: var(--red); opacity: .85; }
.mega-link:hover svg { opacity: 1; }
.mega-foot {
  grid-column: 1 / -1; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.mega-foot p { margin: 0; font-size: .89rem; color: var(--slate); }
.mega-foot strong { color: var(--ink); }

@media (max-width: 900px) {
  .nav-panel--mega {
    left: 0; transform: none; width: 100%;
    grid-template-columns: 1fr; gap: 0; padding: 4px 0 10px 12px;
  }
  .nav-item.is-open > .nav-panel--mega { transform: none; }
  .mega-col > h4 { border-bottom: 0; padding-bottom: 6px; margin-top: 14px; margin-bottom: 0; }
  .mega-foot { display: none; }

  /* The unconditional `.nav-panel--mega { display: grid }` rule above wins
     the cascade over the base mobile `.nav-panel { display: none }` rule
     (equal specificity, later in source), so without this the Services
     accordion renders permanently expanded inside the drawer. Re-close it
     here, in the same media-gated block, so it collapses like every other
     accordion item until tapped open. */
  .nav-panel--mega { display: none; }
  .nav-item.is-open > .nav-panel--mega { display: grid; }
}

/* Carousel slides after the first use h2 for document outline; match h1 visually. */
.hero-copy h2 {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 20px;
}
.hero-copy h2 em { font-style: normal; color: #ff6b58; }
.icon-box svg { display: block; }
.trust-items svg, .footer-contact svg, .job-meta svg, .review-link svg, .utility-left svg { vertical-align: middle; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; }
/* max-width:100% (from the global img/svg rule) lets a flex item's icon
   collapse to zero width, so the phone icon never showed. */
.header-phone svg { color: var(--red); flex: none; max-width: none; }

/* Header logo on its own: the lockup's wordmark sits mid-height in the SVG,
   so centring the image puts "FIBVO" on the same line as the nav labels and
   the button. A descriptor stacked beneath used to lift it 6px above. */
.brand { flex: none; }
.brand img { display: block; width: auto; }

/* The mega panel spans the page, so it anchors to the header rather than to
   its own nav item (which would push a 1120px panel off the left edge). */
@media (min-width: 901px) {
  .nav-item--mega { position: static; }
  .nav-panel--mega { top: calc(100% + 1px); }
}
.nav-link { white-space: nowrap; }

/* The active-link underline must anchor to the link itself — the mega item is
   position:static so an unpositioned link would let it escape to the header. */
.nav-link { position: relative; }
.btn { white-space: nowrap; }

/* Keep the header phone hidden on small screens: this must sit after the
   utility rules above, which otherwise re-enable its display. */
.header-phone { align-items: center; gap: 8px; }
@media (max-width: 1040px) {
  .header-phone { display: none; }
}

/* The off-canvas drawer sits at translateX(100%), which widens the document's
   scroll area. Clip it horizontally — `clip` (unlike `hidden`) keeps the
   sticky header working. */
html { overflow-x: clip; }
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}

/* Contact details now sit in the footer's brand column. */
.footer-brand .footer-contact { margin-top: 22px; }
.footer-brand .social { margin-top: 20px; }

/* =====================================================================
   v2 — service carousel tabs, clients, global map, products, WhatsApp
   ===================================================================== */

/* ---- header refinements for the larger logo ------------------------- */
.brand img { height: 47px; }
.footer-brand img { height: 54px; }
.utility-right a { display: inline-flex; align-items: center; gap: 7px; }
.utility-right svg { opacity: .8; }
@media (max-width: 1240px) {
  .nav-link { padding: 10px 11px; font-size: .92rem; }
  .header-cta .btn { padding: 13px 20px; }
}
@media (max-width: 900px) { .brand img { height: 42px; } }

/* ---- hero: service tabs under the slides ---------------------------- */
.hero-tabs {
  position: relative; z-index: 5;
  background: rgba(12, 12, 14, .88);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-tabs-inner {
  display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hero-tabs-inner::-webkit-scrollbar { display: none; }
.hero-tab {
  flex: 1 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 18px;
  background: transparent; border: 0; border-top: 2px solid transparent;
  color: rgba(255, 255, 255, .62);
  font-family: var(--ff-body); font-size: .83rem; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.hero-tab svg { opacity: .7; flex: none; }
.hero-tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hero-tab[aria-selected="true"] {
  color: #fff; border-top-color: var(--red);
  background: linear-gradient(180deg, rgba(229, 37, 33, .18) 0%, rgba(229, 37, 33, 0) 100%);
}
.hero-tab[aria-selected="true"] svg { opacity: 1; color: var(--red-light); }
@media (max-width: 900px) {
  .hero-tab { flex: 0 0 auto; padding: 14px 16px; font-size: .8rem; }
}

/* ---- clients ---------------------------------------------------------- */
.clients {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.client {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.client:hover { border-color: #d2d2da; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.client-mark {
  width: 46px; height: 46px; flex: none; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-grad); color: #fff;
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem;
}
.client img { max-height: 40px; width: auto; }
.client b { display: block; font-size: .97rem; color: var(--ink); line-height: 1.25; }
.client span { display: block; font-size: .82rem; color: var(--muted); margin-top: 3px; }
.client--empty {
  border-style: dashed; background: var(--paper-2); color: var(--muted);
  justify-content: center; text-align: center; font-size: .9rem;
}
.section--ink .client { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
.section--ink .client b { color: #fff; }
.section--ink .client--empty { background: transparent; }

/* ---- global map -------------------------------------------------------- */
.map-panel {
  position: relative;
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .03);
  padding: clamp(18px, 3vw, 34px);
}
.map-figure { position: relative; width: 100%; }
.map-figure img { width: 100%; height: auto; display: block; opacity: .92; }
.map-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 14px; height: 14px;
}
.map-marker::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(229, 37, 33, .9), 0 0 18px rgba(229, 37, 33, .8);
}
.map-marker::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 1px solid rgba(229, 37, 33, .6);
  animation: pulse 2.6s ease-out infinite;
}
.map-marker:nth-of-type(2)::after { animation-delay: .5s; }
.map-marker:nth-of-type(3)::after { animation-delay: 1s; }
.map-marker:nth-of-type(4)::after { animation-delay: 1.5s; }
.map-marker:nth-of-type(5)::after { animation-delay: 2s; }
@keyframes pulse {
  0% { transform: scale(.6); opacity: .9; }
  70% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .map-marker::after { animation: none; opacity: .5; } }
.map-label {
  position: absolute; left: 50%; top: -9px; transform: translate(-50%, -100%);
  padding: 5px 11px; border-radius: 100px; white-space: nowrap;
  background: #fff; color: var(--ink);
  font-size: .75rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
@media (max-width: 720px) { .map-label { display: none; } }

.country-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.country-list li { margin: 0; }
.country {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 100px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .05);
  color: #e6e6ee; font-size: .9rem; font-weight: 600;
}
.country i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.country small { color: #9a9aa6; font-weight: 400; font-size: .8rem; }

/* ---- products (upcoming software) --------------------------------------- */
.product {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.product::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--red-grad); opacity: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: opacity .25s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6d6de; }
.product:hover::before { opacity: 1; }
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.product h3 { margin: 0; font-size: 1.15rem; }
.product-cat { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.status {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 5px 11px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--paper-3); color: var(--slate);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--development { background: rgba(229, 37, 33, .1); color: var(--red-dark); }
.status--beta { background: rgba(28, 132, 76, .12); color: #1c844c; }
.status--planned { background: rgba(58, 58, 66, .1); color: var(--ink-3); }
.status--research { background: rgba(90, 90, 160, .12); color: #4a4a86; }
.product p { color: var(--slate); font-size: .96rem; }
.product ul { list-style: none; padding: 0; margin: 16px 0 0; }
.product ul li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--slate); margin-bottom: 7px; }
.product ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 2px; background: var(--red); }
.product-audience { margin-top: auto; padding-top: 18px; font-size: .85rem; color: var(--muted); }
.product-audience b { color: var(--ink); }

/* ---- testimonials ---------------------------------------------------------- */
/* A scroll-snap slider: three cards across on desktop, two on tablet, one on
   a phone. The track scrolls natively (swipe, wheel, keyboard) with no script;
   site.js adds the buttons, counter, progress bar and auto-advance. */
.tslider { --tslider-gap: clamp(18px, 2.4vw, 28px); --per-view: 3; position: relative; }
.tslider-track {
  display: flex; gap: var(--tslider-gap);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 4px;
}
.tslider-track::-webkit-scrollbar { display: none; }
.tslider-track:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; border-radius: var(--radius); }
.tslider-item {
  flex: 0 0 calc((100% - var(--tslider-gap) * (var(--per-view) - 1)) / var(--per-view));
  scroll-snap-align: start;
  display: flex;
}
.tslider-item > .quote { width: 100%; }
@media (max-width: 1000px) { .tslider { --per-view: 2; } }
@media (max-width: 640px) { .tslider { --per-view: 1; } }

.tslider-controls { display: none; }
.js .tslider-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-top: 28px; }
.tslider-btns { display: flex; gap: 10px; }
.tslider-nav {
  width: 46px; height: 46px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.tslider-nav:hover { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.06); }
.tslider-count { margin: 0; font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.tslider-count b { color: var(--ink); font-weight: 600; }
.tslider-bar { flex: 1 1 120px; min-width: 80px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tslider-bar-fill { display: block; height: 100%; width: 0; background: var(--red-grad); border-radius: 2px; transition: width .5s var(--ease); }
.tslider-pause {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); background: #fff;
  border: 1px solid var(--line); border-radius: 100px; cursor: pointer;
}
.tslider-pause:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 640px) {
  .js .tslider-controls { gap: 14px 12px; justify-content: space-between; }
  .tslider-bar { order: -1; flex-basis: 100%; }
  .tslider-nav { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .tslider-bar-fill { transition: none; }
  .tslider-nav, .tslider-nav:hover { transition: none; transform: none; }
}
.quote-mark { color: var(--red); opacity: .35; margin-bottom: 12px; display: block; }
.quote--placeholder { border-left-color: var(--line); background: var(--paper-2); }
.quote--placeholder blockquote { color: var(--muted); font-style: italic; }

/* ---- floating WhatsApp ------------------------------------------------------- */
.wa-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 100px;
  background: #1fa855; color: #fff;
  font-size: .92rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(31, 168, 85, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.wa-float:hover { background: #17994a; color: #fff; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(31, 168, 85, .45); }
.wa-float svg { flex: none; }
@media (max-width: 640px) {
  .wa-float { left: 16px; bottom: 16px; padding: 0; width: 52px; height: 52px; justify-content: center; }
  .wa-float-label { display: none; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ---- office cards -------------------------------------------------------------- */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.office {
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
}
.office .icon-box { margin-bottom: 16px; }
.office h3 { font-size: 1.05rem; margin-bottom: 6px; }
.office address { font-style: normal; color: var(--slate); font-size: .95rem; line-height: 1.6; }
.office p { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.section--ink .office { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
.section--ink .office address { color: #b4b4c0; }

/* ---- footer contact rows with two offices -------------------------------------- */
.footer-contact li b { color: #fff; font-weight: 600; display: block; font-size: .85rem; }
.footer-contact li span { line-height: 1.5; }

/* ---- blog listing ---------------------------------------------------------------- */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.post-meta .tag--red { font-size: .7rem; }
.takeaway {
  margin-top: 28px; padding: 20px 24px;
  border: 1px solid rgba(229, 37, 33, .2); border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: rgba(229, 37, 33, .05);
}
.takeaway b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 6px; }

/* =====================================================================
   Client logo marquee — continuous horizontal scroll
   The track holds the logo list twice; animating it by -50% makes the
   second copy land exactly where the first began, so the loop is seamless.
   ===================================================================== */
.logo-marquee {
  position: relative;
  overflow: hidden;
  padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(14px, 2vw, 22px);
  animation: logo-scroll var(--marquee-duration, 40s) linear infinite;
}
.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track { animation-play-state: paused; }
.logo-marquee--reverse .logo-marquee-track { animation-direction: reverse; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-tile {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: clamp(150px, 16vw, 200px);
  height: clamp(76px, 8vw, 96px);
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.logo-tile:hover { border-color: #d2d2da; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.logo-tile img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1); opacity: .78;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile-name {
  font-family: var(--ff-head); font-weight: 700; font-size: .92rem;
  color: var(--ink-3); text-align: center; line-height: 1.25;
  overflow-wrap: anywhere;
}
/* Tiles that still show a name instead of a logo size to the name, so a long
   client name ("Sandhneep Memorial Hospital") wraps to two lines at most and
   is never clipped. Logo tiles keep the fixed box so the images line up. */
.logo-tile.logo-tile--text {
  width: auto; min-width: clamp(150px, 16vw, 200px); max-width: 250px;
  padding-inline: 22px;
}
.section--ink .logo-tile { background: #fff; border-color: transparent; }

/* Screen readers get the plain list once; the duplicated loop copy is hidden. */
.logo-marquee-track [aria-hidden="true"] { pointer-events: none; }

/* Motion-sensitive visitors get a static, wrapping grid instead of a scroll. */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .logo-marquee-track .logo-tile--clone { display: none; }
}

@media (max-width: 620px) {
  .logo-marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
                          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .logo-tile { width: 140px; height: 72px; padding: 12px 16px; }
  .logo-tile.logo-tile--text { min-width: 140px; max-width: 230px; padding-inline: 18px; }
}

.clients-head { display: flex; align-items: end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.clients-head h3 { margin: 0; font-size: 1.15rem; }
.clients-head p { margin: 0; color: #a9a9b6; font-size: .92rem; }

/* =====================================================================
   Contact dock (WhatsApp, call, chat) and help assistant panel
   ===================================================================== */
.wa-float { display: none !important; }

.to-top { right: auto; left: 22px; }
@media (max-width: 640px) { .to-top { left: 16px; right: auto; bottom: 16px; } }

.contact-dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.dock-btn {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; color: #fff;
  box-shadow: 0 10px 26px rgba(20, 20, 22, .24);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.dock-btn:hover { color: #fff; transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 34px rgba(20, 20, 22, .3); }
.dock-btn--wa { background: #1fa855; }
.dock-btn--wa:hover { background: #17994a; }
.dock-btn--call { background: var(--ink); width: 48px; height: 48px; }
.dock-btn--call:hover { background: var(--ink-3); }
.dock-btn--assist { background: var(--red-grad); width: 48px; height: 48px; }
.dock-btn--assist[aria-expanded="true"] { box-shadow: 0 0 0 4px rgba(229, 37, 33, .22), 0 10px 26px rgba(20, 20, 22, .24); }

.dock-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
  padding: 7px 12px; border-radius: 8px; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
@media (hover: hover) {
  .dock-btn:hover .dock-label,
  .dock-btn:focus-visible .dock-label { opacity: 1; transform: translate(0, -50%); }
}

.dock-btn--wa::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(31, 168, 85, .45);
  animation: dock-ping 2.8s ease-out infinite;
}
@keyframes dock-ping {
  0% { transform: scale(.9); opacity: .9; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .dock-btn--wa::after { animation: none; opacity: 0; } }

@media (max-width: 640px) {
  .contact-dock { right: 14px; bottom: 14px; gap: 10px; }
  .dock-btn--wa { width: 52px; height: 52px; }
  .dock-btn--call, .dock-btn--assist { width: 44px; height: 44px; }
}

/* ---- assistant panel ---- */
.assist-panel {
  position: fixed; right: 90px; bottom: 20px; z-index: 80;
  width: min(380px, calc(100vw - 110px));
  height: min(600px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(20, 20, 22, .28);
  overflow: hidden;
  animation: assist-in .22s var(--ease);
}
.assist-panel[hidden] { display: none !important; }
@keyframes assist-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .assist-panel { animation: none; } }

.assist-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--ink); color: #fff;
}
.assist-avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-grad);
}
.assist-head div { flex: 1; min-width: 0; line-height: 1.25; }
.assist-head b { display: block; font-size: .98rem; }
.assist-head small { display: block; color: #a9a9b6; font-size: .74rem; }
.assist-head button {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); border: 0; color: #fff; cursor: pointer;
}
.assist-head button:hover { background: rgba(255, 255, 255, .18); }

.assist-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.assist-tabs button {
  padding: 12px 10px; border: 0; background: #fff; cursor: pointer;
  font-family: var(--ff-body); font-size: .86rem; font-weight: 600; color: var(--slate);
  border-bottom: 2px solid transparent;
}
.assist-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }

.assist-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.assist-view[hidden] { display: none !important; }

.assist-log {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: var(--paper-2);
  scroll-behavior: smooth;
}
.assist-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.assist-msg p { margin: 0; }
.assist-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink-2); }
.assist-msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.assist-link { display: inline-block; margin-top: 8px; font-size: .84rem; font-weight: 700; color: var(--red); }
.assist-link::after { content: " →"; }
.assist-note { margin: 0 0 4px; font-size: .74rem; color: var(--muted); text-align: center; }

.assist-quick, .assist-handoff { display: flex; flex-wrap: wrap; gap: 6px; }
.assist-quick { padding: 10px 14px 0; background: #fff; }
.assist-chip {
  display: inline-flex; align-items: center;
  padding: 7px 12px; border-radius: 100px;
  border: 1px solid var(--line); background: #fff;
  font-family: var(--ff-body); font-size: .8rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
}
.assist-chip:hover { border-color: var(--red); color: var(--red); }
.assist-chip--wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.assist-chip--wa:hover { background: #17994a; color: #fff; border-color: #17994a; }

.assist-form { display: flex; gap: 8px; padding: 12px 14px 14px; background: #fff; }
.assist-form input {
  flex: 1; min-width: 0; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 100px;
  font-family: inherit; font-size: .9rem;
}
.assist-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 37, 33, .12); }
.assist-form button {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-grad); color: #fff;
}

.assist-message { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.assist-message p { margin: 0; font-size: .86rem; color: var(--slate); }
.assist-message label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.assist-message input, .assist-message textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .9rem;
}
.assist-message textarea { min-height: 96px; resize: vertical; }
.assist-message input:focus, .assist-message textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 37, 33, .12); }
.assist-error { color: var(--red-dark); font-size: .8rem; font-weight: 600; min-height: 1em; }
.assist-sent { padding: 10px 12px; border-radius: 8px; background: rgba(31, 168, 85, .1); font-size: .84rem; color: #17703b; }
.assist-sent a { font-weight: 700; }

.assist-foot {
  display: flex; justify-content: space-around; gap: 6px;
  padding: 10px 12px; border-top: 1px solid var(--line); background: #fff;
}
.assist-foot a { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--slate); }
.assist-foot a:hover { color: var(--red); }

@media (max-width: 640px) {
  .assist-panel {
    right: 0; left: 0; bottom: 0; width: 100%;
    height: min(88vh, 640px);
    border-radius: 18px 18px 0 0; border-bottom: 0;
  }
  body.assist-open .contact-dock,
  body.assist-open .to-top { display: none; }
}

/* =====================================================================
   Pricing plans, individual services, and the database catalogue
   ===================================================================== */
.plans {
  display: grid; gap: clamp(16px, 1.8vw, 24px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.4vw, 30px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured {
  border: 2px solid var(--red);
  box-shadow: 0 24px 60px rgba(229, 37, 33, .14);
}
@media (min-width: 1181px) { .plan--featured { transform: translateY(-10px); } .plan--featured:hover { transform: translateY(-14px); } }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 100px; white-space: nowrap;
  background: var(--red-grad); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.plan-name { font-size: 1.2rem; margin: 4px 0 6px; }
.plan-tagline { color: var(--slate); font-size: .92rem; min-height: 2.9em; margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-amount { font-family: var(--ff-head); font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.plan-per { color: var(--muted); font-size: .95rem; font-weight: 600; }
.plan-setup { margin: 8px 0 16px; font-size: .86rem; color: var(--slate); }
.plan-best { font-size: .88rem; color: var(--ink-3); padding: 12px 14px; background: var(--paper-2); border-radius: 8px; margin-bottom: 18px; }
.plan-actions { margin-bottom: 22px; }
.plan-includes { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 16px; }
.plan-group h4 {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin: 0 0 8px;
}
.plan-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.plan-group li { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.plan-group li svg { flex: none; margin-top: 3px; color: #1c9a52; }
.plan-group--out li { color: var(--muted); }
.plan-group--out li svg { color: var(--muted); }

.plans-note {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: clamp(26px, 3vw, 38px) auto 0; max-width: 760px; text-align: center;
  font-size: .88rem; color: var(--slate);
}
.plans-note svg { color: var(--red); flex: none; }

.singles { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .singles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .singles { grid-template-columns: 1fr; } }
.single {
  display: flex; flex-direction: column; padding: 22px 22px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.single:hover { border-color: #d2d2da; box-shadow: var(--shadow-sm); }
.single-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.single h3 { font-size: 1rem; margin: 0; }
.single-price { margin: 0; font-family: var(--ff-head); font-size: 1.45rem; font-weight: 700; color: var(--red); letter-spacing: -.02em; }
.single-price small { font-family: var(--ff-body); font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.single ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.single li { position: relative; padding-left: 16px; font-size: .86rem; color: var(--slate); margin: 0; }
.single li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 2px; background: var(--red); }
.single .link-arrow { margin-top: auto; font-size: .88rem; }

.price-help {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2);
}
.price-help h3 { font-size: 1.25rem; }
.price-help p { color: var(--slate); }

/* ---- database catalogue ---- */
.db-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.db-count { margin: 0; font-size: .9rem; color: var(--muted); }
.db-grid { display: grid; gap: clamp(18px, 2vw, 26px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .db-grid { grid-template-columns: 1fr; } }

.db {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.db:hover { border-color: #d2d2da; box-shadow: var(--shadow); }
.db-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.db-icon {
  width: 48px; height: 48px; flex: none; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(229, 37, 33, .08); color: var(--red);
}
.db-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.db-status { font-size: .74rem; font-weight: 700; color: #1c844c; background: rgba(28, 132, 76, .1); padding: 4px 10px; border-radius: 100px; }
.db h3 { font-size: 1.2rem; margin: 0 0 6px; }
.db-event { display: flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.db > p { color: var(--slate); font-size: .95rem; }
.db-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin: 8px 0 16px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.db-facts div { background: var(--paper-2); padding: 10px 12px; }
.db-facts b { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.db-facts span { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-top: 3px; }
@media (max-width: 420px) { .db-facts { grid-template-columns: 1fr; } }

.db-details { border-top: 1px solid var(--line); margin-bottom: 18px; }
.db-details summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: .92rem; color: var(--ink);
}
.db-details summary::-webkit-details-marker { display: none; }
.db-details summary::after { content: "+"; font-size: 1.2rem; color: var(--red); line-height: 1; }
.db-details[open] summary::after { content: "−"; }
.db-details-body { padding-bottom: 6px; }
.db-details-body p { font-size: .92rem; color: var(--slate); }
.db-details-body h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--ff-mono); font-weight: 500; margin: 16px 0 8px; }
.db-fields { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
@media (max-width: 520px) { .db-fields { grid-template-columns: 1fr; } }
.db-fields li { display: flex; gap: 7px; align-items: flex-start; margin: 0; font-size: .86rem; color: var(--ink-2); }
.db-fields svg { color: #1c9a52; flex: none; margin-top: 3px; }
.db-uses { margin: 0; padding-left: 18px; }
.db-uses li { font-size: .88rem; color: var(--slate); }
.db-docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.db-docs a { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.db-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.db--request { border-style: dashed; background: var(--paper-2); justify-content: center; }
.db--request .db-icon { margin-bottom: 14px; }
@media (max-width: 480px) { .db-actions .btn { width: 100%; } }

/* Industries mega menu carries five groups. */
@media (min-width: 901px) {
  .nav-panel--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 22px; }
  .nav-panel--cols-5 .mega-link { padding: 7px 8px !important; font-size: .88rem; }
}

/* =====================================================================
   Round three: logistics specialism, industry tiles, teasers
   ===================================================================== */
.segments { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .segments { grid-template-columns: 1fr; } }
.segment {
  padding: clamp(20px, 2.2vw, 26px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.segment:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #d2d2da; }
.segment .icon-box { width: 44px; height: 44px; margin-bottom: 14px; }
.segment h3 { font-size: 1.02rem; margin-bottom: 6px; }
.segment p { font-size: .92rem; color: var(--slate); margin: 0; }
.segments--dark .segment { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
.segments--dark .segment p { color: #a9a9b6; }

.specialism {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .specialism { grid-template-columns: 1fr; } }
.specialism-media { position: relative; min-height: 320px; }
.specialism-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.specialism-badge {
  position: absolute; left: 18px; bottom: 18px;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .86rem;
}
.specialism-badge b { font-family: var(--ff-head); font-size: 1.35rem; color: #ff6b58; margin-right: 4px; }
.specialism-body { padding: clamp(26px, 3.4vw, 44px); }
.specialism-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.specialism-segments { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.specialism-segments li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .92rem; color: var(--slate); }
.specialism-segments svg { flex: none; color: var(--red); margin-top: 3px; }
.specialism-segments b { color: var(--ink); }

.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.4vw, 44px); }
.section-head-row .section-head { margin-bottom: 0; }

.industry-tiles { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.industry-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .industry-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .industry-tiles, .industry-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .industry-tiles, .industry-tiles--3 { grid-template-columns: 1fr; } }
.industry-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.industry-tile:hover { color: var(--ink); border-color: var(--red); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.industry-tile .icon-box { width: 42px; height: 42px; margin: 0; flex: none; }
.industry-tile-text { flex: 1; min-width: 0; line-height: 1.3; }
.industry-tile-text b { display: block; font-size: .94rem; }
.industry-tile-text small { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.industry-tile > svg:last-child { flex: none; color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.industry-tile:hover > svg:last-child { color: var(--red); transform: translateX(3px); }
.industry-tile--all { background: var(--ink); border-color: var(--ink); color: #fff; }
.industry-tile--all:hover { color: #fff; }
.industry-tile--all small { color: #a9a9b6; }
.industry-tile--all .icon-box { background: rgba(229, 37, 33, .2); }

.mini-list { list-style: none; padding: 0; margin: 16px 0 0; }
.mini-list li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--slate); margin-bottom: 6px; }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 2px; background: var(--red); }

.plan--mini { color: inherit; text-decoration: none; }
.plan--mini:hover { color: inherit; }
.plan--mini .plan-tagline { min-height: 0; }
.plan--mini .link-arrow { margin-top: auto; padding-top: 8px; }

.db-teaser { display: grid; gap: 12px; }
.db-teaser-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.db-teaser-item:hover { color: var(--ink); border-color: var(--red); box-shadow: var(--shadow-sm); }
.db-teaser-text { flex: 1; min-width: 0; line-height: 1.35; }
.db-teaser-text b { display: block; font-size: .98rem; }
.db-teaser-text small { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.db-teaser-item > svg:last-child { color: var(--muted); flex: none; }

/* Ten slides of 46px dots no longer fit a phone; the tab strip already gives
   full navigation there, so the dots shrink to a compact progress row. */
@media (max-width: 780px) {
  .hero-dots { gap: 6px; }
  .hero-dot { width: 18px; height: 3px; }
}

/* "Show more" paging for long grids (blog). */
.is-paged-out { display: none !important; }
.paging { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(28px, 3.4vw, 44px); }
.paging-status { margin: 0; font-size: .88rem; color: var(--muted); }
.pills { flex-wrap: wrap; }
@media (max-width: 620px) {
  .pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
}

/* Phones: step the contact dock out of the way while a form field has focus. */
@media (max-width: 640px) {
  .contact-dock, .to-top { transition: opacity .2s var(--ease), visibility .2s; }
  body.is-typing .contact-dock,
  body.is-typing .to-top { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ---------- software section (home) + product cards ------------------------------- */
.software-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; margin-bottom: clamp(36px, 4vw, 56px); }
.software-intro .section-head { margin-bottom: 0; }
.software-story p { color: #a9a9b6; font-size: 1.02rem; margin: 0 0 14px; }
.software-story p:last-child { margin-bottom: 0; }
.product-num { color: var(--red); margin-right: 10px; }
.product-for, .card-body p.product-for, .product p.product-for { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 0; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 0; }
.product .product-tags li, .product-card .product-tags li { margin: 0; padding-left: 0; }
.product .product-tags li::before { display: none; }
.product-tags .tag { font-size: .78rem; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 4px 11px; }
.product-card .card-body .link-arrow { margin-top: auto; padding-top: 20px; }
@media (max-width: 960px) {
  .software-intro { grid-template-columns: 1fr; }
}

