/* ============================================================
   IMPROVE — improveorg.com
   Design system + site styles
   ============================================================ */

/* ---- 1. Tokens ------------------------------------------- */
:root {
  /* Brand — IMPROVE dark blue, anchored on the client's #292561.
     Lighter steps bend toward blue (hue ~230°) so nothing reads violet. */
  --brand-900: #161341;
  --brand-800: #201c52;
  --brand-700: #292561;
  --brand-600: #333d8f;
  --brand-500: #3f51b5;
  --brand-400: #6f83d6;
  --brand-300: #a3b1e8;
  --brand-200: #c9d2f2;
  --brand-100: #e4e9f9;
  --brand-050: #f1f4fc;

  /* Accent — the teal "V" from the logo (#68c0b8) */
  --accent-600: #35998f;
  --accent-500: #68c0b8;
  --accent-100: #e0f3f1;

  /* Neutrals */
  --ink-900: #0a1a20;
  --ink-800: #12252d;
  --ink-700: #23404a;
  --ink-600: #3c5a65;
  --ink-500: #5d7a84;
  --ink-400: #8aa1a9;
  --ink-300: #bcccd1;
  --ink-200: #dde7ea;
  --ink-100: #eef4f6;
  --ink-050: #f7fafb;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--white);
  --bg-soft: var(--brand-050);
  --bg-deep: var(--brand-900);
  --text: var(--ink-800);
  --text-muted: var(--ink-500);
  --line: var(--ink-200);
  --primary: var(--brand-600);
  --primary-hover: var(--brand-700);

  --success: #12855f;
  --success-bg: #e4f6ee;
  --danger: #c02b2b;
  --danger-bg: #fdeaea;
  --warning: #9a6206;
  --warning-bg: #fdf3e2;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);

  /* Space & shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(10, 26, 32, .06);
  --shadow-sm: 0 2px 8px rgba(10, 26, 32, .06);
  --shadow: 0 10px 30px -12px rgba(10, 26, 32, .18);
  --shadow-lg: 0 28px 60px -24px rgba(10, 26, 32, .28);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* ---- 2. Reset -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink-900);
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 3.85rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand-200); color: var(--brand-900); }

/* ---- 3. Layout primitives -------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 780px; }
.container--wide { max-width: 1360px; }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section--deep {
  background: var(--bg-deep);
  color: var(--brand-100);
}
.section--deep h2, .section--deep h3 { color: var(--white); }

.section__head { max-width: 640px; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { font-size: 1.075rem; color: var(--text-muted); margin: 0; }
.section--deep .section__lead { color: var(--brand-200); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--deep .eyebrow { color: var(--brand-300); }
.section__head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
}

.stack > * + * { margin-top: 1rem; }

/* ---- 4. Buttons ------------------------------------------ */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .875rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  box-shadow: 0 4px 14px -6px rgba(51, 61, 143, .55);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); }

.btn--dark { --btn-bg: var(--ink-900); }
.btn--dark:hover { --btn-bg: var(--ink-800); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--brand-800); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-800);
  border-color: var(--ink-300);
}
.btn--ghost:hover { --btn-bg: var(--ink-100); border-color: var(--ink-400); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }

.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--primary);
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- 5. Header ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(10, 26, 32, .5);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

.nav__logo { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.nav__logo img { height: 38px; width: auto; }
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.03em;
  color: var(--brand-800);
}

