/* Homepage Full — page section styles
   Companion to heroes/hero-shared.css. CSS vars (--primary, --accent, etc.)
   are inherited from there. This file styles every section BELOW the hero. */

html, body {
  margin: 0; padding: 0;
  background: var(--primary);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

* { box-sizing: border-box; }

.page-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

/* --- 2026 redesign integration overrides ----------------------------------
 * The existing site uses `.container` (same shape as `.page-container`) as
 * its inner-width wrapper. Earlier critical CSS in index.html sets a
 * `.banner .container { display: grid; grid-template-columns: 2fr 1fr; }`
 * rule that was meant for the legacy banner layout. The new editorial
 * banner is a single column with its own internal grids, so we reset it. */
.banner > .container,
.contact > .container {
  display: block;
}

/* The hero mount needs to render at full-width even though our content is
   capped at 1440. The HeroCombined component has its own 1440 frame; we
   center it. */
.hero-mount {
  width: 100%;
  display: flex;
  justify-content: center;
  background: var(--primary);
}

/* ---------- BANNER ("Sound Familiar?" — compact editorial) ---------- */
.banner {
  background: var(--secondary);
  padding: 72px 0;
  position: relative;
  /* overflow visible so the flip card's hover-scale can lift past the
     section edge without being clipped. */
  overflow: visible;
}
.banner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-highlight) 30%, var(--border-highlight) 70%, transparent);
}
.banner-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 10% 30%, rgba(6,182,212,0.05), transparent 60%),
    radial-gradient(ellipse 45% 50% at 95% 80%, rgba(245,158,11,0.03), transparent 60%);
}

.banner-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}
.banner-eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.banner-eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--accent);
}
.banner-index {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Upper layout — statement (left) + flip card (right). Right column is
   wider than the card itself so the card can sit visually centred in its
   space rather than pinned to the page edge. */
.banner-upper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.banner-statement {
  margin: 0;
  position: relative;
}
.banner-statement .line {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 200;
  line-height: 1.18;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  margin: 0;
}
.banner-statement .line em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-gold);
}
.banner-statement .line.muted {
  color: var(--text-secondary);
  font-weight: 200;
}
.banner-statement .line + .line { margin-top: 24px; }
.banner-statement .line.indent-1 { padding-left: 6%; }

.banner-flip {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  position: relative;
}

/* Outer wrapper for the flip card — handles hover lift + scale via :hover
   (NOT React state, so the transition can't be interrupted by re-renders
   from the IntersectionObserver auto-flip effect). */
.banner-flip-outer {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s ease;
  z-index: 1;
  will-change: transform, filter;
}
.banner-flip-outer:hover {
  transform: scale(1.12) translateY(-8px);
  z-index: 50;
  filter: drop-shadow(0 36px 80px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 30px rgba(6, 182, 212, 0.22));
}

/* ---- banner flip card — inner anatomy (vanilla JS component) ---- */
.banner-flip-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1400px;
}
.banner-flip-halo {
  position: absolute;
  inset: 12px;
  box-shadow: 0 0 0 1px rgba(6,182,212,0.05),
              0 20px 60px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 0;
}
.banner-flip-scanline {
  position: absolute;
  top: 8px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, #06b6d4 35%, #f59e0b 50%, #06b6d4 65%, transparent);
  pointer-events: none;
  z-index: 2;
}
.banner-flip-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(6, 182, 212, 0.55);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.banner-flip-corner--tl { top: 0; left: 0;     border-width: 1px 0 0 1px; }
.banner-flip-corner--tr { top: 0; right: 0;    border-width: 1px 1px 0 0; }
.banner-flip-corner--bl { bottom: 0; left: 0;  border-width: 0 0 1px 1px; }
.banner-flip-corner--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.banner-flip-tick {
  /* Float above the card frame as a centred state caption — clear of the
     corner brackets, the scanline, and the top-right "handoffs" sub-label.
     Balances the "Tap to see after" hint that sits below the card. */
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.75);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  pointer-events: none;
  z-index: 2;
}
.banner-flip-tick--left,
.banner-flip-tick--right { left: 0; right: 0; }

