/* ============================================================
   Ruffin Digital — design system (2026 redesign)
   Modern Technology Agency: Dark and Light appearances (v1.1.0),
   driven by the theme tokens at "appearance themes" below.
   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"; }
.fa-sun::before { content: "\f185"; }
.fa-moon::before { content: "\f186"; }
.fa-circle-half-stroke::before { content: "\f042"; }

/* ---------------- appearance themes (v1.1.0) ----------------
   The site ships two appearances driven by the custom properties
   below: Dark (the original design, defined on :root) and Light.
   A visitor's choice is Light / Dark / System (default System):
   - a manual choice is stored in localStorage ("rd-theme") and the
     pre-paint script in <head> mirrors it onto <html data-theme>
     before first render, so html[data-theme="light"] applies;
   - with no manual choice there is no data-theme attribute and the
     @media (prefers-color-scheme: light) block below resolves System
     — including with JavaScript disabled entirely.
   Every theme-dependent color in this stylesheet is a token; the two
   light blocks (attribute + media query) carry identical values.
   See THEME.md for the full architecture and palette. */
: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);
  /* Dark field border raised 0.16 -> 0.35 in the v1.1.0 refinement
     round: the 0.16 composite over the field background measured
     1.59:1; 0.35 is the smallest step that clears the WCAG 2.2 AA
     3:1 non-text threshold (3.07:1). See THEME.md. */
  --field-border: rgba(245, 245, 245, 0.35);
  --red: #D11329;
  --red-bright: #F0263C;
  --red-dark: #9E0E20;
  --text: #F5F5F5;
  --text-strong: #FFFFFF;
  --muted: #A1A1AA;
  --muted-bright: #C6C6CD;
  /* Dark placeholder raised #6E6E77 -> #7F7F87 in the same round:
     3.55:1 -> 4.52:1 against the field background (AA normal text). */
  --placeholder: #7F7F87;
  --header-bg: rgba(10, 12, 16, 0.86);
  --nav-mobile-bg: rgba(10, 12, 16, 0.98);
  --footer-bg: #07080B;
  --drop-bg: #10131A;
  --drop-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  --tip-bg: #1D2027;
  --tip-text: #F5F5F7;
  --tip-desc: #C6C6CD;
  --tip-border: rgba(245, 245, 245, 0.16);
  --tip-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  --line-hover: rgba(245, 245, 245, 0.4);
  --hover-wash: rgba(245, 245, 245, 0.06);
  --nav-hover-bg: rgba(245, 245, 245, 0.05);
  --hero-bg: #08090B;
  --hero-fade: rgba(8, 9, 11, 0.68);
  --shade-94: rgba(10, 12, 16, 0.94);
  --shade-78: rgba(10, 12, 16, 0.78);
  --shade-25: rgba(10, 12, 16, 0.25);
  --shade-35: rgba(10, 12, 16, 0.35);
  --home-card-grad: linear-gradient(145deg, #1A1D22, #0C0D10 75%);
  --home-card-grad-hover: linear-gradient(145deg, #321318, #100C10 75%);
  --home-card-text: #D5D5DB;
  --card-wave-img: url("/assets/img/red-wave.jpg");
  --cta-band-bg: radial-gradient(640px 300px at 95% 0%, rgba(209, 19, 41, 0.22), transparent 62%),
    linear-gradient(135deg, #1B0D12 0%, #171B22 55%, #131720 100%);
  --cta-wave-bg: #05060A url("/assets/img/red-wave.jpg") center bottom / cover no-repeat;
  --cta-wave-overlay: 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-text: #D8D8DE;
  --map-filter: grayscale(1) invert(0.92) contrast(0.9);
  --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;
}

/* Light appearance — manual choice (html[data-theme="light"]). */
html[data-theme="light"] {
  --red-text: #C8102E;
  --bg: #FAFAFB;
  --bg-2: #F0F0F3;
  --charcoal: #E9E9ED;
  --surface: #FFFFFF;
  --surface-2: #F4F4F7;
  --line: rgba(19, 21, 26, 0.10);
  --line-strong: rgba(19, 21, 26, 0.18);
  --field-border: rgba(19, 21, 26, 0.50);
  --red-bright: #C8102E;
  --text: #14161A;
  --text-strong: #0A0B0D;
  --muted: #54555D;
  --muted-bright: #2E2F36;
  --placeholder: #6A6B73;
  --header-bg: rgba(250, 250, 251, 0.88);
  --nav-mobile-bg: rgba(250, 250, 251, 0.98);
  --footer-bg: #EFEFF2;
  --drop-bg: #FFFFFF;
  --drop-shadow: 0 24px 50px rgba(19, 21, 26, 0.16);
  --tip-bg: #14161A;
  --tip-text: #FFFFFF;
  --tip-desc: #C9CAD1;
  --tip-border: rgba(20, 22, 26, 0.85);
  --tip-shadow: 0 12px 32px rgba(19, 21, 26, 0.30);
  --line-hover: rgba(19, 21, 26, 0.40);
  --hover-wash: rgba(19, 21, 26, 0.05);
  --nav-hover-bg: rgba(19, 21, 26, 0.05);
  --hero-bg: #F2F2F5;
  --hero-fade: rgba(242, 242, 245, 0.68);
  --shade-94: rgba(250, 250, 251, 0.94);
  --shade-78: rgba(250, 250, 251, 0.78);
  --shade-25: rgba(250, 250, 251, 0.25);
  --shade-35: rgba(250, 250, 251, 0.35);
  --home-card-grad: linear-gradient(145deg, #FFFFFF, #F1F1F4 75%);
  --home-card-grad-hover: linear-gradient(145deg, #FDF0F0, #FAF5F5 75%);
  --home-card-text: #3F4046;
  --card-wave-img: url("/assets/img/red-wave-light.jpg");
  --cta-band-bg: radial-gradient(640px 300px at 95% 0%, rgba(209, 19, 41, 0.10), transparent 62%),
    linear-gradient(135deg, #FDF1F1 0%, #FFFFFF 55%, #F4F4F7 100%);
  --cta-wave-bg: #F0F0F3 url("/assets/img/red-wave-light.jpg") center bottom / cover no-repeat;
  --cta-wave-overlay: linear-gradient(180deg, rgba(240, 240, 243, 0.93) 0%, rgba(240, 240, 243, 0.74) 55%, rgba(240, 240, 243, 0.5) 100%);
  --cta-wave-text: #2E2F36;
  --map-filter: grayscale(1) contrast(0.95);
  --shadow: 0 24px 60px rgba(19, 21, 26, 0.14);
  color-scheme: light;
}

/* Light appearance — System choice: no data-theme attribute, the OS
   preference decides (this is also the no-JavaScript fallback). */
@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    --red-text: #C8102E;
    --bg: #FAFAFB;
    --bg-2: #F0F0F3;
    --charcoal: #E9E9ED;
    --surface: #FFFFFF;
    --surface-2: #F4F4F7;
    --line: rgba(19, 21, 26, 0.10);
    --line-strong: rgba(19, 21, 26, 0.18);
    --field-border: rgba(19, 21, 26, 0.50);
    --red-bright: #C8102E;
    --text: #14161A;
    --text-strong: #0A0B0D;
    --muted: #54555D;
    --muted-bright: #2E2F36;
    --placeholder: #6A6B73;
    --header-bg: rgba(250, 250, 251, 0.88);
    --nav-mobile-bg: rgba(250, 250, 251, 0.98);
    --footer-bg: #EFEFF2;
    --drop-bg: #FFFFFF;
    --drop-shadow: 0 24px 50px rgba(19, 21, 26, 0.16);
    --tip-bg: #14161A;
    --tip-text: #FFFFFF;
    --tip-desc: #C9CAD1;
    --tip-border: rgba(20, 22, 26, 0.85);
    --tip-shadow: 0 12px 32px rgba(19, 21, 26, 0.30);
    --line-hover: rgba(19, 21, 26, 0.40);
    --hover-wash: rgba(19, 21, 26, 0.05);
    --nav-hover-bg: rgba(19, 21, 26, 0.05);
    --hero-bg: #F2F2F5;
    --hero-fade: rgba(242, 242, 245, 0.68);
    --shade-94: rgba(250, 250, 251, 0.94);
    --shade-78: rgba(250, 250, 251, 0.78);
    --shade-25: rgba(250, 250, 251, 0.25);
    --shade-35: rgba(250, 250, 251, 0.35);
    --home-card-grad: linear-gradient(145deg, #FFFFFF, #F1F1F4 75%);
    --home-card-grad-hover: linear-gradient(145deg, #FDF0F0, #FAF5F5 75%);
    --home-card-text: #3F4046;
    --card-wave-img: url("/assets/img/red-wave-light.jpg");
    --cta-band-bg: radial-gradient(640px 300px at 95% 0%, rgba(209, 19, 41, 0.10), transparent 62%),
      linear-gradient(135deg, #FDF1F1 0%, #FFFFFF 55%, #F4F4F7 100%);
    --cta-wave-bg: #F0F0F3 url("/assets/img/red-wave-light.jpg") center bottom / cover no-repeat;
    --cta-wave-overlay: linear-gradient(180deg, rgba(240, 240, 243, 0.93) 0%, rgba(240, 240, 243, 0.74) 55%, rgba(240, 240, 243, 0.5) 100%);
    --cta-wave-text: #2E2F36;
    --map-filter: grayscale(1) contrast(0.95);
    --shadow: 0 24px 60px rgba(19, 21, 26, 0.14);
    color-scheme: light;
  }
}

*, *::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: var(--text-strong); }
::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: var(--hover-wash); border-color: var(--line-hover); color: var(--text-strong); }
.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: var(--header-bg);
  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; }
/* Theme-variant artwork (v1.1.0): <picture> swaps the logo/globe
   between its dark- and light-appearance renditions — see THEME.md. */
.site-logo picture, .footer-brand picture { display: block; line-height: 0; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.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: var(--text-strong); background: var(--nav-hover-bg); }
.main-nav a.active { color: var(--text-strong); }
.main-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  background: var(--red);
  border-radius: 2px;
}
.header-cta { flex: none; }

/* Appearance selector (v1.1.0): Light / Dark / System. Icon-only pill
   in the header bar on every viewport; the accessible name and the
   visually hidden text label carry the meaning for assistive tech. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.theme-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  flex: none;
}
.theme-opt {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-opt:hover { color: var(--text-strong); }
.theme-opt[aria-pressed="true"] { background: var(--red); color: #fff; }
.theme-opt[aria-pressed="true"]:hover { color: #fff; }

/* Selector tooltips (v1.1.0): each option carries a two-line tooltip
   (title + description) explaining it — most importantly System.
   The tooltip is a pure overlay (absolutely positioned, pointer-events
   none), so it never shifts layout. Colors come from the --tip-*
   tokens and adapt to the active appearance. Visibility is driven by
   the .tip-show class from main.js: mouse hover after a 350 ms intent
   delay, keyboard focus immediately, and a brief flash after a touch
   selection. The description line doubles as the button's
   aria-describedby target, so assistive tech hears the same text.
   See THEME.md. */
.theme-opt { position: relative; }
.theme-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 130;
  width: max-content;
  max-width: min(248px, calc(100vw - 24px));
  padding: 0.55rem 0.7rem 0.6rem;
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
  border-radius: 10px;
  box-shadow: var(--tip-shadow);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;
}
.theme-opt.tip-show .theme-tip {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.12s ease;
}
/* The System button sits at the group's right edge, next to the
   Contact CTA: right-align its tooltip so it cannot spill past the
   viewport edge (checked at desktop and 390 px widths). */
.theme-opt:last-child .theme-tip {
  left: auto;
  right: -8px;
  transform: none;
}
.theme-tip-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--tip-text);
}
.theme-tip-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--tip-desc);
}
@media (prefers-reduced-motion: reduce) {
  .theme-tip, .theme-opt.tip-show .theme-tip { transition: none; }
}
@media (max-width: 640px) {
  /* On narrow screens the selector sits mid-header (logo left, menu
     toggle pushed right), so right-aligning the System tooltip would
     spill it past the left viewport edge (measured -11 px at 390 px).
     Center it on its button like the other two instead. */
  .theme-opt:last-child .theme-tip {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

.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: var(--footer-bg);
  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: var(--text-strong); 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: var(--text-strong); }
.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(--field-border);
  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: var(--placeholder); }