.nav__menu {
  display: none;
  list-style: none;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.nav__link {
  position: relative;
  display: block;
  padding: .55rem .8rem;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover { color: var(--brand-700); background: var(--brand-050); }
.nav__link.is-active { color: var(--brand-700); font-weight: 600; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .18rem;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-500);
  transform: translateX(-50%);
}

.nav__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
@media (min-width: 1024px) { .nav__actions { margin-left: 0; } }
.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-800);
  transition: transform .3s var(--ease), opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav__menu { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 190;
  background: var(--white);
  padding: 1.5rem var(--gutter) 3rem;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, transform .28s var(--ease), visibility .28s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block;
  padding: .95rem .25rem;
  border-bottom: 1px solid var(--ink-100);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-800);
}
.mobile-nav a.is-active { color: var(--brand-600); }
.mobile-nav .btn { margin-top: 1.75rem; }
body.nav-open { overflow: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .75rem 1.25rem;
  background: var(--brand-700);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---- 6. Hero --------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 9vw, 7.5rem);
  background:
    radial-gradient(900px 480px at 8% -10%, var(--brand-100) 0%, transparent 60%),
    radial-gradient(760px 460px at 100% 0%, var(--accent-100) 0%, transparent 55%),
    linear-gradient(180deg, var(--brand-050) 0%, var(--white) 72%);
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.hero__blob--1 { width: 420px; height: 420px; background: var(--brand-300); top: -140px; right: -80px; }
.hero__blob--2 { width: 320px; height: 320px; background: var(--accent-500); bottom: -160px; left: -60px; opacity: .28; animation-delay: -7s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-24px, 26px) scale(1.07); }
}

.hero__inner { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .95rem .45rem .5rem;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand-800);
  margin-bottom: 1.5rem;
}
.hero__badge b {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--brand-600);
  color: var(--white);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero__title { margin-bottom: .5rem; }

.hero__words {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--brand-600);
  min-height: 1.3em;
  margin-bottom: 1.1rem;
}
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s var(--ease);
  position: absolute;
}
.hero__word.is-visible { opacity: 1; transform: translateY(0); position: relative; }
.hero__words-wrap { position: relative; display: inline-block; }

.hero__text {
  font-size: 1.1rem;
  color: var(--ink-600);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--brand-200);
}
.hero__proof-item { display: flex; flex-direction: column; }
.hero__proof-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-700);
  letter-spacing: -.03em;
}
.hero__proof-label { font-size: .82rem; color: var(--ink-500); margin-top: .35rem; }

/* Hero visual — photo with overlapping scorecard */
.hero__visual { position: relative; }

.hero__photo {
  position: relative;
  margin-left: clamp(0rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow-lg);
}
.hero__photo::after {
  /* soft brand wash keeps the photo inside the palette */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(41, 37, 97, .18), transparent 45%, rgba(22, 19, 65, .24));
  pointer-events: none;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__card {
  background: var(--white);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
}

.hero__card--overlap {
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin: -5.25rem auto 0 0;
  backdrop-filter: blur(4px);
}
@media (max-width: 979px) {
  .hero__card--overlap { margin: -3.5rem 0 0 auto; max-width: 92%; }
}

/* Second photo layered over the main one */
.hero__photo-layer {
  position: relative;
  z-index: 2;
  width: min(52%, 300px);
  aspect-ratio: 4 / 3;
  margin: -5rem auto 0 0;
  border: 6px solid var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: bob 7s ease-in-out infinite;
  animation-delay: -2s;
}
.hero__photo-layer img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 979px) {
  .hero__photo-layer { margin-top: -3.25rem; width: 48%; }
}

.hero__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--ink-100);
}
.hero__card-title { font-family: var(--font-display); font-weight: 700; color: var(--ink-900); }
.hero__card-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--success);
  background: var(--success-bg);
  padding: .3rem .65rem;
  border-radius: 999px;
}

.meter { margin-bottom: 1.1rem; }
.meter:last-child { margin-bottom: 0; }
.meter__row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-bottom: .45rem;
}
.meter__label { color: var(--ink-600); font-weight: 500; }
.meter__value { font-family: var(--font-display); font-weight: 700; color: var(--ink-900); }
.meter__track {
  height: 8px;
  border-radius: 999px;
  background: var(--ink-100);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  width: 0;
  transition: width 1.4s var(--ease);
}
.meter--accent .meter__fill { background: linear-gradient(90deg, var(--accent-600), var(--accent-500)); }

