/* =============================================================================
   RedCreek Solutions — design system
   Style direction: "Editorial Federal"
   Palette locked to the RedCreek brand sheet.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* brand */
  --red: #EE3124;
  --red-deep: #C7261B;
  --red-soft: #FBE3E1;
  --ink: #343538;
  --gray: #878787;
  --gray-light: #A8A8A8;
  --logo-gray: #B3B3B3;

  /* surfaces */
  --white: #FFFFFF;
  --surface: #F6F6F7;
  --surface-2: #EFEFF1;
  --hairline: #E6E6E9;
  --ink-deep: #232427;

  /* text */
  --text: #343538;
  --text-2: #878787;
  --text-muted: #A8A8A8;
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, .72);
  --on-dark-3: rgba(255, 255, 255, .48);

  /* type */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* metrics */
  --container: 1260px;
  --container-wide: 1500px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 132px);
  --radius: 4px;
  --radius-lg: 8px;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(52, 53, 56, .06), 0 2px 8px rgba(52, 53, 56, .04);
  --shadow-md: 0 8px 24px rgba(52, 53, 56, .09), 0 2px 6px rgba(52, 53, 56, .05);
  --shadow-lg: 0 24px 64px rgba(52, 53, 56, .16), 0 6px 16px rgba(52, 53, 56, .08);

  --header-h: 84px;
  --hero-dur: 4.2s;      /* how long each hero frame holds */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--red); color: #fff; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius);
  font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Layout ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: var(--on-dark-2); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-4 > .card { padding: clamp(22px, 1.9vw, 30px); }
