/* Vividfirst Solutions (Pty) Ltd — site styles */

:root {
  /* neutrals, biased cool-teal */
  --ground: #F4F7F7;
  --surface: #FFFFFF;
  --surface-2: #EAF0F1;
  --line: #D6E0E2;
  --line-strong: #B8C7CA;
  --ink: #0B2130;
  --ink-2: #3C5563;
  --ink-3: #6C838E;

  /* brand */
  --navy: #0E3A55;
  --navy-deep: #072639;
  --teal: #00A398;
  --teal-deep: #00786F;
  --amber: #E2B317;
  --orange: #E67E22;
  --orange-deep: #C25F09;
  --green: #27AE60;
  --green-deep: #1B8247;

  /* division accent, overridden per page */
  --accent: var(--teal);
  --accent-deep: var(--teal-deep);
  --accent-soft: rgba(0, 163, 152, 0.12);

  --onnavy: #EAF3F5;
  --onnavy-dim: #9FBCC7;

  --radius: 4px;
  --maxw: 1180px;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.14vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.3vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.36rem + 0.6vw, 1.9rem);
  --step-3: clamp(2rem, 1.7rem + 1.3vw, 2.9rem);
  --step-4: clamp(2.6rem, 2rem + 2.6vw, 4.3rem);

  --display: "Saira Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Tahoma, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #071720;
    --surface: #0D2531;
    --surface-2: #123141;
    --line: #1D4356;
    --line-strong: #2B5C72;
    --ink: #E7F1F3;
    --ink-2: #B4C9D1;
    --ink-3: #83A0AC;
    --navy: #0B2E44;
    --navy-deep: #051C2B;
    --teal: #22C3B6;
    --teal-deep: #6FE0D4;
    --amber: #F0C53A;
    --orange: #F0913C;
    --orange-deep: #FFB067;
    --green: #43C97A;
    --green-deep: #6BE39B;
    --accent-soft: rgba(34, 195, 182, 0.16);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #071720;
  --surface: #0D2531;
  --surface-2: #123141;
  --line: #1D4356;
  --line-strong: #2B5C72;
  --ink: #E7F1F3;
  --ink-2: #B4C9D1;
  --ink-3: #83A0AC;
  --navy: #0B2E44;
  --navy-deep: #051C2B;
  --teal: #22C3B6;
  --teal-deep: #6FE0D4;
  --amber: #F0C53A;
  --orange: #F0913C;
  --orange-deep: #FFB067;
  --green: #43C97A;
  --green-deep: #6BE39B;
  --accent-soft: rgba(34, 195, 182, 0.16);
  color-scheme: dark;
}

[data-division="tech"] { --accent: var(--teal); --accent-deep: var(--teal-deep); --accent-soft: rgba(0,163,152,.12); }
[data-division="advisory"] { --accent: var(--orange); --accent-deep: var(--orange-deep); --accent-soft: rgba(230,126,34,.13); }
[data-division="engineering"] { --accent: var(--green); --accent-deep: var(--green-deep); --accent-soft: rgba(39,174,96,.13); }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--accent);
  flex: none;
}
.eyebrow.on-dark { color: var(--onnavy-dim); }
.eyebrow.on-dark::before { background: var(--amber); }

/* ---------- masthead ---------- */

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.tri-rail { display: flex; height: 3px; }
.tri-rail span { flex: 1; }
.tri-rail span:nth-child(1) { background: var(--teal); }
.tri-rail span:nth-child(2) { background: var(--orange); }
.tri-rail span:nth-child(3) { background: var(--green); }

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
  flex-wrap: wrap;
}
@media (min-width: 961px) {
  .masthead-inner { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; }
  .nav a { padding: 8px 9px; font-size: .95rem; }
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; mix-blend-mode: multiply; }
:root[data-theme="dark"] .brand img,
:root:not([data-theme="light"]) .brand img { mix-blend-mode: normal; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { filter: brightness(1.05); border-radius: 3px; }
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.16rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); line-height: 1; }
.brand-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 11px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #06222A; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--onnavy); }
.btn-on-dark { background: transparent; color: var(--onnavy); border-color: rgba(234,243,245,.45); }
.btn-on-dark:hover { background: var(--onnavy); color: var(--navy-deep); border-color: var(--onnavy); }