.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, var(--shade-94) 0%, var(--shade-78) 42%, var(--shade-25) 75%, var(--shade-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, background 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: var(--card-wave-img) 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;
}
/* v1.1.1: the red highlight is interaction-only. All feature cards share the
   neutral default treatment; the highlight (red border, ring + glow) applies
   identically on hover — gated to devices with a true hover capability so a
   tap never leaves a card stuck highlighted — and on keyboard focus. */
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-4px);
    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);
    color: var(--text);
  }
}
.feature-card:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  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);
}
.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; }
.service-card:hover .card-link .fas, .market-card:hover .card-link .fas { transform: translateX(3px); }
@media (hover: hover) and (pointer: fine) {
  .feature-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: var(--hover-wash);
  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: var(--cta-band-bg);
  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: var(--text-strong); }

.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: var(--text-strong); }
.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: var(--map-filter); }
.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: var(--nav-mobile-bg);
    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: var(--cta-wave-bg);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-wave::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--cta-wave-overlay);
}
.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: var(--cta-wave-text); 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; }
/* Appearance selector placement on small screens: it stays in the
   header bar (before the menu toggle) so it is reachable with the
   mobile menu closed; targets grow slightly for touch. */
@media (max-width: 980px) {
  .theme-switch { order: 2; }
  .nav-toggle { order: 3; }
  .theme-opt { width: 36px; height: 36px; }
}
@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: var(--drop-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  box-shadow: var(--drop-shadow);
  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: var(--hero-bg); }
  .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, var(--hero-bg) 0%, var(--hero-fade) 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: var(--home-card-grad); }
  @media (hover: hover) and (pointer: fine) {
    .page-home .feature-card:hover { background: var(--home-card-grad-hover); }
  }
  .page-home .feature-card::after { height: 83px; }
  .page-home .feature-card h3 { font-size: 1.45rem; }
  .page-home .feature-card p { color: var(--home-card-text); }
  .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; }
}

