/* =========================================================
   MOBILEFORCE — Brand Style Guide v1.1 implementation
   Light + dark alternating sections, 12-col 1200px grid.
   Montserrat (display + body) · Roboto Mono (data/accents)
   ========================================================= */

:root {
  /* Brand palette ----------------------------------------- */
  --mf-red-deep: #5d0000;
  --mf-red-mid:  #8a0000;
  --mf-red:      #d60000;
  --mf-gray-1:   #e5e5e5;
  --mf-gray-2:   #8e8e8e;
  --mf-black:    #101010;
  --mf-white:    #ffffff;

  /* Surfaces --------------------------------------------- */
  --surface-light:  #ffffff;
  --surface-alt:    #f5f5f5;
  --surface-mid:    var(--mf-gray-1);
  --surface-dark:   var(--mf-black);
  --surface-deep:   #1a0000;
  --surface-crimson:var(--mf-red-deep);

  /* Ink -------------------------------------------------- */
  --ink-dark:       var(--mf-black);
  --ink-dark-dim:   #4a4a4a;
  --ink-dark-mute:  var(--mf-gray-2);
  --ink-light:      #ffffff;
  --ink-light-dim:  rgba(255,255,255,0.72);
  --ink-light-mute: rgba(255,255,255,0.50);

  /* Rules ------------------------------------------------ */
  --rule-light:     rgba(16,16,16,0.10);
  --rule-light-st:  rgba(16,16,16,0.20);
  --rule-dark:      rgba(255,255,255,0.10);
  --rule-dark-st:   rgba(255,255,255,0.22);
  --rule-red:       rgba(214,0,0,0.20);

  /* Type ------------------------------------------------- */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-mono:    "Roboto Mono", ui-monospace, monospace;

  /* Radii (per brand spec) ------------------------------- */
  --r-card:    16px;
  --r-img:     12px;
  --r-input:   8px;
  --r-btn:     8px;
  --r-pill:    999px;

  /* Layout ----------------------------------------------- */
  --max-w:     1200px;
  --gutter:    clamp(24px, 5vw, 64px);
  --col-gap:   24px;

  /* Section spacing -------------------------------------- */
  --sec-gap:     clamp(64px, 10vw, 96px);
  --block-gap:   48px;
  --comp-gap:    24px;
  --card-pad:    32px;

  /* Shadow ----------------------------------------------- */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-deep: 0 30px 80px -20px rgba(0,0,0,0.45);
}

/* ============ RESET ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-light);
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============ TYPE SCALE ============ */
.h1, h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
.h2, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
}
.h3, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0;
}
.h4, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.4;
  text-transform: uppercase;
  margin: 0;
}
p { margin: 0 0 1rem; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(17px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--ink-dark-dim);
  max-width: 60ch;
}
.dark .lede, .crimson .lede { color: var(--ink-light-dim); }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
}
.overline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ============ BADGES ============ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(214,0,0,0.10);
  color: var(--mf-red);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.badge--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mf-red);
  box-shadow: 0 0 0 4px rgba(214,0,0,0.20);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(214,0,0,0.20); }
  50%     { box-shadow: 0 0 0 9px rgba(214,0,0,0.02); }
}
.dark .badge { background: rgba(214,0,0,0.18); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-btn);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn--primary {
  background: var(--mf-red);
  color: var(--mf-white);
  border-color: var(--mf-red);
}
.btn--primary:hover { background: var(--mf-red-mid); border-color: var(--mf-red-mid); transform: translateY(-1px); }
.btn--primary:active { background: var(--mf-red-deep); border-color: var(--mf-red-deep); transform: translateY(0); }

.btn--secondary {
  background: transparent;
  color: var(--mf-red);
  border-color: var(--mf-red);
  padding: 12px 30px;
}
.btn--secondary:hover { background: var(--mf-red); color: var(--mf-white); }

.btn--ghost {
  background: transparent;
  color: var(--mf-white);
  border-color: rgba(255,255,255,0.40);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn__arrow { width: 14px; height: 14px; }

/* ============ LAYOUT ============ */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: var(--sec-gap) 0;
  position: relative;
}
.section--dark    { background: var(--surface-dark); color: var(--ink-light); }
.section--crimson { background: var(--surface-crimson); color: var(--ink-light); }
.section--alt     { background: var(--surface-alt); }
.section--mid     { background: var(--surface-mid); }

.section .dark,
.section--dark,
.section--crimson { color: var(--ink-light); }
.section--dark p,
.section--crimson p { color: var(--ink-light-dim); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mf-red);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--mf-red);
}

