/* ============================================================
   CADENCE — Accounting & Advisory
   Design system: "Kept in time"
   Serif editorial display (Fraunces) + grotesque UI (Archivo)
   + mono numerals (IBM Plex Mono). Navy/teal on warm paper.
   ============================================================ */

:root {
  /* palette */
  --ink: #0d1a2e;          /* deepest navy, near-black */
  --navy: #16263f;
  --navy-2: #1d3252;
  --teal: #2a93a5;
  --teal-bright: #4cc8d6;
  --teal-dim: #1e6b78;
  --amber: #e0a458;
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --paper-3: #e7e1d3;
  --text-dark: #14213a;
  --text-dark-muted: #4d5b74;
  --text-light: #eaf1f4;
  --text-light-muted: rgba(217, 231, 236, 0.62);
  --line-dark: rgba(20, 33, 58, 0.16);
  --line-light: rgba(234, 241, 244, 0.16);

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* rhythm */
  --space-section: clamp(5rem, 12vh, 9rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1360px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--teal); color: #fff; }

/* film grain over everything — kills the flat template look */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- typography ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.75rem, 7.2vw, 6.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.15;
}
.display-xl em, .display-lg em, .statement em {
  font-style: italic;
  font-weight: 340;
  color: var(--teal);
}
.on-dark .display-xl em, .on-dark .display-lg em { color: var(--teal-bright); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.on-dark .eyebrow { color: var(--teal-bright); }
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65;
  color: var(--text-dark-muted);
  max-width: 42ch;
}
.on-dark .lede { color: var(--text-light-muted); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); position: relative; }
.on-dark { background: var(--ink); color: var(--text-light); }
.on-paper2 { background: var(--paper-2); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section-head .display-lg { max-width: 18ch; }

/* balanced line breaks: stops single-word last lines in headings and statements */
h1, h2, h3, .statement, .insight-title, .cta-card h3, .method-step h3 { text-wrap: balance; }

/* ---------- rhythm bars motif ---------- */
.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.bars span {
  width: 3px;
  background: var(--teal);
  border-radius: 1px;
  animation: barPulse 1.4s var(--ease-out) infinite;
  transform-origin: bottom;
}
.on-dark .bars span { background: var(--teal-bright); }
.bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.bars span:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.bars span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.bars span:nth-child(4) { height: 85%; animation-delay: 0.45s; }
.bars span:nth-child(5) { height: 50%; animation-delay: 0.6s; }
@keyframes barPulse {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}

/* tick ruler divider */
.ruler {
  height: 14px;
  background-image: repeating-linear-gradient(
    to right,
    currentColor 0 1px,
    transparent 1px 12px
  );
  opacity: 0.22;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 1.05rem 1.6rem;
  border: 1px solid currentColor;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: #fff; border-color: var(--teal); }
.btn .arr { transition: transform 0.35s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn--solid { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { border-color: var(--ink); }
.on-dark .btn--solid::before { background: var(--teal-bright); }
.on-dark .btn--solid:hover { color: var(--ink); border-color: var(--teal-bright); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  transition: gap 0.3s var(--ease-out);
}
.link-arrow:hover { gap: 1rem; }
.on-dark .link-arrow { color: var(--teal-bright); }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
/* background lives on a pseudo so backdrop-filter never turns the header
   into a containing block (which would trap the fixed mobile nav inside it) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 26, 46, 0);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}
.site-header.scrolled::before {
  background: rgba(13, 26, 46, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(234, 241, 244, 0.08);
}
/* light-page variant */
.site-header.header-light.scrolled::before {
  background: rgba(246, 243, 236, 0.92);
  box-shadow: 0 1px 0 var(--line-dark);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
/* The logo is the supplied artwork (assets/img/logo/): horizontal lockup by default, symbol only on phones. */
.brand-lockup { height: 42px; width: auto; display: block; }
.brand-symbol { height: 34px; width: auto; display: none; }
.site-footer .brand-lockup { height: 46px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}
.nav a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--text-light);
  opacity: 0.8;
  padding-block: 0.4rem;
  position: relative;
  transition: opacity 0.25s;
}
.header-light .nav a:not(.btn) { color: var(--text-dark); }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--teal-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 0.7rem 1.2rem; font-size: 0.7rem; white-space: nowrap; }
.site-header:not(.header-light) .nav .btn { color: var(--text-light); }

/* region switcher */
.region-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.header-light .region-switch { border-color: var(--line-dark); }
.region-switch a {
  padding: 0.42rem 0.75rem;
  color: var(--text-light-muted);
  transition: background 0.25s, color 0.25s;
}
.header-light .region-switch a { color: var(--text-dark-muted); }
.region-switch a.on {
  background: var(--teal);
  color: #fff;
}
.region-switch a:not(.on):hover { color: var(--teal-bright); }
.header-light .region-switch a:not(.on):hover { color: var(--teal); }

.nav-toggle { display: none; }

/* mid-width laptops: the nav gained a longer label ("Who we work with"), so tighten before the hamburger kicks in */
@media (max-width: 1240px) and (min-width: 1041px) {
  .nav { gap: 1rem; }
  .nav a:not(.btn) { font-size: 0.68rem; letter-spacing: 0.1em; }
  .nav .btn { padding: 0.6rem 0.9rem; font-size: 0.64rem; }
  .brand-lockup { height: 36px; }
  .region-switch a { padding: 0.42rem 0.55rem; }
}

@media (max-width: 1040px) {
  .nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    visibility: hidden; /* stops overflow peeking on short viewports */
    transition: transform 0.5s var(--ease-out), visibility 0s 0.5s;
    z-index: 90;
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); visibility: visible; transition: transform 0.5s var(--ease-out); }
  .nav a:not(.btn) { font-size: 1rem; color: var(--text-light) !important; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 95;
    padding: 0.5rem;
  }
  .nav-toggle span {
    width: 26px; height: 2px;
    background: currentColor;
    transition: transform 0.3s, opacity 0.3s;
  }
  .site-header:not(.header-light) .nav-toggle { color: var(--text-light); }
  .header-light .nav-toggle { color: var(--text-dark); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle.open { color: var(--text-light) !important; }
}

/* phones: tighten the header so brand, market switch and hamburger fit side by side */
@media (max-width: 600px) {
  .site-header .wrap { gap: 0.75rem; padding-block: 0.9rem; }
  .brand-lockup { display: none; }
  .brand-symbol { display: block; }
  .region-switch { font-size: 0.58rem; margin-left: auto; }
  .region-switch a { padding: 0.38rem 0.5rem; }
  .nav-toggle { padding: 0.4rem; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  background: var(--ink);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero::before { /* vignette so type always reads */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 30% 110%, rgba(13,26,46,0.9) 0%, rgba(13,26,46,0.25) 55%, transparent 100%),
    linear-gradient(to bottom, rgba(13,26,46,0.55), transparent 30%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  padding-top: 9rem;
}
.hero h1 { max-width: 13ch; margin-block: 1.6rem 2rem; }
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-aside {
  max-width: 34ch;
  font-size: 0.95rem;
  color: var(--text-light-muted);
  border-left: 1px solid var(--line-light);
  padding-left: 1.5rem;
}
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 8vh, 6rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  writing-mode: vertical-rl;
}
@media (max-width: 1100px) { .scroll-cue { display: none; } }

/* ---------- deadline ticker ---------- */
.ticker {
  background: var(--navy);
  color: var(--text-light);
  border-block: 1px solid var(--line-light);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--teal);
  color: #fff;
  white-space: nowrap;
}
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-move {
  display: flex;
  gap: 3.5rem;
  padding-inline: 2rem;
  white-space: nowrap;
  animation: tickerScroll 42s linear infinite;
}
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-light-muted);
}
.ticker-item b { color: var(--teal-bright); font-weight: 500; }
.ticker-item::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--teal);
  transform: rotate(45deg);
}