/* The card — flips on Y-axis */
.banner-flip-card {
  position: absolute;
  top: 16px; left: 16px; right: 16px; bottom: 16px;
  transform-style: preserve-3d;
  transition: transform 0.95s cubic-bezier(0.7, 0, 0.3, 1);
}
.banner-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,14,26,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.banner-flip-face--back {
  transform: rotateY(180deg);
}
.banner-flip-pane-label {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  z-index: 3;
}
.banner-flip-pane-label--accent { color: #06b6d4; }
.banner-flip-pane-sublabel {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted, #64748b);
  letter-spacing: 0.5px;
  z-index: 3;
}
.banner-flip-hint {
  position: absolute;
  bottom: -28px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(148,163,184,0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
}

/* Reduced motion — disable the flip + particle / line drift */
@media (prefers-reduced-motion: reduce) {
  .banner-flip-card,
  .banner-flip-outer {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- UNIFIED STAT TILE (used in banner + transformation) ---------- */
.stat-row {
  display: grid;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

.stat-cell {
  padding: 32px 28px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .3s ease;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(6,182,212,0.04); }
.stat-cell .stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-cell .stat-num {
  font-size: 38px;
  font-weight: 200;
  color: var(--accent);
  letter-spacing: -1.2px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-cell .stat-num .stat-suffix {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0;
}
.stat-cell .stat-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 300;
  margin: 0;
}

/* ---------- CASES (4 problem cards with hover reveal) ---------- */
.cases {
  padding: 160px 0;
  background: var(--primary);
}
.cases .section-header { margin-bottom: 80px; max-width: 800px; }
.section-header h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 200;
  letter-spacing: -2px;
  margin: 0 0 20px;
  line-height: 1.05;
}
.section-header p {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}
.section-eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px;
  display: inline-block;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.case-study { position: relative; }
.case-category {
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.case-image-container {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.case-overlay {
  position: absolute; inset: 0;
  /* Top-anchored dark wash for legibility of the title + gold result line
     (which sit near the top), layered over the diagonal brand tint. */
  background:
    linear-gradient(180deg,
      rgba(10,14,26,0.86) 0%,
      rgba(10,14,26,0.45) 38%,
      rgba(10,14,26,0.0) 70%),
    linear-gradient(135deg,
      rgba(10,14,26,0.55) 0%,
      rgba(26,31,46,0.45) 30%,
      rgba(6,182,212,0.28) 60%,
      rgba(10,14,26,0.45) 100%);
  transition: background .3s ease;
}
.case-content {
  position: absolute; top: 32px; left: 32px; right: 32px;
  z-index: 2;
  transition: opacity .4s ease;
  pointer-events: none;
}
.case-title {
  color: var(--text-primary);
  font-size: 30px; font-weight: 300; letter-spacing: -0.5px;
  margin: 0 0 14px; line-height: 1.15;
}
.case-result {
  color: var(--accent-gold);
  font-size: 15px; line-height: 1.5;
  margin: 0;
}
.case-detail-overlay {
  position: absolute; inset: 0;
  background: rgba(10,14,26,0.96);
  backdrop-filter: blur(20px);
  padding: 32px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .55s cubic-bezier(.25,.46,.45,.94);
}
/* Desktop (mouse) reveal — horizontal wipe on hover. */
.case-study:hover .case-image-container { transform: scale(1.01); }
.case-study:hover .case-content { opacity: 0; }
.case-study:hover .case-detail-overlay { clip-path: inset(0 0 0 0); }

/* ---- Mobile cards (<=900px): reveal vertically, top -> bottom ----
   Collapsed, the detail is clipped from the BOTTOM, so tap/scroll (and a
   narrow-window mouse hover) wipe it in downward instead of sideways. The
   .cases prefix raises specificity so the active states beat the shared
   :hover rules from styles-homepage.css. Width-gated (not hover-gated) so it
   also applies in device-emulation / responsive previews. */
@media (max-width: 900px) {
  .case-detail-overlay { clip-path: inset(0 0 100% 0); }

  .cases .case-study.touch-active .case-detail-overlay,
  .cases .case-study.auto-flip-active .case-detail-overlay {
    position: relative;
    clip-path: inset(0 0 0 0);
  }
  .cases .case-study.touch-active .case-content,
  .cases .case-study.auto-flip-active .case-content { opacity: 0; }
  .cases .case-study.touch-active .case-image-container,
  .cases .case-study.auto-flip-active .case-image-container { aspect-ratio: unset; }
}

/* On touch, :hover STICKS after a tap and would pin the detail open while a tap
   only toggles height (the desync bug). Neutralise hover on touch so the
   tap/scroll classes alone drive the card. The .cases-prefixed active rules
   above (higher specificity) still win when a card is open. */
@media (hover: none) {
  .case-study:hover .case-detail-overlay { position: absolute; clip-path: inset(0 0 100% 0); }
  .case-study:hover .case-content { opacity: 1; }
  .case-study:hover .case-image-container { aspect-ratio: 16 / 10; transform: none; }
}
.detail-content {
  height: 100%;
  display: flex; flex-direction: column;
  gap: 16px;
}
.detail-title {
  font-size: 22px; font-weight: 400;
  color: var(--accent-gold);
  letter-spacing: -0.3px; line-height: 1.2;
  margin: 0;
}
.detail-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.case-cta-button {
  display: inline-block;
  margin-top: auto;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  align-self: flex-start;
  transition: background .3s ease, transform .3s ease;
}
.case-cta-button:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
}

/* ---------- SERVICES (4 numbered service cards: "How We Work") ---------- */
.services {
  padding: 160px 0;
  background: var(--secondary);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}
.service-card {
  background: var(--secondary);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background .4s cubic-bezier(.25,.46,.45,.94),
              transform .4s cubic-bezier(.25,.46,.45,.94);
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-subtle), transparent);
  opacity: 0;
  transition: opacity .8s ease;
}
.service-card:hover { background: rgba(26,31,46,0.6); transform: scale(1.02); z-index: 1; }
.service-card:hover::before { opacity: 1; }
.service-number {
  font-size: 13px; font-weight: 500;
  color: var(--accent-gold);
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.service-title {
  font-size: 22px; font-weight: 300;
  margin: 0 0 16px;
  letter-spacing: -0.4px;
  line-height: 1.25;
}
.service-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---------- ASSESSMENT TEASER ---------- */
.assessment-teaser {
  padding: 120px 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.assessment-teaser::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6,182,212,0.06), transparent 60%);
  pointer-events: none;
}
.assessment-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.assessment-inner h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 200; letter-spacing: -1.5px;
  margin: 0 0 20px;
  line-height: 1.1;
}
.assessment-inner h2 em {
  color: var(--accent-gold); font-style: italic; font-weight: 300;
}
.assessment-inner p {
  font-size: 18px; color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 40px;
}
.assessment-inner .btn-ghost {
  padding: 18px 36px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 15px; font-weight: 500; letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  transition: background .3s ease, color .3s ease;
}
.assessment-inner .btn-ghost:hover {
  background: var(--accent); color: var(--primary);
}
.assessment-meta {
  display: flex; gap: 24px;
  justify-content: center;
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.assessment-meta span { display: inline-flex; align-items: center; gap: 8px; }
.assessment-meta span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 160px 0;
  /* Elevated a touch above --primary (#0a0e1a) so the final CTA separates
     from the assessment teaser above and the (darker) footer below. */
  background: #0e1322;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-header { margin-bottom: 64px; }
.contact-title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 200; letter-spacing: -2px;
  margin: 0 0 24px;
  color: var(--accent-gold);
  line-height: 1.05;
}
.contact-subtitle {
  font-size: 19px; color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-method {
  border: 1px solid var(--border);
  padding: 40px 28px;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.012);
  transition: background .3s, border-color .3s, transform .3s;
}
.contact-method:hover {
  background: rgba(6,182,212,0.05);
  border-color: rgba(6,182,212,0.35);
  transform: translateY(-4px);
}
.contact-method-label {
  font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.contact-method-title {
  font-size: 20px; font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  line-height: 1.25;
}
.contact-method-sub {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}
.contact-method-cta {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  /* Element resets — this rule is shared by <a> and <button>; without these,
     buttons inherit the browser default light bg + 1px border. */
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color .25s ease, transform .25s ease;
}
.contact-method-cta:hover {
  color: var(--accent-gold);
  transform: translateX(2px);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 80px 0 40px;
  /* Darker than --primary to anchor the page bottom, with a crisper hairline
     so it reads as a distinct footer rather than bleeding from the contact CTA. */
  background: #070a12;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 64px;
}
.footer-brand {
  font-size: 22px; font-weight: 300;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}
.footer-description {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}
.footer-column h4 {
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}
.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color .3s ease;
}
.footer-column a:hover { color: var(--text-primary); }
.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center;
  font-size: 13px; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 32px; }
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .3s ease;
}
.footer-legal a:hover { color: var(--text-primary); }

