/* ==========================================================================
   Solvidian Technologies FZE — Design System
   Built to Landing-Page-Template-4 of the supplied Figma file
   ("Tech Consultant | IT Company | Website UI Design Template").

   Measured directly from the template's node tree:
     · Image hero with a dark overlay and left-aligned white text (45px ExtraBold)
     · Alternating full-width rows: image one side, accent colour block the other
     · 3x2 grid of tall cards (400x559, radius 20)
     · Pale #EDF2FB section bands
     · Square buttons (0 radius) — the pill is reserved for the form submit
     · Light #EDF2FB footer
     · Radii: 20 cards / 15 form card / 12 colour block / 10 images / 5 inputs

   Template accent #2E82B5 is swapped for the Solvidian brand blue sampled
   from the logo (#0D4292). Structure is the template's; colour is the brand's.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand blue — sampled from the logo artwork */
  --accent-900: #051f4d;
  --accent-800: #072c68;
  --accent: #0d4292;
  --accent-600: #1550ad;
  --accent-500: #2f6fd6;
  --accent-400: #6b9bf0;
  --accent-200: #b9d2f7;

  /* Template neutrals — exact values from the file */
  --tint: #edf2fb;
  --ink: #222226;
  --ink-2: #3a3d45;
  --muted: #696969;
  --muted-2: #666a71;   /* 4.90:1 on the #f3f3f3 field fill (WCAG AA) */
  --field: #f3f3f3;
  --line: #dfe4ee;
  --line-2: #cfd8e8;      /* decorative dividers only */
  --line-control: #78879f; /* interactive borders — passes 3:1 on white and on the tint band */
  --white: #fff;
  --on-accent: #f2f6fd;

  /* Type */
  --font: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-hero:   clamp(2.125rem, 1.15rem + 3.1vw, 2.8125rem);  /* 45px  ExtraBold */
  --fs-h1:     clamp(2rem,     1.15rem + 2.7vw, 2.8125rem);
  --fs-h2:     clamp(1.75rem,  1.05rem + 2.5vw, 3.125rem);   /* 50px  Bold */
  --fs-h3:     clamp(1.375rem, 1.05rem + 1.4vw, 2.25rem);    /* 36px  SemiBold */
  --fs-h4:     clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);    /* 24px */
  --fs-quote:  clamp(1.25rem,  1rem + 1.1vw, 1.5625rem);     /* 25px  Medium Italic */
  --fs-lead:   clamp(1.0625rem, 0.98rem + 0.5vw, 1.3125rem); /* 21px */
  --fs-body:   1.0625rem;                                     /* 17px */
  --fs-small:  0.9375rem;                                     /* 15px */
  --fs-micro:  0.8125rem;                                     /* 13px */
  --fs-label:  0.75rem;                                       /* 12px SemiBold caps */

  /* Shape — measured from the template */
  --r-card:  20px;
  --r-form:  15px;
  --r-block: 12px;
  --r-img:   10px;
  --r-input: 5px;
  --r-btn:   0px;
  --r-pill:  999px;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --container: 1290px;
  --narrow: 960px;
  --sec-y: clamp(3.5rem, 6.5vw, 6rem);
  --sec-y-sm: clamp(2.5rem, 4.5vw, 4rem);

  --shadow-sm: 0 1px 2px rgba(34, 34, 38, 0.05), 0 6px 18px rgba(34, 34, 38, 0.06);
  --shadow: 0 2px 6px rgba(34, 34, 38, 0.05), 0 20px 46px -14px rgba(34, 34, 38, 0.16);
  --shadow-lg: 0 10px 24px rgba(5, 31, 77, 0.1), 0 44px 88px -28px rgba(5, 31, 77, 0.34);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 92px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--ink); line-height: 1.14; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.014em; line-height: 1.3; }

p { text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px;
  font-size: var(--fs-small); font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--narrow); }

.section { position: relative; padding-block: var(--sec-y); }
.section--sm { padding-block: var(--sec-y-sm); }
.section--tint { background: var(--tint); }