:root[data-theme="dark"] .btn-primary,
:root:not([data-theme="light"]) .btn-primary { color: #051C24; }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* ---------- hero ---------- */

.hero { background: var(--navy-deep); color: var(--onnavy); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-block: 68px 72px;
}
.hero h1 { font-size: var(--step-4); color: #fff; text-transform: uppercase; letter-spacing: -0.01em; }
.hero h1 .thin { font-weight: 300; display: block; color: var(--onnavy-dim); }
.hero-lede { font-size: var(--step-1); color: var(--onnavy); max-width: 46ch; line-height: 1.5; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-figure::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 120px;
  height: 120px;
  border-right: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  pointer-events: none;
}

/* ---------- trust bar ---------- */

.trustbar { background: var(--navy); color: var(--onnavy-dim); border-top: 1px solid rgba(255,255,255,.08); }
.trustbar-inner { display: flex; align-items: center; gap: 14px 30px; flex-wrap: wrap; padding-block: 16px; font-size: var(--step--1); }
.trustbar strong { font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--onnavy); font-weight: 600; }
.trustbar ul { display: flex; gap: 10px 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.trustbar li { font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--onnavy); }

/* ---------- sections ---------- */

.section { padding-block: 72px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-navy { background: var(--navy-deep); color: var(--onnavy); }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: var(--step-3); text-transform: uppercase; }
.section-head p { color: var(--ink-2); font-size: var(--step-1); }
.section-navy .section-head p { color: var(--onnavy-dim); }

.prose { display: flex; flex-direction: column; gap: 16px; max-width: 68ch; }
.prose p { color: var(--ink-2); }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--surface); padding: 26px 22px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--display); font-size: var(--step-3); font-weight: 700; line-height: 1; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-family: var(--display); font-weight: 600; }

/* ---------- division tracks ---------- */

.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.track {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}
.track-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.track-body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.track h3 { font-size: var(--step-2); text-transform: uppercase; }
.track p { color: var(--ink-2); font-size: 0.97rem; }
.track ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 0.95rem; color: var(--ink-2); }
.track li { padding-left: 18px; position: relative; }
.track li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--accent); }
.track .btn { margin-top: auto; align-self: flex-start; }

/* ---------- generic card grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.panel { background: var(--surface); border: 1px solid var(--line); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.panel h3 { font-size: var(--step-1); text-transform: uppercase; }
.panel p { color: var(--ink-2); font-size: 0.97rem; }
.section-alt .panel { background: var(--ground); }
.section-navy .panel { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.section-navy .panel p { color: var(--onnavy-dim); }

/* numbered reasons — a real list of four, order is not meaningful, so no numerals */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.reason { display: flex; flex-direction: column; gap: 8px; border-left: 3px solid var(--accent); padding-left: 20px; }
.reason h3 { font-size: var(--step-1); text-transform: uppercase; }
.reason p { color: var(--ink-2); }
.section-navy .reason p { color: var(--onnavy-dim); }
.section-navy .reason { border-left-color: var(--amber); }

/* ---------- service blocks (division pages) ---------- */

.services { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}
.service:nth-child(even) .service-media { order: -1; }
.service-copy { display: flex; flex-direction: column; gap: 14px; }
.service h3 { font-size: var(--step-2); text-transform: uppercase; }
.service ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.service li { padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--accent); }
.impact { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; color: var(--accent-deep); background: var(--accent-soft); padding: 10px 14px; border-radius: var(--radius); }
.service-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }
.service-copy > .noimg { display: none; }
.service.solo { grid-template-columns: 1fr; }

/* ---------- case study ---------- */