.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-800);
  animation: bob 6s ease-in-out infinite;
}
.hero__float--tl { top: -20px; left: clamp(-14px, 2vw, 16px); z-index: 3; }
/* Sits inside the main photo, above its wash overlay */
.hero__float--br { bottom: 16px; right: 16px; top: auto; animation-delay: -3s; z-index: 3; }
.hero__float i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-050);
  color: var(--brand-600);
}
@media (max-width: 620px) {
  .hero__float--tl { left: -6px; top: -16px; }
  .hero__float--br { right: 10px; bottom: 10px; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---- 7. Page hero (inner pages) -------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(700px 380px at 12% 0%, var(--brand-100) 0%, transparent 62%),
    linear-gradient(180deg, var(--brand-050), var(--white));
  border-bottom: 1px solid var(--brand-100);
  overflow: hidden;
}
.page-hero::after {
  /* faint dot texture, fading toward the content */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(46%, 560px);
  height: 100%;
  background-image: radial-gradient(var(--brand-300) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: .28;
  -webkit-mask-image: linear-gradient(115deg, transparent 8%, #000 65%);
  mask-image: linear-gradient(115deg, transparent 8%, #000 65%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__title { margin-bottom: .5rem; }
.page-hero__lead {
  font-size: 1.08rem;
  color: var(--ink-600);
  max-width: 62ch;
  margin: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  list-style: none;
  font-size: .85rem;
  color: var(--ink-500);
  margin-bottom: 1.1rem;
}
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--brand-600); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--ink-300); }
.crumbs [aria-current] { color: var(--brand-700); font-weight: 600; }

/* ---- 8. 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(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--brand-200);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: var(--brand-050);
  color: var(--brand-600);
  transition: background-color .35s ease, color .35s ease, transform .35s var(--ease);
}
.card:hover .card__icon { background: var(--brand-600); color: var(--white); transform: rotate(-6deg); }
.card__icon svg { width: 26px; height: 26px; }

.card__title { font-size: 1.22rem; margin-bottom: .55rem; }
.card__text { color: var(--text-muted); font-size: .96rem; margin-bottom: 1.25rem; }
.card__foot { margin-top: auto; }

.card__num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-050);
  letter-spacing: -.04em;
  transition: color .35s ease;
}
.card:hover .card__num { color: var(--brand-100); }

/* Principle cards on dark */
.card--glass {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  color: var(--brand-100);
}
.card--glass:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .25); }
.card--glass .card__title { color: var(--white); }
.card--glass .card__text { color: var(--brand-200); }
.card--glass .card__icon { background: rgba(255, 255, 255, .1); color: var(--brand-300); }
.card--glass:hover .card__icon { background: var(--brand-500); color: var(--brand-900); }

/* ---- 9. Stats -------------------------------------------- */
/* Each tile owns its border, so uneven counts never leave holes. */
.stats {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem) 1rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--brand-600);
  margin-bottom: .5rem;
}
.stat__label { font-size: .92rem; color: var(--text-muted); }

.section--deep .stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); }
.section--deep .stat__num { color: var(--brand-300); }
.section--deep .stat__label { color: var(--brand-200); }

/* ---- 10. Feature list / checks --------------------------- */
.checks { list-style: none; display: grid; gap: .8rem; }
.checks li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .8rem;
  align-items: start;
  font-size: .97rem;
  color: var(--ink-600);
}
.checks li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: .18rem;
  border-radius: 50%;
  background: var(--accent-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335998f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--deep .checks li { color: var(--brand-200); }
.section--deep .checks li::before {
  background-color: rgba(255, 255, 255, .1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368c0b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ---- 11. Impact / timeline ------------------------------- */
.timeline { list-style: none; display: grid; gap: 1.75rem; position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: .6rem;
  bottom: .6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-100));
  border-radius: 2px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: .45rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--brand-500);
  box-shadow: 0 0 0 5px var(--brand-050);
}
.timeline p { color: var(--ink-600); }