/* Soften the white <-> tint boundaries.
   Each rule targets the section AFTER a boundary, so a band that meets a dark
   section (.formcta / .hero) or the tinted footer keeps its crisp edge. */
.section:not(.section--tint) + .section--tint {
  background: linear-gradient(180deg, #fff 0, var(--tint) clamp(3.5rem, 8vw, 8rem));
}
.section--tint + .section:not(.section--tint) {
  background: linear-gradient(180deg, var(--tint) 0, #fff clamp(3.5rem, 8vw, 8rem));
}

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center;
  align-self: flex-start; width: fit-content; max-width: 100%;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: #fff; }
.eyebrow--on-accent { color: var(--accent-200); }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

.on-dark, .on-dark p { color: rgba(255, 255, 255, 0.86); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .lead { color: rgba(255, 255, 255, 0.86); }

/* --------------------------------------------------------------------------
   5. Buttons — the template uses square buttons; the pill is reserved
      for the enquiry form's submit
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--accent);
  --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  padding: 0.9rem 1.6rem; min-height: 52px;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: -0.004em;
  color: var(--fg); background: var(--bg);
  border: 2px solid transparent; border-radius: var(--r-btn);
  cursor: pointer; white-space: nowrap;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}
a.btn { color: var(--fg); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(13, 66, 146, 0.55); }
.btn:active { transform: translateY(0); }
.btn__arrow { flex: none; transition: transform 0.28s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--dark { --bg: var(--ink); }
.btn--dark:hover { box-shadow: 0 14px 28px -12px rgba(34, 34, 38, 0.5); }

.btn--white { --bg: #fff; --fg: var(--ink); }
.btn--white:hover { --bg: var(--tint); }

.btn--outline { --bg: transparent; --fg: var(--ink); border-color: var(--line-control); }
.btn--outline:hover { --bg: var(--ink); --fg: #fff; border-color: var(--ink); }

.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { --bg: #fff; --fg: var(--ink); border-color: #fff; }

/* Small uppercase label button — template card block spec (12px SemiBold) */
.btn--label {
  min-height: 44px; padding: 0.6rem 1.35rem;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
}
.btn--pill { border-radius: var(--r-pill); min-height: 60px; padding-inline: 2rem; font-size: var(--fs-body); }
.btn--sm { min-height: 44px; padding: 0.55rem 1.2rem; font-size: var(--fs-micro); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

.tlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--fs-small); font-weight: 600; color: var(--accent);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.tlink:hover { gap: 0.8em; color: var(--accent-500); }

/* --------------------------------------------------------------------------
   6. Header — template: slim 61px bar, logo left, links centre, button right
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  transition: background 0.35s var(--ease), height 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-stuck {
  height: 78px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(34, 34, 38, 0.5);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__mark { width: auto; height: 58px; transition: height 0.35s var(--ease); }
.site-header.is-stuck .brand__mark { height: 46px; }

/* The hero is a dark image, so the bar starts light and inverts once stuck */
.site-header--over .brand__mark { filter: brightness(0) invert(1); }
.site-header--over .nav__link { color: rgba(255, 255, 255, 0.92); }
.site-header--over .nav__link:hover,
.site-header--over .nav__link[aria-current="page"] { color: #fff; }
.site-header--over .nav__link[aria-current="page"]::after { background: #fff; }
.site-header--over .nav__toggle { border-color: rgba(255, 255, 255, 0.5); }
.site-header--over .nav__toggle span { background: #fff; }
.site-header--over.is-stuck .brand__mark { filter: none; }
.site-header--over.is-stuck .nav__link { color: var(--ink-2); }
.site-header--over.is-stuck .nav__link:hover,
.site-header--over.is-stuck .nav__link[aria-current="page"] { color: var(--accent); }
.site-header--over.is-stuck .nav__link[aria-current="page"]::after { background: var(--accent); }
.site-header--over.is-stuck .nav__toggle { border-color: var(--line-control); }
.site-header--over.is-stuck .nav__toggle span { background: var(--ink); }

.nav__menu { display: none; align-items: center; gap: 0.35rem; }
@media (min-width: 1024px) { .nav__menu { display: flex; } }

.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.6rem 0.95rem;
  font-size: var(--fs-small); font-weight: 500; color: var(--ink-2);
  transition: color 0.25s var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link::after {
  content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.3rem;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__caret { opacity: 0.7; transition: transform 0.3s var(--ease); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }

.nav__drop {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0;
  width: min(660px, 80vw); padding: 0.6rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-img); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop-link { display: grid; gap: 0.2rem; padding: 0.85rem 1rem; border-radius: var(--r-input); transition: background 0.22s var(--ease); }
.nav__drop-link:hover { background: var(--tint); }
.nav__drop-title { font-size: 0.98rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.nav__drop-desc { font-size: 0.82rem; line-height: 1.45; color: var(--muted); }

.nav__actions { display: none; align-items: center; gap: 0.75rem; flex: none; }
@media (min-width: 1024px) { .nav__actions { display: flex; } }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px;
  background: none; border: 2px solid var(--line-control); border-radius: var(--r-btn); cursor: pointer;
}
@media (min-width: 1024px) { .nav__toggle { display: none; } }
.nav__toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.25s var(--ease); }
.nav__toggle span:nth-child(2) { width: 65%; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 1024px) { .mobile-nav { display: none; } }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.026em;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-nav__link .num { font-size: 0.8rem; font-weight: 500; color: var(--muted-2); }
.mobile-nav__sub { padding: 0.5rem 0 1rem; display: grid; gap: 0.15rem; }
.mobile-nav__sub a { padding: 0.6rem 0 0.6rem 1.1rem; font-size: 0.95rem; color: var(--muted); border-left: 2px solid var(--line); }
.mobile-nav__sub a:hover { color: var(--accent); border-color: var(--accent); }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero — image + dark overlay + left-aligned white text
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(520px, 62vw, 734px);
  padding-top: calc(var(--header-h) + clamp(2rem, 4vw, 3.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg svg, .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(34, 34, 38, 0.88) 0%, rgba(34, 34, 38, 0.72) 46%, rgba(34, 34, 38, 0.45) 100%);
}
.hero__copy { max-width: 640px; }
.hero__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.14; color: #fff; margin-top: 1.25rem; }
.hero__sub { margin-top: 1.5rem; font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.88); max-width: 40ch; }
.hero__actions { margin-top: 2.25rem; }

/* Compact hero for interior pages — same treatment, shorter */
.pagehero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.25rem, 4.5vw, 4rem));
  padding-bottom: clamp(2.5rem, 4.5vw, 4rem);
}
.pagehero__bg { position: absolute; inset: 0; z-index: -2; }
.pagehero__bg svg, .pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(34, 34, 38, 0.9) 0%, rgba(34, 34, 38, 0.74) 50%, rgba(34, 34, 38, 0.5) 100%);
}
.pagehero__inner { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: end; }
@media (min-width: 900px) { .pagehero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
/* Title-only hero: no aside column, so let the heading breathe instead of
   sitting in a 1.1fr column with dead space beside it. */
.pagehero__inner--solo { grid-template-columns: 1fr !important; }
.pagehero__inner--solo .pagehero__title { max-width: 20ch; }
.pagehero__title { margin-top: 1.15rem; color: #fff; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: var(--fs-micro); color: rgba(255, 255, 255, 0.72); }
.crumbs a { color: rgba(255, 255, 255, 0.85); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.5; }
.crumbs span[aria-current] { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   8. Band — 50px heading + button left, paragraph right (template S1 / S3)
   -------------------------------------------------------------------------- */
.band { display: grid; gap: 1.75rem 4rem; align-items: start; }
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); } }
.band__head { display: grid; gap: 1.5rem; justify-items: start; }
.band__head h2 { max-width: 14ch; }
.band__text { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
@media (min-width: 900px) { .band__text { padding-top: 0.5rem; } }

/* Centred section heading (template S2 / S5) */
.sec-head { display: grid; gap: 1.1rem; max-width: 46ch; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head--wide { max-width: 58ch; }
.sec-head p { font-size: var(--fs-body); color: var(--muted); }

/* --------------------------------------------------------------------------
   9. Media blocks
   -------------------------------------------------------------------------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--accent-800); }
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.media--wide { aspect-ratio: 1247 / 378; }
.media--panel { aspect-ratio: 641 / 637; }
.media--row { aspect-ratio: 709 / 449; }
.media--half { aspect-ratio: 583 / 378; }
.media--tile { aspect-ratio: 400 / 559; }
.media__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1.25rem, 2.5vw, 2rem); color: #fff;
  background: linear-gradient(to top, rgba(5, 20, 48, 0.85), rgba(5, 20, 48, 0.1) 62%, transparent);
}
.media__caption h3 { color: #fff; font-size: var(--fs-h4); }
.media__caption p { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.84); margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   10. Row card — template S2: image one side, accent block the other,
       alternating direction row by row
   -------------------------------------------------------------------------- */
.rowcards { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }

.rowcard { display: grid; gap: clamp(1rem, 3.2vw, 2.9rem); align-items: stretch; }
@media (min-width: 900px) { .rowcard { grid-template-columns: 709fr 485fr; } }

.rowcard__media { position: relative; overflow: hidden; border-radius: var(--r-block); min-height: 260px; background: var(--accent-800); }
.rowcard__media .media__art { position: absolute; inset: 0; }
/* Drop an <img> in and it covers the card in place of the generated artwork. */
.rowcard__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.rowcard__block {
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.15rem;
  padding: clamp(1.75rem, 3.4vw, 3rem);
  border-radius: var(--r-block);
  background: var(--accent);
  color: var(--on-accent);
}
.rowcard__block h3 { color: #fff; font-size: var(--fs-h3); font-weight: 600; }
.rowcard__block p { font-size: var(--fs-body); line-height: 1.62; color: rgba(242, 246, 253, 0.9); }
.rowcard__block .btn-row { margin-top: 0.5rem; }

/* Alternate: block first, image second */
@media (min-width: 900px) {
  .rowcard--flip { grid-template-columns: 485fr 709fr; }
  .rowcard--flip .rowcard__block { order: 1; }
  .rowcard--flip .rowcard__media { order: 2; }
}
@media (max-width: 899px) {
  .rowcard__media { min-height: 220px; }
}

/* --------------------------------------------------------------------------
   11. Tile grid — template S5: 3 x 2 grid of tall cards, radius 20
   -------------------------------------------------------------------------- */
.tiles { display: grid; gap: clamp(1.25rem, 2.4vw, 2.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.tile {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.75rem, 2.8vw, 2.5rem);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.tile--tint { background: var(--tint); border-color: transparent; }
.tile--accent { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.tile--accent h3, .tile--accent .tile__title { color: #fff; }
.tile--accent .tile__text { color: rgba(242, 246, 253, 0.88); }
.tile--accent .tile__icon { background: rgba(255, 255, 255, 0.14); color: #fff; }

.tile__icon {
  width: clamp(62px, 6vw, 76px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--accent); background: var(--tint);
  margin-bottom: 1.5rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.tile:hover .tile__icon { background: var(--accent); color: #fff; transform: scale(1.06); }
.tile--accent:hover .tile__icon { background: #fff; color: var(--accent); }

.tile__no { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.tile__title { font-size: var(--fs-h4); font-weight: 700; color: var(--ink); margin-bottom: 0.65rem; letter-spacing: -0.018em; }
.tile__text { font-size: var(--fs-body); line-height: 1.62; color: var(--muted); }
.tile__foot { margin-top: auto; padding-top: 1.75rem; }
.tile--link { cursor: pointer; }

/* Generic card (used for the licence panel, forms etc.) */
.card {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
}
.card--tint { background: var(--tint); border-color: transparent; }

/* --------------------------------------------------------------------------
   12. Split with image (template S4 / S7)
   -------------------------------------------------------------------------- */
.imgsplit { display: grid; gap: clamp(1.75rem, 3.5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .imgsplit { grid-template-columns: 546fr 622fr; }
  .imgsplit--flip { grid-template-columns: 622fr 546fr; }
  .imgsplit--flip .imgsplit__media { order: 2; }
}
.imgsplit__body { display: grid; gap: 1.35rem; justify-items: start; }
.imgsplit__body p { font-size: var(--fs-body); color: var(--ink-2); }

.split { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 920px) {
  .split { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 28px); }
}

/* --------------------------------------------------------------------------
   13. Statement block (template S6 layout, used for positioning not testimonials)
   -------------------------------------------------------------------------- */
.statement { display: grid; justify-items: center; text-align: center; gap: 1.75rem; max-width: 900px; margin-inline: auto; }
.statement__mark {
  width: clamp(96px, 12vw, 132px); aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff;
}
.statement__quote { font-size: var(--fs-quote); font-style: italic; font-weight: 500; line-height: 1.45; color: var(--ink); letter-spacing: -0.012em; }
.statement__by { font-size: var(--fs-h4); font-weight: 800; color: var(--ink); }
.statement__role { font-size: var(--fs-body); font-weight: 600; color: var(--muted); margin-top: 0.2rem; }
.statement__dots { display: flex; gap: 0.6rem; }
.statement__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: block; }
.statement__dots i:first-child { background: var(--accent-500); }

/* --------------------------------------------------------------------------
   14. Steps / stats / checks / chips
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: clamp(1.5rem, 2.4vw, 2rem); background: #fff; border-radius: var(--r-card); border: 1px solid var(--line); }
.section--tint .step { border-color: transparent; }
.step__no {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.25rem;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: var(--fs-small);
}
.step h3 { font-size: var(--fs-h4); font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }

.stats { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(1.5rem, 2.4vw, 2rem); background: var(--tint); border-radius: var(--r-card); }
.stat__value { font-size: clamp(2.25rem, 4vw, 3.125rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.stat__label { margin-top: 0.7rem; font-size: var(--fs-small); color: var(--muted); }

.checks { display: grid; gap: 0.95rem; }
.checks--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 0.95rem 2rem; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 0.85rem; align-items: start; font-size: var(--fs-body); line-height: 1.6; }
.check__mark { margin-top: 2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); flex: none; }
.check strong { color: var(--ink); font-weight: 700; }
.on-dark .check { color: rgba(255, 255, 255, 0.88); }
.on-dark .check__mark { background: #fff; color: var(--accent); }
.on-dark .check strong { color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.65rem 1.15rem; font-size: var(--fs-small); color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-input);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip:hover { color: #fff; background: var(--accent); border-color: transparent; transform: translateY(-2px); }
.section--tint .chip { border-color: transparent; }

.badge {
  display: inline-flex; align-items: center; align-self: flex-start;
  width: fit-content; max-width: 100%; gap: 0.45em;
  padding: 0.4rem 0.85rem;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: var(--tint); border-radius: var(--r-input);
}
.badge--light { color: #fff; background: rgba(255, 255, 255, 0.18); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.factlist { border-radius: var(--r-img); overflow: hidden; background: var(--tint); }
.factlist__row { display: grid; gap: 0.2rem 1.5rem; padding: 1rem clamp(1.1rem, 2.2vw, 1.6rem); border-top: 2px solid #fff; }
.factlist__row:first-child { border-top: 0; }
@media (min-width: 620px) { .factlist__row { grid-template-columns: 230px 1fr; align-items: baseline; } }
.factlist dt { font-size: var(--fs-small); color: var(--muted); }
.factlist dd { font-size: var(--fs-body); color: var(--ink); font-weight: 600; }

.note {
  display: grid; grid-template-columns: 22px 1fr; gap: 0.9rem;
  padding: 1.15rem 1.35rem; font-size: var(--fs-small); line-height: 1.6;
  color: var(--ink-2); background: var(--tint); border-left: 4px solid var(--accent); border-radius: var(--r-input);
}
.note svg { margin-top: 2px; color: var(--accent); }

.pullquote {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--tint); border-radius: var(--r-img);
  font-size: var(--fs-h4); line-height: 1.45; color: var(--ink); font-weight: 500;
}

/* --------------------------------------------------------------------------
   15. Ticker
   -------------------------------------------------------------------------- */
.ticker {
  overflow: hidden; padding-block: 1.05rem; background: var(--ink);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; width: max-content; gap: 3rem; animation: marquee 44s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker__item { display: inline-flex; align-items: center; gap: 0.75rem; font-size: var(--fs-small); font-weight: 500; color: rgba(255, 255, 255, 0.74); white-space: nowrap; }
.ticker__item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-400); flex: none; }

/* --------------------------------------------------------------------------
   16. Accordion
   -------------------------------------------------------------------------- */
.acc { display: grid; gap: 0.85rem; }
.acc__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-img); overflow: hidden; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.section--tint .acc__item { border-color: transparent; }
.acc__item.is-open { background: var(--tint); border-color: transparent; }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem clamp(1.15rem, 2.4vw, 1.75rem);
  background: none; border: 0; text-align: left; cursor: pointer;
  font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.016em; color: var(--ink);
}
.acc__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); transition: background 0.3s var(--ease), transform 0.35s var(--ease); }
.acc__item.is-open .acc__icon { background: var(--accent); transform: rotate(180deg); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; inset: 50% 10px auto 10px; height: 2px; background: var(--accent); transition: transform 0.35s var(--ease), background 0.3s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon::before, .acc__item.is-open .acc__icon::after { background: #fff; }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { padding: 0 clamp(1.15rem, 2.4vw, 1.75rem) 1.45rem; font-size: var(--fs-body); color: var(--ink-2); max-width: 76ch; }

/* --------------------------------------------------------------------------
   17. Forms — template S8: white card r15 over an image with a gradient overlay
   -------------------------------------------------------------------------- */
.formcta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3rem, 6vw, 5rem); }
.formcta__bg { position: absolute; inset: 0; z-index: -2; }
.formcta__bg svg, .formcta__bg img { width: 100%; height: 100%; object-fit: cover; }
.formcta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13, 66, 146, 0.96) 0%, rgba(13, 66, 146, 0.86) 42%, rgba(13, 66, 146, 0) 100%);
}
.formcta__inner { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 940px) { .formcta__inner { grid-template-columns: minmax(0, 426fr) minmax(0, 663fr); } }

.formcard { background: #fff; border-radius: var(--r-form); padding: clamp(1.5rem, 3vw, 2.75rem); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.45rem; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--accent-500); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.9rem 1.05rem;
  font-size: var(--fs-body); color: var(--ink);
  background: var(--field); border: 2px solid transparent; border-radius: var(--r-input);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23696969' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.05rem center; padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background: #fff; border-color: var(--accent-500); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d24545; background: #fdf4f4; }
.field__error { font-size: var(--fs-micro); color: #c33a3a; display: none; }
.has-error .field__error { display: block; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 0.4rem 0.8rem; align-items: start; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.consent .field__error { grid-column: 2; }
.consent.has-error { color: #a83232; }
.consent.has-error input { outline: 2px solid #d24545; outline-offset: 2px; }

.form__status { display: none; padding: 1rem 1.2rem; font-size: var(--fs-small); border-radius: var(--r-input); background: var(--tint); color: var(--accent); }
.form__status.is-visible { display: block; }
.form__status.is-error { background: #fdf2f2; color: #a83232; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   18. Contact blocks & map
   -------------------------------------------------------------------------- */
.contact-item { display: grid; grid-template-columns: 56px 1fr; gap: 1.15rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.contact-item:first-child { border-top: 0; padding-top: 0; }
.contact-item__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--tint); }
.contact-item h3 { font-size: var(--fs-h4); font-weight: 700; margin-bottom: 0.3rem; }
.contact-item p, .contact-item a { font-size: var(--fs-body); color: var(--muted); line-height: 1.6; }
.contact-item a:hover { color: var(--accent); }

.map { border-radius: var(--r-img); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.map__frame {
  position: relative; height: 400px; background-color: var(--tint);
  background-image: linear-gradient(rgba(13, 66, 146, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 66, 146, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.map__fallback { position: absolute; inset: 0; z-index: 0; display: grid; align-content: center; justify-items: center; gap: 0.7rem; padding: 2rem; text-align: center; }
.map__pin { width: 62px; height: 62px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 10px rgba(13, 66, 146, 0.1); }
.map__addr { font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); }
.map iframe { position: relative; z-index: 1; display: block; width: 100%; height: 400px; border: 0; }
.map__bar { display: flex; flex-wrap: wrap; gap: 0.9rem 1.75rem; align-items: center; justify-content: space-between; padding: 1.1rem clamp(1.15rem, 2.4vw, 1.6rem); border-top: 1px solid var(--line); background: #fff; }
.map__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* --------------------------------------------------------------------------
   19. Footer — template: pale #EDF2FB, heading + action, divider, columns
   -------------------------------------------------------------------------- */
.site-footer { position: relative; background: var(--tint); color: var(--ink-2); overflow: hidden; }
.site-footer::after {
  content: ""; position: absolute; right: -6%; top: 0; width: 52%; height: 62%;
  background: radial-gradient(closest-side, rgba(13, 66, 146, 0.1), transparent 72%);
  pointer-events: none;
}
.footer__head { position: relative; z-index: 1; display: grid; gap: 1.75rem; align-items: center; padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: clamp(2rem, 3.5vw, 3rem); }
@media (min-width: 900px) { .footer__head { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.footer__head h2 { font-size: clamp(1.625rem, 1rem + 2vw, 2.5rem); font-weight: 600; max-width: 18ch; }
.footer__head p { margin-top: 0.85rem; font-size: var(--fs-lead); color: var(--muted); max-width: 46ch; }

.footer__divider { height: 1px; background: var(--line-2); position: relative; z-index: 1; }

.footer__top { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(2.5rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer__brand-mark { height: 64px; width: auto; }
.footer__about { margin-top: 1.25rem; font-size: var(--fs-small); line-height: 1.7; max-width: 36ch; color: var(--muted); }
.footer__title { font-size: var(--fs-h4); font-weight: 700; color: var(--ink); margin-bottom: 1.15rem; }
.footer__list { display: grid; gap: 0.7rem; }
.footer__list a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-small); color: var(--ink-2);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
@media (min-width: 1024px) { .footer__list a { min-height: 0; } }
@media (max-width: 1023px) { .footer__list { gap: 0.15rem; } }
.footer__list a:hover { color: var(--accent); padding-left: 4px; }
.footer__list li.addr { font-size: var(--fs-small); line-height: 1.7; color: var(--muted); }

.footer__bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.85rem 2rem; align-items: center; justify-content: center; text-align: center; padding-block: 1.4rem 2rem; border-top: 1px solid var(--line-2); font-size: var(--fs-micro); color: var(--muted); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink); transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }

.totop {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90;
  width: 52px; height: 52px; display: grid; place-items: center;
  color: #fff; background: var(--ink); border: 0; border-radius: 50%; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.3s var(--ease);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--accent); }

/* --------------------------------------------------------------------------
   20. Reveal
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__copy > * { animation: rise 0.85s var(--ease) both; }
.js .hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero__copy > *:nth-child(2) { animation-delay: 0.14s; }
.js .hero__copy > *:nth-child(3) { animation-delay: 0.23s; }
.js .hero__copy > *:nth-child(4) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.75rem; }
.mt-6 { margin-top: 3.5rem; }
.text-center { text-align: center; }
.maxw-60 { max-width: 60ch; }
.maxw-52 { max-width: 52ch; }

/* --------------------------------------------------------------------------
   22. Reduced motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-nav, .totop, .ticker, .formcta { display: none !important; }
  body { background: #fff; color: #000; }
  .site-footer, .section--tint { background: #fff !important; }
}
