/* =========================================================
   ZONED MARKETING — Design System
   Dark, bold, modern digital-agency site. Faithful to Figma comp.
   ---------------------------------------------------------
   Palette : red #F20D0E · near-black #0B0A0A · white · grey #F4F4F5 · text #6B6B70
   Type    : Inter (Google Fonts). Big bold headlines, RED .hl emphasis words.
   Signature: dark sections with soft RED radial-glow behind imagery/headlines,
              alternating with clean white. Pill buttons. Red eyebrow + index no.
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------- */
:root {
  /* brand palette */
  --red: #F20D0E;
  --red-600: #D40B0C;
  --red-700: #A80909;
  --red-soft: #FDECEC;
  --red-glow: rgba(242, 13, 14, .55);

  /* ink + surfaces */
  --black: #0B0A0A;
  --black-900: #121011;
  --black-800: #1A1718;
  --white: #FFFFFF;
  --grey-050: #FAFAFB;
  --grey-100: #F4F4F5;
  --grey-200: #E7E7EA;
  --grey-300: #D6D6DA;

  /* text */
  --ink: #0B0A0A;          /* near-black headings on light */
  --ink-700: #2A2A2E;
  --text: #6B6B70;          /* mid-grey body */
  --text-light: #9A9AA1;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, .66);
  --on-dark-faint: rgba(255, 255, 255, .42);

  /* borders */
  --line: #E7E7EA;
  --line-strong: #D6D6DA;
  --line-dark: rgba(255, 255, 255, .12);
  --line-dark-strong: rgba(255, 255, 255, .22);

  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(11, 10, 10, .05), 0 4px 16px rgba(11, 10, 10, .05);
  --shadow: 0 12px 36px rgba(11, 10, 10, .10);
  --shadow-lg: 0 28px 70px rgba(11, 10, 10, .18);
  --shadow-red: 0 14px 34px rgba(242, 13, 14, .30);

  /* layout */
  --maxw: 1200px;
  --maxw-wide: 1320px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 132px);

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .18s var(--ease);
  --t: .28s var(--ease);
}

/* ---------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.025em;
}
p { margin: 0; }

/* RED emphasis word inside headlines: <span class="hl">word</span> */
.hl { color: var(--red); }

/* ---------------------------------------------------------
   3. TYPE SCALE
   --------------------------------------------------------- */
.display,
h1.display { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
h5 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text);
  font-weight: 400;
}
.text-muted { color: var(--text); }
.text-center { text-align: center; }

/* ---------------------------------------------------------
   4. LAYOUT PRIMITIVES
   --------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--maxw-wide); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section--grey { background: var(--grey-100); }
.section--soft { background: var(--grey-050); }

/* dark section with red radial-glow signature */
.section--dark {
  background: var(--black);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-muted); }
.section--dark .lead { color: var(--on-dark-muted); }

/* the soft red radial-glow ellipse. Place inside a .section--dark or .media-glow. */
.glow {
  position: absolute;
  inset: auto;
  width: clamp(420px, 60vw, 900px);
  height: clamp(420px, 60vw, 900px);
  border-radius: 50%;
  background: radial-gradient(circle at center,
              var(--red-glow) 0%,
              rgba(242, 13, 14, .22) 32%,
              rgba(242, 13, 14, 0) 68%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
  opacity: .9;
  will-change: transform;
}
.glow--center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.glow--top    { top: -22%; left: 50%; transform: translateX(-50%); }
.glow--right  { top: 12%; right: -18%; }
.glow--left   { top: 24%; left: -20%; }
/* keep section content above the glow */
.section--dark > .container { position: relative; z-index: 1; }

/* grids */
.grid { display: grid; gap: clamp(18px, 2vw, 26px); }
.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--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* split (text + visual, like comp) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.split--narrow-left { grid-template-columns: .9fr 1.1fr; }
.split--narrow-right { grid-template-columns: 1.1fr .9fr; }

/* ---------------------------------------------------------
   5. EYEBROW LABEL (red uppercase + index number)
   "WHAT WE DO   01"
   --------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
}
.eyebrow .num {
  /* numeric step indicators (01, 02, …) hidden site-wide per request */
  display: none;
}
.section--dark .eyebrow .num { color: var(--on-dark-faint); }

