/* ==========================================================================
   Pump It Up Media — "Onyx & Gilt" (Onyx ink on ivory bone, engraved gilt)
   Static, self-contained. No webfonts, no CDNs.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Color — bone-white marble, black lacquer, engraved gold */
  --bg: #F2EDE3;
  --bg-alt: #E8E1D2;
  --bg-vignette: #E8E1D2;
  --surface: #FAF6EE;            /* bone panel */
  --surface-solid: #FAF6EE;
  --onyx: #1B1915;
  --accent: #A88A4A;            /* gilt — HAIRLINES / LARGE strokes ONLY */
  --accent-deep: #7C5E1E;       /* the only gold safe for small text on light */
  --amber: #A88A4A;             /* legacy alias → gilt (used only on dark/large) */
  --text-1: #1B1915;
  --text-2: #57503F;
  --on-primary: #FAF6EE;        /* label on onyx */
  --on-onyx: #FAF6EE;
  --hairline: rgba(27, 25, 21, 0.16);
  --ghost-border: rgba(27, 25, 21, 0.28);

  /* Gradients — the gilt gradient is reserved for ONE hero underline only */
  --grad: linear-gradient(135deg, #8C6E2A 0%, #E3C784 50%, #7C5E1E 100%);
  --grad-border: linear-gradient(160deg, rgba(27,25,21,.16), rgba(27,25,21,.06) 40%, rgba(27,25,21,.16));
  --shadow: 0 26px 64px -30px rgba(27,25,21,0.34), 0 6px 18px -10px rgba(27,25,21,0.20);

  /* Shape & rhythm — architectural, not bubbly */
  --radius: 6px;
  --radius-sm: 5px;
  --container: 1180px;
  --section-gap: 120px;

  /* Type — engraved contrast: Bodoni/Didot display + Optima/Gill Sans body */
  --font-display: "Bodoni 72", "Didot", Baskerville, "Baskerville Old Face", "Big Caslon", "Times New Roman", serif;
  --font-body: "Optima", Candara, "Gill Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  /* clip (not hidden) avoids creating a scroll container while killing
     sideways overflow from decorative absolutely-positioned shapes */
  overflow-x: clip;
}