.case { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.case > div { background: var(--navy-deep); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.case dt { font-family: var(--display); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--onnavy-dim); }
.case dd { margin: 0; color: #fff; font-size: var(--step-1); line-height: 1.4; }
.case .result dd { color: var(--amber); font-family: var(--display); font-weight: 700; font-size: var(--step-2); text-transform: uppercase; }

/* ---------- pricing ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table.price { width: 100%; border-collapse: collapse; min-width: 460px; }
table.price th, table.price td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); }
table.price thead th { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: var(--step--1); color: var(--ink-3); background: var(--surface-2); }
table.price td:last-child, table.price th:last-child { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.price tbody tr:last-child td { border-bottom: 0; }
.price-notes { display: flex; gap: 10px 26px; flex-wrap: wrap; margin-top: 14px; font-size: var(--step--1); color: var(--ink-3); list-style: none; padding: 0; }
.price-notes li { padding-left: 16px; position: relative; }
.price-notes li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; background: var(--accent); }

/* ---------- process ---------- */

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.process-step { border-top: 3px solid var(--amber); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.process-step .num { font-family: var(--mono); font-size: var(--step--1); color: var(--amber); letter-spacing: .1em; }
.process-step h3 { font-size: var(--step-1); text-transform: uppercase; }
.process-step p { color: var(--onnavy-dim); }
.section-alt .process-step p, .section:not(.section-navy) .process-step p { color: var(--ink-2); }

/* ---------- industries ---------- */

.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.industry { background: var(--surface); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.industry h3 { font-size: var(--step-1); text-transform: uppercase; }
.industry p { color: var(--ink-2); font-size: .97rem; }
.industry .tag { font-family: var(--display); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }

/* ---------- testimonials ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--surface); border: 1px solid var(--line); padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.quote figcaption { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: var(--step--1); color: var(--ink-3); margin-top: auto; }
.quote .mark { font-family: var(--display); font-size: 2.4rem; line-height: .6; color: var(--accent); }

/* ---------- timeline ---------- */

.timeline { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline-row b { font-family: var(--mono); font-size: var(--step-1); color: var(--accent-deep); font-variant-numeric: tabular-nums; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--navy); color: var(--onnavy); }
.cta-inner { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 46px; }
.cta-inner h2 { font-size: var(--step-3); text-transform: uppercase; color: #fff; max-width: 22ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--amber); border-color: var(--amber); color: #201700; }
.cta-band .btn-primary:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list .k { font-family: var(--display); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.contact-list .v { font-size: var(--step-1); }
.pending { color: var(--ink-3); font-style: italic; font-size: var(--step-0); }

form.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); padding: 28px 26px; }
form.enquiry .full { grid-column: 1 / -1; }
form.enquiry label { display: flex; flex-direction: column; gap: 6px; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: var(--step--1); color: var(--ink-2); }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
  width: 100%;
}
form.enquiry textarea { min-height: 130px; resize: vertical; }
/* One flex item, so the caption and its asterisk stay on the same line. */
form.enquiry .lbl { display: block; }
form.enquiry .req { color: var(--accent); }
/* Controls sit at the bottom of their cell, so two fields side by side line up
   even when one caption wraps and the other does not. */
form.enquiry label > input, form.enquiry label > select, form.enquiry label > textarea { margin-top: auto; }
form.enquiry input:focus-visible, form.enquiry select:focus-visible, form.enquiry textarea:focus-visible,
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: var(--step--1); color: var(--ink-3); }
.form-out { grid-column: 1 / -1; border: 1px solid var(--accent); background: var(--accent-soft); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.form-out pre { margin: 0; font-family: var(--mono); font-size: .85rem; white-space: pre-wrap; color: var(--ink); max-height: 220px; overflow: auto; }
.form-out .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.footer { background: var(--navy-deep); color: var(--onnavy-dim); padding-block: 52px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: var(--step--1); color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { color: var(--onnavy-dim); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-tag { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); font-size: var(--step-1); }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step--1); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-block: 48px 54px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tracks, .grid-3, .grid-4, .industries, .quotes, .process { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: 22px; }
  .service:nth-child(even) .service-media { order: 0; }
}

@media (max-width: 620px) {
  .section { padding-block: 52px; }
  .tracks, .grid-2, .grid-3, .grid-4, .industries, .quotes, .process, .reasons, .footer-grid { grid-template-columns: 1fr; }
  form.enquiry { grid-template-columns: 1fr; padding: 22px 18px; }
  .timeline-row { grid-template-columns: 84px 1fr; gap: 14px; }
  .masthead { position: static; }
  .nav a { padding: 6px 8px; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   MOTION & DEPTH LAYER
   Everything below is progressive: without JS the page still
   renders fully, and prefers-reduced-motion switches it off.
   ========================================================= */

/* --- scroll reveal (only armed once JS confirms support) --- */
.js-anim .reveal { opacity: 0.001; transform: translateY(22px); }
.js-anim .reveal.shown {
  opacity: 1;
  transform: none;
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
.js-anim .reveal.d1.shown { transition-delay: .08s; }
.js-anim .reveal.d2.shown { transition-delay: .16s; }
.js-anim .reveal.d3.shown { transition-delay: .24s; }
.js-anim .reveal.d4.shown { transition-delay: .32s; }

/* --- hero: living background --- */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 150%;
  z-index: -2;
  background:
    radial-gradient(46% 52% at 18% 22%, rgba(0,163,152,.40), transparent 62%),
    radial-gradient(40% 48% at 82% 30%, rgba(226,179,23,.20), transparent 64%),
    radial-gradient(50% 60% at 60% 95%, rgba(14,58,85,.85), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
  filter: blur(6px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
  pointer-events: none;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.02); }
}

.hero-copy > * { animation: rise .8s cubic-bezier(.22,.61,.36,1) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .14s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
.hero-copy > :nth-child(4) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero h1 .thin {
  background: linear-gradient(100deg, var(--teal) 0%, #8FE9E0 40%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-figure { animation: rise 1s cubic-bezier(.22,.61,.36,1) .2s both; }
.hero-figure img {
  box-shadow: 0 26px 60px -24px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
  animation: kenburns 26s ease-in-out infinite alternate;
  transform-origin: 58% 45%;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-figure::before {
  content: "";
  position: absolute;
  inset: -16px auto auto -16px;
  width: 110px; height: 110px;
  border-left: 3px solid var(--teal);
  border-top: 3px solid var(--teal);
  opacity: .9;
  animation: rise .9s ease-out .55s both;
}

/* --- masthead: condenses as you scroll --- */
.masthead { transition: box-shadow .3s ease, background-color .3s ease; }
.masthead.stuck { box-shadow: 0 10px 30px -18px rgba(11,33,48,.55); }
.masthead.stuck .masthead-inner { min-height: 60px; }
.masthead-inner { transition: min-height .28s ease; }
.brand img { transition: transform .3s ease; }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }

.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.nav a:hover::after { transform: scaleX(1); }

/* --- buttons: fill sweep --- */
.btn { position: relative; overflow: hidden; z-index: 0; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: currentColor;
  opacity: 0;
  transform: translateY(101%);
  transition: transform .34s cubic-bezier(.22,.61,.36,1), opacity .34s ease;
}
.btn:hover::before { transform: translateY(0); opacity: .12; }
.btn:hover { transform: translateY(-2px); }
.btn { transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn-primary:hover { box-shadow: 0 12px 26px -14px var(--accent); }

/* --- trust bar: slow ticker on narrow screens, static above --- */
.trustbar { position: relative; overflow: hidden; }
.trustbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 7s ease-in-out 2s infinite;
  pointer-events: none;
}
@keyframes sheen { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
.trustbar li { transition: color .2s ease, transform .2s ease; }
.trustbar li:hover { color: var(--amber); transform: translateY(-2px); }

/* --- stats: gradient numerals that count up --- */
.stats { box-shadow: 0 18px 40px -30px rgba(11,33,48,.5); }
.stat { position: relative; overflow: hidden; transition: background-color .25s ease; }
.stat::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.stat.shown::after { transform: scaleX(1); }
.stat:hover { background: var(--surface-2); }
.stat b {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal) 55%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --- division tracks: lift, zoom, colour wash --- */
.track { position: relative; overflow: hidden; transition: transform .32s cubic-bezier(.22,.61,.36,1), box-shadow .32s ease, border-color .32s ease; }
.track::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, var(--accent-soft), transparent);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.track:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(11,33,48,.55); }
.track:hover::after { opacity: 1; }
.track-img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.track:hover .track-img { transform: scale(1.06); }
.track-body { position: relative; z-index: 1; }
.track li { transition: transform .2s ease; }
.track:hover li { transform: translateX(3px); }

/* --- reason blocks --- */
.reason { transition: border-color .25s ease, transform .25s ease; }
.reason:hover { transform: translateX(4px); }
.reason:hover h3 { color: var(--accent-deep); }
.section-navy .reason:hover h3 { color: var(--amber); }
.reason h3 { transition: color .25s ease; }

/* --- panels --- */
.panel { position: relative; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; overflow: hidden; }
.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.panel:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(11,33,48,.6); }
.panel:hover::before { transform: scaleY(1); }

/* --- service rows --- */
.service-media { position: relative; overflow: hidden; border-radius: var(--radius); }
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, var(--accent-soft), transparent 55%);
  opacity: .85;
  transition: opacity .35s ease;
  pointer-events: none;
}
.service-media img { transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.service:hover .service-media img { transform: scale(1.05); }
.service:hover .service-media::after { opacity: .3; }
.service h3 { transition: color .25s ease; }
.service:hover h3 { color: var(--accent-deep); }
.impact { position: relative; overflow: hidden; align-self: flex-start; }
.impact::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

/* --- case study --- */
.case > div { transition: background-color .3s ease; }
.case > div:hover { background: rgba(255,255,255,.06); }
.case .result dd {
  background: linear-gradient(100deg, var(--amber), #FFE38A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --- pricing --- */
table.price tbody tr { transition: background-color .2s ease; }
table.price tbody tr:hover { background: var(--accent-soft); }
table.price tbody tr:hover td:last-child { color: var(--accent-deep); font-weight: 500; }

/* --- testimonials --- */
.quote { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; position: relative; overflow: hidden; }
.quote::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--orange), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.quote:hover { transform: translateY(-6px); box-shadow: 0 28px 46px -30px rgba(11,33,48,.55); }
.quote:hover::after { transform: scaleX(1); }
.quote .mark { transition: transform .3s ease; display: inline-block; }
.quote:hover .mark { transform: translateY(-3px) scale(1.12); }

/* --- process steps --- */
.process-step { transition: transform .28s ease; }
.process-step:hover { transform: translateY(-5px); }
.process-step .num { display: inline-block; transition: letter-spacing .3s ease; }
.process-step:hover .num { letter-spacing: .2em; }

/* --- industries --- */
.industry { position: relative; overflow: hidden; transition: background-color .3s ease, transform .3s ease; }
.industry::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.industry:hover::after { transform: scaleX(1); }
.industry:hover h3 { color: var(--accent-deep); }
.industry h3 { transition: color .25s ease; }

/* --- timeline --- */
.timeline-row { transition: background-color .25s ease, padding-left .25s ease; }
.timeline-row:hover { background: var(--accent-soft); padding-left: 12px; }

/* --- CTA band --- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: -60% -10%;
  z-index: -1;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(0,163,152,.45), transparent 60%),
    radial-gradient(45% 60% at 80% 70%, rgba(226,179,23,.22), transparent 62%);
  animation: drift 18s ease-in-out infinite alternate;
}

/* --- forms --- */
form.enquiry input, form.enquiry select, form.enquiry textarea { transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface);
}
form.enquiry { transition: box-shadow .3s ease; }
form.enquiry:focus-within { box-shadow: 0 26px 50px -34px rgba(11,33,48,.6); }

/* --- footer --- */
.footer { position: relative; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--teal) 33%, var(--orange) 33% 66%, var(--green) 66%); }
.footer a { position: relative; }
.footer a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s ease;
}
.footer a:hover { text-decoration: none; }
.footer a:hover::after { transform: scaleX(1); }

/* --- section rhythm: soft edge between bands --- */
.section-alt, .section-navy { position: relative; }

/* --- back to top --- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background-color .2s ease;
  z-index: 60;
  box-shadow: 0 14px 28px -14px rgba(11,33,48,.7);
}
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal-deep); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* --- scroll progress rail on the masthead --- */
.progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width .12s linear;
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1 !important; transform: none !important; }
  .hero::before, .cta-band::before, .hero-figure img, .trustbar::after { animation: none !important; }
  .hero-copy > *, .hero-figure { animation: none !important; opacity: 1 !important; }
}