/* ---------- statement ---------- */
.statement {
  font-family: var(--font-display);
  font-weight: 390;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.28;
  max-width: 26ch;
  letter-spacing: -0.01em;
}
.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.statement-side {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-top: 0.8rem;
  color: var(--text-dark-muted);
  font-size: 1rem;
  max-width: 40ch;
}
.statement-copy { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 52ch; color: var(--text-dark-muted); display: flex; flex-direction: column; gap: 1.2rem; }
.statement-points {
  list-style: none;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line-dark);
  max-width: 44rem;
}
.statement-points li {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 0.6rem 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: baseline;
}
.statement-points .pt-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--teal);
}
.statement-points b {
  display: block;
  font-family: var(--font-display);
  font-weight: 460;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.statement-points p { color: var(--text-dark-muted); font-size: 0.93rem; max-width: 48ch; }
@media (max-width: 860px) { .statement-grid { grid-template-columns: minmax(0, 1fr); } .statement-grid > * { min-width: 0; } }

/* ---------- services index ---------- */
.svc-list { border-top: 1px solid var(--line-dark); }
.svc-row {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1.1fr) minmax(0, 1.4fr) 3.5rem;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.8rem, 4vh, 2.8rem);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  transition: background 0.35s ease;
}
.svc-row:hover { background: rgba(42, 147, 165, 0.06); }
.svc-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.1em;
}
.svc-title {
  font-family: var(--font-display);
  font-weight: 430;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  transition: color 0.3s;
}
.svc-row:hover .svc-title { color: var(--teal); }
.svc-desc {
  color: var(--text-dark-muted);
  font-size: 0.98rem;
  max-width: 52ch;
}
.svc-tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--line-dark);
  color: var(--text-dark-muted);
  border-radius: 999px;
  white-space: nowrap;
}
.on-dark .tag { border-color: var(--line-light); color: var(--text-light-muted); }
.svc-arr {
  font-size: 1.4rem;
  color: var(--teal);
  justify-self: end;
  transition: transform 0.35s var(--ease-out);
}
.svc-row:hover .svc-arr { transform: translate(6px, -6px); }
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 3rem 1fr; }
  .svc-desc { grid-column: 2; }
  .svc-arr { display: none; }
}