.section__head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: var(--block-gap);
  max-width: 900px;
}
.section__head--center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }
.section__head--row {
  flex-direction: row; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap; gap: 24px;
  max-width: none;
}
.section__head--center .eyebrow { justify-content: center; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 16px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav.scrolled { background: rgba(255,255,255,0.95); border-bottom-color: var(--rule-light); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.nav__mark { width: 30px; height: 30px; }
.nav__word {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; letter-spacing: 0.02em;
  color: var(--mf-black);
  text-transform: uppercase;
}
.nav__word em { color: var(--mf-red); font-style: normal; }
.nav__links { display: flex; gap: clamp(20px, 2.5vw, 36px); justify-content: center; }
.nav__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--mf-red); }
.nav__links a.active { color: var(--mf-red); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--mf-red);
  transition: width .25s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__cta {
  justify-self: end;
  padding: 9px 20px;
  font-size: 11px;
  min-height: 32px;
  gap: 7px;
}
.nav__cta .btn__arrow { width: 11px; height: 11px; }
.nav__burger {
  display: none; width: 44px; height: 44px;
  background: transparent; cursor: pointer;
  border: 1px solid var(--rule-light-st);
  border-radius: var(--r-input);
  position: relative;
}
.nav__burger span {
  display: block; position: absolute;
  left: 12px; right: 12px; height: 2px;
  background: var(--mf-black);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 27px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 70px 0 0 0;
  background: var(--surface-light);
  z-index: 90;
  padding: 32px var(--gutter);
  display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-110%);
  transition: transform .4s cubic-bezier(.7,0,.3,1);
  border-bottom: 1px solid var(--rule-light);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-light);
  display: flex; align-items: baseline; gap: 16px;
  color: var(--ink-dark);
}
.mobile-menu a::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mf-red);
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ============ HERO ============ */
.hero {
  background: var(--surface-dark);
  color: var(--ink-light);
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 18vw, 180px) 0 0;
  border-radius: 0 0 32px 32px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 75% 30%, rgba(214,0,0,0.30), transparent 60%),
    radial-gradient(50% 50% at 20% 80%, rgba(93,0,0,0.45), transparent 65%),
    linear-gradient(180deg, #101010, #050505 80%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 80% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000 30%, transparent 80%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.45), rgba(10,10,10,0.78)),
    url("assets/hero-bg.jpg") center / cover no-repeat;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(120px, 16vw, 160px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.hero__title .accent { color: var(--mf-red); }
.hero__lede {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--ink-light-dim);
  max-width: 56ch;
  margin: 0;
}
.hero__cta-row {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  margin-top: 8px;
}

/* Floating spec card (sits over hero/below band) */
.hero__card {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  transform: translateY(50%);
  margin-top: calc(-1 * clamp(48px, 8vw, 80px));
}
.hcard {
  background: var(--surface-light);
  border: 1px solid var(--rule-light);
  border-radius: var(--r-card);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0;
  align-items: stretch;
  box-shadow: var(--shadow-deep);
}
.hcard__cell {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 20px;
  border-right: 1px solid var(--rule-light);
  min-width: 0;
}
.hcard__cell:nth-child(4) { border-right: none; }
.hcard__lbl {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-dark-mute);
  text-transform: uppercase;
}
.hcard__val {
  font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hcard__val svg { color: var(--mf-red); flex: none; }
.hcard__btn { align-self: stretch; padding: 14px 28px; min-height: 56px; }

/* spacer below the floating hero card */
.hero__spacer { height: clamp(80px, 10vw, 120px); }

/* ============ TICKER ============ */
.ticker {
  background: var(--surface-light);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  padding: 20px 0;
  overflow: hidden;
}
.ticker__track {
  display: flex; gap: 4rem;
  width: max-content;
  animation: tickerMove 60s linear infinite;
}
.ticker__row {
  display: flex; align-items: center; gap: 40px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-dark-mute);
}
.ticker__row > span:not(.ticker__sep) { transition: color .2s ease; }
.ticker__row > span:not(.ticker__sep):hover { color: var(--mf-red); }
.ticker__sep {
  color: var(--mf-red);
  font-size: 0.7em;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--r-img);
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 5;
}
.about__media .placeholder { border-radius: var(--r-img); height: 100%; }
.about__stat {
  position: absolute;
  left: 20px; bottom: 20px;
  background: var(--surface-light);
  border: 1px solid var(--rule-light);
  border-radius: var(--r-card);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 220px;
  box-shadow: var(--shadow-card);
}
.about__stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
}
.about__stat-num em {
  font-style: normal;
  color: var(--mf-red);
  font-size: 0.6em;
  margin-left: 4px;
  font-weight: 700;
}
.about__stat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dark-mute);
  max-width: 22ch;
}

