/* ==========================================================================
   VERITRACE — Design System
   Light editorial / premium. Open-source intelligence, Australia-wide.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surface */
  --paper:        #F7F8FA;
  --paper-2:      #EEF1F5;
  --paper-3:      #E3E7EE;
  --white:        #FFFFFF;

  /* Ink */
  --ink:          #14181D;
  --ink-2:        #2B333D;
  --muted:        #5A626D;
  --muted-2:      #868E9A;

  /* Line */
  --line:         #DEE2E9;
  --line-2:       #C9CFD9;

  /* Brand */
  --accent:       #1B2A4A;
  --accent-2:     #27406C;
  --accent-soft:  #E7ECF5;
  --accent-line:  #B9C4DA;
  --signal:       #7A2E2E;
  --signal-soft:  #F1E7E5;

  /* Type */
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans:    'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Space */
  --gutter:       clamp(1.25rem, 4vw, 3rem);
  --maxw:         1220px;
  --maxw-narrow:  760px;
  --section-y:    clamp(4.5rem, 9vw, 8.5rem);

  /* Radius + shadow */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(12,17,22,.05), 0 2px 8px rgba(12,17,22,.04);
  --shadow-md: 0 2px 4px rgba(12,17,22,.04), 0 12px 32px rgba(12,17,22,.07);
  --shadow-lg: 0 4px 8px rgba(12,17,22,.04), 0 24px 60px rgba(12,17,22,.10);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: var(--paper); }

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

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.h-display { font-size: clamp(2.75rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.03em; }
.h1        { font-size: clamp(2.4rem, 5.2vw, 4rem);  line-height: 1.05; letter-spacing: -0.025em; }
.h2        { font-size: clamp(2rem, 3.9vw, 3.1rem); }
.h3        { font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.18; }
.h4        { font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.25; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}
.eyebrow--muted { color: var(--muted-2); }

.lede {
  font-size: clamp(1.0625rem, 1.55vw, 1.3125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.body-lg { font-size: 1.125rem; line-height: 1.68; color: var(--muted); }
.small   { font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.xsmall  { font-size: .8125rem; line-height: 1.55; color: var(--muted-2); }

.mono {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
}

em, .italic { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }

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

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper2 { background: var(--paper-2); }
.section--white  { background: var(--white); }
.section--dark {
  background: var(--ink);
  color: rgba(250,250,247,.72);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--dark .lede { color: rgba(250,250,247,.68); }
.section--dark .eyebrow { color: #9DB2DA; }
.section--dark .eyebrow::before { background: rgba(127,191,182,.4); }

.rule { height: 1px; background: var(--line); border: 0; }

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem); }
.section-head > * + * { margin-top: 1.1rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease-out); flex: none; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn--accent { background: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(12,17,22,.03); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); transform: translateY(-1px); }

.btn--outline-light {
  background: transparent; color: var(--paper);
  border-color: rgba(250,250,247,.28);
}
.btn--outline-light:hover { border-color: rgba(250,250,247,.7); background: rgba(250,250,247,.06); }

.btn--sm { padding: .55rem 1.15rem; font-size: .875rem; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { border-color: var(--accent-line); gap: .7rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- 6. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 74px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .625rem; flex: none; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__mark .lm-ring { transition: transform .6s var(--ease-out); transform-origin: 50% 50%; }
.logo:hover .lm-ring { transform: rotate(90deg); }
.logo__text {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo__text span { font-weight: 400; color: var(--accent); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  position: relative;
  padding: .5rem .85rem;
  font-size: .9375rem;
  font-weight: 450;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .2rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.header__cta { display: flex; align-items: center; gap: .5rem; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle__bars { width: 16px; height: 10px; position: relative; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 74px 0 0 0;
  z-index: 99;
  background: var(--paper);
  padding: 2rem var(--gutter) 3rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  /* Closed menu stays display:block on mobile for the fade/slide animation,
     so it must not intercept taps meant for the page beneath it. */
  pointer-events: none;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 2rem; width: 100%; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(12,17,22,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,17,22,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 20%, transparent 78%);
}
.hero__glow {
  position: absolute;
  top: -22%; right: -8%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(14,79,74,.10) 0%, transparent 66%);
  filter: blur(20px);
}
.hero__inner { position: relative; z-index: 1; }

.hero__grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy > * + * { margin-top: 1.5rem; }
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  margin-top: 2.25rem !important;
}
.hero__meta li {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex; align-items: center; gap: .5rem;
}
.hero__meta li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Hero visual panel */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--white), var(--paper-2));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__visual svg { width: 100%; height: 100%; }
.hero__visual-label {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(6px);
  padding: .4rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.trace-line { stroke-dasharray: 5 7; animation: dash 3.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -48; } }
.node-pulse { animation: pulse 3s var(--ease) infinite; transform-origin: center; }
.node-pulse:nth-of-type(2n) { animation-delay: .8s; }
.node-pulse:nth-of-type(3n) { animation-delay: 1.6s; }
@keyframes pulse { 0%,100% { opacity:.25; r:14; } 50% { opacity:.06; r:22; } }

/* ---------- 7b. Hero service index ---------- */
.svc-index {
  position: relative;
  background: var(--ink);
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
  overflow: hidden;
}
.svc-index::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(250,250,247,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250,250,247,.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000, transparent 72%);
  pointer-events: none;
}
.svc-index::after {
  content: '';
  position: absolute; left: 50%; top: -60%;
  width: 900px; height: 620px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(18,100,93,.30) 0%, transparent 68%);
  pointer-events: none;
}
.svc-index__inner { position: relative; z-index: 1; }

.svc-index__head {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.svc-index__head > div:first-child > * + * { margin-top: .9rem; }
.svc-index__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: var(--paper);
  line-height: 1.08;
}
.svc-index__intro {
  font-size: .9375rem; line-height: 1.6;
  color: rgba(250,250,247,.6);
  max-width: 52ch;
}

.svc-index__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(250,250,247,.13);
  border: 1px solid rgba(250,250,247,.13);
  border-radius: var(--r-md);
  overflow: hidden;
}
.svc-index__item { display: flex; }
.svc-index__link {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%;
  padding: clamp(1.15rem, 1.9vw, 1.6rem);
  background: var(--ink);
  transition: background .35s var(--ease);
}
.svc-index__link::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px; background: #9DB2DA;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.svc-index__link:hover { background: #141C24; }
.svc-index__link:hover::before { transform: scaleX(1); }

.svc-index__num {
  font-family: var(--font-mono);
  font-size: .625rem; letter-spacing: .16em;
  color: #9DB2DA;
}
.svc-index__name {
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.7vw, 1.375rem);
  line-height: 1.16;
  color: var(--paper);
  margin-top: .85rem;
  transition: color .25s var(--ease);
}
.svc-index__desc {
  font-size: .8125rem; line-height: 1.5;
  color: rgba(250,250,247,.52);
  margin-top: .5rem;
}
.svc-index__go {
  margin-top: auto; padding-top: 1.1rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono);
  font-size: .5938rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(250,250,247,.4);
  transition: color .25s var(--ease);
}
.svc-index__go svg { transition: transform .3s var(--ease-out); }
.svc-index__link:hover .svc-index__go { color: #9DB2DA; }
.svc-index__link:hover .svc-index__go svg { transform: translateX(4px); }

.svc-index__foot {
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
}
.svc-index__note {
  font-size: .8125rem; color: rgba(250,250,247,.45);
}

/* ---------- 8. Marquee / credibility strip ---------- */
.credstrip {
  border-block: 1px solid var(--line);
  background: var(--white);
  padding-block: 1.5rem;
}
.credstrip__inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem 2.5rem;
}
.credstrip__label {
  font-family: var(--font-mono);
  font-size: .625rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-2);
  flex: none;
}
.credstrip__items { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.credstrip__items li {
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  display: flex; align-items: center; gap: .5rem;
}
.credstrip__items svg { color: var(--accent); flex: none; }

/* ---------- 9. Cards ---------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card > * + * { margin-top: .75rem; }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: .35rem;
}
.card__title { font-family: var(--font-display); font-size: 1.375rem; color: var(--ink); line-height: 1.2; }
.card__text { font-size: .9375rem; color: var(--muted); line-height: 1.62; }
.card__foot { margin-top: auto !important; padding-top: 1.25rem; }

/* Pillar card (numbered, editorial) */
.pillar {
  position: relative;
  padding: clamp(1.75rem, 2.6vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .3s var(--ease);
}
.pillar::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .45s var(--ease-out);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.pillar:hover::before { transform: scaleY(1); }
/* stretched link: makes the whole card clickable without nesting interactive content */
.pillar > a[aria-label] { position: absolute; inset: 0; z-index: 2; }
.pillar > a[aria-label]:focus-visible { outline-offset: -4px; }
.pillar:hover .pillar__title { color: var(--accent); }
.pillar__title { transition: color .25s var(--ease); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: .6875rem; letter-spacing: .14em;
  color: var(--muted-2); display: block; margin-bottom: 1rem;
}
.pillar__title { font-family: var(--font-display); font-size: 1.625rem; color: var(--ink); margin-bottom: .65rem; }
.pillar__text { font-size: .9375rem; color: var(--muted); line-height: 1.62; }
.pillar__list { margin-top: 1.5rem; display: grid; gap: .55rem; }
.pillar__list li {
  font-size: .875rem; color: var(--ink-2);
  display: flex; gap: .6rem; align-items: baseline;
}
.pillar__list li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-line); flex: none; transform: translateY(-2px);
}

