/* ============================================================
   Ruffin Digital — design system (2026 redesign)
   Modern Technology Agency: premium dark theme.
   Midnight Black #0A0C10 · Charcoal #171B22 · Ruffin Red #D11329
   Off White #F5F5F5 · Silver Gray #A1A1AA
   Headings: Poppins · Body: Open Sans — original brand fonts (self-hosted, OFL)
   ============================================================ */

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Font Awesome 6 Free";
  src: url("/assets/fonts/fa-solid-900.woff2") format("woff2");
  font-weight: 900;
  font-display: block;
}
@font-face {
  font-family: "Font Awesome 6 Brands";
  src: url("/assets/fonts/fa-brands-400.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}
.fas, .fa-solid { font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal; display: inline-block; line-height: 1; }
.fab, .fa-brands { font-family: "Font Awesome 6 Brands"; font-weight: 400; font-style: normal; display: inline-block; line-height: 1; }
.fa-twitter::before { content: "\f099"; }
.fa-linkedin-in::before { content: "\f0e1"; }
.fa-facebook-f::before { content: "\f39e"; }
.fa-youtube::before { content: "\f167"; }
.fa-instagram::before { content: "\f16d"; }
.fa-bars::before { content: "\f0c9"; }
.fa-arrow-up::before { content: "\f062"; }
.fa-arrow-right::before { content: "\f061"; }
.fa-calendar-alt::before { content: "\f073"; }
.fa-star::before { content: "\f005"; }
.fa-quote-right::before { content: "\f10e"; }
.fa-map-marker-alt::before { content: "\f3c5"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-phone-alt::before { content: "\f879"; }
.fa-clock::before { content: "\f017"; }
.fa-brain::before { content: "\f5dc"; }
.fa-microchip::before { content: "\f2db"; }
.fa-gears::before { content: "\f085"; }
.fa-diagram-project::before { content: "\f542"; }
.fa-code::before { content: "\f121"; }
.fa-chart-line::before { content: "\f201"; }
.fa-bullhorn::before { content: "\f0a1"; }
.fa-building::before { content: "\f1ad"; }
.fa-landmark::before { content: "\f66f"; }
.fa-store::before { content: "\f54e"; }
.fa-check::before { content: "\f00c"; }
.fa-lightbulb::before { content: "\f0eb"; }
.fa-layer-group::before { content: "\f5fd"; }
.fa-shield-halved::before { content: "\f3ed"; }
.fa-globe::before { content: "\f0ac"; }
.fa-network-wired::before { content: "\f6ff"; }
.fa-database::before { content: "\f1c0"; }
.fa-compass::before { content: "\f14e"; }
.fa-rocket::before { content: "\f135"; }
.fa-users::before { content: "\f0c0"; }
.fa-briefcase::before { content: "\f0b1"; }
.fa-chevron-down::before { content: "\f078"; }
.fa-handshake::before { content: "\f2b5"; }
.fa-puzzle-piece::before { content: "\f12e"; }

:root {
  --red-text: #FF5566;
  --bg: #0A0C10;
  --bg-2: #0E1117;
  --charcoal: #171B22;
  --surface: #131720;
  --surface-2: #1A1F29;
  --line: rgba(245, 245, 245, 0.09);
  --line-strong: rgba(245, 245, 245, 0.16);
  --red: #D11329;
  --red-bright: #F0263C;
  --red-dark: #9E0E20;
  --text: #F5F5F5;
  --muted: #A1A1AA;
  --muted-bright: #C6C6CD;
  --radius: 14px;
  --radius-lg: 20px;
  --font-head: "Poppins", "Open Sans", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: rgba(209, 19, 41, 0.55); text-underline-offset: 3px; }
a:hover { color: #fff; }
::selection { background: var(--red); color: #fff; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.16rem; color: var(--muted-bright); line-height: 1.7; }

.container { width: min(1240px, 100% - 3rem); margin-inline: auto; }
.section { padding: clamp(4.2rem, 8vw, 7rem) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--light { background: var(--bg-2); border-block: 1px solid var(--line); }

.eyebrow, .eyebrow-lg {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-text);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before, .eyebrow-lg::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  flex: none;
}
.eyebrow-lg { font-size: 0.85rem; }
.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head p.eyebrow, .cta-band p.eyebrow { color: var(--red-text); }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(209, 19, 41, 0.28);
}
.btn:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(245, 245, 245, 0.06); border-color: rgba(245, 245, 245, 0.4); color: #fff; }
.btn .fas { font-size: 0.85em; }
.btn-header { padding: 0.62rem 1.3rem; font-size: 0.92rem; box-shadow: none; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-logo { text-decoration: none; display: inline-flex; align-items: center; flex: none; line-height: 0; }
.site-logo img { height: 80px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0; padding: 0;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted-bright);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: #fff; background: rgba(245, 245, 245, 0.05); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  background: var(--red);
  border-radius: 2px;
}
.header-cta { flex: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  width: 46px; height: 46px;
  font-size: 1.05rem;
  cursor: pointer;
}

/* ---------------- footer ---------------- */
.site-footer {
  background: #07080B;
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 1.2fr;
  gap: 2.6rem;
  padding-bottom: 3.4rem;
}
.footer-logo { width: 118px; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer-company { font-family: var(--font-head); letter-spacing: 0.14em; font-size: 0.8rem; color: var(--muted-bright); }
.social-links { list-style: none; display: flex; gap: 0.6rem; padding: 0; margin: 1.2rem 0 0; }
.social-links a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted-bright);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.social-links a:hover { border-color: var(--red); color: #fff; background: rgba(209, 19, 41, 0.12); }
.footer-col h2 {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.15rem;
  font-weight: 600;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.96rem; }
.footer-links a:hover { color: #fff; }
.footer-contact address { font-style: normal; color: var(--muted-bright); line-height: 1.6; font-size: 0.96rem; }
.footer-contact p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0.5rem; }
.footer-email { color: var(--text); font-weight: 600; text-decoration: none; }
.footer-email:hover { color: var(--red-bright); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: 0.86rem; text-align: center; }

/* ---------------- forms ---------------- */
.site-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--muted-bright); }
.field .req { color: var(--red-text); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.78rem 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E6E77; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(209, 19, 41, 0.25);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------------- hero (home) ---------------- */
.hero {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8.5rem) 0 clamp(4rem, 7vw, 6.5rem);
  background:
    radial-gradient(900px 480px at 85% 20%, rgba(209, 19, 41, 0.13), transparent 60%),
    radial-gradient(700px 500px at 8% 90%, rgba(209, 19, 41, 0.06), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.92;
  transform: scale(1.16);
  transform-origin: 80% 32%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 16, 0.94) 0%, rgba(10, 12, 16, 0.78) 42%, rgba(10, 12, 16, 0.25) 75%, rgba(10, 12, 16, 0.35) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 26%);
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero .descriptor {
  color: var(--red-text);
  font-family: var(--font-head);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.hero .descriptor::before { content: ""; width: 30px; height: 2px; background: var(--red); }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--red-bright); }
.hero .lead { max-width: 56ch; margin-bottom: 2.3rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------------- outcomes strip ---------------- */
.outcomes { border-block: 1px solid var(--line); background: var(--bg-2); }
.outcomes-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.outcome {
  padding: 2.3rem 1.8rem;
  border-left: 1px solid var(--line);
  display: flex;
  gap: 1.05rem;
  align-items: flex-start;
}
.outcome .icon-badge { margin: 0; flex: none; width: 46px; height: 46px; font-size: 1.08rem; border-radius: 12px; }
.outcome:first-child { border-left: none; }
.outcome .num {
  color: var(--red-text);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 0.6rem;
}
.outcome h3, .outcome h2 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.outcome p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------------- cards ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem 9.2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card > * { position: relative; z-index: 1; }
.feature-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 132px;
  background: url("/assets/img/red-wave.jpg") center bottom / cover no-repeat;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to top, #000 52%, transparent 98%);
  mask-image: linear-gradient(to top, #000 52%, transparent 98%);
  pointer-events: none;
}
.feature-card.featured {
  border-color: rgba(209, 19, 41, 0.8);
  box-shadow: 0 0 0 1px rgba(209, 19, 41, 0.45), 0 20px 46px rgba(209, 19, 41, 0.13);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(209, 19, 41, 0.5); box-shadow: var(--shadow); color: var(--text); }
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: rgba(209, 19, 41, 0.12);
  border: 1px solid rgba(209, 19, 41, 0.35);
  color: var(--red-bright);
  display: grid; place-items: center;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.feature-card h3 { margin: 0; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card-link {
  color: var(--red-text);
  margin-top: auto;
  padding-top: 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.card-link .fas { font-size: 0.8em; transition: transform 0.15s ease; }
.feature-card:hover .card-link .fas, .service-card:hover .card-link .fas, .market-card:hover .card-link .fas { transform: translateX(3px); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(209, 19, 41, 0.5); background: var(--surface-2); color: var(--text); }
.service-card h3 { margin: 0; font-size: 1.18rem; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.market-card {
  border-radius: var(--radius-lg);
  padding: 2.3rem 2rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at 90% -10%, rgba(209, 19, 41, 0.14), transparent 65%),
    linear-gradient(180deg, var(--charcoal), var(--surface));
  text-decoration: none;
  display: flex; flex-direction: column; gap: 0.65rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.market-card:hover { transform: translateY(-4px); border-color: rgba(209, 19, 41, 0.5); color: var(--text); }
.market-card .icon-badge {
  background: rgba(245, 245, 245, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.market-card h3 { margin: 0; }
.market-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.focus-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.1rem 2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.focus-card h3 { margin: 0; }
.focus-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.division-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.division-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
}
.division-card h3 { font-size: 1.45rem; }
.division-card p { color: var(--muted); }
.division-card ul { margin: 0; padding-left: 1.15rem; color: var(--muted-bright); display: grid; gap: 0.4rem; }

/* ---------------- page hero / CTA band / notes ---------------- */
.page-hero {
  padding: clamp(3.8rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.2rem);
  background:
    radial-gradient(760px 380px at 88% 0%, rgba(209, 19, 41, 0.12), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 62ch; }
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 5vw, 4rem);
  background:
    radial-gradient(640px 300px at 95% 0%, rgba(209, 19, 41, 0.22), transparent 62%),
    linear-gradient(135deg, #1B0D12 0%, var(--charcoal) 55%, var(--surface) 100%);
  border: 1px solid rgba(209, 19, 41, 0.35);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--muted-bright); max-width: 58ch; }
.context-note {
  border: 1px solid rgba(209, 19, 41, 0.4);
  background: rgba(209, 19, 41, 0.08);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--muted-bright);
  font-size: 0.96rem;
  margin-bottom: 2rem;
}
.context-note strong { color: var(--text); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.check-list li { display: flex; gap: 0.7rem; color: var(--muted-bright); }
.check-list .fas { color: var(--red-bright); margin-top: 0.32em; font-size: 0.85rem; flex: none; }

/* ---------------- service detail ---------------- */
.svc-block { padding: clamp(3rem, 5vw, 4.4rem) 0; border-bottom: 1px solid var(--line); }
.svc-block:last-of-type { border-bottom: none; }
.svc-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.svc-grid h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.svc-grid .col h3, .svc-grid .col h2 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-text); margin-top: 1.6rem; font-family: var(--font-head); }
.svc-grid .col h3:first-child, .svc-grid .col h2:first-child { margin-top: 0; }
.svc-grid p { color: var(--muted); }
.svc-grid ul { color: var(--muted-bright); padding-left: 1.15rem; display: grid; gap: 0.35rem; margin: 0 0 1rem; }

/* ---------------- post cards / blog / archives ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(209, 19, 41, 0.45); }
.card > a { display: block; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-body h3 { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--red-bright); }
.card .meta { color: var(--muted); font-size: 0.85rem; margin: 0; }
.read-more {
  color: var(--red-text);
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.read-more:hover { color: #fff; }

.blog-hero, .archive-head {
  padding: clamp(3.8rem, 7vw, 5.6rem) 0 clamp(2.6rem, 4vw, 3.6rem);
  background:
    radial-gradient(760px 380px at 88% 0%, rgba(209, 19, 41, 0.12), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.blog-hero p { color: var(--muted); max-width: 62ch; font-size: 1.08rem; }
.archive-list { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.archive-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.archive-item:first-child { padding-top: 0; }
.archive-item img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.archive-item .cat { margin: 0 0 0.4rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
.archive-item .cat a { color: var(--red-text); text-decoration: none; font-weight: 600; }
.archive-item h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.archive-item h2 a { text-decoration: none; }
.archive-item h2 a:hover { color: var(--red-bright); }
.archive-item .excerpt { color: var(--muted); }

/* ---------------- single post ---------------- */
.post-hero { height: clamp(240px, 38vw, 420px); background-size: cover; background-position: center; position: relative; }
.post-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, transparent 55%); }
.post-wrap { padding: clamp(2.4rem, 4vw, 3.6rem) 0; }
.post-grid { display: grid; grid-template-columns: 190px 1fr; gap: 3rem; align-items: start; }
.post-author { text-align: center; position: sticky; top: calc(var(--header-h) + 24px); }
.post-author img { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 0.8rem; object-fit: cover; border: 2px solid var(--line-strong); }
.author-name { font-family: var(--font-head); font-weight: 600; color: var(--muted-bright); }
.post-main h1 { font-size: clamp(2rem, 4vw, 3rem); }
.post-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.post-body { color: var(--muted-bright); font-size: 1.05rem; }
.post-body p { margin-bottom: 1.2em; }
.post-body a { color: var(--red-text); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 2rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--muted-bright);
  text-decoration: none;
}
.share-btn:hover { border-color: var(--red); color: #fff; }
.related { padding: clamp(3rem, 5vw, 4.5rem) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 2rem; }

/* ---------------- case study (legacy body classes) ---------------- */
.cs-hero { padding: clamp(3.6rem, 6vw, 5.4rem) 0; background: radial-gradient(760px 380px at 88% 0%, rgba(209, 19, 41, 0.14), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); }
.cs-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.cs-hero h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; }
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 2.4rem 0; }
.cs-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.cs-stat .big { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--red-bright); display: block; }
.cs-stat .lbl { color: var(--muted); font-size: 0.9rem; }