.about__copy { display: flex; flex-direction: column; gap: 20px; }
.about__trust {
  display: flex; align-items: center; gap: 16px;
  margin-top: 8px;
}
.about__avatars { display: inline-flex; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--surface-light);
  background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.avatar--1 { background: linear-gradient(135deg, #5d0000, #2a0000); }
.avatar--2 { background: linear-gradient(135deg, #4a4a4a, #1a1a1a); }
.avatar--3 { background: linear-gradient(135deg, #d60000, #5d0000); }
.about__trust strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.about__trust p { margin: 0; color: var(--ink-dark-mute); font-size: 13px; max-width: 36ch; }

/* ============ SERVICES ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}
.svc {
  background: var(--surface-light);
  border: 1px solid var(--rule-light);
  border-radius: var(--r-card);
  padding: var(--card-pad);
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.10); }

.svc__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(214,0,0,0.10);
  color: var(--mf-red);
  display: grid; place-items: center;
  transition: transform .25s ease, background .25s ease;
}
.svc__icon svg { width: 28px; height: 28px; }
.svc:hover .svc__icon { transform: scale(1.08); }

.svc__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.3;
}
.svc__desc {
  color: var(--ink-dark-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.svc__list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.svc__list li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dark-dim);
  display: flex; align-items: center; gap: 10px;
  text-transform: none;
}
.svc__list .check {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(214,0,0,0.10);
  color: var(--mf-red);
  font-size: 10px; font-weight: 700;
  flex: none;
}
.svc__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule-light);
  display: flex; align-items: center; justify-content: space-between;
}
.svc__foot .mono { color: var(--ink-dark-mute); font-size: 12px; }
.svc__foot strong { color: var(--ink-dark); font-weight: 700; }
.svc__cta {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--mf-red);
  color: var(--mf-white);
  transition: transform .25s ease, background .2s ease;
}
.svc__cta svg { width: 16px; height: 16px; }
.svc:hover .svc__cta { background: var(--mf-red-mid); transform: rotate(-8deg); }

/* ============ STATS BAND ============ */
.stats {
  background: var(--surface-dark);
  color: var(--ink-light);
  border-radius: 32px;
  margin: 0 var(--gutter);
  padding: clamp(48px, 6vw, 72px) clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.stats__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 80% 30%, rgba(214,0,0,0.30), transparent 60%),
    radial-gradient(30% 50% at 10% 80%, rgba(93,0,0,0.40), transparent 65%);
  pointer-events: none;
}
.stats__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; position: relative; z-index: 1; margin-bottom: var(--block-gap); }
.stats__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0;
}
.stats__title .accent { color: var(--mf-red); }
.stats__copy { color: var(--ink-light-dim); max-width: 50ch; }
.stats__copy .btn { margin-top: 16px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
  position: relative; z-index: 1;
}
.stats__cell {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.stats__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(214,0,0,0.18);
  color: var(--mf-red);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.stats__icon svg { width: 24px; height: 24px; }
.stats__cell h4 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}
.stats__cell p { font-size: 14px; color: var(--ink-light-dim); margin: 0; }

/* ============ PROCESS ============ */
.process { background: var(--surface-alt); }
.process__list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.step {
  background: var(--surface-light);
  border: 1px solid var(--rule-light);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.10); }
.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mf-red);
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase;
}
.step__num::before {
  content: ""; width: 30px; height: 1px; background: var(--mf-red);
}
.step__body h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.step__body p { font-size: 14px; color: var(--ink-dark-dim); margin: 0; }
.step__tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--mf-red);
  padding-top: 12px;
  border-top: 1px dashed var(--rule-light);
  text-transform: uppercase;
}