/* masthead fits on one line even before the condensed webfont loads */
.brand-name, .nav a { white-space: nowrap; }
.brand span { display: inline-block; }
@media (max-width: 1180px) and (min-width: 961px) {
  .brand-sub { display: none; }
  .brand img { height: 34px; }
  .brand-name { font-size: 1.02rem; }
  .nav a { padding: 8px 7px; font-size: .9rem; letter-spacing: .03em; }
}

/* =========================================================
   IMAGERY: feathered edges, cross-fading cycles, cutouts
   ========================================================= */

/* --- hero: stacked images that cross-fade --- */
.hero-cycle {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}
.hero-cycle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.5s ease, transform 7s ease-out;
  border-radius: 18px;
}
.hero-cycle img.on { opacity: 1; transform: scale(1); }
.hero-figure { position: relative; }
.hero-figure::after { display: none; }

/* soften the rectangle: the edges dissolve into the navy ground */
.hero-cycle,
.service-media:not(.cutout),
.track-img {
  -webkit-mask-image: radial-gradient(125% 125% at 50% 45%, #000 58%, rgba(0,0,0,.55) 82%, transparent 100%);
  mask-image: radial-gradient(125% 125% at 50% 45%, #000 58%, rgba(0,0,0,.55) 82%, transparent 100%);
}
.hero-cycle { box-shadow: none; }
.hero-cycle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 30% 20%, transparent 45%, rgba(7,38,57,.55) 100%);
  pointer-events: none;
}
.hero-figure img { box-shadow: none; animation: none; }
.hero-figure::before { inset: -14px auto auto -14px; border-radius: 6px 0 0 0; }

