/* ==========================================================================
   Tecon Group — public site stylesheet
   Plain hand-rolled CSS. No framework, no build step, no external resources.

   Colour / contrast notes (WCAG 2.x):
   - --red #ED1C24 is the official brand red. On white it is 4.39:1, so it is
     used for large text, rules, icons and button fills (white bold button text
     on #ED1C24 = 4.39:1, approved for buttons by the brief).
   - Small body links on white use --red-ink #C8161D (5.85:1, passes AA) and
     are always underlined.
   - On the near-black #1A1A1A, red is 3.95:1, so red is only used there for
     large display text, rules and decoration; small text on dark is white or
     --grey-300 #B3B3B3 (8.6:1).
   - Body copy #333 on white = 12.6:1; secondary #666 on white = 5.7:1.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (colour-palette.md) */
  --red: #ED1C24;
  --red-ink: #C8161D;
  --red-deep: #A51017;
  --ink: #1A1A1A;
  --black: #000000;
  --charcoal: #333333;
  --grey-600: #666666;
  --grey-500: #808080;
  --grey-300: #B3B3B3;
  --grey-100: #E6E6E6;
  --paper: #FFFFFF;
  --mist: #F4F4F3;
  --teal: #65C8D0;
  --teal-2: #11AEC0;

  --font: Montserrat, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  /* Fluid type */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.55vw, 1.4rem);
  --fs-h3: clamp(1.25rem, 1.08rem + 0.75vw, 1.7rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  --fs-h1: clamp(2.4rem, 1.4rem + 4.4vw, 5.25rem);
  --fs-display: clamp(3rem, 1.4rem + 7vw, 8rem);
  --fs-numeral: clamp(5rem, 2rem + 13vw, 13rem);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --angle: clamp(28px, 5vw, 84px);
  --radius: 2px;
  --header-h: 84px;
  --header-h-stuck: 66px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h-stuck) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.08; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }
a { color: var(--red-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
address { font-style: normal; }
blockquote { margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--red); color: #fff; padding: 0.75rem 1.1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

/* Dark sections + blueprint grid texture */
.dark { background-color: var(--ink); color: var(--grey-300); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark a:not(.btn) { color: #fff; }
.dark a:not(.btn):hover { color: var(--grey-300); }
.blueprint { position: relative; isolation: isolate; }
.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* Angled section edges */
.angle-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle)), 0 100%); padding-bottom: calc(var(--section) + var(--angle)); }
.angle-top { clip-path: polygon(0 var(--angle), 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--section) + var(--angle)); }
.angle-both { clip-path: polygon(0 var(--angle), 100% 0, 100% calc(100% - var(--angle)), 0 100%); padding-block: calc(var(--section) + var(--angle)); }