/* eyebrow that sits at row-ends like the comp (label left, number far right) */
.eyebrow--row {
  display: flex; width: 100%; justify-content: space-between; gap: 16px;
}
.eyebrow--row::before { display: none; }

/* section heading block */
.sec-head { max-width: 760px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .lead { margin-top: 20px; }

/* ---------------------------------------------------------
   6. BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}
/* arrow chip used inside buttons */
.btn__arrow {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: .82rem;
  transition: transform var(--t-fast);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary .btn__arrow { background: rgba(255, 255, 255, .22); }
.btn--primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: var(--shadow-red); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline .btn__arrow { background: var(--grey-100); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-2px); }

/* dark-section CTA = black pill with red arrow */
.btn--dark { background: var(--black); color: #fff; }
.btn--dark .btn__arrow { background: var(--red); color: #fff; }
.btn--dark:hover { background: var(--black-800); transform: translateY(-2px); box-shadow: var(--shadow); }

/* light pill on dark backgrounds */
.btn--light { background: #fff; color: var(--ink); }
.btn--light .btn__arrow { background: var(--red); color: #fff; }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* outline variant for dark sections */
.section--dark .btn--outline,
.btn--outline-light { background: transparent; color: #fff; border-color: var(--line-dark-strong); }
.section--dark .btn--outline .btn__arrow,
.btn--outline-light .btn__arrow { background: rgba(255, 255, 255, .12); }
.section--dark .btn--outline:hover,
.btn--outline-light:hover { border-color: #fff; }

.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--lg { padding: 18px 32px; font-size: 1.05rem; }

/* plain text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--red);
}
.link-arrow .btn__arrow { background: var(--red-soft); color: var(--red); width: 20px; height: 20px; }
.link-arrow:hover .btn__arrow { transform: translateX(3px); }

/* ---------------------------------------------------------
   7. MEDIA GLOW PANEL (image placeholder treatment)
   <div class="media-glow"></div> — dark panel carrying the red-glow look.
   --------------------------------------------------------- */
.media-glow {
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(242, 13, 14, .42) 0%, rgba(242, 13, 14, 0) 55%),
    radial-gradient(110% 100% at 18% 88%, rgba(242, 13, 14, .20) 0%, rgba(242, 13, 14, 0) 60%),
    linear-gradient(150deg, #181314 0%, var(--black) 70%);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.media-glow::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 70% 30%, rgba(255, 255, 255, .05), transparent 70%);
  pointer-events: none;
}
.media-glow--tall { min-height: clamp(360px, 44vw, 560px); }
.media-glow--wide { min-height: clamp(220px, 30vw, 380px); }
.media-glow--sm { min-height: 200px; border-radius: var(--r); }
/* optional caption pinned in a media-glow */
.media-glow__tag {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .10); backdrop-filter: blur(6px);
  border: 1px solid var(--line-dark-strong);
  color: #fff; font-size: .8rem; font-weight: 600;
}

/* floating info badge over media (like hero comp) */
.media-badge {
  position: absolute; z-index: 3;
  background: #fff; color: var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  max-width: 260px;
}
.media-badge b { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); }
.media-badge span { font-size: .82rem; color: var(--text); }

/* ---------------------------------------------------------
   8. CARDS
   --------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.section--dark .card { background: var(--black-900); border-color: var(--line-dark); }
.section--dark .card:hover { border-color: var(--line-dark-strong); box-shadow: none; }
/* service / case / article cards inside dark sections: dark surface + light text (mirrors .card) */
.section--dark .service-card,
.section--dark .case-card,
.section--dark .article-card { background: var(--black-900); border-color: var(--line-dark); }
.section--dark .service-card:hover,
.section--dark .case-card:hover,
.section--dark .article-card:hover { border-color: var(--line-dark-strong); box-shadow: none; }
.section--dark .service-card p,
.section--dark .service-card .tags,
.section--dark .service-card__num,
.section--dark .case-card__stat span,
.section--dark .article-card p,
.section--dark .article-card__body { color: var(--on-dark-muted); }
.section--dark .case-card__stat { color: #fff; }
.section--dark .case-card__meta { color: var(--red); }

/* service card — number, title, copy, tags, link; red top-bar on hover */
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 30px;
  overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card__num { font-size: 1rem; font-weight: 700; color: var(--text-light); font-variant-numeric: tabular-nums; }
.service-card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--red-soft); color: var(--red);
}
.service-card h3 { margin-top: 12px; }
.service-card p { margin-top: 12px; color: var(--text); flex: 1; }
.service-card .tags { margin-top: 16px; font-size: .85rem; color: var(--text-light); }
.service-card .link-arrow { margin-top: 22px; }

/* case-study card — dark media with glow + meta + headline */
.case-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-card .media-glow { border-radius: 0; min-height: 220px; box-shadow: none; }
.case-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.case-card__meta { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.case-card h3 { font-size: 1.4rem; }
.case-card__stat { margin-top: 6px; font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.case-card__stat span { font-size: .9rem; font-weight: 600; color: var(--text); display: block; letter-spacing: 0; }

/* testimonial card */
.testimonial {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.testimonial__stars { color: var(--red); letter-spacing: 3px; font-size: .95rem; }
.testimonial blockquote { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--ink-700); font-weight: 500; }
.testimonial blockquote .hl { color: var(--red); }
.testimonial__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grey-200); flex: none; }
.testimonial__by b { font-size: .95rem; color: var(--ink); display: block; }
.testimonial__by span { font-size: .82rem; color: var(--text); }

/* industry card */
.industry-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; color: #fff;
  background: linear-gradient(180deg, rgba(11, 10, 10, 0) 30%, rgba(11, 10, 10, .85) 100%), var(--black);
  transition: transform var(--t), box-shadow var(--t);
}
.industry-card .media-glow { position: absolute; inset: 0; border-radius: 0; z-index: -1; box-shadow: none; }
.industry-card h3 { color: #fff; position: relative; z-index: 1; }
.industry-card p { color: var(--on-dark-muted); position: relative; z-index: 1; margin-top: 8px; font-size: .95rem; }
.industry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.industry-card .link-arrow { color: #fff; margin-top: 16px; position: relative; z-index: 1; }
.industry-card .link-arrow .btn__arrow { background: var(--red); color: #fff; }

/* article / news card */
.article-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-card .media-glow { border-radius: 0; min-height: 200px; box-shadow: none; }
.article-card__body { padding: 24px 26px 28px; }
.article-card h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
.article-card__meta { margin-top: 14px; display: flex; gap: 14px; font-size: .8rem; color: var(--text-light); }
.article-card__meta .dot { color: var(--red); }

/* simple feature / point with check */
.feature { display: flex; gap: 16px; }
.feature__check {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  font-size: .85rem; margin-top: 2px;
}
.feature h4 { margin-bottom: 4px; }
.feature p { color: var(--text); font-size: .98rem; }
.section--dark .feature p { color: var(--on-dark-muted); }

/* ---------------------------------------------------------
   9. STATS
   --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat__num {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 800;
  line-height: 1; letter-spacing: -.03em; color: var(--ink);
}
.stat__num .hl, .stat__num.is-red { color: var(--red); }
.section--dark .stat__num { color: #fff; }
.stat__label { margin-top: 10px; font-size: .95rem; color: var(--text); line-height: 1.45; }
.section--dark .stat__label { color: var(--on-dark-muted); }

/* ---------------------------------------------------------
   10. LOGO BAR (founder pedigree / partner logos)
   --------------------------------------------------------- */
.logo-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: clamp(28px, 5vw, 64px);
}
.logo-bar__item {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em;
  color: var(--text-light);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: .85; transition: color var(--t-fast), opacity var(--t-fast);
}
.logo-bar__item:hover { color: var(--ink); opacity: 1; }
.section--dark .logo-bar__item { color: var(--on-dark-muted); }
.section--dark .logo-bar__item:hover { color: #fff; }
.logo-bar--bordered {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: clamp(24px, 3vw, 38px);
}
.section--dark .logo-bar--bordered { border-color: var(--line-dark); }

/* ---------------------------------------------------------
   11. HEADER / NAV  (injected by components.js)
   --------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
/* transparent over dark heroes by default */
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 78px;
}
.site-header .brand { display: inline-flex; align-items: center; }
.site-header .brand__img { height: 58px; width: auto; display: block; }

/* primary nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; font-size: .96rem; font-weight: 500;
  color: rgba(255, 255, 255, .88); border-radius: var(--r-pill);
  transition: color var(--t-fast), background var(--t-fast);
}
.main-nav > li > a:hover,
.main-nav > li.is-active > a { color: #fff; }
.main-nav .caret { width: 9px; height: 9px; opacity: .7; transition: transform var(--t-fast); }
.main-nav > li:hover .caret { transform: rotate(180deg); }

/* CTA in header */
.site-header .header-cta { display: flex; align-items: center; gap: 14px; }

/* dropdown / mega menu */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 280px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 20;
}
.dropdown--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.main-nav > li:hover .dropdown,
.main-nav > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 11px 14px; border-radius: var(--r-sm);
  color: var(--ink-700); font-size: .94rem; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.dropdown a:hover { background: var(--grey-100); color: var(--red); }
.dropdown a small { display: block; font-weight: 400; font-size: .8rem; color: var(--text-light); margin-top: 2px; }
.dropdown a.is-active { color: var(--red); }
.dropdown__group-label {
  padding: 10px 14px 6px; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-light);
}

/* SOLID state — applied on scroll or non-dark-hero pages (.is-solid added by main.js) */
.site-header.is-solid {
  background: rgba(14, 12, 11, .82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .28);
}
.site-header.is-solid .main-nav > li > a { color: rgba(255, 255, 255, .82); }
.site-header.is-solid .main-nav > li > a:hover,
.site-header.is-solid .main-nav > li.is-active > a { color: #fff; }

/* pages that don't open on a dark hero still get the dark solid chrome */
body.has-light-header .site-header { background: rgba(14, 12, 11, .82); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: rgba(255, 255, 255, .08); }
body.has-light-header .site-header .main-nav > li > a { color: rgba(255, 255, 255, .82); }
body.has-light-header .site-header .main-nav > li > a:hover,
body.has-light-header .site-header .main-nav > li.is-active > a { color: #fff; }

/* hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform var(--t-fast), opacity var(--t-fast); color: #fff; }
.site-header.is-solid .nav-toggle span,
body.has-light-header .nav-toggle span { background: #fff; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu panel */
.mobile-menu {
  position: fixed; inset: 78px 0 0 0; z-index: 99;
  background: var(--black); color: #fff;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateX(100%); transition: transform var(--t);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu .m-group { border-bottom: 1px solid var(--line-dark); }
.mobile-menu .m-group > a,
.mobile-menu .m-group > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 1.15rem; font-weight: 600; color: #fff;
  background: none; border: 0; text-align: left;
}
.mobile-menu .m-sub { display: none; padding: 0 0 16px 4px; }
.mobile-menu .m-group.is-open .m-sub { display: block; }
.mobile-menu .m-sub a { display: block; padding: 9px 0; color: var(--on-dark-muted); font-size: 1rem; }
.mobile-menu .m-sub a:hover { color: #fff; }
.mobile-menu .m-cta { margin-top: 28px; }
.mobile-menu .m-cta .btn { width: 100%; justify-content: center; }

/* keep page content clear of fixed header where a light hero is used */
.page-top { padding-top: 78px; }

/* ---------------------------------------------------------
   12. HERO (reusable page hero on dark)
   --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: #fff;
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: var(--section-y);
}
.hero h1, .hero h2 { color: #fff; }
.hero p { color: var(--on-dark-muted); }
.hero__inner { position: relative; z-index: 1; }
.hero--center { text-align: center; }
.hero--center .hero__inner { max-width: 920px; margin-inline: auto; }
.hero__sub { margin-top: 24px; max-width: 56ch; }
.hero--center .hero__sub { margin-inline: auto; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero--center .hero__actions { justify-content: center; }

/* optional real photo behind the hero — sits under the scrim + glow */
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .72;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,10,10,.52) 0%, rgba(11,10,10,.28) 45%, rgba(11,10,10,.78) 100%),
    linear-gradient(90deg, rgba(11,10,10,.78) 0%, rgba(11,10,10,.14) 60%, rgba(11,10,10,.30) 100%);
}

/* compact page hero for interior pages */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--black); color: #fff;
  padding-top: clamp(130px, 15vw, 170px);
  padding-bottom: clamp(56px, 7vw, 92px);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--on-dark-muted); margin-top: 18px; }