.grid-4 > .card h3.h3 { font-size: 1.12rem; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 4. Type utilities ------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.eyebrow--center { justify-content: center; }
.section--ink .eyebrow { color: #fff; }
.section--ink .eyebrow::before { background: var(--red); }

.display   { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.h1        { font-size: clamp(2.3rem, 4.6vw, 4rem);   line-height: 1.05; letter-spacing: -.03em;  font-weight: 800; }
.h2        { font-size: clamp(1.9rem, 3.4vw, 3rem);   line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
.h3        { font-size: clamp(1.3rem, 1.9vw, 1.65rem);line-height: 1.2;  letter-spacing: -.015em; font-weight: 700; }
.h4        { font-size: 1.05rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }

.lede { font-size: clamp(1.05rem, 1.35vw, 1.24rem); line-height: 1.6; color: var(--text-2); max-width: 64ch; font-weight: 300; }
.section--ink .lede { color: var(--on-dark-2); }
.measure { max-width: 68ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

.text-red { color: var(--red); }
.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.rule-red { width: 88px; height: 3px; background: var(--red); border: 0; margin: 26px 0 0; border-radius: 2px; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
  background: var(--red-soft); color: var(--red-deep);
}
.tag--ghost { background: transparent; border: 1px solid var(--hairline); color: var(--text-2); }
.tag--ph { background: #FFF4D6; color: #7A5B00; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 16px 30px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(238, 49, 36, .22); }
.btn-primary:hover { background: var(--red-deep); box-shadow: 0 10px 26px rgba(238, 49, 36, .3); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-sm { padding: 11px 20px; font-size: .72rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red);
}
.link-arrow::after {
  content: ""; width: 18px; height: 1.5px; background: currentColor;
  transition: width .3s var(--ease);
}
.link-arrow:hover::after { width: 30px; }

/* ---------- 6. Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 20px rgba(52, 53, 56, .08); }

.nav {
  max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius);
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .01em; color: var(--ink);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links > li > a:hover { color: var(--red); background: var(--surface); }
.nav-links > li > a[aria-current="page"] { color: var(--red); }
.nav-links > li > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; background: var(--red);
}
.caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .55; }

.submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.submenu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-links > li:hover .submenu, .nav-links > li:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block; padding: 11px 14px; border-radius: var(--radius);
  font-size: .9rem; color: var(--text-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.submenu a:hover { background: var(--surface); color: var(--ink); }

.nav-cta { margin-left: 10px; }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: #fff; cursor: pointer; padding: 0; place-items: center;
}
.burger span { display: block; width: 18px; height: 1.8px; background: var(--ink); margin: 3.5px auto; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.3px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--hairline);
  padding: 8px var(--gutter) 28px;
  transform: translateY(-104%); transition: transform .4s var(--ease);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.drawer.is-open { transform: translateY(0); }
.drawer a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink);
}
.drawer a.sub { padding-left: 18px; font-size: .88rem; font-weight: 400; color: var(--text-2); font-family: var(--font-body); }
.drawer .btn { margin-top: 20px; width: 100%; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: grid; }
}
@media (min-width: 1081px) { .drawer { display: none; } }

/* ---------- 7. Footer ---------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding-top: clamp(56px, 7vw, 96px); }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px);
  padding-bottom: 56px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 40px; margin-bottom: 20px; }
.foot-brand p { font-size: .93rem; max-width: 40ch; color: var(--on-dark-2); font-weight: 300; }
.foot-col h5 {
  font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; margin: 0 0 18px;
}
.foot-col a, .foot-col p { display: block; font-size: .93rem; color: var(--on-dark-2); margin: 0 0 11px; font-weight: 300; }
.foot-col a { transition: color .2s var(--ease); }
.foot-col a:hover { color: #fff; }
.foot-certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.foot-certs span {
  font-family: var(--font-display); font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  padding: 5px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 3px; color: var(--on-dark-2);
}
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0 30px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .78rem; color: var(--on-dark-3);
}
.foot-bottom a:hover { color: #fff; }

/* ---------- 8. Hero (home) ---------------------------------------------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink-deep); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .85s var(--ease), transform 6s linear;
  transform: scale(1.05);
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,21,23,.93) 0%, rgba(20,21,23,.8) 30%, rgba(20,21,23,.42) 58%, rgba(20,21,23,.06) 100%),
    linear-gradient(0deg, rgba(20,21,23,.82) 0%, rgba(20,21,23,.18) 34%, rgba(20,21,23,0) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(48px, 8vh, 90px); padding-top: clamp(90px, 16vh, 170px); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: #fff;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 100px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(6px);
  margin-bottom: 26px;
}
.hero-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 em { font-style: normal; color: #fff; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .09em; background: var(--red); }
.hero-sub { color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 300; max-width: 56ch; margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* slide caption + controls */
.hero-rail {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: clamp(40px, 6vh, 72px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding-top: 20px;
}
.hero-caption { min-height: 52px; }
.hero-caption-eyebrow {
  font-family: var(--font-display); font-size: .66rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); display: block; margin-bottom: 6px;
}
.hero-caption-title { display: block; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.hero-caption-line { display: block; color: rgba(255,255,255,.6); font-size: .88rem; font-weight: 300; }
.hero-dots { display: flex; gap: 10px; align-items: center; }
.hero-dot {
  width: 44px; height: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.26); border-radius: 2px; position: relative; overflow: hidden;
}
.hero-dot span { position: absolute; inset: 0; width: 0; background: var(--red); border-radius: 2px; }
.hero-dot.is-active span { width: 100%; transition: width var(--hero-dur) linear; }
@media (max-width: 780px) {
  .hero h1 em { white-space: normal; }
  .hero h1 em::after { display: none; }
  .hero h1 em { border-bottom: .07em solid var(--red); }
}
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero-rail { grid-template-columns: 1fr; }
  .hero-dots { justify-content: flex-start; }
}

/* ---------- 9. Recognition ribbon --------------------------------------- */
.ribbon { background: var(--ink); border-top: 3px solid var(--red); overflow: hidden; padding: 0; }
.ribbon-inner { display: flex; align-items: stretch; }
.ribbon-label {
  flex: none; display: grid; place-items: center; padding: 0 clamp(18px, 3vw, 40px);
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-size: .66rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; text-align: center; max-width: 190px; line-height: 1.4;
}
.ribbon-track-wrap { flex: 1; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ribbon-track { display: flex; gap: 0; width: max-content; animation: ribbon-scroll 46s linear infinite; }
.ribbon-track-wrap:hover .ribbon-track { animation-play-state: paused; }
@keyframes ribbon-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }
.ribbon-item {
  display: flex; align-items: center; gap: 14px; padding: 22px clamp(20px, 2.6vw, 38px);
  border-right: 1px solid rgba(255,255,255,.1); white-space: nowrap;
}
.ribbon-badge {
  flex: none; display: grid; place-items: center; min-width: 62px; height: 34px; padding: 0 10px;
  border: 1.5px solid var(--red); border-radius: 3px;
  font-family: var(--font-display); font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: #fff;
}
.ribbon-text b { display: block; font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: #fff; letter-spacing: -.005em; }
.ribbon-text span { display: block; font-size: .74rem; color: var(--on-dark-3); font-weight: 300; }
@media (max-width: 760px) { .ribbon-label { display: none; } }

/* ---------- 10. Stats ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); }
.stat { padding: clamp(34px, 4.4vw, 60px) clamp(18px, 2.4vw, 40px); border-right: 1px solid var(--hairline); position: relative; }
.stat:last-child { border-right: 0; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 3px; background: var(--red); transition: width .8s var(--ease); }
.stat.is-in::before { width: 56px; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 800; letter-spacing: -.045em; color: var(--ink); line-height: 1; }
.stat-label { font-size: .84rem; color: var(--text-2); margin-top: 12px; letter-spacing: .01em; }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}

/* ---------- 11. Clients strip ------------------------------------------- */
.clients { padding-block: clamp(40px, 5vw, 64px); }
.clients h6 {
  font-family: var(--font-display); font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-muted); text-align: center; margin: 0 0 28px;
}
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 3.4vw, 52px); }
.clients-row span {
  font-family: var(--font-display); font-size: clamp(.76rem, 1vw, .9rem); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--logo-gray);
  transition: color .3s var(--ease);
}
.clients-row span:hover { color: var(--ink); }

/* ---------- 12. Cards ---------------------------------------------------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: clamp(26px, 2.6vw, 38px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden; height: 100%;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--red); transition: width .4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #DCDCE0; }
.card:hover::before { width: 100%; }
.card-icon {
  width: 50px; height: 50px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--red-soft); margin-bottom: 22px;
}
.card-icon svg { width: 23px; height: 23px; stroke: var(--red); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: .95rem; font-weight: 300; }
.card-list { list-style: none; margin: 20px 0 0; padding: 0; }
.card-list li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--text-2); margin-bottom: 9px; font-weight: 300; }
.card-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1.5px; background: var(--red); }

.card--num { padding-top: clamp(30px, 3vw, 42px); }
.card-num {
  font-family: var(--font-display); font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  color: var(--red); display: block; margin-bottom: 16px;
}

/* ---------- 13. Feature split -------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 96px; height: 6px; background: var(--red);
}

/* ---------- 14. Service accordion / expertise --------------------------- */
.svc { border-top: 1px solid var(--hairline); }
.svc-item { border-bottom: 1px solid var(--hairline); padding-block: clamp(32px, 4vw, 56px); scroll-margin-top: calc(var(--header-h) + 30px); }
.svc-grid { display: grid; grid-template-columns: 100px 1fr 1.05fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; gap: 18px; } }
.svc-index { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--red); letter-spacing: .1em; padding-top: .35em; }
.svc-head h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.025em; }
.svc-head p { color: var(--text-2); font-weight: 300; }
.svc-naics { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.svc-caps { columns: 2; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 620px) { .svc-caps { columns: 1; } }
.svc-caps li {
  break-inside: avoid; position: relative; padding-left: 22px; margin-bottom: 12px;
  font-size: .92rem; color: var(--text-2); font-weight: 300;
}
.svc-caps li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 8px; height: 8px;
  border: 1.5px solid var(--red); border-radius: 2px;
}