/* cycle indicator */
.cycle-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.cycle-dots span {
  width: 26px; height: 3px;
  background: rgba(234,243,245,.28);
  border-radius: 2px;
  transition: background-color .5s ease, width .5s ease;
}
.cycle-dots span.on { background: var(--amber); width: 40px; }

/* --- division cards: image melts into the card --- */
.track-img {
  border-radius: 14px 14px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0,0,0,.35) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, rgba(0,0,0,.35) 88%, transparent 100%);
}
.track { border-radius: 14px; }
.track-body { margin-top: -18px; }

/* --- service rows: feathered photo, no hard frame --- */
.service-media:not(.cutout) { border-radius: 16px; }
.service-media:not(.cutout) img { border-radius: 16px; }
.service-media:not(.cutout)::after { border-radius: 16px; }

/* --- cutouts: background removed, so no plate at all --- */
.service-media.cutout { background: none; border: 0; overflow: visible; }
.service-media.cutout::after { display: none; }
.service-media.cutout img {
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 18px 26px rgba(11,33,48,.22));
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.service:hover .service-media.cutout img { transform: translateY(-6px) scale(1.02); }

/* --- capability wheel (keyed-out graphic) --- */
.wheel-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.wheel img {
  width: 100%;
  filter: drop-shadow(0 22px 30px rgba(11,33,48,.26));
  animation: float 9s ease-in-out infinite alternate;
}
.wheel-copy { display: flex; flex-direction: column; gap: 14px; }
.wheel-copy p:last-child { color: var(--ink-2); }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