.page-hero .breadcrumb { margin-bottom: 20px; }

/* breadcrumb */
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--on-dark-faint); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.has-light-header .breadcrumb, .section:not(.section--dark) .breadcrumb { color: var(--text-light); }

/* ---------------------------------------------------------
   13. FORMS
   --------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.input, .textarea, .select {
  width: 100%; padding: 15px 16px;
  background: var(--grey-100); border: 1.5px solid transparent;
  border-radius: var(--r-sm); color: var(--ink); font-size: 1rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--text-light); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; background: #fff; border-color: var(--red);
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B70' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* dark variant for forms on dark sections */
.section--dark .input, .section--dark .textarea, .section--dark .select {
  background: rgba(255, 255, 255, .06); color: #fff; border-color: var(--line-dark);
}
.section--dark .input::placeholder, .section--dark .textarea::placeholder { color: var(--on-dark-faint); }
.section--dark .input:focus, .section--dark .textarea:focus, .section--dark .select:focus { background: rgba(255, 255, 255, .10); border-color: var(--red); }
.section--dark .field label { color: #fff; }

/* contact info list */
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.contact-list .ic { width: 20px; color: var(--red); flex: none; }
.section--dark .contact-list li { color: var(--on-dark-muted); }

/* ---------------------------------------------------------
   14. FOOTER (injected by components.js)
   --------------------------------------------------------- */
.site-footer { background: var(--black); color: var(--on-dark-muted); padding-block: clamp(56px, 7vw, 88px) 32px; position: relative; overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); position: relative; z-index: 1; }
.site-footer .brand { display: inline-flex; align-items: center; }
.site-footer .brand__img { height: 72px; width: auto; display: block; }
.site-footer__about { margin-top: 18px; max-width: 34ch; font-size: .95rem; line-height: 1.6; }
.site-footer h5 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 11px; }
.site-footer ul a { font-size: .94rem; color: var(--on-dark-muted); transition: color var(--t-fast); }
.site-footer ul a:hover { color: #fff; }
.site-footer .contact-list { margin-top: 20px; }
.site-footer .contact-list li { font-size: .92rem; }
.site-footer__socials { display: flex; gap: 10px; margin-top: 24px; }
.site-footer__socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff;
  transition: background var(--t-fast), transform var(--t-fast);
}
.site-footer__socials a:hover { background: var(--red); transform: translateY(-2px); }
.site-footer__bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: var(--on-dark-faint); position: relative; z-index: 1;
}
.site-footer__bottom a:hover { color: #fff; }

/* ---------------------------------------------------------
   15. REVEAL ANIMATION (IntersectionObserver in main.js)
   add class "reveal" to any element/section/card.
   --------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children with reveal--stagger on a parent; main.js sets --i */
.reveal--stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * .08s);
}
.reveal--stagger.is-visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal--stagger > * { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   16. UTILITIES
   --------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.gap-sm { gap: 12px; } .gap-lg { gap: 32px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.relative { position: relative; }
.maxw-prose { max-width: 62ch; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--section-y); }
.section--dark .divider { background: var(--line-dark); }
.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; }
.no-scroll { overflow: hidden; }