/* ---------- Headings, eyebrows, rules ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--grey-600); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 3px; background: var(--red); flex: none; }
.dark .eyebrow { color: var(--grey-300); }
.heading-rule { position: relative; padding-bottom: 0.45em; }
.heading-rule::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px; background: var(--red);
}
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--spaced { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.section-head--center .heading-rule::after { left: 50%; transform: translateX(-50%); }
.section-head--center .eyebrow::after { content: ""; width: 2.5rem; height: 3px; background: var(--red); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--charcoal); }
.dark .lead { color: #e9e9e9; }
.red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0.8rem 1.6rem;
  font: 700 0.9375rem/1.1 var(--font); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .25s var(--ease); }
.btn:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); color: #fff; }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.7); }
.btn--ghost:hover { --btn-bg: #fff; --btn-bd: #fff; color: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: #fff; --btn-bd: #fff; color: var(--ink); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); color: #fff; }
.dark .btn:hover:not(.btn--ghost):not(.btn--dark) { --btn-bg: #fff; --btn-bd: #fff; color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--red-ink);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: #0d0d0d; color: var(--grey-300); font-size: var(--fs-xs); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__tag { margin: 0; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.topbar__tag span { color: var(--red); }
.topbar__links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a:hover { color: var(--grey-300); text-decoration: underline; }
.topbar svg { width: 14px; height: 14px; color: var(--red); }
@media (max-width: 720px) {
  .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); transition: min-height .3s var(--ease); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; transition: height .3s var(--ease); }
.brand__logo--dark { display: none; }

.site-header.is-stuck { background: rgba(255,255,255,0.97); border-bottom-color: var(--grey-100); box-shadow: 0 8px 28px -12px rgba(0,0,0,0.28); color: var(--ink); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-stuck { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); } }
.site-header.is-stuck .site-header__inner { min-height: var(--header-h-stuck); }
.site-header.is-stuck .brand img { height: 36px; }
.site-header.is-stuck .brand__logo--rev { display: none; }
.site-header.is-stuck .brand__logo--dark { display: block; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.8rem;
  color: inherit; text-decoration: none; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
  position: relative;
}
.menu > li > a::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.25rem; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.menu > li > a:hover::after, .menu > li > a[aria-current="page"]::after, .menu > li:has(.sub [aria-current="page"]) > a::after { transform: scaleX(1); }
.menu a:hover { color: inherit; }
.has-sub > a .chev { width: 10px; height: 10px; opacity: 0.7; }
.sub {
  list-style: none; margin: 0; padding: 0.5rem 0; min-width: 16rem;
  position: absolute; top: 100%; left: 0.25rem; background: #fff; color: var(--ink);
  border-top: 3px solid var(--red); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 0.65rem 1.1rem; font-size: 0.8125rem; color: var(--ink); }
.sub a:hover, .sub a[aria-current="page"] { color: var(--red-ink); background: var(--mist); }
.nav-cta { min-height: 2.75rem; padding: 0.6rem 1.15rem; font-size: 0.8125rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 26px; height: 2px; background: currentColor; position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .brand img { height: 38px; }
  html.js .nav-toggle { display: inline-flex; }
  /* Without JS the menu simply wraps below the logo */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .site-nav { flex-wrap: wrap; width: 100%; }
  html:not(.js) .menu { flex-wrap: wrap; }
  html:not(.js) .sub { display: none; }

  html.js .site-nav {
    position: fixed; inset: var(--nav-top, 0px) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2.5rem; overflow-y: auto;
    background: var(--ink); color: #fff;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  html.js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  html.js .menu { flex-direction: column; align-items: stretch; gap: 0; }
  html.js .menu > li { border-bottom: 1px solid rgba(255,255,255,0.1); }
  html.js .menu a { font-size: 1.05rem; padding: 1rem 0; }
  html.js .menu > li > a::after { left: 0; right: auto; width: 2.5rem; bottom: 0.6rem; }
  html.js .sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; border: 0; padding: 0 0 0.75rem 1rem; min-width: 0; }
  html.js .sub a { color: var(--grey-300); padding: 0.55rem 0; font-size: 0.9375rem; background: transparent; }
  html.js .sub a:hover, html.js .sub a[aria-current="page"] { color: #fff; background: transparent; }
  .has-sub > a .chev { display: none; }
  html.js .nav-cta { align-self: flex-start; }
}