/* ---------- 10. Service detail rows ---------- */
.svc {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2rem, 3.5vw, 3rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__num {
  font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .1em;
  color: var(--muted-2); padding-top: .5rem;
}
.svc__head > * + * { margin-top: .85rem; }
.svc__title { font-family: var(--font-display); font-size: clamp(1.5rem,2.4vw,2rem); color: var(--ink); }
.svc__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem !important; }
.tag {
  font-family: var(--font-mono);
  font-size: .625rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
}
.tag--accent { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.svc__body { }
.svc__body p { font-size: .9688rem; color: var(--muted); line-height: 1.68; }
.svc__body p + p { margin-top: .9rem; }
.svc__deliver {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper-2);
  border-radius: var(--r-sm);
  border-left: 2px solid var(--accent-line);
}
.svc__deliver dt {
  font-family: var(--font-mono);
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: .45rem;
}
.svc__deliver dd { font-size: .875rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- 11. Process ---------- */
.process { display: grid; gap: 0; counter-reset: step; }
.process__item {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(250,250,247,.14);
  align-items: start;
}
.process__item:last-child { border-bottom: 1px solid rgba(250,250,247,.14); }
.process__step {
  font-family: var(--font-mono);
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: #9DB2DA; padding-top: .45rem;
}
.process__title { font-family: var(--font-display); font-size: clamp(1.375rem,2.2vw,1.75rem); color: var(--paper); margin-bottom: .6rem; }
.process__text { font-size: .9688rem; color: rgba(250,250,247,.62); line-height: 1.68; max-width: 62ch; }

/* ---------- 12. Audience tabs ---------- */
.tabs { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: clamp(2rem,4vw,4rem); align-items: start; }
.tabs__list { display: grid; gap: .25rem; }
.tabs__btn {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left;
  padding: 1rem 1.1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 500; color: var(--muted);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tabs__btn svg { opacity: 0; transform: translateX(-4px); transition: all .25s var(--ease); flex: none; }
.tabs__btn:hover { color: var(--ink); background: rgba(12,17,22,.03); }
.tabs__btn[aria-selected="true"] {
  background: var(--white); color: var(--ink);
  border-color: var(--line); box-shadow: var(--shadow-sm);
}
.tabs__btn[aria-selected="true"] svg { opacity: 1; transform: none; color: var(--accent); }

.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeUp .45s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabs__panel-title { font-family: var(--font-display); font-size: clamp(1.75rem,2.8vw,2.25rem); color: var(--ink); margin-bottom: 1rem; }
.tabs__panel-text { font-size: 1.0625rem; color: var(--muted); line-height: 1.7; max-width: 60ch; }
.tabs__panel-list { margin-top: 1.75rem; display: grid; gap: .75rem; }
.tabs__panel-list li {
  display: flex; gap: .75rem; align-items: flex-start;
  font-size: .9375rem; color: var(--ink-2);
  padding-bottom: .75rem; border-bottom: 1px solid var(--line);
}
.tabs__panel-list li:last-child { border-bottom: 0; }
.tabs__panel-list svg { color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- 13. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--white); padding: clamp(1.5rem,2.6vw,2.25rem); }
.stat__val { font-family: var(--font-display); font-size: clamp(2.25rem,4vw,3rem); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat__label { margin-top: .75rem; font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* ---------- 14. Accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  width: 100%; text-align: left;
  padding: 1.4rem 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.125rem,1.7vw,1.3125rem);
  color: var(--ink); line-height: 1.3;
  transition: color .2s var(--ease);
}
.acc__btn:hover { color: var(--accent); }
.acc__icon {
  flex: none; width: 22px; height: 22px; margin-top: 3px;
  position: relative;
}
.acc__icon::before, .acc__icon::after {
  content: ''; position: absolute; background: var(--accent);
  transition: transform .35s var(--ease-out), opacity .3s var(--ease);
}
.acc__icon::before { left: 0; top: 10.5px; width: 22px; height: 1.5px; }
.acc__icon::after  { top: 0; left: 10.5px; height: 22px; width: 1.5px; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(90deg); opacity: 0; }
.acc__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease-out);
}
.acc__panel-inner { padding: 0 3rem 1.6rem 0; }
.acc__panel-inner p { font-size: .9688rem; color: var(--muted); line-height: 1.7; }
.acc__panel-inner p + p { margin-top: .85rem; }