/* ---------------- contact (legacy body classes) ---------------- */
.contact-hero { padding: clamp(3.8rem, 7vw, 5.6rem) 0; background: radial-gradient(760px 380px at 88% 0%, rgba(209, 19, 41, 0.12), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); }
.contact-hero .lead { max-width: 60ch; }
.divider { border: none; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.contact-form-wrap { max-width: 760px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 2.4rem; }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(1) invert(0.92) contrast(0.9); }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.info-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; }
.info-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(209, 19, 41, 0.12);
  border: 1px solid rgba(209, 19, 41, 0.35);
  color: var(--red-bright);
  display: grid; place-items: center;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.info-box h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.info-box p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.info-box a { color: var(--text); }

/* ---------------- 404 / misc ---------------- */
.not-found { padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; }
.not-found p { color: var(--muted); }
#scroll-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--charcoal);
  color: var(--text);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 90;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff;
  padding: 0.7rem 1.2rem; z-index: 200; border-radius: 0 0 10px 0;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------- reveal animation ---------------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1120px) {
  .main-nav a { padding: 0.5rem 0.55rem; font-size: 0.9rem; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .nav-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10, 12, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1.2rem;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .main-nav a { padding: 0.75rem 0.9rem; font-size: 1rem; }
  .feature-grid, .service-grid, .market-grid { grid-template-columns: 1fr 1fr; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .outcome { border-left: none; border-top: 1px solid var(--line); }
  .outcome:nth-child(-n+2) { border-top: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .post-grid { grid-template-columns: 1fr; }
  .post-author { position: static; display: flex; align-items: center; gap: 1rem; text-align: left; }
  .post-author img { margin: 0; width: 60px; height: 60px; }
  .archive-item { grid-template-columns: 220px 1fr; }
  .cs-hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 2.4rem); }
  .feature-grid, .service-grid, .market-grid, .focus-grid, .division-grid,
  .cards, .cards-4, .info-grid, .cs-stats { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .outcome { border-top: 1px solid var(--line); }
  .outcome:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .archive-item { grid-template-columns: 1fr; gap: 1rem; }
  .hero-media img { object-position: center; opacity: 0.55; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------------- mockup alignment components (2026-11-20) ---------------- */
.split-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.split-head h2 { margin: 0; }
.split-head .head-copy { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 46ch; justify-self: end; }

.svc-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.svc-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 0.8rem 1.25rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.svc-tile:hover { transform: translateY(-4px); border-color: rgba(209, 19, 41, 0.55); color: var(--text); }
.svc-tile .icon-badge { margin: 0; }
.svc-tile .tile-label { font-family: var(--font-head); font-weight: 600; font-size: 0.97rem; line-height: 1.3; }

.serve-layout { display: grid; grid-template-columns: 290px 1fr; gap: 2.6rem; align-items: center; }
.serve-layout .section-head { margin-bottom: 0; }
.market-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.photo-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 5 / 4.1;
  border: 1px solid var(--line);
  text-decoration: none;
}
.photo-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-card:hover img { transform: scale(1.04); }
.photo-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 5, 8, 0.88) 0%, rgba(4, 5, 8, 0.25) 46%, transparent 68%);
}
.photo-label { position: absolute; left: 1.15rem; right: 1.15rem; bottom: 1.05rem; z-index: 2; }
.photo-label .pname { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.97rem; color: #fff; line-height: 1.25; margin-bottom: 0.3rem; white-space: nowrap; }
.photo-label .ptag { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: #E9E9EC; }
.photo-label .ptag .fas { color: var(--red-bright); font-size: 0.78em; transition: transform 0.15s ease; }
.photo-card:hover .ptag .fas { transform: translateX(3px); }

.cta-wave {
  position: relative;
  text-align: center;
  padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(5.5rem, 9vw, 7.5rem);
  background: #05060A url("/assets/img/red-wave.jpg") center bottom / cover no-repeat;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-wave::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.72) 0%, rgba(5, 6, 10, 0.28) 55%, rgba(5, 6, 10, 0.1) 100%);
}
.cta-wave-inner { position: relative; z-index: 1; max-width: 780px; }
.cta-wave h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
.cta-wave p { color: #D8D8DE; font-size: 1.08rem; margin: 0 auto 2.2rem; max-width: 52ch; }

@media (max-width: 1120px) {
  .svc-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .serve-layout { grid-template-columns: 1fr; }
  .split-head { grid-template-columns: 1fr; gap: 1.2rem; }
  .split-head .head-copy { justify-self: start; }
}
@media (max-width: 640px) {
  .svc-tiles { grid-template-columns: repeat(2, 1fr); }
  .market-photo-grid { grid-template-columns: 1fr; }
  .photo-card { aspect-ratio: 16 / 10; }
  .feature-card { padding-bottom: 7rem; }
}

/* Header fit: the toggle must never be flex-shrunk by the logo. */
.nav-toggle { flex: none; }
@media (max-width: 640px) {
  .header-inner { gap: 1rem; }
  .site-logo img { height: 58px; }
}

/* ---------------- mockup fidelity pass (2026-11-20) ---------------- */
/* Brand restoration (2026-11-20, owner direction): the original corporate
   logo and the original Poppins / Open Sans typography supersede the
   mockup's text wordmark. See BRAND.md. */

/* Nav dropdowns (Solutions / Who We Serve), per mockup carets. */
.nav-caret { font-size: 0.6em; margin-left: 0.32rem; color: var(--muted); }
.main-nav .has-drop { position: relative; }
.main-nav .drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 264px;
  background: #10131A;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  z-index: 120;
  list-style: none;
  margin: 0;
}
.main-nav .has-drop:hover .drop,
.main-nav .has-drop:focus-within .drop { display: flex; }
.main-nav .drop a { padding: 0.55rem 0.8rem; font-size: 0.92rem; border-radius: 8px; }
@media (max-width: 980px) {
  .main-nav .drop {
    position: static;
    display: flex;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0.3rem 1.1rem;
  }
}

/* Bare red icons, as drawn in the mockup (no badge boxes on the homepage). */
.bare-icon { color: var(--red-bright); line-height: 1; display: inline-flex; }
.outcome .bare-icon { font-size: 1.7rem; padding-top: 0.2rem; }
.feature-card .bare-icon { font-size: 2rem; margin-bottom: 0.45rem; }
.svc-tile .bare-icon { font-size: 1.9rem; }
.feature-card .card-link { font-size: 1.05rem; }

/* Solutions split heading: vertical divider before the copy, per mockup. */
@media (min-width: 981px) {
  .split-head .head-copy { border-left: 1px solid var(--line-strong); padding-left: 2.2rem; }
}

/* Advisor visual refinement: preserve content and mobile layout, align desktop composition. */
.btn { border-radius: 8px; box-shadow: none; }
.page-home .hero .descriptor, .page-home .eyebrow { color: var(--text); letter-spacing: .09em; }
.page-home .hero h1 { letter-spacing: -.035em; }
@media (min-width: 981px) {
  .page-home .hero { padding: clamp(2.8rem,4.5vw,4.5rem) 0; background: #08090b; }
  .page-home .hero-inner { max-width: none; }
  .page-home .hero h1 { font-size: clamp(2.5rem,4vw,3.8rem); line-height: 1.16; margin-bottom: 1rem; }
  .page-home .hero .lead { max-width: 54ch; line-height: 1.5; margin-bottom: 1.35rem; }
  .page-home .hero .descriptor { margin-bottom: 1rem; }
  .page-home .hero-media { left: 35%; }
  .page-home .hero-media img { transform: none; opacity: 1; object-position: right center; }
  .page-home .hero-media::after { background: linear-gradient(90deg,#08090b 0%,rgba(8,9,11,.68) 20%,transparent 65%); }
  .page-home .section { padding: 1.9rem 0; }
  .page-home .outcome { padding: 1.25rem 1.1rem; }
  .page-home .feature-card { padding: 1.3rem 1.55rem 3.7rem; gap: .45rem; border-radius: 15px; background: linear-gradient(145deg,#1a1d22,#0c0d10 75%); }
  .page-home .feature-card.featured { background: linear-gradient(145deg,#321318,#100c10 75%); }
  .page-home .feature-card::after { height: 83px; }
  .page-home .feature-card h3 { font-size: 1.45rem; }
  .page-home .feature-card p { color: #d5d5db; }
  .page-home .split-head { margin-bottom: 1.25rem; align-items: center; }
  .page-home .split-head h2, .page-home .serve-layout h2 { font-size: clamp(1.7rem,2.8vw,2.5rem); line-height: 1.08; }
  .page-home .svc-tile { padding: 1rem .65rem; gap: .6rem; }
  .page-home .serve-layout { grid-template-columns: minmax(280px, .95fr) minmax(0,2.2fr); gap: 1.6rem; }
  .page-home .photo-card { aspect-ratio: 1.65; min-height: 156px; }
  .page-home .photo-label { left: .85rem; right: .85rem; bottom: .7rem; }
  .page-home .cta-wave { padding: 2.2rem 0 3.5rem; }
  .page-home .cta-wave h2 { font-size: clamp(1.8rem,3vw,2.7rem); margin-bottom: .55rem; }
  .page-home .cta-wave p { max-width: 72ch; margin-bottom: 1.2rem; }
}
@media (min-width: 981px) and (max-width: 1120px) {
  .page-home .hero .lead { max-width: 45ch; }
  .page-home .serve-layout { grid-template-columns: 1fr; }
}

/* Final refinements (2026-11-20): desktop header drops the duplicate Contact
   text link (the red CTA button remains); the mobile menu keeps the link. */
@media (min-width: 981px) {
  .main-nav .nav-contact-link { display: none; }
}