/* ---------- numbers band ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-left: 1px solid var(--line-light);
}
.num-cell {
  border-right: 1px solid var(--line-light);
  padding: clamp(1.6rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.num-val {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--teal-bright);
  font-variant-numeric: tabular-nums;
}
.num-val sup { font-size: 0.45em; color: var(--text-light-muted); }
.num-label {
  font-size: 0.88rem;
  color: var(--text-light-muted);
  max-width: 22ch;
}
.footnote {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
  opacity: 0.7;
  margin-top: 1.6rem;
}

/* ---------- sectors strip ---------- */
.sector-strip {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.2rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.sector-strip::-webkit-scrollbar { display: none; }
.sector-card {
  flex: 0 0 clamp(260px, 26vw, 340px);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  padding: 1.8rem 1.6rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.sector-card::after { /* waveform watermark */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 60' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q 25 8 50 32 T 100 30 T 150 44 T 200 22 T 250 38 T 300 26 T 340 36' fill='none' stroke='%232a93a5' stroke-width='1.5'/%3E%3C/svg%3E") center/cover no-repeat;
  opacity: 0.16;
  transition: opacity 0.4s;
}
.sector-card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 18px 40px -18px rgba(20, 33, 58, 0.28); }
.sector-card:hover::after { opacity: 0.5; }
.sector-idx { font-family: var(--font-mono); font-size: 0.72rem; color: var(--teal); letter-spacing: 0.14em; }
.sector-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 450;
  line-height: 1.15;
  margin-top: 0.6rem;
}
.sector-desc { font-size: 0.9rem; color: var(--text-dark-muted); margin-top: 0.7rem; }