/* ---------- General CTA buttons used inline ---------- */
.btn-primary {
  padding: 16px 32px;
  background: var(--accent);
  color: var(--primary);
  font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  transition: background .3s ease;
}
.btn-primary:hover { background: var(--accent-gold); }

/* ============================================================
   RESPONSIVE  ·  ≤ 900px
   ============================================================ */
@media (max-width: 900px) {
  .page-container { padding: 0 24px; }

  /* Banner */
  .banner { padding: 56px 0; }
  .banner-meta { flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 28px; }
  .banner-upper {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 32px;
  }
  .banner-flip { max-width: 380px; margin: 0 auto; }
  .banner-statement .line { font-size: clamp(22px, 7vw, 32px); letter-spacing: -0.6px; }
  .banner-statement .line + .line { margin-top: 18px; }
  .banner-statement .line.indent-1 { padding-left: 0; }
  .stat-row.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row.cols-3 { grid-template-columns: 1fr; }
  .stat-cell {
    padding: 22px 20px;
    border-right: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border);
  }
  .stat-row.cols-4 .stat-cell:nth-child(2n) { border-right: none !important; }
  .stat-row.cols-4 .stat-cell:nth-last-child(-n+2) { border-bottom: none; }
  .stat-row.cols-3 .stat-cell { border-right: none !important; }
  .stat-row.cols-3 .stat-cell:last-child { border-bottom: none; }
  .stat-cell .stat-num { font-size: 28px; }
  .stat-cell .stat-desc { font-size: 12px; }

  /* Cases */
  .cases { padding: 80px 0; }
  .cases .section-header { margin-bottom: 48px; }
  .section-header h2 { font-size: clamp(28px, 8vw, 40px); letter-spacing: -1px; }
  .section-header p { font-size: 15px; }
  .cases-grid { grid-template-columns: 1fr; gap: 20px; }
  /* Eyebrow above each card duplicates the title painted on the card —
     hide it on mobile where they stack tightly. */
  .case-category { display: none; }
  .case-title { font-size: 24px; }
  .case-content { top: 24px; left: 24px; right: 24px; }
  .case-detail-overlay { padding: 24px; }
  .detail-title { font-size: 18px; }
  .detail-description { font-size: 13px; }

  /* Services */
  .services { padding: 80px 0; }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card { padding: 32px 24px; }
  .service-title { font-size: 18px; }
  .service-description { font-size: 13px; }

  /* Assessment teaser */
  .assessment-teaser { padding: 72px 0; }
  .assessment-inner p { font-size: 16px; }
  .assessment-meta { flex-wrap: wrap; gap: 16px; }

  /* Contact */
  .contact { padding: 80px 0; }
  .contact-header { margin-bottom: 40px; }
  .contact-title { font-size: clamp(40px, 10vw, 56px); }
  .contact-subtitle { font-size: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Footer */
  .footer { padding: 56px 0 32px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
  }
  .footer-brand-section { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
  }
  .footer-legal { flex-wrap: wrap; gap: 20px; }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .stat-row.cols-4 { grid-template-columns: 1fr; }
  .stat-row.cols-4 .stat-cell { border-right: none !important; border-bottom: 1px solid var(--border); }
  .stat-row.cols-4 .stat-cell:last-child { border-bottom: none; }
}

/* ============================================================
   TRANSFORMATION section (React with inline styles) — mobile reflow
   ============================================================ */
@media (max-width: 900px) {
  #transformation-mount section { padding: 80px 0 !important; }
  #transformation-mount [style*="max-width: 1440px"] { padding: 0 24px !important; }
  /* header: stack the title + intro copy */
  #transformation-mount [style*="grid-template-columns: 1fr 1fr"][style*="gap: 80px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 40px !important;
  }
  #transformation-mount h2 { font-size: clamp(28px, 8vw, 44px) !important; letter-spacing: -1px !important; }
  /* diagram row: stack vertically, arrows in between rotate */
  #transformation-mount [style*="grid-template-columns: 1fr 80px 1fr"] {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 16px !important;
  }
  #transformation-mount [style*="min-height: 520px"] {
    min-height: 360px !important;
  }
  /* center arrow column becomes a horizontal row */
  #transformation-mount [style*="grid-template-columns: 1fr 80px 1fr"] > div:nth-child(2) {
    flex-direction: row !important;
    padding: 8px 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  /* results row: 1 col */
  #transformation-mount [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  #transformation-mount [style*="border-right: 1px solid"][style*="40px 32px"] {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }
}