/* Large desktop / ultrawide refinement (shipped in v1.0.2, 2026-11-20).
   Diagnosis: the content column is container-relative
   (centered, capped at 1240px), but the homepage hero globe layer was
   viewport-relative — left: 35% of the viewport with the image anchored to
   the viewport's right edge — so as screens widened the globe's visual
   weight drifted ever further right of the content (its layer overshot the
   container's right edge by ~92px at 1440px wide, ~652px at 2560px, and
   ~1092px at 3440px) and the page read as shifted right, with growing
   unused space outside the container. At 1600px and up the content column
   widens modestly and the globe layer is re-anchored to the container: it
   spans from 35% across the container to the container's right edge,
   restoring at large sizes the composition approved at standard widths.
   The ambient hero glows on inner pages are likewise centered near the
   container's right edge instead of the viewport's. Header, hero text,
   feature strip, cards, sections, and footer all share .container, so
   alignment stays consistent everywhere. Nothing at or below 1599px
   changes: standard desktop, tablet, and mobile layouts are untouched. */
/* Seam blend (v1.0.2): the globe image's own background is pure black
   (#000000 at every edge pixel), while the hero section behind the layer is
   #08090b — so where the re-anchored layer now ends at the container's right
   edge, the image's black met the hero background in a hard vertical step.
   A right-edge alpha fade on the layer composites the image and its overlay
   smoothly into the flat hero background behind it; at the layer's right
   edge the composite is exactly #08090b, so no boundary remains at any
   size. Only these large-width blocks are affected: below 1600px the
   layer's right edge is the viewport edge and nothing changes.
   Appearance modes (v1.1.0): the same holds in the Light appearance —
   the hero background there is the --hero-bg token (#F2F2F5) and the
   light globe rendition (hero-globe-light.jpg) is baked on exactly that
   tone, so the faded composite lands on the same color. */