/* ---------------------------------------------------------
   17. INDUSTRIES SHOWCASE — selectable tabs (home + industries hub)
   --------------------------------------------------------- */
.ind-tabs__nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.ind-tab {
  padding: 12px 22px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: .96rem; font-weight: 600; letter-spacing: -.01em;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.ind-tab:hover { color: #fff; border-color: var(--line-dark-strong); transform: translateY(-1px); }
.ind-tab.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.ind-panel { animation: indfade .5s var(--ease); }
.ind-panel[hidden] { display: none; }
.ind-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.ind-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

@keyframes indfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------
   18. CITIES LIST (Empowering brands nationwide)
   --------------------------------------------------------- */
.cities {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 4px 32px;
}
.cities li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; font-size: 1.05rem; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
/* white on dark sections (e.g. the homepage "nationwide" band) */
.section--dark .cities li { color: #fff; border-bottom-color: var(--line-dark); }
.cities li::before {
  content: ""; flex: none; width: 7px; height: 7px;
  border-radius: 50%; background: var(--red);
}

/* ---------------------------------------------------------
   19. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .split, .split--narrow-left, .split--narrow-right { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .dropdown--wide { grid-template-columns: 1fr; min-width: 320px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cities { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__top > :first-child { grid-column: 1 / -1; }
  .hero__actions, .cta__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .cta__actions .btn { justify-content: center; }
}

/* ---------------------------------------------------------
   20. INTERACTION & MOTION ENHANCEMENTS
   --------------------------------------------------------- */

/* scroll progress bar (top of viewport) */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--red), #ff6a4d);
  transform: scaleX(0); transform-origin: left center;
  will-change: transform; pointer-events: none;
}

/* cursor spotlight that follows the mouse over dark areas (desktop) */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1;
  width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 13, 14, .14), rgba(242, 13, 14, 0) 62%);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none; mix-blend-mode: screen; will-change: transform, opacity;
}

