/* =========================================================
   Melia & McIntosh Safety Consultants: site styles
   Brand colours come from the logo. Change them here to re-theme.
   Direction: "Trust & Authority" + Swiss minimalism (ui-ux-pro-max, B2B Service)
   ========================================================= */
:root {
  /* brand (sampled from logo) */
  --navy: #004585;
  --navy-700: #003a70;
  --navy-900: #0a1f36;
  --navy-950: #061426;
  --green: #25a160;
  --green-700: #1b7f4b;      /* green for text on light backgrounds (AA contrast) */
  --green-50: #e9f6ef;
  --navy-50: #eaf1f8;

  /* neutrals */
  --ink: #0f1f33;
  --body: #3d4d62;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --line-strong: #cfd8e3;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --danger: #c62828;
  --amber: #b26a00;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 51, .06);
  --shadow: 0 12px 32px -16px rgba(15, 31, 51, .22);
  --shadow-lg: 0 30px 60px -30px rgba(15, 31, 51, .35);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; color: var(--navy); }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
button { font: inherit; color: inherit; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px;
  padding: .8em 1.4em; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.2;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 69, 133, .7); }
.btn--primary:hover { background: var(--navy-700); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--ghost { color: var(--muted); background: transparent; }
.btn--ghost:hover { color: var(--ink); background: var(--bg-alt); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--navy-50); }
.btn--line-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn--line-light:hover { border-color: #fff; }
.btn--sm { min-height: 42px; padding: .55em 1.1em; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 48px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--body); position: relative; padding: 6px 0; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--green); transition: right .25s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current]::after { right: 0; }
.nav__links a[aria-current]:not(.btn) { color: var(--navy); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 11px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.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); }
@media (max-width: 1000px) {
  .nav__toggle { display: block; }
  .brand img { height: 40px; }
  .nav__inner { height: 68px; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 20px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .22s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 520px at 78% 45%, rgba(0, 69, 133, .07), transparent 65%),
    linear-gradient(180deg, #fff, var(--bg-alt));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,69,133,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,69,133,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 30%, transparent 80%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; color: var(--green-700); letter-spacing: .02em; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; }
.hero h1 em { display: inline; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--body); margin: 24px 0 34px; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; gap: 0; margin: 44px 0 0; padding: 0; max-width: 520px; border-top: 1px solid var(--line); }
.hero__facts div { flex: 1; padding: 18px 18px 0 0; }
.hero__facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero__facts dt { font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1; }
.hero__facts dd { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }

.hero__visual { position: relative; height: clamp(420px, 44vw, 580px); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#hero-canvas:active { cursor: grabbing; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); font-size: .9rem; pointer-events: none;
  animation: float 7s ease-in-out infinite;
}
.float-card b { display: block; color: var(--ink); font-weight: 600; }
.float-card small { color: var(--muted); font-size: .8rem; }
.float-card__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--navy-50); color: var(--navy); }
.float-card__icon--green { background: var(--green-50); color: var(--green-700); }
.float-card--a { top: 12%; right: 0; }
.float-card--b { bottom: 12%; left: 2%; animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.no-webgl #hero-canvas { display: none; }
.no-webgl .hero__visual { background: url("assets/shield-sm.png") center / 42% no-repeat; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__visual { order: -1; height: 320px; margin: 0 -20px; }
  .float-card { font-size: .8rem; padding: 8px 12px 8px 8px; }
  .float-card__icon { width: 30px; height: 30px; }
  .float-card--a { top: 6%; right: 16px; }
  .float-card--b { bottom: 4%; left: 16px; }
}

/* ---------- credentials strip ---------- */
.creds { background: var(--navy-900); color: #d6e0ec; }
.creds__inner { display: flex; align-items: center; gap: 28px; padding: 22px 0; flex-wrap: wrap; }
.creds__label { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: #fff; }
.creds__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: .93rem; }
.creds__list li { display: flex; align-items: center; gap: 8px; }
.creds__list .i { color: var(--green); width: 18px; height: 18px; stroke-width: 2.25; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 52px; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); margin-bottom: 18px; }
.kicker span { font-family: var(--serif); font-style: italic; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--navy); padding-right: 12px; border-right: 1px solid var(--line-strong); }
.section h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.section__lead { font-size: 1.1rem; margin-top: 18px; color: var(--body); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- approach ---------- */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.approach__intro { position: sticky; top: 120px; }
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principles li { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.principles__n { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--green-700); min-width: 32px; padding-top: 1px; }
.principles h3 { font-size: 1.3rem; margin-bottom: 6px; }
.principles p { color: var(--body); }
@media (max-width: 900px) { .approach { grid-template-columns: 1fr; } .approach__intro { position: static; } }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { position: relative; background: #fff; padding: 28px 26px 22px; display: flex; flex-direction: column; transition: background .25s; }
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.svc:hover::before, .svc.open::before { transform: scaleX(1); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.svc__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy-50); color: var(--navy); transition: background .25s, color .25s; }
.svc__icon .i { width: 24px; height: 24px; }
.svc:hover .svc__icon, .svc.open .svc__icon { background: var(--navy); color: #fff; }
.svc--other { grid-column: span 2; background: var(--navy); color: #d3deea; justify-content: center; gap: 12px; padding: 36px 32px; }
.svc--other::before { display: none; }
.svc.svc--other h3 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 0; }
.svc.svc--other > p { color: #d3deea; font-size: 1rem; max-width: 480px; }
.svc--other .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 580px) { .svc--other { grid-column: auto; } }
.svc h3 { font-size: 1.15rem; margin-bottom: 8px; }
.svc > p { font-size: .95rem; color: var(--body); }
.svc__toggle { margin-top: auto; padding: 18px 0 4px; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; border-top: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--navy); text-align: left; min-height: 44px; }
.svc__toggle .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.svc.open .svc__toggle .i { transform: rotate(45deg); }
.svc__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.svc__more > div { overflow: hidden; }
.svc.open .svc__more { grid-template-rows: 1fr; }
.svc__more ul { list-style: none; margin: 8px 0 14px; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.svc__more li { position: relative; padding-left: 22px; }
.svc__more li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.svc__more a { display: inline-block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--green-700); text-underline-offset: 4px; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .services { grid-template-columns: 1fr; } }

/* ---------- industries ---------- */
.ind { display: grid; grid-template-columns: 290px 1fr; gap: 28px; }
.ind__tabs { display: flex; flex-direction: column; gap: 4px; }
.ind__tab {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 13px 16px; min-height: 52px; border-radius: 10px;
  background: transparent; border: 1px solid transparent; cursor: pointer; color: var(--body); font-weight: 500; transition: .2s;
}
.ind__tab .i { color: var(--muted); }
.ind__tab:hover { background: var(--bg-alt); color: var(--ink); }
.ind__tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.ind__tab[aria-selected="true"] .i { color: #fff; }
.ind__panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 48px); background: #fff; box-shadow: var(--shadow); min-height: 440px; position: relative; overflow: hidden; }
.ind__panel::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 300px; background: url("assets/shield-sm.png") center / contain no-repeat; opacity: .05; pointer-events: none; }
.ind__panel h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; }
.ind__panel > div > p { max-width: 640px; }
.ind__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.ind__cols h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ind__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ind__cols li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: var(--ink); }
.ind__cols li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--navy); }
.ind__services { display: flex; flex-direction: column; gap: 8px; }
.ind__services a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .94rem; font-weight: 500; color: var(--ink); transition: .2s; }
.ind__services a .i { width: 16px; height: 16px; color: var(--green-700); transition: transform .2s var(--ease); }
.ind__services a:hover { border-color: var(--green); background: var(--green-50); }
.ind__services a:hover .i { transform: translateX(3px); }
.ind__anim { animation: fadeup .4s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 900px) {
  .ind { grid-template-columns: 1fr; }
  .ind__tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; margin: 0 -20px; padding-inline: 20px; scrollbar-width: none; }
  .ind__tab { flex: none; border-color: var(--line); }
  .ind__cols { grid-template-columns: 1fr; }
}