@media (min-width: 1600px) {
  .container { width: min(1440px, 100% - 3rem); }
  .page-home .hero-media { left: calc(50% - 216px); right: calc(50% - 720px); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 76%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 76%, transparent 100%); }
  .page-hero { background: radial-gradient(760px 380px at calc(50% + 640px) 0%, rgba(209, 19, 41, 0.12), transparent 60%), var(--bg-2); }
  .cs-hero { background: radial-gradient(760px 380px at calc(50% + 640px) 0%, rgba(209, 19, 41, 0.14), transparent 60%), var(--bg-2); }
  .contact-hero { background: radial-gradient(760px 380px at calc(50% + 640px) 0%, rgba(209, 19, 41, 0.12), transparent 60%), var(--bg-2); }
}
/* Hero vertical fit (shipped in v1.0.3, 2026-11-20).
   At 2560px and up the globe layer widens to 1014px while the hero's
   height stays content-driven at 498px, so the layer's aspect reaches
   2.04 against the 16:9 image: object-fit: cover scales the image to the
   layer's width (rendered height 570px) and the hero window shows only
   the middle 87.4% of the frame, clipping ~15px off the top and ~41px
   off the bottom of the globe itself (the globe spans y 53-1053 of the
   1080px frame). In the 1600-2559 band the layer is 936px wide (aspect
   1.88, 94.6% of the frame visible) and the globe fits — that approved
   composition is the invariant to restore: the layer's aspect must stay
   at or below ~1.87 so at least 95% of the frame height is visible.
   Because the layer's width is fixed at 1014px throughout this band,
   the durable correction is a floor on the hero's height: 560px puts
   the layer at 1014x560 (aspect 1.81, 98.2% of the frame visible), so
   the whole globe renders with margin, at the image's unchanged scale,
   and the hero grows by 62px only. The hero becomes a flex row so the
   text block stays vertically centered against the globe, exactly as
   in the approved standard-width composition. Nothing at or below
   2559px changes, and the v1.0.2 right-edge seam mask is untouched. */