/* ---------- method / parallax ---------- */
.method { overflow: hidden; }
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 7vh, 5rem);
}
.method-step {
  border-top: 1px solid var(--line-light);
  padding-top: 1.6rem;
  position: relative;
}
.method-step .step-no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--teal-bright);
}
.method-step h3 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-block: 0.9rem 0.8rem;
}
.method-step p { color: var(--text-light-muted); font-size: 0.95rem; max-width: 34ch; }
/* light-background variant of the method steps */
.section:not(.on-dark) .method-step { border-top-color: var(--line-dark); }
.section:not(.on-dark) .method-step .step-no { color: var(--teal); }
.section:not(.on-dark) .method-step p { color: var(--text-dark-muted); }
a.method-step { color: inherit; display: block; }
a.method-step:hover h3 { color: var(--teal); }
.method-step h3 { transition: color 0.3s; }
@media (max-width: 800px) { .method-steps { grid-template-columns: 1fr; } }

.wave-divider {
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  opacity: 0.35;
}

/* ---------- calculator ---------- */
.calc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  border: 1px solid var(--line-dark);
  background: var(--paper);
}
.calc-in {
  padding: clamp(1.8rem, 3.5vw, 3rem);
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.calc-in label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dark-muted);
  display: block;
  margin-bottom: 0.7rem;
}
.calc-in input[type="number"] {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-dark);
  background: var(--paper-2);
  color: var(--text-dark);
}
.calc-in input[type="number"]:focus { outline: 2px solid var(--teal); border-color: transparent; }
.calc-out {
  padding: clamp(1.8rem, 3.5vw, 3rem);
  background: var(--ink);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  justify-content: center;
}
.calc-scenario {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-light);
}
.calc-scenario .sc-name { font-size: 0.9rem; color: var(--text-light-muted); max-width: 22ch; }
.calc-scenario .sc-val {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--text-light);
}
.calc-scenario.win .sc-val { color: var(--teal-bright); }
.calc-diff {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.calc-note {
  font-size: 0.72rem;
  color: var(--text-light-muted);
  opacity: 0.8;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .calc-panel { grid-template-columns: 1fr; }
  .calc-in { border-right: none; border-bottom: 1px solid var(--line-dark); }
}

/* ---------- insights ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.insight-card {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  padding: 1.7rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.35s;
}
.insight-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: 0 18px 40px -20px rgba(20, 33, 58, 0.3);
}
.insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.insight-title {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: 1.32rem;
  line-height: 1.25;
  flex: 1;
}
.insight-card:hover .insight-title { color: var(--teal); }
.insight-excerpt { font-size: 0.9rem; color: var(--text-dark-muted); }
.byline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
}
.byline-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal-bright);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.byline-name { font-size: 0.85rem; font-weight: 600; }
.byline-name .cred { color: var(--teal); font-weight: 500; font-family: var(--font-mono); font-size: 0.72rem; margin-left: 0.3rem; }
.byline-meta { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-dark-muted); letter-spacing: 0.05em; }

/* filter chips (insights page) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.5rem;
  margin-bottom: 2.2rem;
}
.filter-group-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dark-muted);
  align-self: center;
  margin-right: 0.4rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--text-dark-muted);
  transition: all 0.25s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; width: 100%; }

/* ---------- credentials strip ---------- */
.cred-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3.5rem;
  align-items: center;
  justify-content: space-between;
}
.cred-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cred-item b {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: 1.1rem;
}
.cred-item span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dark-muted); }