/* ---------- 15. Leadership grid ------------------------------------------
   Photo on top, card underneath. Pointing at a tile scales it up over its
   neighbours and reveals the full profile; the other photos drop to grey. */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(20px, 2.8vw, 40px);
  row-gap: clamp(28px, 3.4vw, 48px);
}
.member { position: relative; outline: none; }
.member:hover, .member:focus-within, .member.is-open { z-index: 30; }

.member-inner {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  transform-origin: 50% 0;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
  will-change: transform;
}
.member:hover .member-inner,
.member:focus-within .member-inner,
.member.is-open .member-inner {
  transform: scale(1.16);
  box-shadow: var(--shadow-lg);
  border-color: #DCDCE0;
}
/* edge columns grow inward so nothing runs off the page */
.team .member:nth-child(3n + 1) .member-inner { transform-origin: 0 0; }
.team .member:nth-child(3n)     .member-inner { transform-origin: 100% 0; }

.member-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); }
.member-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: none;
  transition: filter .45s var(--ease);
}
/* while one tile is active the rest fall back to grey */
.team:hover .member .member-photo img,
.team:focus-within .member .member-photo img { filter: grayscale(1) contrast(1.03); }
.team .member:hover .member-photo img,
.team .member:focus-within .member-photo img,
.team .member.is-open .member-photo img { filter: none; }