/* ---------- walk-through (hazard spotter) ---------- */
.spotter { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.spotter__stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
#scene { width: 100%; height: auto; cursor: crosshair; user-select: none; }
.dw * { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dw .thin { stroke: #b8c4d3; stroke-width: 1; }
.dw .walk { stroke: var(--green); stroke-width: 2; stroke-dasharray: 14 10; opacity: .7; }
.dw .w { fill: #fff; }
.dw .t { fill: var(--navy-50); }
.dw .k { fill: var(--ink); }
.dw .hv { fill: #f3c64a; }
.dw .sign { fill: var(--green); stroke: var(--green-700); }
.dw .sign-t { fill: #fff; stroke: none; font: 700 11px var(--font); letter-spacing: .08em; }
.dw .cable { stroke-width: 3; }
.dw .spill { fill: #cfe3f5; stroke: #7fa9cf; }
.hz { fill: transparent; cursor: pointer; }
.hz--line { fill: none; stroke: transparent; stroke-width: 28; pointer-events: stroke; }
.hz.found { pointer-events: none; }
.hz:focus { outline: none; }
.hz:focus-visible { stroke: var(--green); stroke-width: 3; stroke-dasharray: 8 6; fill: rgba(37, 161, 96, .06); }
.hz--line:focus-visible { stroke: rgba(37, 161, 96, .35); stroke-dasharray: none; stroke-width: 28; fill: none; }
.marker .m-ring { fill: rgba(37, 161, 96, .08); stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 6 5; transform-box: fill-box; transform-origin: center; animation: pop .45s var(--ease); }
.marker .m-badge { fill: var(--navy); }
.marker text { font: 600 13px var(--font); fill: #fff; }
.miss { fill: none; stroke: var(--danger); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: miss .6s ease-out forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes miss { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.spotter__toast {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 16px; border-radius: 10px;
  background: var(--navy-900); color: #fff; font-size: .92rem; box-shadow: var(--shadow-lg);
  transform: translateY(12px); opacity: 0; transition: .3s var(--ease); pointer-events: none;
}
.spotter__toast.show { transform: none; opacity: 1; }
.spotter__toast b { color: #8fe0b4; font-weight: 600; }
.toast-short { display: none; }
.spotter__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.spotter__head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.spotter__label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spotter__count { font-size: 1.05rem; color: var(--ink); margin: 4px 0 12px; }
.spotter__count b { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); font-weight: 500; }
.meter { height: 6px; background: var(--bg-alt); border-radius: 6px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--green); transition: width .5s var(--ease); }
.spotter__list { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.spotter__list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px; border-radius: 10px; font-size: .9rem; color: var(--muted); background: var(--bg-alt); }
.spotter__list .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed var(--line-strong); font-size: .75rem; font-weight: 600; }
.spotter__list li.found { background: #fff; border: 1px solid var(--line); color: var(--body); animation: fadeup .35s var(--ease); }
.spotter__list li.found .n { background: var(--navy); border-color: var(--navy); color: #fff; }
.spotter__list .t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; color: var(--ink); font-weight: 600; }
.spotter__list small { display: block; margin-top: 4px; font-size: .83rem; line-height: 1.5; }
.spotter__list small a { color: var(--green-700); font-weight: 600; }
.risk { flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; }
.risk--high { background: #fdecec; color: var(--danger); }
.risk--med { background: #fff4e0; color: var(--amber); }
.spotter__actions { display: flex; gap: 8px; }
@media (max-width: 980px) { .spotter { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .spotter__toast { left: 8px; right: 8px; bottom: 8px; padding: 8px 12px; font-size: .8rem; }
  .toast-detail { display: none; }
  .toast-short { display: inline; }
}

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: var(--line-strong); }
.step { position: relative; }
.step__n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1.5px solid var(--navy); color: var(--navy); font-family: var(--serif); font-size: 1.2rem; margin-bottom: 22px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .96rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .step__n { grid-row: span 2; margin: 0; }
}

/* ---------- health check (dark) ---------- */
.section--dark { background: radial-gradient(900px 500px at 85% 0%, rgba(0, 69, 133, .55), transparent 60%), var(--navy-900); color: #c9d6e4; }
.section--dark h2 { color: #fff; }
.section--dark h2 em { color: #8fe0b4; }
.section--dark .kicker { color: #8fe0b4; }
.section--dark .kicker span { color: #fff; border-color: rgba(255,255,255,.25); }
.section--dark .section__lead { color: #c9d6e4; }
.quiz-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.quiz { background: #fff; color: var(--body); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); min-height: 380px; }
.quiz__bar { height: 4px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; margin-bottom: 28px; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--green); transition: width .4s var(--ease); }
.quiz__q small { color: var(--green-700); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.quiz__q h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 10px 0 8px; }
.quiz__q p { color: var(--muted); font-size: .95rem; }
.quiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 26px; }
.quiz__opt { min-height: 52px; padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); transition: .2s; }
.quiz__opt:hover { border-color: var(--navy); background: var(--navy-50); }
.quiz__back { background: none; border: 0; color: var(--muted); margin-top: 18px; cursor: pointer; font-size: .9rem; padding: 6px 0; min-height: 44px; }
.quiz__back:hover { color: var(--ink); }
.quiz__anim { animation: fadeup .35s var(--ease); }
.result { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
.gauge { position: relative; width: 150px; height: 150px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge circle:first-child { stroke: var(--bg-alt); }
.gauge .g-val { stroke-linecap: round; stroke-dasharray: 452.4; stroke-dashoffset: 452.4; transition: stroke-dashoffset 1.2s var(--ease); }
.gauge b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 500; font-size: 2.3rem; color: var(--ink); }
.result h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin-bottom: 8px; }
.result__recs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.result__recs span { background: var(--navy-50); color: var(--navy); padding: 5px 12px; border-radius: 99px; font-size: .85rem; font-weight: 500; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz__note { font-size: .8rem; color: var(--muted); margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .quiz-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .result { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.faq-wrap .section__head { margin-bottom: 0; position: sticky; top: 120px; }
.section__lead a { color: var(--navy); font-weight: 600; text-underline-offset: 4px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 20px; padding: 22px 0; min-height: 44px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.08rem; color: var(--ink); transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy); }
.faq summary .i { margin-left: auto; width: 18px; height: 18px; color: var(--navy); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq__n { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--green-700); min-width: 28px; }
.faq__a { padding: 0 38px 24px 48px; }
.faq__a a { color: var(--green-700); font-weight: 600; text-underline-offset: 4px; }
.faq details[open] .faq__a { animation: fadeup .3s var(--ease); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section__head { position: static; } }
@media (max-width: 580px) { .faq summary { gap: 14px; font-size: 1rem; } .faq__a { padding: 0 0 22px 42px; } }

/* ---------- enquiry form ---------- */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.form-intro { position: sticky; top: 120px; }
.contact { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.contact li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact .i { width: 22px; height: 22px; color: var(--navy); }
.contact span { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact a { text-decoration: none; font-weight: 500; }
.contact a:hover { color: var(--navy); text-decoration: underline; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.form__title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 22px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.form__grid .field { margin: 0; }
.field > span, .field legend { font-size: .86rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 4px; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  font: inherit; font-size: 1rem; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 69, 133, .12); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .err-msg { font-size: .8rem; color: var(--danger); font-weight: 500; }
.field--chips { margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line-strong); font-size: .88rem; font-weight: 500; color: var(--body); transition: .15s; user-select: none; }
.chips label:hover span { border-color: var(--navy); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(37, 161, 96, .35); }
.field--inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; }
.field--inline legend { float: left; margin: 0 8px 0 0; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; min-height: 44px; }
.radio input, .consent input { accent-color: var(--navy); width: 18px; height: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--body); margin: 4px 0 22px; cursor: pointer; }
.consent input { margin-top: 3px; flex: none; }
.consent a { color: var(--navy); font-weight: 500; text-underline-offset: 3px; }
.consent.invalid { color: var(--danger); }
.hidden-field { position: absolute; left: -9999px; }
.form__status { margin-top: 14px; font-size: .95rem; text-align: center; min-height: 1.5em; }
.form__status.err { color: var(--danger); font-weight: 500; }
.form.sent { text-align: center; padding-block: 60px; }
.sent__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; animation: pop .45s var(--ease); }
.sent__icon .i { width: 34px; height: 34px; stroke-width: 2.5; }
.form.sent h3 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin-bottom: 10px; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } .form-intro { position: static; } }
@media (max-width: 580px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); color: #a9b8ca; padding: 64px 0 28px; font-size: .93rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__legal { padding-top: 24px; font-size: .82rem; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } }

/* =========================================================
   Multi-page additions: inner pages, articles, testimonials
   ========================================================= */
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.narrow { max-width: 820px; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 16px; }
.small { font-size: .85rem; color: var(--muted); }

/* page header */
.page-hero {
  position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px) 0 clamp(44px, 6vw, 72px);
  background: radial-gradient(800px 420px at 85% 20%, rgba(0, 69, 133, .07), transparent 65%), linear-gradient(180deg, #fff, var(--bg-alt));
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,69,133,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,69,133,.045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 80% at 90% 30%, #000 20%, transparent 75%);
}
.page-hero::after { content: ""; position: absolute; right: max(20px, calc((100vw - 1200px) / 2)); top: 50%; width: 150px; height: 175px; transform: translateY(-50%); background: url("/assets/shield-sm.png") center / contain no-repeat; opacity: .07; pointer-events: none; }
.page-hero .wrap { position: relative; max-width: min(1200px, 100% - 40px); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; max-width: 860px; }
.page-hero h1 em { display: block; }
.page-hero .lead { max-width: 700px; margin: 20px 0 28px; }
.page-hero .lead a { color: var(--navy); font-weight: 600; }
.page-hero--compact h1 em { display: inline; }
.page-hero--compact .lead { margin-bottom: 0; }
.page-hero--compact .hero__cta { margin-top: 24px; }
@media (max-width: 760px) { .page-hero::after { display: none; } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* article + sidebar layout */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 980px) { .page-grid { grid-template-columns: 1fr; } .side { position: static; } }

.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-50); color: var(--navy); font-size: .8rem; font-weight: 700; }
.prose a, .callout a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose p + ul, .prose p + ol { margin-top: 12px; }
.prose ul + p, .prose ol + p { margin-top: 16px; }
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: n; display: flex; flex-direction: column; gap: 12px; }
.steps-list li { position: relative; padding-left: 40px; counter-increment: n; }
.steps-list li::before { content: counter(n); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-50); color: var(--navy); font-size: .8rem; font-weight: 700; }
.callout { margin-top: 36px; padding: 24px 26px; border-radius: var(--radius); background: var(--green-50); border: 1px solid rgba(37,161,96,.25); }
.callout h3 { margin: 0 0 6px; font-size: 1.15rem; }
.prose .small { margin-top: 24px; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.side-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 8px; }
.side-card > p { font-size: .95rem; }
.ticks { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; color: var(--ink); }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks .i { width: 18px; height: 18px; color: var(--green-700); stroke-width: 2.25; margin-top: 2px; }
.side-card__mail { display: block; text-align: center; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.side-card__mail:hover { color: var(--navy); }
.side-card--links { box-shadow: none; background: var(--bg-alt); }
.side-card--links h3 { font-family: var(--font); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.link-list { display: flex; flex-direction: column; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.link-list a:last-child { border-bottom: 0; }
.link-list a .i { width: 16px; height: 16px; color: var(--green-700); transition: transform .2s var(--ease); }
.link-list a:hover { color: var(--navy); }
.link-list a:hover .i { transform: translateX(3px); }

/* hub page cards */
.lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lcard { display: flex; flex-direction: column; gap: 8px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--body); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.lcard h3 { font-size: 1.2rem; }
.lcard p { font-size: .95rem; }
.lcard span { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; font-size: .9rem; }
.lcard span .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.lcard:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-3px); }
.lcard:hover span .i { transform: translateX(3px); }
.hub-note { margin-top: 28px; color: var(--muted); }
.hub-note a { color: var(--navy); font-weight: 600; }
@media (max-width: 980px) { .lgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lgrid { grid-template-columns: 1fr; } }

/* testimonials */
.tgrid { display: grid; gap: 20px; align-items: start; }
.tgrid--2 { grid-template-columns: repeat(2, 1fr); }
.tgrid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .tgrid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .tgrid--2 { grid-template-columns: 1fr; } }
.tcard { margin: 0; position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section--alt .tcard { box-shadow: none; }
.tcard__mark { width: 30px; height: 22px; fill: var(--green); opacity: .9; }
.tcard blockquote { margin: 0; }
.tcard blockquote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.tcard figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; }
.tcard figcaption b { color: var(--ink); font-weight: 600; }
.tcard figcaption small { color: var(--green-700); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.tcard__more summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--navy); list-style: none; min-height: 32px; display: inline-flex; align-items: center; }
.tcard__more summary::-webkit-details-marker { display: none; }
.tcard__more summary::after { content: "+"; margin-left: 8px; font-size: 1.1rem; }
.tcard__more[open] summary::after { content: "–"; }
.tcard__more div { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; font-size: .95rem; }

/* call-to-action band */
.cta-band { background: radial-gradient(800px 400px at 90% 0%, rgba(37,161,96,.18), transparent 60%), var(--navy); color: #d3deea; padding: clamp(48px, 6vw, 72px) 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band h2 em { color: #8fe0b4; }
.cta-band p { margin-top: 8px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* homepage tweaks for linked service cards and sectors */
.svc h3 a { text-decoration: none; color: inherit; }
.svc h3 a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.svc__more a.svc__learn { display: inline-flex; margin-right: 16px; color: var(--navy); }
.ind__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; color: var(--navy); font-weight: 600; text-decoration: none; }
.ind__more .i { width: 16px; height: 16px; }
.ind__more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* areas we cover */
.areas-strip { margin-top: 56px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.areas-strip p { margin-bottom: 16px; }
.areas-strip strong { color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line-strong); color: var(--ink); font-weight: 500; font-size: .92rem; text-decoration: none; transition: .2s; }
.pills a:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* footer with four columns */
.footer__inner { grid-template-columns: 1.3fr 1fr 1fr .8fr; }
.footer__contact { margin-top: 14px; line-height: 1.8; }
@media (max-width: 980px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__inner { grid-template-columns: 1fr; } }

/* privacy notice */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: .95rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--body); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--navy); font-weight: 500; text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 36px; color: var(--navy); font-weight: 600; text-decoration: none; }
.back .i { transform: rotate(180deg); }

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