/* animated underline under primary nav links */
.main-nav > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px;
  background: var(--red); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.main-nav > li:hover > a::after,
.main-nav > li:focus-within > a::after,
.main-nav > li.is-active > a::after { transform: scaleX(1); }

/* dropdown items stagger in when the menu opens */
.dropdown a {
  opacity: 0; transform: translateY(9px);
  transition: opacity .34s ease, transform .34s cubic-bezier(.2, .8, .2, 1), background var(--t-fast), color var(--t-fast);
}
.main-nav > li:hover .dropdown a,
.main-nav > li:focus-within .dropdown a {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i, 0) * .04s);
}

/* mobile menu groups slide + fade in on open */
.mobile-menu .m-group,
.mobile-menu .m-cta {
  opacity: 0; transform: translateX(20px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.mobile-menu.is-open .m-group,
.mobile-menu.is-open .m-cta {
  opacity: 1; transform: none;
  transition-delay: calc(.08s + var(--i, 0) * .05s);
}

/* media inside cards zooms slightly on hover */
.case-card .media-glow img,
.industry-card .media-glow img,
.article-card .media-glow img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.case-card:hover .media-glow img,
.industry-card:hover .media-glow img,
.article-card:hover .media-glow img { transform: scale(1.06); }

/* tactile press feedback on touch devices */
@media (hover: none) {
  .btn:active { transform: scale(.96); }
  .service-card:active, .case-card:active, .card:active, .industry-card:active { transform: scale(.99); }
}

/* honor reduced-motion: drop the extra motion, never hide content */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress, .cursor-glow { display: none !important; }
  .dropdown a, .mobile-menu .m-group, .mobile-menu .m-cta { opacity: 1 !important; transform: none !important; transition: none !important; }
  .main-nav > li > a::after { display: none; }
}