/* ---------- big CTA ---------- */
.cta-band { text-align: left; position: relative; overflow: hidden; }
.cta-band .display-lg { max-width: 20ch; margin-block: 1.4rem 2.2rem; }
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 760px;
}
.cta-card {
  border: 1px solid var(--line-light);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.35s, background 0.35s;
}
.cta-card:hover { border-color: var(--teal-bright); background: rgba(76, 200, 214, 0.05); }
.cta-card h3 { font-family: var(--font-display); font-weight: 440; font-size: 1.4rem; }
.cta-card p { font-size: 0.9rem; color: var(--text-light-muted); flex: 1; }
@media (max-width: 700px) { .cta-split { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-light);
  padding-top: var(--space-section);
  border-top: 1px solid var(--line-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--teal-bright);
  margin-bottom: 1.3rem;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-grid a { font-size: 0.9rem; color: var(--text-light-muted); transition: color 0.25s; }
.footer-grid a:hover { color: var(--teal-bright); }
.footer-brand p { color: var(--text-light-muted); font-size: 0.9rem; max-width: 32ch; margin-top: 1.2rem; }
.footer-legal {
  border-top: 1px solid var(--line-light);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  padding-top: clamp(9rem, 20vh, 13rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
  position: relative;
  overflow: hidden;
}

/* full-bleed image banner variant */
.page-hero--banner {
  min-height: min(clamp(380px, 62svh, 640px), 100svh);
  display: flex;
  /* title is vertically centred over the photo (below the fixed header),
     so it always overlays the banner on any viewport height */
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: clamp(2rem, 4vh, 3rem);
}
.page-hero--banner .banner-bg {
  position: absolute;
  inset: 0;
}
.page-hero--banner .banner-bg img { height: 100%; }
.page-hero--banner .banner-bg::before { /* stronger vignette so type always reads */
  background: linear-gradient(to top, rgba(13, 26, 46, 0.94) 0%, rgba(13, 26, 46, 0.55) 45%, rgba(13, 26, 46, 0.3) 100%),
              linear-gradient(100deg, rgba(13, 26, 46, 0.55) 0%, transparent 60%);
}
.page-hero--banner .page-hero-wave {
  opacity: 0.4;
  z-index: 1;
  top: auto;
  bottom: 8%;
}
.page-hero--banner .wrap { width: 100%; }
.page-hero--banner h1 { margin-top: 1.2rem; }
.page-hero--banner .lede { color: var(--text-light-muted); max-width: 52ch; }

/* homepage hero photo layer (sits under the waveform canvas).
   NB: selector must out-rank .duo's `position: relative`, which is
   defined later in this file — hence the .hero prefix. */
.hero .hero-photo {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}
.hero .hero-photo img { height: 100%; }
.hero .hero-photo::before {
  background: linear-gradient(to top, rgba(13, 26, 46, 0.9) 0%, rgba(13, 26, 46, 0.35) 55%, rgba(13, 26, 46, 0.55) 100%);
}
.page-hero h1 { max-width: 15ch; margin-top: 1.4rem; }
.page-hero .lede { margin-top: 1.6rem; }
.page-hero-wave {
  position: absolute;
  right: -5%; top: 20%;
  width: 55%;
  opacity: 0.14;
  pointer-events: none;
}

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}
.team-card {
  border: 1px solid var(--line-dark);
  background: var(--paper);
  padding: 1.6rem 1.5rem;
  transition: transform 0.4s var(--ease-out), border-color 0.35s, box-shadow 0.4s;
}
.team-card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 18px 40px -20px rgba(20,33,58,0.28); }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal-dim));
  color: var(--teal-bright);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.team-card h3 { font-family: var(--font-display); font-weight: 460; font-size: 1.25rem; }