/* ============ STACK ============ */
.stack { background: var(--surface-dark); color: var(--ink-light); }
.stack .eyebrow { color: var(--mf-red); }
.stack__panel {
  border: 1px solid var(--rule-dark);
  background: #161616;
  border-radius: var(--r-card);
  overflow: hidden;
}
.stack__terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  background: #0a0a0a;
  border-bottom: 1px solid var(--rule-dark);
}
.stack__terminal-bar > span:nth-child(-n+3) {
  width: 11px; height: 11px; border-radius: 50%; background: #2c2c2c;
}
.stack__terminal-bar > span:nth-child(1) { background: var(--mf-red); }
.stack__terminal-bar .mono { margin-left: auto; color: var(--ink-light-dim); font-size: 11px; }
.stack__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stack__col {
  padding: 28px 24px;
  border-right: 1px solid var(--rule-dark);
}
.stack__col:last-child { border-right: none; }
.stack__col h4 {
  margin: 0 0 16px;
  color: var(--mf-red);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}
.stack__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.stack__col li {
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex; justify-content: space-between;
  color: var(--ink-light);
}
.stack__col li span { color: var(--ink-light-dim); }

/* ============ WORK ============ */
.work__filters {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter {
  background: transparent;
  border: 1px solid var(--rule-light-st);
  color: var(--ink-dark-dim);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  transition: all .2s ease;
}
.filter:hover { color: var(--ink-dark); border-color: var(--ink-dark); }
.filter.active {
  background: var(--mf-red);
  border-color: var(--mf-red);
  color: var(--mf-white);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}
.case {
  background: var(--surface-light);
  border: 1px solid var(--rule-light);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }
.case--large { grid-column: span 2; grid-row: span 2; }
.case--wide  { grid-column: span 2; }

.case__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--from, #1a1a1a), var(--to, #050505));
  display: grid; place-items: center;
  overflow: hidden;
}
.case--large .case__media { aspect-ratio: 16 / 11; }
.case--wide  .case__media { aspect-ratio: 16 / 8; }
.case__media::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
}
.case__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 60% at 50% 60%, rgba(214,0,0,0.22), transparent 70%);
}
.case__cat {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--rule-dark-st);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.case__glyph {
  font-size: clamp(48px, 5vw, 84px);
  color: var(--mf-red);
  opacity: 0.9;
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.case__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.case:hover .case__img { transform: scale(1.05); }
.case__media:has(.case__img)::after { opacity: 0; }
.case:hover .case__glyph { transform: scale(1.1) rotate(6deg); }
.case--large .case__glyph { font-size: clamp(80px, 9vw, 144px); }

.case__meta {
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.case__meta h3 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.3;
}
.case--large .case__meta h3 { font-size: 24px; }
.case__meta p {
  font-size: 14px;
  color: var(--ink-dark-dim);
  margin: 0;
  line-height: 1.6;
}
.case__role {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--rule-light);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mf-red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case__role::after {
  content: "↗";
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--mf-red); color: var(--mf-white);
  font-size: 14px; line-height: 1;
  transition: transform .2s ease;
}
.case:hover .case__role::after { transform: rotate(45deg); }