/* --- quotes and panels get softer corners to match --- */
.quote, .panel, .industry, .stat, form.enquiry { border-radius: 12px; }
.stats { border-radius: 12px; overflow: hidden; }
.industries { border-radius: 12px; overflow: hidden; }
.table-scroll { border-radius: 12px; }
.btn { border-radius: 6px; }

@media (max-width: 960px) {
  .wheel-row { grid-template-columns: 1fr; gap: 24px; }
  .wheel { max-width: 340px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cycle img { transition: opacity .01s linear; transform: none !important; }
  .wheel img { animation: none; }
}

/* stronger feather so photos read as light on the page, not boxes */
.hero-cycle,
.hero-cycle img,
.service-media:not(.cutout),
.service-media:not(.cutout) img {
  -webkit-mask-image: radial-gradient(88% 88% at 50% 44%, #000 52%, rgba(0,0,0,.72) 74%, transparent 99%);
  mask-image: radial-gradient(88% 88% at 50% 44%, #000 52%, rgba(0,0,0,.72) 74%, transparent 99%);
}
.hero-cycle::after { background: radial-gradient(112% 112% at 32% 18%, transparent 42%, rgba(7,38,57,.42) 88%); }
.track-img {
  -webkit-mask-image: radial-gradient(120% 96% at 50% 18%, #000 48%, rgba(0,0,0,.5) 76%, transparent 100%);
  mask-image: radial-gradient(120% 96% at 50% 18%, #000 48%, rgba(0,0,0,.5) 76%, transparent 100%);
}
.wheel { max-width: 380px; margin-inline: auto; }