.team-card .creds { font-family: var(--font-mono); font-size: 0.7rem; color: var(--teal); letter-spacing: 0.08em; margin-top: 0.2rem; }
.team-card .role { font-size: 0.85rem; color: var(--text-dark-muted); margin-top: 0.5rem; }
.team-card .bio { font-size: 0.85rem; color: var(--text-dark-muted); margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line-dark); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dark-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  color: var(--text-dark);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
.field textarea { resize: vertical; min-height: 130px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- detail blocks (services/sectors pages) ---------- */
.detail-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.8rem, 6vh, 4.5rem);
  border-top: 1px solid var(--line-dark);
}
.detail-block:last-child { border-bottom: 1px solid var(--line-dark); }
.detail-side { position: sticky; top: 7rem; align-self: start; }
.detail-side .svc-num { display: block; margin-bottom: 0.8rem; }
.detail-side h2 { font-family: var(--font-display); font-weight: 430; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }
.detail-body p { color: var(--text-dark-muted); max-width: 58ch; margin-bottom: 1.4rem; }
.sub-svc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.sub-svc li {
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.sub-svc li::before {
  content: "";
  width: 8px; height: 8px;
  border: 1.5px solid var(--teal);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.sub-svc li:hover { border-color: var(--teal); transform: translateX(4px); }
@media (max-width: 800px) {
  .detail-block { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}

/* ============================================================
   IMAGERY — one consistent duotone treatment across the site
   (grayscale + navy→teal colorize) so placeholder photos read
   as an art-directed system, not random stock.
   ============================================================ */
.duo {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
  transition: transform 0.8s var(--ease-out);
}
.duo::after { /* colorize pass */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(150deg, #1d3252 0%, #2a93a5 100%);
  mix-blend-mode: color;
  pointer-events: none;
}
.duo::before { /* depth shading */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(13, 26, 46, 0.35), transparent 45%);
  pointer-events: none;
}
a:hover .duo img, .duo:hover img { transform: scale(1.06); }

/* mono caption chip pinned to a photo */
.duo .duo-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  background: rgba(13, 26, 46, 0.82);
  padding: 0.45rem 0.8rem;
}

/* overlapping two-photo collage (statement sections) */
.img-stack {
  position: relative;
  padding-bottom: 16%;
}
.img-stack .duo:first-child {
  width: 76%;
  aspect-ratio: 4 / 5;
}
.img-stack .duo:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  aspect-ratio: 1 / 1;
  border: 6px solid var(--paper);
  box-shadow: 0 24px 50px -22px rgba(20, 33, 58, 0.45);
}
.on-paper2 .img-stack .duo:last-child { border-color: var(--paper-2); }
.on-dark .img-stack .duo:last-child { border-color: var(--ink); }

/* photo bleeding to a card's top edges */
.sector-photo { aspect-ratio: 16 / 10; margin: -1.8rem -1.6rem 1.2rem; }
.insight-photo { aspect-ratio: 16 / 9; margin: -1.7rem -1.6rem 0.3rem; order: -1; }
.team-photo { aspect-ratio: 4 / 4.4; margin: -1.6rem -1.5rem 1.2rem; }
.team-photo img { filter: grayscale(1) contrast(1.08); } /* B&W headshots — PKFOD pattern */
.team-photo::after { opacity: 0.35; }

/* byline avatars as photos (B&W) */
.byline-avatar { overflow: hidden; }
.byline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.08);
}

/* hover-reveal photo on service index rows */
.svc-photo {
  position: absolute;
  right: 5.5rem;
  top: 50%;
  width: 220px;
  aspect-ratio: 4 / 3;
  transform: translateY(-50%) rotate(-3deg) scale(0.92);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 26px 55px -20px rgba(20, 33, 58, 0.5);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.svc-row:hover .svc-photo {
  opacity: 1;
  transform: translateY(-50%) rotate(-3deg) scale(1);
}
@media (max-width: 1100px) { .svc-photo { display: none; } }

/* auto-scrolling photo marquee band */
.photo-marquee {
  overflow: hidden;
  padding-block: 1rem;
}
.marquee-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  animation: tickerScroll 70s linear infinite;
}
.photo-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .duo {
  flex: 0 0 clamp(230px, 24vw, 330px);
  aspect-ratio: 4 / 3;
}

/* method step imagery */
.method-step .duo { aspect-ratio: 16 / 10; margin-bottom: 1.4rem; }

/* full-band background photo (CTA etc.) */
.band-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
}
.band-bg::before { background: linear-gradient(to top, rgba(13, 26, 46, 0.8), rgba(13, 26, 46, 0.3)); }
.cta-band .wrap, .band-fg { position: relative; z-index: 2; }

/* interior page-hero photo cluster */
.page-hero-img {
  position: absolute;
  right: var(--gutter);
  top: clamp(8rem, 18vh, 11rem);
  width: min(32vw, 440px);
  z-index: 0;
}
.page-hero-img .duo:first-child { aspect-ratio: 4 / 3; }
.page-hero-img .duo:last-child {
  position: absolute;
  left: -22%;
  bottom: -18%;
  width: 46%;
  aspect-ratio: 1 / 1;
  border: 5px solid var(--paper);
}
.page-hero .wrap { position: relative; z-index: 1; }
@media (max-width: 1000px) { .page-hero-img { display: none; } }