/* ============ TESTIMONIALS ============ */
.testi { background: var(--surface-alt); }
.testi__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}
.testi__card {
  background: var(--surface-light);
  border: 1px solid var(--rule-light);
  border-radius: var(--r-card);
  padding: var(--card-pad);
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow-card);
}
.testi__quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.7;
  color: var(--mf-red);
  font-weight: 900;
}
.testi__quote {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-dark);
  margin: 0;
}
.testi__person {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule-light);
}
.testi__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--mf-red-mid);
  color: var(--mf-red-mid);
  display: grid; place-items: center;
  flex: none;
}
.testi__avatar svg { width: 24px; height: 24px; }
.testi__person strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.testi__person span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dark-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ FAQ ============ */
.faq { background: var(--surface-light); }
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq__item {
  background: var(--surface-light);
  border: 1px solid var(--rule-light);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .25s ease;
}
.faq__item[open] { border-color: var(--mf-red); box-shadow: var(--shadow-card); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(214,0,0,0.10);
  color: var(--mf-red);
  display: grid; place-items: center;
  transition: transform .25s ease, background .2s ease;
  flex: none;
}
.faq__item[open] summary::after { content: "−"; background: var(--mf-red); color: var(--mf-white); }
.faq__item p {
  margin: 0; padding: 0 24px 22px;
  color: var(--ink-dark-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ============ CONTACT ============ */
.contact { background: var(--surface-deep); color: var(--ink-light); }
.contact .eyebrow { color: var(--mf-red); }
.contact__shout {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 16px 0 24px;
  text-wrap: balance;
}
.contact__shout .accent { color: var(--mf-red); }
.contact__lede { color: var(--ink-light-dim); font-size: 18px; max-width: 60ch; }

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  margin-top: var(--block-gap);
}
.contact__form {
  display: flex; flex-direction: column; gap: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-card);
  padding: 32px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mf-red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.field input, .field textarea {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--rule-dark-st);
  border-radius: var(--r-input);
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-light);
  resize: vertical;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-light-mute); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--mf-red);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 3px rgba(214,0,0,0.15);
}
.field--row {
  flex-direction: row; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.field__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-light-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact__success {
  font-family: var(--font-mono);
  color: var(--mf-red);
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact__side { display: flex; flex-direction: column; gap: 16px; }
.contact__block {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-card);
  padding: 24px;
}
.contact__block span.mono {
  color: var(--mf-red);
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.contact__block p { margin: 0; font-size: 15px; color: var(--ink-light); }
.contact__block a:hover { color: var(--mf-red); }
.contact__block--quote {
  background: var(--mf-red);
  border-color: var(--mf-red);
}
.contact__block--quote p {
  font-size: 18px;
  font-weight: 600;
  color: var(--mf-white);
  margin: 0 0 12px;
  line-height: 1.4;
}
.contact__block--quote span.mono { color: rgba(255,255,255,0.78); }

/* ============ FOOTER ============ */
.footer {
  background: #050505;
  color: var(--ink-light);
  padding: var(--sec-gap) 0 24px;
  border-top: 1px solid var(--rule-dark);
  position: relative;
  overflow: hidden;
}
.footer .wrap { position: relative; }
.footer__top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule-dark);
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 18px;
  text-transform: uppercase;
}
.footer__brand img { width: 32px; height: 32px; filter: invert(1); }
.footer__brand em { color: var(--mf-red); font-style: normal; }
.footer__tag {
  margin: 0; justify-self: end;
  color: var(--ink-light-dim);
  max-width: 40ch; text-align: right;
  font-size: 14px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
}
.footer__cols h5 {
  margin: 0 0 16px;
  color: var(--mf-red);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
}
.footer__cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__cols li { color: var(--ink-light-dim); font-size: 14px; }
.footer__cols a:hover { color: var(--mf-red); }
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(80px, 22vw, 280px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.8;
  margin: 24px -0.06em 16px;
  color: rgba(255,255,255,0.05);
  white-space: nowrap;
  user-select: none;
  text-transform: uppercase;
}
.footer__big em { font-style: normal; color: rgba(214,0,0,0.22); }
.footer__base {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-light-dim);
  text-transform: uppercase;
}
.footer__base span:nth-child(2) { color: var(--mf-red); }

/* ============ PLACEHOLDERS ============ */
.placeholder {
  position: relative;
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 12px,
      rgba(255,255,255,0.01) 12px,
      rgba(255,255,255,0.01) 24px),
    radial-gradient(120% 90% at 30% 30%, rgba(214,0,0,0.22), transparent 60%),
    linear-gradient(135deg, #1d1d1d, #0c0c0c);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.placeholder::after {
  content: "[ " attr(data-label) " ]";
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light-mute);
}

/* ============ FOCUS ============ */
:focus-visible {
  outline: 3px solid var(--mf-red);
  outline-offset: 2px;
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .process__list { grid-template-columns: repeat(3, 1fr); }
  .stack__grid { grid-template-columns: repeat(3, 1fr); }
  .stack__col { border-bottom: 1px solid var(--rule-dark); }
  .stack__col:nth-child(n+4) { border-bottom: none; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .case--large { grid-column: span 2; grid-row: span 1; }
  .testi__rail { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__head { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .hero { border-radius: 0 0 24px 24px; }
  .hcard {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px;
  }
  .hcard__cell { padding: 10px 12px; }
  .hcard__cell:nth-child(2) { border-right: none; }
  .hcard__cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule-light); }
  .hcard__btn { grid-column: 1 / -1; margin-top: 6px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .process__list { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; }
  .stack__grid { grid-template-columns: 1fr 1fr; }
  .stack__col:nth-child(odd) { border-right: 1px solid var(--rule-dark); }
  .stack__col:nth-child(even) { border-right: none; }
  .work__grid { grid-template-columns: 1fr; }
  .case--large, .case--wide { grid-column: span 1; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats { border-radius: 24px; margin: 0 16px; padding: 36px 24px; }
  .about__stat { left: 16px; bottom: 16px; padding: 14px 18px; min-width: 0; }
  .about__stat-num { font-size: 36px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__tag { justify-self: start; text-align: left; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .contact__form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