/* ---- 12. Service accordion ------------------------------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.35rem clamp(1.15rem, 2.5vw, 1.75rem);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease;
}
.accordion__btn:hover { background: var(--brand-050); }
.accordion__num {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-500);
  min-width: 2ch;
}
.accordion__title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink-900); flex: 1; }
.accordion__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-600);
  transition: transform .3s var(--ease), background-color .2s ease, color .2s ease;
}
.accordion__btn[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); background: var(--brand-600); color: var(--white); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__body { padding: 0 clamp(1.15rem, 2.5vw, 1.75rem) 1.6rem 3.6rem; }

/* ---- 13. Prose (CMS rich text) --------------------------- */
.prose { color: var(--ink-600); font-size: 1.03rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.9em; color: var(--ink-900); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: .5rem; }
.prose li::marker { color: var(--brand-500); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.prose blockquote {
  margin: 1.75em 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--brand-400);
  background: var(--brand-050);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-700);
  font-size: 1.05rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .75rem 1rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--brand-050); font-family: var(--font-display); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* ---- 14. Blog -------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-050));
  display: grid;
  place-items: center;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media-fallback { color: var(--brand-300); }
.post-card__media-fallback svg { width: 48px; height: 48px; }

.post-card__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: var(--ink-400);
  margin-bottom: .7rem;
}
.post-card__title { font-size: 1.18rem; margin-bottom: .55rem; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--brand-600); }
.post-card__excerpt { color: var(--text-muted); font-size: .94rem; margin-bottom: 1.2rem; }
.post-card__foot { margin-top: auto; }

.article-head { max-width: 760px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: .88rem;
  color: var(--ink-500);
  margin-top: 1.25rem;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); }

.article-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 15. Team -------------------------------------------- */
.member {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
  height: 100%;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }

.member__photo {
  width: 116px;
  height: 116px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-200), var(--brand-050));
  display: grid;
  place-items: center;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--brand-100), var(--shadow-sm);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__initials {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-700);
  letter-spacing: -.02em;
}
.member__name { font-size: 1.12rem; margin-bottom: .2rem; }
.member__role { font-size: .87rem; color: var(--brand-600); font-weight: 600; margin-bottom: .9rem; }
.member__bio { font-size: .92rem; color: var(--text-muted); }
.member__links { display: flex; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.member__links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-700);
  transition: background-color .2s ease, color .2s ease;
}
.member__links a:hover { background: var(--brand-600); color: var(--white); }

/* ---- 16. Projects ---------------------------------------- */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }

.project-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, .5);
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }

.project-card__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project-card__title { font-size: 1.18rem; margin-bottom: .5rem; }
.project-card__title a { color: inherit; }
.project-card__title a:hover { color: var(--brand-600); }
.project-card__text { color: var(--text-muted); font-size: .94rem; margin-bottom: 1.25rem; }
.project-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag--muted { background: var(--ink-100); color: var(--ink-600); }
.tag--accent { background: var(--accent-100); color: var(--accent-600); }

.facts {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
.fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
}
.fact__label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 700;
  margin-bottom: .35rem;
}
.fact__value { font-family: var(--font-display); font-weight: 700; color: var(--ink-900); }

/* ---- 17. Careers ----------------------------------------- */
.job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.6rem clamp(1.25rem, 2.5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.job:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.job__main { flex: 1 1 260px; }
.job__title { font-size: 1.2rem; margin-bottom: .35rem; }
.job__title a { color: inherit; }
.job__title a:hover { color: var(--brand-600); }
.job__meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.job__text { color: var(--text-muted); font-size: .94rem; margin-top: .7rem; }

/* ---- 18. Clients ----------------------------------------- */
.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.client {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 74px;
  padding: .9rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-600);
  /* Shown in colour — these logos are the credibility signal. */
  opacity: .92;
  transition: opacity .3s ease, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.client:hover { opacity: 1; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.client img {
  max-height: 46px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
  /* Logo files are JPEGs on white; blend them into the card. */
  mix-blend-mode: multiply;
}

/* ---- 18b. Editorial imagery ------------------------------ */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-050);
  box-shadow: var(--shadow);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.media:hover img { transform: scale(1.03); }

.media--wide  { aspect-ratio: 16 / 9; }
.media--photo { aspect-ratio: 4 / 3; }
.media--tall  { aspect-ratio: 3 / 4; }
.media--band  { aspect-ratio: 21 / 8; }

@media (max-width: 640px) {
  .media--band { aspect-ratio: 16 / 10; }
}

/* Soft brand wash so stock photography sits inside the palette */
.media--tinted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(41, 37, 97, .28), rgba(22, 19, 65, .12) 55%, transparent);
  pointer-events: none;
}