/* sticky-side photo on detail blocks */
.detail-side .duo {
  aspect-ratio: 4 / 3;
  margin-top: 1.4rem;
  max-width: 340px;
}

/* ============================================================
   MY CADENCE — deadline tracker
   ============================================================ */
.mc-panel {
  border: 1px solid var(--line-dark);
  background: var(--paper);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.mc-q { margin-bottom: 2.2rem; }
.mc-q:last-child { margin-bottom: 0; }
.mc-q-label {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.mc-q-hint { font-size: 0.85rem; color: var(--text-dark-muted); margin-bottom: 0.9rem; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mc-selects { display: flex; flex-wrap: wrap; gap: 1rem; }
.mc-selects .field { min-width: 150px; }
.mc-err {
  color: #b3432b;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 0.8rem;
}

/* countdown */
.mc-count { display: flex; align-items: baseline; gap: 0.8rem; margin-block: 1rem 0.8rem; }
.mc-count-num {
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.mc-count-unit {
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dark-muted);
}
.mc-next-meta { font-size: 0.85rem; color: var(--text-dark-muted); margin-top: 0.7rem; }
.mc-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* timeline band */
.mc-timeline {
  position: relative;
  height: 90px;
  margin-block: 2.5rem 0.6rem;
  border-bottom: 1px solid var(--line-dark);
  background-image: repeating-linear-gradient(to right, var(--line-dark) 0 1px, transparent 1px 8.333%);
}
.mc-timeline .tl-wave {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.25;
}
.tl-mark {
  position: absolute;
  bottom: -5px;
  width: 9px; height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--teal);
  cursor: help;
  transition: transform 0.2s var(--ease-out);
}
.tl-mark:hover { transform: translateX(-50%) rotate(45deg) scale(1.6); z-index: 2; }
.tl-vat { background: var(--amber); }
.tl-paye { background: var(--navy-2); }
.tl-sa { background: var(--teal-dim); }
.tl-ch { background: var(--text-dark-muted); }
.mc-timeline-months { position: relative; height: 1.2rem; margin-bottom: 2rem; }
.tl-month {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}

/* deadline list */
.mc-month {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-dark);
}
.mc-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line-dark);
}
.mc-date { font-size: 0.85rem; color: var(--text-dark); }
.mc-row-body b { font-weight: 600; font-size: 0.95rem; display: block; }
.mc-detail { font-size: 0.8rem; color: var(--text-dark-muted); }
.tag[class*="tl-tag-"] { border-color: transparent; color: #fff; }
.tl-tag-ct { background: var(--teal); }
.tl-tag-vat { background: var(--amber); color: var(--ink); }
.tl-tag-paye { background: var(--navy-2); }
.tl-tag-sa { background: var(--teal-dim); }
.tl-tag-ch { background: var(--text-dark-muted); }
@media (max-width: 620px) {
  .mc-row { grid-template-columns: 3.6rem 1fr; }
  .mc-row .tag { display: none; }
}

/* homepage personalization chip */
.mc-home-chip b { color: var(--teal-bright); font-weight: 500; }

/* ---------- reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

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

/* ============================================================
   LONG-FORM CONTENT: articles, market & service pages, FAQ, tables
   ============================================================ */
.prose { max-width: 68ch; color: var(--text-dark); font-size: 1.05rem; line-height: 1.7; }
.article-grid .prose { max-width: none; min-width: 0; }
.article-grid .prose > :not(.table-wrap):not(figure):not(hr) { max-width: 68ch; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.15; letter-spacing: -0.01em; margin-top: 2.4em; }
.prose h2 em { font-style: italic; color: var(--teal); }
.prose h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.12rem; margin-top: 2em; }
.prose h2 + p, .prose h3 + p { margin-top: 0.8em; }
.prose p.lead { font-size: 1.22rem; line-height: 1.55; color: var(--text-dark); }
.prose p, .prose li { color: var(--text-dark-muted); }
.prose strong { color: var(--text-dark); font-weight: 600; }
.prose a { color: var(--teal-dim); text-decoration: underline; text-underline-offset: 0.18em; }
.prose a:hover { color: var(--teal); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote { border-left: 3px solid var(--teal); padding: 0.4rem 0 0.4rem 1.4rem; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; color: var(--text-dark); }
.prose hr { border: 0; border-top: 1px solid var(--line-dark); margin: 2.5rem 0; }
.prose .callout { background: var(--paper-2); border-left: 3px solid var(--teal); padding: 1.2rem 1.4rem; border-radius: 4px; }
.prose .callout p { margin: 0; color: var(--text-dark); }
.prose .callout p + p { margin-top: 0.7em; }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dark-muted); margin-top: 0.6rem; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.article-side { position: sticky; top: 6.5rem; }
.article-side .side-block + .side-block { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.article-side h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dark-muted); margin-bottom: 0.9rem; }
.article-side ul { list-style: none; padding: 0; margin: 0; }
.article-side li + li { margin-top: 0.55rem; }
.article-side a { color: var(--text-dark); font-size: 0.92rem; text-decoration: none; }
.article-side a:hover { color: var(--teal); }
.toc a::before { content: "/ "; color: var(--teal); font-family: var(--font-mono); font-size: 0.8em; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; }
.author-box .byline-avatar { width: 52px; height: 52px; flex: none; }
.author-box p { font-size: 0.88rem; color: var(--text-dark-muted); line-height: 1.5; margin-top: 0.3rem; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } .article-side { position: static; } }