body {
  background-color: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* Visible focus — never removed. Dual ring reads on BOTH bone and onyx:
   the onyx outline carries on beige/bone, the gilt halo carries on onyx. */
:focus-visible {
  outline: 2px solid #1B1915;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(168, 138, 74, 0.55);
  border-radius: 4px;
}

::selection { background: rgba(168, 138, 74, 0.30); color: #1B1915; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--surface-solid);
  color: var(--text-1);
  padding: 10px 18px;
  border-radius: 5px;
  border: 1px solid var(--ghost-border);
  transition: top 150ms var(--ease-out);
}
.skip-link:focus { top: 16px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, .section-title {
  font-family: var(--font-display);
  font-weight: 400;              /* high-contrast serif carries the weight */
  text-transform: none;          /* Title Case, never all-caps headlines */
  letter-spacing: -0.015em;
  line-height: 1.04;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-deep);     /* deep gilt — passes AA on bone */
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 18ch;
}

/* Emphasis phrase: SOLID deep-gilt fill on light backgrounds — never clip
   the gilt gradient onto text over beige (the #E3C784 midstop drops below AA).
   Stays real, selectable, legible even without background-clip support. */
.grad-text {
  color: var(--accent-deep);
}

.text-link {
  color: var(--accent-deep);
  text-underline-offset: 3px;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 150ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

/* Primary: solid onyx with a 1px gilt inner hairline — no glow, only shadow */
.btn-primary {
  background: var(--onyx);
  color: var(--on-onyx);
  box-shadow: inset 0 0 0 1px rgba(168, 138, 74, 0.5), var(--shadow);
}
.btn-primary:hover {
  box-shadow: inset 0 0 0 1px rgba(168, 138, 74, 0.9),
              0 30px 70px -28px rgba(27,25,21,0.42), 0 8px 20px -10px rgba(27,25,21,0.24);
}

/* Secondary: onyx hairline outline, fills to onyx with bone text on hover */
.btn-ghost {
  border-color: var(--onyx);
  color: var(--text-1);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--onyx);
  color: var(--on-onyx);
  border-color: var(--onyx);
}

.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Bone panels (formerly glass) ----------
   Crisp bone panels on the beige field: solid bone fill, a precise 1px
   onyx-tint hairline, and the deep-but-soft onyx shadow. No blur, no
   gradient border. Opaque bone fill is the BASE state at every viewport. */
.glass {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* The hero dashboard mock is the ONE onyx object — the black-lacquer jewel. */
.dash.glass {
  background: var(--onyx);
  border: 1px solid rgba(168, 138, 74, 0.45);
}
/* Floating chips: bone surface, onyx hairline, soft shadow. */
.chip.glass {
  background: var(--surface);
  border: 1px solid var(--hairline);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 14px 16px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  padding: 10px 12px 10px 20px;
  border-radius: var(--radius);
  background: rgba(250, 246, 238, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid transparent;
  transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.site-header.scrolled .nav-pill {
  border-color: var(--hairline);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  line-height: 1;
}
.brand-name-light { color: var(--text-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav-link {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.nav-link:hover { color: var(--text-1); background: rgba(27, 25, 21, 0.06); }
.nav-link.active {
  background: var(--onyx);
  color: var(--on-onyx);
  font-weight: 600;
}

.nav-cta { flex-shrink: 0; padding: 12px 22px; font-size: 0.88rem; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--ghost-border);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}
.menu-bar {
  display: block;
  width: 100%; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(242, 237, 227, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  text-align: center;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
}
/* Author `display: flex` above beats the UA `[hidden] { display: none }`
   rule, so the closed state MUST be restored explicitly — without this the
   invisible overlay sits over the whole page and swallows every click. */
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { opacity: 1; }
.mobile-menu nav {
  /* margin:auto centering is clip-safe: on short (landscape) viewports the
     nav top-aligns and the overlay scrolls instead of clipping items. */
  margin: auto;
  padding: 88px 24px 48px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.mobile-links { display: grid; gap: 8px; margin-bottom: 22px; }
.mobile-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.015em;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  padding: 10px 22px;
  border-radius: var(--radius);
  color: var(--text-1);
}
.mobile-link:hover, .mobile-link.active { color: var(--accent-deep); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  /* Static atmosphere: soft onyx vignette top-left + pale gold-leaf radial
     right, over the beige field. No motion. */
  background:
    radial-gradient(900px 620px at 16% 12%, rgba(27,25,21,0.05) 0%, transparent 60%),
    radial-gradient(820px 640px at 88% 34%, rgba(168,138,74,0.08) 0%, transparent 62%),
    var(--bg);
  overflow: hidden;
}

/* Atmosphere layer — static. Orbs become near-invisible marble washes;
   ::after draws a single thin gilt arc, like inlaid brass in a marble floor. */
.ember-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ember-field::after {
  content: "";
  position: absolute;
  width: 1200px; height: 1200px;
  right: -360px; top: -420px;
  border-radius: 50%;
  border: 1px solid rgba(168, 138, 74, 0.40);
  -webkit-mask: linear-gradient(200deg, #000 0%, #000 42%, transparent 62%);
  mask: linear-gradient(200deg, #000 0%, #000 42%, transparent 62%);
}
.orb {
  position: absolute;
  border-radius: 50%;
}
.orb-1 {
  width: 560px; height: 560px;
  left: -140px; top: -80px;
  background: radial-gradient(circle, rgba(27,25,21,.05) 0%, rgba(27,25,21,.02) 45%, transparent 70%);
}
.orb-2 {
  width: 680px; height: 680px;
  right: -220px; top: 8%;
  background: radial-gradient(circle, rgba(168,138,74,.09) 0%, rgba(168,138,74,.03) 45%, transparent 70%);
}
.orb-3 {
  width: 420px; height: 420px;
  left: 34%; bottom: -180px;
  background: radial-gradient(circle, rgba(168,138,74,.06) 0%, rgba(168,138,74,.02) 45%, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.02;
  margin-bottom: 26px;
}
.hero-headline .line { display: block; }
/* The gilt gradient appears exactly once site-wide: a thin gilded underline
   beneath the emphasized hero phrase. */
.hero-headline .grad-text {
  position: relative;
  display: inline-block;
}
.hero-headline .grad-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.hero-sub {
  color: var(--text-2);
  font-size: 1.08rem;
  max-width: 54ch;
  margin-bottom: 34px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Dashboard mock */
.hero-visual { position: relative; }
.dash-scene {
  position: relative;
  perspective: 1200px;
}
.dash {
  position: relative;
  padding: 22px 22px 18px;
  transform: rotateY(-4deg) rotateX(2deg);
  transform-style: preserve-3d;
  box-shadow: var(--shadow);
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.6);
}
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);           /* gilt on onyx ≈ 5:1, passes */
  border: 1px solid rgba(168, 138, 74, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);      /* calm solid gold dot — no pulse */
}
.dash-chart { width: 100%; height: auto; border-radius: var(--radius-sm); }
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.dash-metric {
  background: rgba(250, 246, 238, 0.05);
  border: 1px solid rgba(168, 138, 74, 0.18);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}
.dash-metric-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250, 246, 238, 0.6);
}
.dash-metric-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--on-onyx);          /* bone Bodoni metric values */
}

/* Floating chips */
.chip:empty { display: none; } /* no-JS: hide empty chip shells */
.chip {
  position: absolute;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.chip-icon { color: var(--accent-deep); font-weight: 700; }
.chip-1 { top: -22px; right: 8%; transform: translateZ(60px); }
.chip-2 { bottom: -20px; left: -4%; transform: translateZ(90px); }

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 30px 0;
  background: var(--bg-alt);
}
.trust-line {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-2);
  text-align: center;
}
.trust-mark { color: var(--accent-deep); margin-right: 10px; }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section {
  position: relative;
  padding: var(--section-gap) 0;
  /* contain decorative heat rings without creating scroll containers */
  overflow-x: clip;
}
.section-head { margin-bottom: 56px; }

/* Conic "heat ring" dividers — decorative */
.heat-ring {
  position: absolute;
  width: 520px; height: 520px;
  left: -260px; top: -160px;
  border-radius: 50%;
  /* Engraved compass line — a faint gilt conic fade masked to one crisp ring */
  background: conic-gradient(from 120deg, transparent 0%, rgba(168,138,74,.10) 20%, transparent 45%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 61%, transparent 63%);
  mask: radial-gradient(circle, transparent 58%, #000 60%, #000 61%, transparent 63%);
  pointer-events: none;
}
.heat-ring-right { left: auto; right: -260px; top: auto; bottom: -160px; transform: rotate(180deg); }

/* Generic card */
.card {
  padding: 32px 28px;
  height: 100%;
}
.card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.card p { color: var(--text-2); font-size: 0.95rem; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Static architectural panel — no tilt. transform is forced off so the
     shared JS pointer handler (js/main.js, left intact) cannot tilt the card;
     the specular sweep and 3D are retired in the re-skin. */
  transform: none !important;
  transition: box-shadow 200ms var(--ease-out), border-top-color 200ms var(--ease-out);
}
/* Hover = top hairline thickens into a gilt rule + shadow deepens 1px lift */
.service-card:hover {
  border-top: 1.5px solid var(--accent-deep);
  box-shadow: 0 30px 70px -28px rgba(27,25,21,0.40), 0 8px 20px -10px rgba(27,25,21,0.24);
}

/* SIGNATURE MOVE — the black-lacquer accent: exactly one card in this section
   inverts to solid onyx with bone text and a gilt hairline, so the bone
   panels around it read as marble. */
.services-grid .service-card:last-child {
  background: var(--onyx);
  border-color: rgba(168, 138, 74, 0.45);
}
.services-grid .service-card:last-child h3 { color: var(--on-onyx); }
.services-grid .service-card:last-child p { color: rgba(250, 246, 238, 0.72); }
.services-grid .service-card:last-child .coin {
  color: var(--accent);
  border-color: rgba(168, 138, 74, 0.55);
}
.services-grid .service-card:last-child .outcome-label { color: rgba(250, 246, 238, 0.6); }
.services-grid .service-card:last-child .outcome {
  color: var(--accent) !important;      /* gilt on onyx passes */
  border-top-color: rgba(168, 138, 74, 0.22);
}
.services-grid .service-card:last-child:hover {
  border-top: 1.5px solid var(--accent);
}

/* Coin: thin gold-engraved square — transparent fill, 1px gilt border,
   onyx icon, no inset glow. */
.coin {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--onyx);
  background: transparent;
  border: 1px solid var(--accent);
}
.coin svg { width: 26px; height: 26px; }

.outcome {
  margin-top: auto; /* flex push-to-bottom of the service card */
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem !important;
  line-height: 1.55;
  color: var(--accent-deep) !important;
  border-top: 1px solid var(--hairline);
}
.service-card > p:not(.outcome) { margin-bottom: 18px; }
.outcome-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 5px;
}

/* ==========================================================================
   STATS BAND
   ========================================================================== */
.stats-band { overflow: hidden; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat {
  text-align: left;
  padding: 30px 26px;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  color: var(--onyx);            /* ink-black numbers for max gravitas */
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.stat-underline {
  display: block;
  position: relative;
  width: 56px; height: 2px;
  margin: 14px 0;
  border-radius: 2px;
  overflow: hidden;
}
/* Static gilt rule — no shimmer */
.stat-underline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
}
.stat-label { color: var(--text-2); font-size: 0.92rem; }

.placeholder-note {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process-card { position: relative; }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 16px;
}

/* ==========================================================================
   CASE STUDIES
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-card { display: flex; flex-direction: column; }
.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.case-card h3 { font-size: 1rem; margin-bottom: 16px; }
.case-block { margin-bottom: 14px; }
.case-block dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
  margin-bottom: 4px;
}
.case-block dd { color: var(--text-2); font-size: 0.93rem; }
.case-result {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.case-result dd {
  font-family: var(--font-mono);
  color: var(--accent-deep);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote-card { display: flex; flex-direction: column; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.quote-card blockquote p {
  color: var(--text-1);
  font-size: 1.02rem;
  line-height: 1.6;
}
.quote-attr {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
}
.quote-attr strong { color: var(--text-1); font-weight: 600; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.team-card { text-align: left; }
.avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--on-onyx);
  background: var(--onyx);
  box-shadow: inset 0 0 0 1px rgba(168, 138, 74, 0.45), var(--shadow);
}
.team-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.team-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep) !important;
  margin-bottom: 14px;
}
.team-bio { font-size: 0.9rem; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta { padding-bottom: 140px; }
/* SIGNATURE MOVE — the CTA panel is the section's black-lacquer accent:
   solid onyx with bone text and a gilt hairline frame. */
.cta-panel {
  position: relative;
  text-align: center;
  padding: 72px 32px;
  overflow: hidden;
  background: var(--onyx);
  border: 1px solid rgba(168, 138, 74, 0.45);
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(600px 320px at 50% 0%, rgba(168, 138, 74, 0.12), transparent 65%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel .eyebrow { color: var(--accent); }   /* gilt on onyx passes */
.cta-panel .section-title {
  margin-inline: auto;
  margin-bottom: 20px;
  color: var(--on-onyx);
}
.cta-panel .grad-text { color: var(--accent); }  /* gilt word on onyx */
.cta-sub {
  color: rgba(250, 246, 238, 0.75);
  max-width: 56ch;
  margin: 0 auto 34px;
}
.cta-note { margin-top: 22px; font-size: 0.9rem; color: rgba(250, 246, 238, 0.7); }
.cta-note .text-link { color: var(--accent); }
/* Primary button re-inverts on the onyx panel: bone fill, onyx label */
.cta-panel .btn-primary {
  background: var(--on-onyx);
  color: var(--onyx);
  box-shadow: inset 0 0 0 1px rgba(168, 138, 74, 0.5), var(--shadow);
}
.cta-panel .btn-primary:hover {
  box-shadow: inset 0 0 0 1px rgba(124, 94, 30, 0.9),
              0 30px 70px -28px rgba(27,25,21,0.5), 0 8px 20px -10px rgba(27,25,21,0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 36px;
  background: var(--bg-alt);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand { max-width: 340px; display: grid; gap: 12px; justify-items: start; }
.footer-tagline { color: var(--text-2); font-size: 0.95rem; }
.footer-area {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.footer-email { font-size: 0.95rem; }
.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
}
.footer-nav a {
  color: var(--text-2);
  font-size: 0.93rem;
  transition: color 150ms var(--ease-out);
}
.footer-nav a:hover { color: var(--text-1); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 0.84rem;
}
.footer-legal a { color: var(--text-2); }
.footer-legal a:hover { color: var(--text-1); text-decoration: underline; }

/* ==========================================================================
   LEGAL PAGES (privacy.html / terms.html)
   ========================================================================== */
.legal-page {
  max-width: 760px;
  margin-inline: auto;
  padding: 96px 24px 96px;
}
.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}
.legal-page h2 {
  font-size: 1.02rem;
  margin: 40px 0 12px;
}
.legal-page p,
.legal-page li {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 12px;
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}
.legal-back { display: inline-block; margin-bottom: 40px; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
/* Hidden state only applies when JS is running (html.js set inline in <head>) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* No-JS fallback: these four sections are populated entirely from
   js/placeholder-data.js — without JS they would render as headings above
   empty grids, so hide them instead. */
html:not(.js) #results,
html:not(.js) #case-studies,
html:not(.js) #testimonials,
html:not(.js) #team { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  /* The full nav pill (brand + 5 links + CTA) needs ~945px of width —
     collapse to the hamburger BEFORE it can overflow the viewport. */
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 900px) {
  :root { --section-gap: 72px; }

  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 460px; }
  .dash { transform: rotateY(-4deg) rotateX(2deg); }
  .orb-3 { display: none; } /* 2 orbs on mobile */

  .cases-grid, .quotes-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Uppercase display legibility at small sizes */
  h1, h2, h3, .section-title { letter-spacing: 0; }
}

@media (max-width: 600px) {
  .services-grid, .team-grid, .process-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .chip-1 { right: 0; }
  .chip-2 { left: 0; }
  .cta-panel { padding: 56px 22px; }
  .footer-top { flex-direction: column; }
}

/* ==========================================================================
   REDUCED MOTION — global freeze to final state
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .dash { transform: rotateY(-4deg) rotateX(2deg); }
  .stat-underline::before { animation: none; transform: none; }
  .pulse { animation: none; }
  .orb { animation: none; }
}