/* Small stat/label chip floated over an image */
.media__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(8px);
  color: var(--brand-800);
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Sticky column beside a long list (services accordion) */
@media (min-width: 900px) {
  .sticky-col { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---- 18c. Impact band (photo-backed counters) ------------ */
.impact-band {
  position: relative;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.impact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(22, 19, 65, .95) 0%, rgba(32, 28, 82, .88) 45%, rgba(51, 61, 143, .74) 100%);
}
.impact-band > .container { position: relative; z-index: 1; }

.impact-band__head {
  max-width: 560px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.impact-band__head h2 { color: var(--white); }
.impact-band__head p { color: var(--brand-200); margin: 0; }
.impact-band .eyebrow { color: var(--brand-300); }

.impact-band__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) {
  .impact-band__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .impact-band__grid { gap: .65rem; }
  .impact-stat { padding: 1.1rem 1.15rem; }
}
.impact-stat {
  padding: 1.5rem 1.65rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
}
.impact-stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--brand-300);
  margin-bottom: .45rem;
}
.impact-stat__label { font-size: .92rem; color: var(--brand-100); }

/* ---- 18d. Photo cards (services with imagery) ------------ */
.photo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }

.photo-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-050));
}
.photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.photo-card:hover .photo-card__media img { transform: scale(1.06); }
.photo-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 19, 65, .30));
  pointer-events: none;
}

.photo-card__icon {
  position: absolute;
  left: 1.15rem;
  bottom: -22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--white);
  color: var(--brand-600);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brand-100);
  transition: background-color .3s ease, color .3s ease, transform .35s var(--ease);
}
.photo-card:hover .photo-card__icon {
  background: var(--brand-600);
  color: var(--white);
  transform: rotate(-6deg);
}

.photo-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2.15rem 1.5rem 1.5rem;
}
.photo-card__title { font-size: 1.18rem; margin-bottom: .5rem; }
.photo-card__title a { color: inherit; }
.photo-card__title a:hover { color: var(--brand-600); }
.photo-card__text { color: var(--text-muted); font-size: .94rem; margin-bottom: 1.2rem; }
.photo-card__foot { margin-top: auto; }

/* ---- 19. CTA band ---------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 55%, var(--brand-500) 100%);
  color: var(--white);
  text-align: center;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  pointer-events: none;
}
.cta-band::before { width: 340px; height: 340px; top: -140px; right: -80px; }
.cta-band::after { width: 260px; height: 260px; bottom: -130px; left: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p { color: var(--brand-100); max-width: 56ch; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

/* ---- 20. Forms ------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .45rem; }
.field__label {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-800);
}
.field__label .req { color: var(--danger); }
.field__hint { font-size: .8rem; color: var(--ink-400); }

.input, .textarea, .select {
  width: 100%;
  padding: .82rem 1rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .96rem;
  color: var(--ink-900);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--brand-050);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d7a84' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.75rem;
}

.input[type="file"] { padding: .6rem; background: var(--ink-050); cursor: pointer; }

.checkbox { display: flex; align-items: start; gap: .65rem; font-size: .92rem; color: var(--ink-600); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--brand-600); flex-shrink: 0; }

/* Honeypot — hidden from humans, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---- 21. Alerts ------------------------------------------ */
.alert {
  display: flex;
  align-items: start;
  gap: .75rem;
  padding: .95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: .94rem;
  border: 1px solid transparent;
}
.alert svg { flex-shrink: 0; margin-top: .15rem; }
.alert--success { background: var(--success-bg); color: var(--success); border-color: rgba(18, 133, 95, .2); }
.alert--error   { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(192, 43, 43, .2); }
.alert--info    { background: var(--brand-050);  color: var(--brand-800); border-color: var(--brand-200); }
.alert--warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(154, 98, 6, .2); }

.flashes { display: grid; gap: .75rem; margin-bottom: 1.5rem; }