/* ---------- Heroes ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: grayscale(0.35) contrast(1.05);
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26,26,26,0.97) 0%, rgba(26,26,26,0.88) 45%, rgba(26,26,26,0.62) 100%); }
.hero.blueprint::before { z-index: -1; }
.hero__inner { position: relative; }
.hero h1 { color: #fff; }

.hero--home { min-height: min(88vh, 860px); display: flex; align-items: center; padding-block: clamp(5rem, 4rem + 6vw, 9rem) calc(clamp(8rem, 6rem + 8vw, 13rem) + var(--angle)); }
.hero--home .hero__bg { background-position: 70% center; }
.hero__title { font-size: var(--fs-display); line-height: 0.92; letter-spacing: -0.035em; margin-bottom: 0.35em; text-transform: uppercase; }
.hero__title .line { display: block; }
.hero__title .line--sm { font-size: 0.42em; letter-spacing: 0.01em; line-height: 1.1; margin-top: 0.3em; color: #fff; }
.hero__title .line--sm em { font-style: normal; color: var(--red); }
.hero__lead { font-size: var(--fs-lead); max-width: 34rem; color: #ddd; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__slash {
  position: absolute; z-index: -1; right: -8vw; top: -10%; bottom: -10%; width: clamp(120px, 22vw, 360px);
  background: repeating-linear-gradient(135deg, rgba(237,28,36,0.95) 0 14px, rgba(237,28,36,0) 14px 34px);
  transform: skewX(-18deg); opacity: 0.16;
}

.page-hero { padding-block: clamp(4rem, 3rem + 5vw, 7.5rem) calc(clamp(4rem, 3rem + 5vw, 7rem) + var(--angle)); }
.page-hero h1 { margin-bottom: 0.25em; text-transform: uppercase; letter-spacing: -0.025em; }
.page-hero .lead { max-width: 44rem; color: #ddd; margin: 0; }
.page-hero__accent { display: block; width: 88px; height: 5px; background: var(--red); margin: 1.4rem 0 1.4rem; }

.breadcrumb ol { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--grey-300); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--red); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

/* Banner textures (thin 1902x166 strips -> textured backgrounds) */
.bg-slider01 { background-image: url("/assets/img/banners/slider01.jpg"); }
.bg-img01 { background-image: url("/assets/img/banners/img01.jpg"); }
.bg-img02 { background-image: url("/assets/img/banners/img02.jpg"); }
.bg-img03 { background-image: url("/assets/img/banners/img03.jpg"); }
.bg-img04 { background-image: url("/assets/img/banners/img04.jpg"); }
.bg-img05 { background-image: url("/assets/img/banners/img05.jpg"); }
.bg-img06 { background-image: url("/assets/img/banners/img06.jpg"); }
.bg-img07 { background-image: url("/assets/img/banners/img07.jpg"); }
.bg-img08 { background-image: url("/assets/img/banners/img08.jpg"); }
.bg-img09 { background-image: url("/assets/img/banners/img09.jpg"); }
.bg-img10 { background-image: url("/assets/img/banners/img10.jpg"); }

/* ---------- Service cards ---------- */
.service-cards { position: relative; z-index: 3; margin-top: calc(-1 * (clamp(7rem, 5rem + 8vw, 12rem) + var(--angle) * 0.4)); }
.service-cards--flat { margin-top: 0; }
.cards-3 { display: grid; gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: #fff; padding: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); height: 100%;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--red); transform: scaleX(0.18); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover, .card:focus-within { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.04); }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card__num { position: absolute; right: 1.25rem; top: 0.5rem; font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); font-weight: 700; line-height: 1; color: var(--grey-100); letter-spacing: -0.04em; pointer-events: none; }
.card__icon { width: 72px; height: 72px; margin-bottom: 1.5rem; position: relative; }
.card h3 { margin-bottom: 0.65rem; position: relative; }
.card p { color: var(--grey-600); flex: 1; }
.card .link-arrow::after { content: ""; position: absolute; inset: 0; } /* stretched link */
.card .link-arrow { position: static; margin-top: 0.5rem; }

/* ---------- Clients marquee ---------- */
.clients { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); background: #fff; border-bottom: 1px solid var(--grey-100); position: relative; }
.clients--after-cards { padding-top: clamp(4rem, 3rem + 5vw, 7rem); margin-top: calc(-1 * clamp(2rem, 1rem + 3vw, 4rem)); }
.clients__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.clients__head h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem); }
.clients__head p { margin: 0; color: var(--grey-600); max-width: 34rem; }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem; border: 1px solid var(--grey-300); background: var(--mist);
  font: 700 0.75rem/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal); cursor: pointer; border-radius: 999px;
}
.marquee-toggle:hover { border-color: var(--ink); }
.marquee-toggle svg { width: 12px; height: 12px; }
.marquee-toggle .i-play { display: none; }
.clients.is-paused .marquee-toggle .i-play { display: block; }
.clients.is-paused .marquee-toggle .i-pause { display: none; }
html:not(.js) .marquee-toggle { display: none; }