.member-card { padding: 18px 20px 20px; }
.member-title {
  display: block; font-family: var(--font-display); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.member-name {
  display: block; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700;
  letter-spacing: -.015em; color: var(--ink); margin-bottom: 7px;
}
.is-unnamed .member-name { color: var(--text-muted); font-style: italic; font-weight: 600; }
.member-known { display: block; font-size: .82rem; line-height: 1.5; color: var(--text-2); font-weight: 300; }
.ph-dot-inline {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #E0A800; margin-left: 7px; vertical-align: middle;
}

/* the biography — hidden until the tile is active */
.member-story { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.member:hover .member-story,
.member:focus-within .member-story,
.member.is-open .member-story { display: block; }
.member-story p { font-size: .74rem; line-height: 1.6; color: var(--text-2); font-weight: 300; margin-bottom: .8em; }
.member-story p:last-child { margin-bottom: 0; }

@media (max-width: 1080px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .team .member .member-inner              { transform-origin: 50% 0; }
  .team .member:nth-child(2n + 1) .member-inner { transform-origin: 0 0; }
  .team .member:nth-child(2n)     .member-inner { transform-origin: 100% 0; }
}

@media (max-width: 720px) {
  .team { grid-template-columns: 1fr; row-gap: 22px; }
  .member-photo { aspect-ratio: 4 / 3; }
  /* no scaling on a phone — tapping just opens the profile in place */
  .member:hover .member-inner,
  .member:focus-within .member-inner,
  .member.is-open .member-inner { transform: none; box-shadow: var(--shadow-md); }
  .member:hover .member-story, .member:focus-within .member-story { display: none; }
  .member.is-open .member-story { display: block; }
  .team:hover .member .member-photo img,
  .team:focus-within .member .member-photo img { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .member-inner, .member-photo img { transition: none !important; }
}

/* ---------- 16. Timeline carousel ---------------------------------------- */
.timeline { position: relative; overflow: hidden; }
.timeline-viewport { overflow: hidden; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 92%, transparent); }
.timeline-viewport.is-dragging { cursor: grabbing; }
.timeline-track { display: flex; gap: 0; width: max-content; will-change: transform; padding-left: clamp(20px, 5vw, 64px); }
.tl-item { flex: none; width: clamp(280px, 27vw, 380px); padding-right: clamp(24px, 3vw, 44px); position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: rgba(255,255,255,.16);
}
.tl-dot { position: relative; z-index: 1; width: 13px; height: 13px; border-radius: 50%; background: var(--red); margin: 40px 0 26px; box-shadow: 0 0 0 5px rgba(238,49,36,.18); }
.tl-year { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1; margin-bottom: 12px; }
.tl-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: #fff; letter-spacing: -.015em; margin-bottom: 10px; }
.tl-body { font-size: .88rem; color: var(--on-dark-2); font-weight: 300; padding-right: 12px; }
.timeline-controls { display: flex; align-items: center; gap: 10px; margin-top: 40px; }
.timeline-controls button {
  width: 46px; height: 46px; border-radius: 50%; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.28); cursor: pointer; display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.timeline-controls button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.timeline-hint { font-size: .76rem; color: var(--on-dark-3); margin-left: 8px; letter-spacing: .02em; }

/* ---------- 17. Case studies --------------------------------------------- */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
@media (max-width: 1000px) { .cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px)  { .cs-grid { grid-template-columns: 1fr; } }
.cs-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; height: 100%; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cs-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cs-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.cs-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cs-card:hover .cs-media img { transform: scale(1.05); }
.cs-agency {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-family: var(--font-display); font-size: .64rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 7px 11px; border-radius: 3px;
}
.cs-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.cs-body h3 { font-size: 1.22rem; margin-bottom: 12px; }
.cs-body p { font-size: .92rem; color: var(--text-2); font-weight: 300; }
.cs-metrics { display: flex; gap: 22px; margin: 22px 0; padding-top: 20px; border-top: 1px solid var(--hairline); }
.cs-metric b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.cs-metric span { font-size: .72rem; color: var(--text-muted); letter-spacing: .04em; }
.cs-body .link-arrow { margin-top: auto; }

/* article hero + body (case study / news detail) */
.article-hero { background: var(--ink); color: #fff; padding-block: clamp(60px, 8vw, 110px) clamp(40px, 5vw, 70px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: .8rem; color: var(--on-dark-3); margin-top: 26px; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-figure { margin: 0 0 clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); overflow: hidden; }
.article-body { max-width: 760px; margin-inline: auto; font-size: 1.05rem; line-height: 1.75; color: #4A4B4E; font-weight: 300; }
.article-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: 2em; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.8em; }
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body li { margin-bottom: .55em; }
.article-body blockquote {
  margin: 2em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--red);
  font-size: 1.18rem; color: var(--ink); font-weight: 300; font-style: italic;
}
.article-body img { border-radius: var(--radius-lg); margin: 2em 0; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 18. News list ------------------------------------------------ */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.news-filter button {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--hairline); background: #fff;
  font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  color: var(--text-2); cursor: pointer; transition: all .25s var(--ease);
}
.news-filter button:hover { border-color: var(--ink); color: var(--ink); }
.news-filter button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.news-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--hairline); }
@media (max-width: 900px) { .news-feature { grid-template-columns: 1fr; } }
.news-feature-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; }
.news-feature-media img { width: 100%; height: 100%; object-fit: cover; }