/* ---- 22. Contact panel ----------------------------------- */
.contact-panel {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--brand-800), var(--brand-600));
  color: var(--brand-100);
  height: 100%;
}
.contact-panel h3 { color: var(--white); }

.contact-list { list-style: none; display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.contact-list li { display: flex; gap: 1rem; align-items: start; }
.contact-list i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: var(--brand-200);
}
.contact-list b {
  display: block;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: .15rem;
}
.contact-list a { color: var(--white); font-weight: 500; }
.contact-list a:hover { color: var(--brand-200); }

.socials { display: flex; gap: .6rem; margin-top: 2rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  transition: background-color .2s ease, transform .25s var(--ease);
}
.socials a:hover { background: var(--white); color: var(--brand-700); transform: translateY(-3px); }

/* ---- 23. Footer ------------------------------------------ */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.8fr 1fr 1fr 1.4fr; } }

.footer__logo { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.15rem; }
.footer__logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer__about { font-size: .93rem; color: var(--ink-400); max-width: 42ch; }

.footer__title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.15rem;
}
.footer__links { list-style: none; display: grid; gap: .7rem; }
.footer__links a { color: var(--ink-400); font-size: .93rem; transition: color .2s ease, padding-left .2s ease; }
.footer__links a:hover { color: var(--brand-300); padding-left: 4px; }

.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font-size: .9rem;
}
.newsletter input::placeholder { color: var(--ink-500); }
.newsletter input:focus { outline: none; border-color: var(--brand-400); background: rgba(255, 255, 255, .1); }
.newsletter button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-500);
  color: var(--brand-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .2s ease, transform .25s var(--ease);
}
.newsletter button:hover { background: var(--brand-400); transform: translateX(2px); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: .86rem;
  color: var(--ink-500);
}
.footer__bottom a { color: var(--ink-400); }
.footer__bottom a:hover { color: var(--brand-300); }

/* ---- 24. Pagination -------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding-inline: .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-600);
  background: var(--white);
  transition: all .2s ease;
}
.pagination a:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-050); }
.pagination .is-current { background: var(--brand-600); border-color: var(--brand-600); color: var(--white); }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ---- 25. Empty state ------------------------------------- */
.empty {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border: 1px dashed var(--ink-300);
  border-radius: var(--radius-lg);
  background: var(--ink-050);
}
.empty svg { width: 52px; height: 52px; color: var(--ink-300); margin: 0 auto 1.25rem; }
.empty h3 { color: var(--ink-700); }
.empty p { color: var(--text-muted); max-width: 44ch; margin-inline: auto; }

/* ---- 26. Scroll reveal ----------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---- 27. Utilities --------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--text-muted); }
.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;
}
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(2rem, 4vw, 3rem); }

/* ---- 27b. Small-screen refinements ----------------------- */
@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .nav__logo img { height: 32px; }

  /* Accordion indent is too deep for a phone. */
  .accordion__body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .accordion__btn { padding-inline: 1.1rem; }

  /* Tighter client logo cards, two per row. */
  .clients { gap: .75rem; }
  .client {
    flex: 1 1 calc(50% - .75rem);
    min-height: 64px;
    padding: .7rem .9rem;
  }
  .client img { max-height: 40px; max-width: 100%; }

  /* Full-width buttons may carry long labels. */
  .btn--block { white-space: normal; }

  /* Floating hero chips shrink instead of crowding the photo. */
  .hero__float { font-size: .78rem; padding: .65rem .85rem; gap: .5rem; }
  .hero__float i { width: 28px; height: 28px; }

  .cta-band { border-radius: var(--radius-lg); }
  .cta-band .btn--lg { width: 100%; }

  .timeline { padding-left: 1.9rem; }
  .timeline li::before { left: -1.9rem; width: 16px; height: 16px; }

  .prose { font-size: .98rem; }
}

@media (max-width: 400px) {
  .hero__actions .btn { width: 100%; }
  .article-meta { gap: .6rem; }
}

/* ---- 28. Motion preferences ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__word { position: relative; opacity: 1; transform: none; }
}

/* ---- 29. Print ------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav__toggle, .mobile-nav { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
}