@media (min-width: 2560px) {
  .container { width: min(1560px, 100% - 3rem); }
  .page-home .hero { min-height: 560px; display: flex; align-items: center; }
  .page-home .hero-media { left: calc(50% - 234px); right: calc(50% - 780px); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 76%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 76%, transparent 100%); }
  .page-hero { background: radial-gradient(760px 380px at calc(50% + 700px) 0%, rgba(209, 19, 41, 0.12), transparent 60%), var(--bg-2); }
  .cs-hero { background: radial-gradient(760px 380px at calc(50% + 700px) 0%, rgba(209, 19, 41, 0.14), transparent 60%), var(--bg-2); }
  .contact-hero { background: radial-gradient(760px 380px at calc(50% + 700px) 0%, rgba(209, 19, 41, 0.12), transparent 60%), var(--bg-2); }
}
/* Hero vertical fit, 981-1599px (shipped in v1.0.3, 2026-11-20): the same
   invariant as the >=2560px floor above, expressed for
   the band where the globe layer is still viewport-anchored. Below 1600px
   the layer sits at left: 35% of the hero, so its width is 65% of the
   viewport (822px at 1280px wide, 926px at 1440px, 1030px at 1599px),
   while the hero's height is content-driven and grows far more slowly
   (447px, 476px, 498px at the same widths). The layer's aspect therefore
   climbs with viewport width — 1.84 at 1280px, 1.94 at 1440px, 2.07 at
   1599px — past the ~1.87 threshold the approved composition establishes,
   and object-fit: cover crops the frame's top and bottom: the globe
   (source y 53-1053 of 1080) loses ~7 source px at 1366px wide, ~19px at
   1440px, and ~22px top / ~48px bottom at 1599px — the worst point in the
   band, immediately before the 1600px breakpoint snaps the layer back to
   its fixed 936px width. The durable correction is one formula, not
   per-width patches: a floor on the hero's height derived from the
   layer's width — min-height: calc(65vw / 1.86) — so the layer's aspect
   can never exceed 1.86 anywhere in the band and at least 95.6% of the
   frame height is always visible, with the whole globe inside it. (65vw
   slightly overstates the layer's width — the layer is 65% of the hero,
   and the hero is a scrollbar narrower than the viewport — so the floor
   errs on the safe side.) Where the content-driven height already
   exceeds the floor, nothing changes; at 1599px the floor reaches 559px,
   meeting the >=2560px band's 560px floor. Flex centering matches the
   >=2560px band, keeping the text block vertically centered against the
   globe when the floor binds. The 1600-2559 band needs no floor: its
   layer is fixed at 936px and the content-driven 498px height already
   satisfies the invariant within the approved ~2px rim. Nothing at
   1600px or above, and nothing below 981px, is affected — the approved
   1920px composition is untouched, and the v1.0.2 seam mask (which
   exists only at >=1600px, where the layer's right edge sits inside
   the viewport) is not involved in this band. Expected hero behavior
   across all bands is documented in qa/HERO_BEHAVIOR.md. */
@media (min-width: 981px) and (max-width: 1599.98px) {
  .page-home .hero { min-height: calc(65vw / 1.86); display: flex; align-items: center; }
}