.news-list { display: grid; gap: 0; }
.news-row {
  display: grid; grid-template-columns: 150px 1fr 180px; gap: clamp(18px, 3vw, 44px);
  padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--hairline); align-items: start;
  transition: background .3s var(--ease);
}
.news-row:hover { background: var(--surface); }
.news-row:hover h3 { color: var(--red); }
.news-date { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; padding-top: 4px; }
.news-row h3 { font-size: 1.2rem; margin-bottom: 10px; transition: color .25s var(--ease); }
.news-row p { font-size: .93rem; color: var(--text-2); font-weight: 300; }
.news-cat { justify-self: start; }
@media (max-width: 820px) {
  .news-row { grid-template-columns: 1fr; gap: 12px; }
  .news-date { padding-top: 0; }
}

.empty-state { text-align: center; padding: clamp(48px, 7vw, 90px) 20px; border: 1px dashed var(--hairline); border-radius: var(--radius-lg); background: var(--surface); }
.empty-state h3 { color: var(--text-2); }
.empty-state p { color: var(--text-muted); font-size: .95rem; }

/* ---------- 19. Careers -------------------------------------------------- */
.job { border-bottom: 1px solid var(--hairline); }
.job-head {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  padding: clamp(22px, 2.6vw, 32px) 0;
}
.job-head:hover h3 { color: var(--red); }
.job-head h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); margin: 0 0 10px; transition: color .25s var(--ease); }
.job-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .84rem; color: var(--text-2); }
.job-facts span { display: inline-flex; align-items: center; gap: 7px; }
.job-facts svg { width: 14px; height: 14px; stroke: var(--gray-light); fill: none; stroke-width: 1.6; }
.job-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--red); flex: none; transition: all .3s var(--ease); }
.job.is-open .job-toggle { background: var(--red); color: #fff; border-color: var(--red); transform: rotate(45deg); }
.job-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.job.is-open .job-panel { grid-template-rows: 1fr; }
.job-panel > div { overflow: hidden; }
.job-panel-inner { padding-bottom: clamp(26px, 3vw, 38px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
@media (max-width: 800px) { .job-panel-inner { grid-template-columns: 1fr; } }
.job-panel h4 { font-family: var(--font-display); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.job-panel ul { list-style: none; margin: 0; padding: 0; }
.job-panel li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: .92rem; color: var(--text-2); font-weight: 300; }
.job-panel li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 1.5px; background: var(--red); }
.job-apply { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-top: 8px; }
.job-apply small { color: var(--text-muted); font-size: .78rem; }

/* ---------- 20. Contact -------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 4.5vw, 72px); align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 9px;
}
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #BFBFC4; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(238,49,36,.12);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23878787' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 42px; }
.field-hint { font-size: .78rem; color: var(--text-muted); margin-top: 8px; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: 16px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-size: .9rem; display: none; }
.form-status.is-ok { display: block; background: #E9F7EF; color: #1B6E3F; border: 1px solid #C4E7D4; }
.form-status.is-err { display: block; background: var(--red-soft); color: var(--red-deep); border: 1px solid #F5C7C3; }

.info-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--hairline); border-left: 3px solid var(--red);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.info-card:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.info-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--ink); display: grid; place-items: center; }
.info-icon svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-card h4 { margin: 2px 0 6px; font-size: 1rem; }
.info-card p, .info-card a { display: block; font-size: .92rem; color: var(--text-2); margin: 0; font-weight: 300; }
.info-card a:hover { color: var(--red); }

/* ---------- 21. CTA band ------------------------------------------------- */
.cta-band { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -8%; top: -40%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(238,49,36,.22), transparent 62%);
}
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--on-dark-2); max-width: 52ch; font-weight: 300; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 22. Page hero (interior) ------------------------------------- */
.page-hero { position: relative; background: var(--ink); color: #fff; padding-block: clamp(88px, 12vw, 150px) clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 78% 12%, #000, transparent 68%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lede { color: var(--on-dark-2); margin-top: 22px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: .76rem; color: var(--on-dark-3); margin-bottom: 26px; letter-spacing: .04em; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 23. Reveal animations ---------------------------------------- */
/* animated only when JS is available — without it everything is visible */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: .09s; } .d2 { transition-delay: .18s; } .d3 { transition-delay: .27s; } .d4 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: opacity .01s; transform: none; }
}

/* stats band spacing */
.stats-wrap { padding-block: clamp(8px, 1.5vw, 18px); }

/* ---------- 24. Placeholder flagging ------------------------------------- */
.ph-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: #FFF9E8; border: 1px solid #F2E2B4; border-left: 3px solid #E0A800;
  border-radius: var(--radius); padding: 14px 18px; font-size: .84rem; color: #6B5200;
  margin-bottom: 28px;
}
.ph-note b { font-family: var(--font-display); letter-spacing: .02em; }
.ph-dot { position: absolute; top: 12px; left: 12px; z-index: 2; }