/* FAQ: native details/summary so the answers are in the HTML for crawlers */
.faq { max-width: 60rem; }
.faq details { border-top: 1px solid var(--line-dark); }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.on-dark .faq details { border-color: var(--line-light); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1.3rem 0; font-family: var(--font-display); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.3; color: var(--text-dark); }
.on-dark .faq summary { color: var(--text-light); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--teal); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal); }
.faq .faq-a { padding: 0 0 1.5rem; max-width: 62ch; color: var(--text-dark-muted); line-height: 1.65; }
.on-dark .faq .faq-a { color: var(--text-light-muted); }
.faq .faq-a p + p { margin-top: 0.8em; }
.faq .faq-a a { color: var(--teal-dim); text-decoration: underline; }
.on-dark .faq .faq-a a { color: var(--teal-bright); }

/* Data tables: deadlines, comparisons, pricing */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1.5rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.data-table th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-muted); font-weight: 500; }
.data-table td { color: var(--text-dark-muted); }
.data-table td:first-child, .data-table td b { color: var(--text-dark); font-weight: 500; }
.data-table .mono { white-space: normal; }
.data-table tr:hover td { background: rgba(42, 147, 165, 0.05); }
.data-table .tick { color: var(--teal); font-weight: 600; }
.data-table .cross { color: var(--text-dark-muted); }
.dl-month { font-family: var(--font-display); font-size: 1.6rem; margin: 2.4rem 0 0.4rem; }
.dl-month:first-of-type { margin-top: 0; }

/* descriptive sub-heading under the brand-voice H1 on hero banners */
.page-hero .h1-sub { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-light); margin-top: 1rem; max-width: 40ch; letter-spacing: 0.005em; }
.page-hero:not(.on-dark) .h1-sub { color: var(--text-dark); }
.hero .h1-sub { font-family: var(--font-body); font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--text-light); margin-top: 1rem; max-width: 44ch; }

/* key facts strip on market / service pages */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }
.facts div { border-top: 1px solid var(--line-dark); padding-top: 0.9rem; }
.facts b { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 500; margin-bottom: 0.4rem; }
.facts span { font-size: 0.95rem; color: var(--text-dark); line-height: 1.45; }
.on-dark .facts div { border-color: var(--line-light); }
.on-dark .facts span { color: var(--text-light); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