.marquee {
  overflow: hidden; position: relative; background: #fff; /* white backdrop inside the mask group so multiply drops logo whites */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 3.5rem); padding-right: clamp(1.5rem, 1rem + 2vw, 3.5rem); list-style: none; margin: 0; padding-left: 0; flex: none; }
.marquee__group li { flex: none; }
.marquee__group img {
  width: clamp(130px, 9rem + 3vw, 190px); height: auto; aspect-ratio: 260 / 150;
  filter: grayscale(1) contrast(1.1) opacity(0.7); mix-blend-mode: multiply;
  transition: filter .3s var(--ease);
}
.marquee__group img:hover { filter: grayscale(0) opacity(1); }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .clients.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Who we are ---------- */
.who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
@media (max-width: 900px) { .who { grid-template-columns: 1fr; } }
.numeral-block { position: relative; }
.numeral-block__label { display: block; font-size: clamp(1rem, 0.9rem + 0.6vw, 1.35rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); line-height: 1.3; }
.numeral { display: block; font-size: var(--fs-numeral); font-weight: 700; line-height: 0.82; letter-spacing: -0.06em; color: var(--red); margin: 0.1em 0 0.15em -0.04em; font-variant-numeric: tabular-nums; }
.aside-card .numeral { font-size: clamp(4rem, 2.5rem + 4vw, 6.5rem); margin-bottom: 0; }
.numeral--outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.big-quote { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); line-height: 1.35; font-weight: 700; color: var(--ink); border-left: 5px solid var(--red); padding: 0.2em 0 0.2em 1.1em; margin: 0 0 2rem; }
.big-quote p { margin: 0; }