/* ---------- 15. CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute; right: -12%; top: -40%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(18,100,93,.42) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; max-width: 640px; }
.cta-band__inner > * + * { margin-top: 1.25rem; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(250,250,247,.68); font-size: 1.0625rem; line-height: 1.65; }
.cta-band .btn-row { margin-top: 2rem; }

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,79,74,.10);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235E6875' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field--check { display: flex; gap: .7rem; align-items: flex-start; }
.field--check input { width: auto; margin-top: .25rem; accent-color: var(--accent); }
.field--check label { font-family: var(--font-sans); font-size: .875rem; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.55; }
.form__note { font-size: .8125rem; color: var(--muted-2); line-height: 1.55; }
.form__status {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: .9375rem;
}
.form__status.is-visible { display: block; }

/* Contact aside */
.contact-aside { display: grid; gap: 1.5rem; align-content: start; }
.contact-block {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.contact-block h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.contact-block p { font-size: .9375rem; color: var(--muted); line-height: 1.62; }
.contact-block a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }

/* ---------- 17. Quote / testimonial ---------- */
.quote {
  padding: clamp(2rem,4vw,3.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.quote__mark { font-family: var(--font-display); font-size: 4rem; color: var(--accent-line); line-height: .6; }
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.4; color: var(--ink);
  margin-block: 1rem 1.5rem;
  text-wrap: pretty;
}
.quote__by { font-size: .875rem; color: var(--muted); }

/* ---------- 18. Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(250,250,247,.6);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250,250,247,.12);
}
.footer .logo__text { color: var(--paper); }
.footer .logo__text span { color: #9DB2DA; }
.footer__blurb { margin-top: 1.15rem; font-size: .9375rem; line-height: 1.65; max-width: 34ch; color: rgba(250,250,247,.55); }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: .625rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(250,250,247,.4); font-weight: 500;
  margin-bottom: 1.15rem;
}
.footer__col ul { display: grid; gap: .7rem; }
.footer__col a {
  font-size: .9375rem; color: rgba(250,250,247,.66);
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--paper); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  padding-top: 2rem;
}
.footer__bottom p, .footer__bottom a { font-size: .8125rem; color: rgba(250,250,247,.42); }
.footer__legal { max-width: 78ch; margin-top: 1.5rem; font-size: .75rem; line-height: 1.6; color: rgba(250,250,247,.34); }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a:hover { color: rgba(250,250,247,.75); }

/* ---------- 19. Page hero (interior) ---------- */
.pagehero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pagehero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(12,17,22,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,17,22,.04) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 70% 100% at 20% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 20% 0%, #000, transparent 75%);
  pointer-events: none;
}
.pagehero__inner { position: relative; z-index: 1; }
.pagehero__inner > * + * { margin-top: 1.35rem; }
.crumbs { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.crumbs a { color: var(--muted-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin-inline: .5rem; opacity: .5; }

/* ---------- 19b. Sticky sub-navigation ---------- */
.subnav {
  position: sticky;
  top: 74px;
  z-index: 90;
  background: rgba(250,250,247,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav__inner {
  display: flex;
  align-items: center;
  gap: .25rem;
  overflow-x: auto;
  padding-block: .7rem;
  scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__label {
  font-family: var(--font-mono);
  font-size: .625rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); flex: none; margin-right: 1rem;
}
.subnav a {
  flex: none;
  padding: .45rem .95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .875rem;
  font-weight: 450;
  color: var(--muted);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.subnav a:hover { background: var(--white); border-color: var(--line); color: var(--ink); }
.subnav a.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

html:has(.subnav) { scroll-padding-top: 148px; }

/* ---------- 19c. Sector blocks ---------- */
.sector { padding-block: clamp(3rem, 5.5vw, 5rem); border-top: 1px solid var(--line); }
.sector:first-of-type { border-top: 0; padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.sector__layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
}
.sector__aside { position: sticky; top: 156px; }
.sector__aside > * + * { margin-top: 1rem; }
.sector__title { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--ink); line-height: 1.1; }
.sector__body > * + * { margin-top: 1rem; }
.sector__body p { font-size: 1.0313rem; color: var(--muted); line-height: 1.7; }
.sector__usecases {
  margin-top: 1.75rem !important;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.sector__usecases ul { display: grid; gap: .8rem; margin-top: 1rem; }
.sector__usecases h4 {
  font-family: var(--font-mono);
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500;
}
.sector__usecases li {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .9375rem; color: var(--ink-2); line-height: 1.55;
}
.sector__usecases svg { color: var(--accent); flex: none; margin-top: 4px; }
.sector__services { margin-top: 1.5rem !important; display: flex; flex-wrap: wrap; gap: .45rem; }
.sector__services a {
  font-size: .8125rem;
  padding: .4rem .85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  transition: all .2s var(--ease);
}
.sector__services a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------- 19d. Dark step grid (homepage method teaser) ---------- */
.stepgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  background: rgba(250,250,247,.14);
  border: 1px solid rgba(250,250,247,.14);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stepgrid__item {
  background: var(--ink);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: background .3s var(--ease);
}
.stepgrid__item:hover { background: #131A22; }
.stepgrid__step {
  font-family: var(--font-mono);
  font-size: .625rem; letter-spacing: .16em; text-transform: uppercase;
  color: #9DB2DA; display: block; margin-bottom: .9rem;
}
.stepgrid__title { font-family: var(--font-display); font-size: 1.3125rem; color: var(--paper); margin-bottom: .55rem; line-height: 1.2; }
.stepgrid__text { font-size: .875rem; color: rgba(250,250,247,.58); line-height: 1.6; }

/* ---------- 19e. Sector teaser cards (homepage) ---------- */
.sector-card {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.2vw, 1.9rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.sector-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sector-card__title { font-family: var(--font-display); font-size: 1.3125rem; color: var(--ink); margin-bottom: .55rem; line-height: 1.2; }
.sector-card__text { font-size: .9063rem; color: var(--muted); line-height: 1.6; }
.sector-card__go {
  margin-top: auto; padding-top: 1.25rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8125rem; font-weight: 500; color: var(--accent);
}
.sector-card:hover .sector-card__go svg { transform: translateX(3px); }
.sector-card__go svg { transition: transform .3s var(--ease-out); }

/* ---------- 19f. Confidence scale ---------- */
.scale { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.scale__row {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 1.5rem;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  align-items: baseline;
}
.scale__grade {
  font-family: var(--font-mono);
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.scale__desc { font-size: .9375rem; color: var(--muted); line-height: 1.6; }

/* ---------- 20. Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 21. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ---------- 22. Responsive ---------- */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 960px) {
  .nav, .header__cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
  .hero__grid-layout { grid-template-columns: 1fr; }
  .hero__visual { max-height: 420px; order: -1; }
  .split { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .5rem; scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__btn { white-space: nowrap; width: auto; border-color: var(--line); }
  .tabs__btn svg { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .svc { grid-template-columns: 60px minmax(0,1fr); }
  .svc__body { grid-column: 2; }
  .process__item { grid-template-columns: 1fr; gap: .75rem; }
  .stepgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .svc-index__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sector__layout { grid-template-columns: 1fr; }
  .sector__aside { position: static; }
  .scale__row { grid-template-columns: 1fr; gap: .4rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc__body { grid-column: 1; }
  .svc__num { padding-top: 0; }
  .acc__panel-inner { padding-right: 0; }
  .btn-row .btn { width: 100%; }
  .hero__visual { max-height: 320px; }
  .stepgrid { grid-template-columns: 1fr; }
  .svc-index__grid { grid-template-columns: 1fr; }
  .svc-index__foot .btn { width: 100%; }
}

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