/* ---------- Check list (Services & Solutions) ---------- */
.checklist { list-style: none; margin: 0; padding: 0; columns: 3 15rem; column-gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
.checklist li { break-inside: avoid; display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); line-height: 1.45; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 0.1em; color: var(--red); }
.dark .checklist li { color: #eee; }
.section:not(.dark) .checklist li { border-bottom-color: var(--grey-100); color: var(--charcoal); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; color: #fff; background: var(--red); overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.2); opacity: 0.35; mix-blend-mode: multiply; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 22px);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.cta-band h2 { color: #fff; margin: 0; max-width: 22ch; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.2rem); text-transform: uppercase; letter-spacing: -0.02em; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.cta-band__phone { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.125rem; }
.cta-band__phone:hover { color: #fff; text-decoration: underline; }
.cta-band__phone svg { width: 20px; height: 20px; }
.cta-band .btn--dark:hover { --btn-bg: #fff; --btn-bd: #fff; color: var(--ink); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.quote {
  position: relative; background: #fff; padding: clamp(2rem, 1.5rem + 2vw, 3rem); height: 100%;
  border-top: 4px solid var(--ink); display: flex; flex-direction: column; margin: 0;
  box-shadow: 0 24px 50px -32px rgba(0,0,0,0.35);
}
.quote__mark { width: 48px; height: 48px; color: var(--red); margin-bottom: 1.25rem; }
.quote blockquote { font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); line-height: 1.7; color: var(--charcoal); flex: 1; margin: 0 0 1.5rem; }
.quote blockquote p { margin: 0; }
.quote figcaption { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 0.75rem; }
.quote figcaption::before { content: ""; width: 28px; height: 3px; background: var(--red); flex: none; }
.quote--featured { grid-column: 1 / -1; background: var(--ink); border-top-color: var(--red); }
.quote--featured blockquote { color: #eee; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.6; }
.quote--featured figcaption { color: #fff; }
.section-foot { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---------- Content layout (inner pages) ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem); }
.prose h2:not(:first-child) { margin-top: 1.6em; }
.prose p { max-width: 68ch; }
.prose > p:first-of-type { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); }

.aside-card { background: var(--ink); color: var(--grey-300); padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); position: relative; isolation: isolate; overflow: hidden; }
.aside-card + .aside-card { margin-top: 1.5rem; }
.aside-card h2, .aside-card h3 { color: #fff; font-size: 1.125rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.aside-card--light { background: var(--mist); color: var(--charcoal); }
.aside-card--light h2, .aside-card--light h3 { color: var(--ink); }
.aside-card--red { background: var(--red); color: #fff; }
.aside-card--red h2, .aside-card--red h3 { color: #fff; }
.aside-card--red .big-quote { color: #fff; border-color: #fff; margin: 0; }
.aside-card .checklist { columns: 1; }
.aside-card .checklist li { color: #fff; border-bottom-color: rgba(255,255,255,0.12); padding: 0.7rem 0; }
.aside-card--light .checklist li { color: var(--charcoal); border-bottom-color: var(--grey-100); }

.side-menu { list-style: none; margin: 0; padding: 0; }
.side-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12); color: #fff; text-decoration: none; font-weight: 700;
}
.side-menu a:hover { color: #fff; padding-left: 0.4rem; }
.side-menu a svg { width: 16px; height: 16px; color: var(--red); transition: transform .25s var(--ease); }
.side-menu a:hover svg { transform: translateX(4px); }
.side-menu a { transition: padding .25s var(--ease); }
.side-menu--light a, .side-menu--light a:hover { color: var(--ink); border-bottom-color: var(--grey-100); }

/* Objectives (numbered grid) */
.objectives { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0; border-top: 1px solid var(--grey-100); border-left: 1px solid var(--grey-100); counter-reset: obj; }
.objectives li { counter-increment: obj; position: relative; padding: 2rem 1.75rem 2rem; border-right: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); background: #fff; color: var(--charcoal); line-height: 1.55; transition: background-color .3s var(--ease); }
.objectives li::before { content: counter(obj, decimal-leading-zero); display: block; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--red); letter-spacing: -0.04em; margin-bottom: 1rem; }
.objectives li:hover { background: var(--mist); }

/* Banner strip divider (thin photo strip under dark overlay) */
.strip { height: clamp(90px, 10vw, 166px); background-size: cover; background-position: center; position: relative; }
.strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,26,26,0.85), rgba(26,26,26,0.35) 60%, rgba(237,28,36,0.35)); }

/* Licence / accreditation tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.tile { background: #fff; border: 1px solid var(--grey-100); border-left: 4px solid var(--red); padding: 1.5rem 1.5rem 1.4rem; height: 100%; }
.tile strong { display: block; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
.tile span { display: block; color: var(--grey-600); font-size: var(--fs-sm); margin-top: 0.4rem; }
.dark .tile { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); border-left-color: var(--red); }
.dark .tile strong { color: #fff; }
.dark .tile span { color: var(--grey-300); }

.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.feature__statement { font-size: clamp(2rem, 1.2rem + 3.4vw, 4.25rem); line-height: 1.02; font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; color: var(--ink); margin: 0; }
.feature__statement em { font-style: normal; color: var(--red); display: block; }

.other-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.other-services a {
  display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; background: #fff; border: 1px solid var(--grey-100);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.other-services a:hover { border-color: var(--red); transform: translateY(-3px); color: var(--ink); }
.other-services img { width: 52px; height: 52px; flex: none; }
.other-services .go { margin-left: auto; width: 20px; height: 20px; color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.contact-grid--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 0.2rem; }
.contact-list .k { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--grey-300); font-weight: 700; }
.contact-list .v { color: #fff; font-size: 1.0625rem; }
.contact-list a { color: #fff; }
.aside-card--light .contact-list li { border-bottom-color: var(--grey-100); }
.aside-card--light .contact-list .k { color: var(--grey-600); }
.aside-card--light .contact-list .v, .aside-card--light .contact-list a { color: var(--ink); }
.contact-meta { font-size: var(--fs-sm); color: var(--grey-300); margin: 0; }

/* ---------- Forms ---------- */
.form-panel { background: #fff; padding: clamp(1.75rem, 1.2rem + 2vw, 3rem); box-shadow: 0 30px 60px -36px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.05); border-top: 4px solid var(--red); }
.form-panel > h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.form-intro { color: var(--grey-600); margin-bottom: 1.75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.875rem; color: var(--ink); letter-spacing: 0.02em; padding: 0; }
.req { color: var(--red-ink); margin-left: 0.15em; }
.field .hint { font-size: var(--fs-xs); color: var(--grey-600); margin: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--mist);
  border: 1px solid #c9c9c9; border-bottom: 2px solid var(--grey-500); border-radius: var(--radius);
  padding: 0.85rem 0.95rem; min-height: 3.1rem; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ED1C24' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); border-bottom-color: var(--red); box-shadow: 0 0 0 3px rgba(17,174,192,0.35); }
.field [aria-invalid="true"] { border-color: var(--red-ink); border-bottom-color: var(--red-ink); background: #fff6f6; }
.field__error { display: flex; gap: 0.4rem; align-items: flex-start; color: var(--red-ink); font-size: var(--fs-sm); font-weight: 700; margin: 0; line-height: 1.4; }
.field__error[hidden] { display: none; }
.field__error svg { width: 16px; height: 16px; flex: none; margin-top: 0.1em; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.15rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.1rem; border: 1px solid #c9c9c9; border-radius: 999px;
  background: var(--mist); cursor: pointer; font-weight: 700; font-size: 0.9375rem; color: var(--charcoal);
}
.choice label::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--grey-500); background: #fff; box-shadow: inset 0 0 0 3px #fff; flex: none; }
.choice input:checked + label { border-color: var(--ink); background: #fff; color: var(--ink); }
.choice input:checked + label::before { border-color: var(--red); background: var(--red); }
.choice input:focus-visible + label { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.form-actions .small { font-size: var(--fs-xs); color: var(--grey-600); margin: 0; }
.btn .spinner { display: none; width: 1em; height: 1em; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:empty { display: none; }
.form-status { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--red-ink); background: #fff3f3; color: var(--ink); font-size: var(--fs-sm); }
.form-status p { margin: 0 0 0.35rem; font-weight: 700; }
.form-status ul { margin: 0; padding-left: 1.1rem; }
.form-status a { color: var(--red-ink); }
.form-status--info { border-left-color: var(--teal-2); background: #eef9fa; }

.form-success { background: var(--ink); color: #eee; padding: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 4px solid var(--red); position: relative; overflow: hidden; }
.form-success:focus { outline: 3px solid var(--teal-2); outline-offset: 3px; }
.form-success svg.tick { width: 56px; height: 56px; color: var(--red); margin-bottom: 1.25rem; }
.form-success h2 { color: #fff; font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem); line-height: 1.25; }
.form-success p { margin: 0; color: var(--grey-300); }
.form-success a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--grey-300); font-size: var(--fs-sm); position: relative; isolation: isolate; }
.site-footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
@media (max-width: 960px) { .site-footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__main { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 0.875rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.25rem; padding-bottom: 0.9rem; position: relative; }
.site-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--red); }
.site-footer__logo { width: 220px; margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.3rem 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.site-footer address p { margin: 0 0 0.85rem; }
.site-footer .k { display: inline-block; min-width: 3.6rem; color: var(--grey-500); }
.site-footer address a[href^="mailto:"] { overflow-wrap: anywhere; }
.accred { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.accred li { padding: 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.18); color: #fff; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.04em; }
.site-footer__bar { background: #0d0d0d; font-size: var(--fs-xs); }
.site-footer__bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; min-height: 64px; padding-block: 1rem; }
.site-footer__bar p { margin: 0; }
.site-footer__bar ul { display: flex; gap: 1.5rem; }
.site-footer__bar a { color: var(--grey-300); }
.staff-link { color: var(--grey-500) !important; font-size: 0.75rem; }
.staff-link:hover { color: #fff !important; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center; background: var(--red); color: #fff; border-radius: var(--radius);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.45); text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--ink); color: #fff; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
html:not(.js) .to-top { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound__code { font-size: clamp(7rem, 4rem + 18vw, 18rem); font-weight: 700; line-height: 0.8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--red); margin: 0 0 1.5rem -0.04em; display: block; }

/* ---------- Reveal animations ----------
   Only hidden when JS has run (html.js) so content stays visible without JS. */
html.js [data-reveal], html.js [data-reveal-stagger] > * {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-visible, html.js [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal], html.js [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; transform: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; padding-right: 0; row-gap: 1.25rem; width: 100%; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee-toggle { display: none; }
  .card:hover, .card:focus-within { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .to-top, .cta-band, .clients, .site-footer__bar { display: none !important; }
  .hero, .dark { background: #fff !important; color: #000 !important; clip-path: none !important; }
  .hero h1, .dark h2 { color: #000 !important; }
}
