/*
 * Task 10F-B — Homepage-only Scallex production-brand reconstruction
 * Scope: body.scallex-home-brand-v1 on index.html only.
 * Visual authority: current production Scallex website.
 * Technical/content authority: R3 staging baseline.
 */
body.scallex-home-brand-v1 {
  --brand-primary-dark: #1d3493;
  --brand-primary-mid: #2244a0;
  --brand-primary-light: #3e64c8;
  --brand-accent: #00b4d8;
  --brand-ink: #1f2937;
  --brand-muted: #526173;
  --brand-light: #f5f8ff;
  --brand-line: #dbe4f5;
  --brand-white: #ffffff;
  --brand-success: #0f766e;
  --brand-shadow-sm: 0 2px 10px rgba(29, 52, 147, .08);
  --brand-shadow-md: 0 10px 30px rgba(29, 52, 147, .14);
  --brand-shadow-lg: 0 20px 60px rgba(29, 52, 147, .20);
  --brand-radius: 22px;

  /* Map R3 token names to the production palette, scoped to the homepage. */
  --navy: var(--brand-primary-dark);
  --navy2: var(--brand-primary-mid);
  --blue: var(--brand-primary-light);
  --cyan: var(--brand-accent);
  --ink: var(--brand-ink);
  --muted: var(--brand-muted);
  --bg: var(--brand-light);
  --line: var(--brand-line);
  --white: var(--brand-white);
  --success: var(--brand-success);
  --shadow: var(--brand-shadow-lg);
  --shadow-sm: var(--brand-shadow-sm);
  --radius: var(--brand-radius);

  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--brand-ink);
  line-height: 1.65;
  background: var(--brand-white);
  overflow-x: hidden;
}

body.scallex-home-brand-v1 p {
  color: var(--brand-muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

body.scallex-home-brand-v1 h1,
body.scallex-home-brand-v1 h2,
body.scallex-home-brand-v1 h3,
body.scallex-home-brand-v1 h4 {
  color: var(--brand-primary-dark);
  line-height: 1.16;
  letter-spacing: -.015em;
}

body.scallex-home-brand-v1 h1 { font-weight: 800; }
body.scallex-home-brand-v1 h2 { font-weight: 800; }
body.scallex-home-brand-v1 h3 { font-weight: 750; }
body.scallex-home-brand-v1 h4 { font-weight: 750; }

body.scallex-home-brand-v1 .container {
  width: min(1200px, calc(100% - 40px));
}

/* Header — R3 navigation mechanics retained; production appearance restored. */
body.scallex-home-brand-v1 .navbar {
  position: sticky;
  top: 0;
  min-height: 84px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  border-bottom: 0;
  box-shadow: var(--brand-shadow-sm);
}

body.scallex-home-brand-v1 .nav-container {
  width: min(1280px, calc(100% - 32px));
  min-height: 84px;
  gap: 1rem;
}

body.scallex-home-brand-v1 .brand-link img {
  width: 174px;
  height: auto;
}

body.scallex-home-brand-v1 .nav-menu {
  gap: .16rem;
}

body.scallex-home-brand-v1 .nav-menu > li > a,
body.scallex-home-brand-v1 .nav-label {
  min-height: 44px;
  padding: .62rem .52rem;
  border-radius: 0;
  color: var(--brand-ink);
  font-size: .89rem;
  font-weight: 700;
  position: relative;
}

body.scallex-home-brand-v1 .nav-menu > li > a::after,
body.scallex-home-brand-v1 .nav-label::after {
  content: "";
  position: absolute;
  left: .52rem;
  right: .52rem;
  bottom: .28rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brand-primary-light);
  transition: transform .2s ease;
}

body.scallex-home-brand-v1 .nav-menu > li > a:hover,
body.scallex-home-brand-v1 .nav-menu > li > a:focus-visible,
body.scallex-home-brand-v1 .nav-label:hover,
body.scallex-home-brand-v1 .nav-label:focus-visible {
  background: transparent;
  color: var(--brand-primary-dark);
  text-decoration: none;
}

body.scallex-home-brand-v1 .nav-menu > li > a:hover::after,
body.scallex-home-brand-v1 .nav-menu > li > a:focus-visible::after,
body.scallex-home-brand-v1 .nav-label:hover::after,
body.scallex-home-brand-v1 .nav-label:focus-visible::after {
  transform: scaleX(1);
}

body.scallex-home-brand-v1 .dropdown-menu {
  border-color: var(--brand-line);
  border-radius: 18px;
  box-shadow: var(--brand-shadow-md);
}

body.scallex-home-brand-v1 .dropdown-menu a:hover,
body.scallex-home-brand-v1 .dropdown-menu a:focus-visible {
  background: var(--brand-light);
  color: var(--brand-primary-dark);
}

body.scallex-home-brand-v1 .menu-heading { color: var(--brand-primary-light); }

body.scallex-home-brand-v1 .nav-cta {
  background: var(--brand-primary-dark);
  color: var(--brand-white) !important;
  padding: .82rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--brand-shadow-sm);
  font-weight: 800;
}

body.scallex-home-brand-v1 .nav-cta:hover,
body.scallex-home-brand-v1 .nav-cta:focus-visible {
  background: var(--brand-primary-mid);
  transform: translateY(-1px);
  text-decoration: none;
}

body.scallex-home-brand-v1 .menu-toggle {
  border-color: var(--brand-line);
  border-radius: 12px;
  background: var(--brand-white);
}

body.scallex-home-brand-v1 .menu-toggle span { background: var(--brand-primary-dark); }
body.scallex-home-brand-v1 .mobile-overlay { background: rgba(11,23,57,.55); }

/* Hero — exact production gradient + 42px grid texture. */
body.scallex-home-brand-v1 .hero.home-hero {
  position: relative;
  overflow: hidden;
  padding: 5.9rem 0 5.5rem;
  background:
    linear-gradient(135deg, rgba(29,52,147,.97), rgba(34,68,160,.94)),
    radial-gradient(circle at top right, rgba(0,180,216,.25), transparent 35%);
  color: var(--brand-white);
}

body.scallex-home-brand-v1 .hero.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 42px 42px;
}

body.scallex-home-brand-v1 .hero.home-hero .hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr);
  gap: 4rem;
  align-items: center;
}

body.scallex-home-brand-v1 .hero.home-hero h1 {
  color: var(--brand-white);
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.028em;
  margin: .35rem 0 1.15rem;
  max-width: 780px;
}

body.scallex-home-brand-v1 .hero.home-hero .hero-copy {
  color: rgba(255,255,255,.92);
  font-size: clamp(1.06rem, 1.55vw, 1.18rem);
  max-width: 720px;
  margin: 0 0 1.2rem;
}

body.scallex-home-brand-v1 .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(62,100,200,.16);
  background: rgba(62,100,200,.10);
  color: var(--brand-primary-mid);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.scallex-home-brand-v1 .hero.home-hero .eyebrow.light,
body.scallex-home-brand-v1 .cta-section .eyebrow.light,
body.scallex-home-brand-v1 .brand-dark-section .eyebrow {
  color: var(--brand-white);
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.22);
}

body.scallex-home-brand-v1 .button-row {
  gap: 1rem;
  margin-top: 1.25rem;
}

body.scallex-home-brand-v1 .btn {
  padding: .95rem 1.45rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 850;
  transition: .2s ease;
}

body.scallex-home-brand-v1 .btn-white {
  background: var(--brand-white);
  color: var(--brand-primary-dark);
  box-shadow: var(--brand-shadow-sm);
}

body.scallex-home-brand-v1 .btn-white:hover,
body.scallex-home-brand-v1 .btn-white:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--brand-shadow-md);
}

body.scallex-home-brand-v1 .btn-ghost-light {
  color: var(--brand-white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.75);
}

body.scallex-home-brand-v1 .btn-ghost-light:hover,
body.scallex-home-brand-v1 .btn-ghost-light:focus-visible {
  color: var(--brand-primary-dark);
  background: var(--brand-white);
  border-color: var(--brand-white);
  transform: translateY(-2px);
}

/* Two-buyer hero panel — R3 content inside the production panel language. */
body.scallex-home-brand-v1 .market-panel {
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--brand-radius);
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

body.scallex-home-brand-v1 .market-card {
  position: relative;
  min-height: 172px;
  padding: 1.2rem 1.25rem 1.15rem 5.8rem;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: var(--brand-white);
  backdrop-filter: none;
  box-shadow: none;
}

body.scallex-home-brand-v1 .market-card::before {
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-accent));
  color: var(--brand-white);
  font-size: 1.6rem;
  line-height: 1;
}

body.scallex-home-brand-v1 .market-card:nth-child(1)::before { content: "🔐"; }
body.scallex-home-brand-v1 .market-card:nth-child(2)::before { content: "⚙️"; }

body.scallex-home-brand-v1 .market-card .market-tag {
  margin: 0 0 .2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-primary-light) !important;
  font-size: .77rem !important;
  font-weight: 900 !important;
  letter-spacing: .09em;
}

body.scallex-home-brand-v1 .market-card h2 {
  margin: .15rem 0 .45rem;
  color: var(--brand-primary-dark);
  font-size: 1.28rem;
  line-height: 1.15;
}

body.scallex-home-brand-v1 .market-card p {
  margin: 0 0 .55rem;
  color: var(--brand-muted);
  font-size: .96rem;
  line-height: 1.55;
}

body.scallex-home-brand-v1 .market-card a {
  color: var(--brand-primary-dark);
  font-size: .94rem;
  font-weight: 850;
}

body.scallex-home-brand-v1 .market-card a:hover,
body.scallex-home-brand-v1 .market-card a:focus-visible {
  color: var(--brand-primary-light);
  text-decoration: none;
}

/* Section rhythm and shared production card language. */
body.scallex-home-brand-v1 .section { padding: 5.5rem 0; }
body.scallex-home-brand-v1 .section-muted { background: var(--brand-light); }

body.scallex-home-brand-v1 .section-heading {
  max-width: 850px;
  margin-bottom: 2.6rem;
}

body.scallex-home-brand-v1 .section-heading h2,
body.scallex-home-brand-v1 .split h2,
body.scallex-home-brand-v1 .context-panel h2 {
  color: var(--brand-primary-dark);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.015em;
  margin: .1rem 0 .85rem;
}

body.scallex-home-brand-v1 .section-heading > p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
}

body.scallex-home-brand-v1 .cards-grid,
body.scallex-home-brand-v1 .services-grid {
  gap: 1.35rem;
}

body.scallex-home-brand-v1 .info-card,
body.scallex-home-brand-v1 .service-card,
body.scallex-home-brand-v1 .context-panel,
body.scallex-home-brand-v1 .framework-grid li {
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  background: var(--brand-white);
  box-shadow: 0 2px 10px rgba(29,52,147,.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.scallex-home-brand-v1 .info-card,
body.scallex-home-brand-v1 .service-card {
  position: relative;
  padding: 1.55rem;
}

body.scallex-home-brand-v1 .info-card:hover,
body.scallex-home-brand-v1 .service-card:hover,
body.scallex-home-brand-v1 .framework-grid li:hover {
  transform: translateY(-4px);
  box-shadow: var(--brand-shadow-md);
  border-color: rgba(62,100,200,.38);
}

body.scallex-home-brand-v1 .info-card h3,
body.scallex-home-brand-v1 .service-card h3 {
  color: var(--brand-primary-dark);
  font-size: clamp(1.2rem, 1.65vw, 1.5rem);
  font-weight: 750;
  line-height: 1.18;
  margin: .2rem 0 .55rem;
}

body.scallex-home-brand-v1 .info-card p,
body.scallex-home-brand-v1 .service-card p {
  color: var(--brand-muted);
  font-size: 1rem;
  margin: .35rem 0 .7rem;
}

body.scallex-home-brand-v1 .info-card a,
body.scallex-home-brand-v1 .service-card a,
body.scallex-home-brand-v1 .context-panel a {
  display: inline-flex;
  color: var(--brand-primary-dark);
  font-weight: 850;
  margin-top: .45rem;
  transition: .2s ease;
}

body.scallex-home-brand-v1 .info-card a:hover,
body.scallex-home-brand-v1 .service-card a:hover,
body.scallex-home-brand-v1 .context-panel a:hover,
body.scallex-home-brand-v1 .info-card a:focus-visible,
body.scallex-home-brand-v1 .service-card a:focus-visible,
body.scallex-home-brand-v1 .context-panel a:focus-visible {
  color: var(--brand-primary-light);
  transform: translateX(3px);
  text-decoration: none;
}

/* Production-style semantic symbol tiles; pseudo-elements are decorative only. */
body.scallex-home-brand-v1 .brand-problems .info-card,
body.scallex-home-brand-v1 .brand-services .service-card,
body.scallex-home-brand-v1 .brand-industries .info-card,
body.scallex-home-brand-v1 .brand-resources .info-card {
  padding-top: 1.55rem;
}

body.scallex-home-brand-v1 .brand-problems .info-card::before,
body.scallex-home-brand-v1 .brand-services .service-card::before,
body.scallex-home-brand-v1 .brand-industries .info-card::before,
body.scallex-home-brand-v1 .brand-resources .info-card::before {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(62,100,200,.12), rgba(0,180,216,.12));
  font-size: 2rem;
  line-height: 1;
}

body.scallex-home-brand-v1 .brand-problems .card-number { display: none; }
body.scallex-home-brand-v1 .brand-problems .info-card:nth-child(1)::before { content: "🔁"; }
body.scallex-home-brand-v1 .brand-problems .info-card:nth-child(2)::before { content: "🔑"; }
body.scallex-home-brand-v1 .brand-problems .info-card:nth-child(3)::before { content: "💾"; }
body.scallex-home-brand-v1 .brand-problems .info-card:nth-child(4)::before { content: "🛡️"; }
body.scallex-home-brand-v1 .brand-problems .info-card:nth-child(5)::before { content: "🌐"; }
body.scallex-home-brand-v1 .brand-problems .info-card:nth-child(6)::before { content: "🧭"; }
body.scallex-home-brand-v1 .brand-problems .info-card p { color: var(--brand-ink); font-weight: 700; }

body.scallex-home-brand-v1 .brand-services .service-card:nth-child(1)::before { content: "🛠️"; }
body.scallex-home-brand-v1 .brand-services .service-card:nth-child(2)::before { content: "☁️"; }
body.scallex-home-brand-v1 .brand-services .service-card:nth-child(3)::before { content: "🛡️"; }
body.scallex-home-brand-v1 .brand-services .service-card:nth-child(4)::before { content: "💾"; }
body.scallex-home-brand-v1 .brand-services .service-card:nth-child(5)::before { content: "🌐"; }
body.scallex-home-brand-v1 .brand-services .service-card:nth-child(6)::before { content: "🧭"; }

/* Business outcomes — production checklist + compact white context card. */
body.scallex-home-brand-v1 .brand-outcomes .split {
  gap: 3rem;
  align-items: center;
}

body.scallex-home-brand-v1 .brand-outcomes .check-list {
  gap: .82rem;
  margin: 1.25rem 0 0;
}

body.scallex-home-brand-v1 .brand-outcomes .check-list li {
  padding-left: 2rem;
  color: var(--brand-muted);
  font-size: 1.04rem;
}

body.scallex-home-brand-v1 .brand-outcomes .check-list li::before {
  color: var(--brand-success);
  font-weight: 900;
}

body.scallex-home-brand-v1 .brand-outcomes .context-panel {
  padding: 1.8rem;
  background: linear-gradient(180deg, #fff, #f8faff);
  box-shadow: var(--brand-shadow-sm);
}

body.scallex-home-brand-v1 .brand-outcomes .context-panel h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

/* One existing R3 section receives the production dark feature treatment. */
body.scallex-home-brand-v1 .brand-dark-section {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary-mid));
  color: var(--brand-white);
}

body.scallex-home-brand-v1 .brand-dark-section .section-heading h2,
body.scallex-home-brand-v1 .brand-dark-section .section-heading > p:not(.eyebrow) {
  color: var(--brand-white);
}

body.scallex-home-brand-v1 .brand-industries .info-card:nth-child(1)::before { content: "⚖️"; }
body.scallex-home-brand-v1 .brand-industries .info-card:nth-child(2)::before { content: "📊"; }
body.scallex-home-brand-v1 .brand-industries .info-card:nth-child(3)::before { content: "🔐"; }
body.scallex-home-brand-v1 .brand-industries .info-card:nth-child(4)::before { content: "🏭"; }

body.scallex-home-brand-v1 .brand-dark-section .info-card {
  border-color: rgba(255,255,255,.28);
}

body.scallex-home-brand-v1 .brand-dark-section .info-card::before {
  background: linear-gradient(135deg, rgba(62,100,200,.13), rgba(0,180,216,.13));
}

/* Reliability Framework — production numbered-step visual language, five R3 steps. */
body.scallex-home-brand-v1 .brand-framework .framework-grid {
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 1.1rem;
  counter-reset: scallex-framework;
}

body.scallex-home-brand-v1 .brand-framework .framework-grid li {
  padding: 1.45rem;
  border-radius: var(--brand-radius);
  counter-increment: scallex-framework;
}

body.scallex-home-brand-v1 .brand-framework .framework-grid li::before {
  content: counter(scallex-framework);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--brand-primary-dark);
  color: var(--brand-white);
  font-weight: 900;
}

body.scallex-home-brand-v1 .brand-framework .framework-grid strong {
  color: var(--brand-primary-dark);
  font-size: 1.08rem;
  font-weight: 800;
}

body.scallex-home-brand-v1 .brand-framework .framework-grid span {
  color: var(--brand-muted);
  font-size: .94rem;
  line-height: 1.55;
}

/* Resources. */
body.scallex-home-brand-v1 .brand-resources .info-card:nth-child(1)::before { content: "📋"; }
body.scallex-home-brand-v1 .brand-resources .info-card:nth-child(2)::before { content: "✅"; }
body.scallex-home-brand-v1 .brand-resources .info-card:nth-child(3)::before { content: "📚"; }

/* Final CTA — production dark gradient. */
body.scallex-home-brand-v1 .cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary-mid));
  color: var(--brand-white);
}

body.scallex-home-brand-v1 .cta-content { width: min(820px, calc(100% - 40px)); }
body.scallex-home-brand-v1 .cta-content h2 { color: var(--brand-white); }
body.scallex-home-brand-v1 .cta-content p { color: rgba(255,255,255,.9); font-size: 1.15rem; }

/* Footer — R3 content/destinations retained; production visual language restored. */
body.scallex-home-brand-v1 .site-footer {
  background: var(--brand-primary-dark);
  color: var(--brand-white);
  padding: 4rem 0 1.5rem;
}

body.scallex-home-brand-v1 .footer-grid {
  width: min(1200px, calc(100% - 40px));
  gap: 1.6rem;
}

body.scallex-home-brand-v1 .footer-brand img { width: 190px; }
body.scallex-home-brand-v1 .footer-brand p,
body.scallex-home-brand-v1 .office-note { color: rgba(255,255,255,.80); }
body.scallex-home-brand-v1 .site-footer a { color: rgba(255,255,255,.88); }
body.scallex-home-brand-v1 .site-footer a:hover,
body.scallex-home-brand-v1 .site-footer a:focus-visible { color: var(--brand-white); }
body.scallex-home-brand-v1 .footer-heading { color: var(--brand-white); }
body.scallex-home-brand-v1 .footer-bottom {
  width: min(1200px, calc(100% - 40px));
  border-top-color: rgba(255,255,255,.13);
  color: rgba(255,255,255,.70);
}

/* Focus visibility — preserve accessible keyboard indication under the branded layer. */
body.scallex-home-brand-v1 a:focus-visible,
body.scallex-home-brand-v1 button:focus-visible {
  outline: 3px solid rgba(0,180,216,.55);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  body.scallex-home-brand-v1 .nav-menu > li > a,
  body.scallex-home-brand-v1 .nav-label {
    padding-inline: .42rem;
    font-size: .84rem;
  }
  body.scallex-home-brand-v1 .nav-menu > li > a::after,
  body.scallex-home-brand-v1 .nav-label::after { left: .42rem; right: .42rem; }
  body.scallex-home-brand-v1 .brand-link img { width: 156px; }
}

@media (max-width: 1024px) {
  body.scallex-home-brand-v1 .hero.home-hero {
    padding: 5.4rem 0 5rem;
  }
  body.scallex-home-brand-v1 .hero.home-hero .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  body.scallex-home-brand-v1 .hero.home-hero h1 {
    font-size: clamp(2.55rem, 5vw, 3.85rem);
  }
  body.scallex-home-brand-v1 .market-panel { padding: 1.5rem; }
  body.scallex-home-brand-v1 .market-card { padding-left: 5.35rem; }
  body.scallex-home-brand-v1 .brand-framework .framework-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 900px) {
  body.scallex-home-brand-v1 .navbar,
  body.scallex-home-brand-v1 .nav-container { min-height: 76px; }
  body.scallex-home-brand-v1 .brand-link img { width: 150px; }

  body.scallex-home-brand-v1 .nav-menu {
    background: var(--brand-white);
    box-shadow: -16px 0 40px rgba(0,0,0,.16);
  }

  body.scallex-home-brand-v1 .nav-menu > li {
    border-bottom-color: var(--brand-line);
  }

  body.scallex-home-brand-v1 .nav-menu > li > a,
  body.scallex-home-brand-v1 .nav-label {
    border-radius: 0;
    font-size: .92rem;
  }

  body.scallex-home-brand-v1 .nav-menu > li > a::after,
  body.scallex-home-brand-v1 .nav-label::after { display: none; }

  body.scallex-home-brand-v1 .hero.home-hero {
    padding: 5rem 0 4.7rem;
  }

  body.scallex-home-brand-v1 .hero.home-hero .hero-grid,
  body.scallex-home-brand-v1 .brand-outcomes .split {
    grid-template-columns: 1fr;
  }

  body.scallex-home-brand-v1 .hero.home-hero .hero-grid { gap: 2.6rem; }
  body.scallex-home-brand-v1 .market-panel { max-width: 680px; }
  body.scallex-home-brand-v1 .cards-grid,
  body.scallex-home-brand-v1 .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.scallex-home-brand-v1 .brand-framework .framework-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.scallex-home-brand-v1 .footer-grid { width: min(1200px, calc(100% - 40px)); }
}

@media (max-width: 620px) {
  body.scallex-home-brand-v1 .container,
  body.scallex-home-brand-v1 .footer-grid,
  body.scallex-home-brand-v1 .footer-bottom {
    width: min(100% - 28px, 1200px);
  }

  body.scallex-home-brand-v1 .navbar,
  body.scallex-home-brand-v1 .nav-container { min-height: 76px; }
  body.scallex-home-brand-v1 .nav-container { width: min(100% - 24px, 1280px); }
  body.scallex-home-brand-v1 .brand-link img { width: 142px; }

  body.scallex-home-brand-v1 .hero.home-hero {
    /* Intentionally remains the production blue hero on mobile. */
    padding: 4.35rem 0 4.25rem;
  }

  body.scallex-home-brand-v1 .hero.home-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.15rem);
    line-height: 1.09;
  }

  body.scallex-home-brand-v1 .hero.home-hero .hero-copy { font-size: 1.04rem; }
  body.scallex-home-brand-v1 .hero.home-hero .button-row { display: grid; gap: .8rem; }
  body.scallex-home-brand-v1 .hero.home-hero .btn { width: 100%; }

  body.scallex-home-brand-v1 .market-panel {
    padding: 1rem;
    border-radius: 20px;
  }

  body.scallex-home-brand-v1 .market-card {
    min-height: 0;
    padding: 5.25rem 1.15rem 1.15rem;
  }

  body.scallex-home-brand-v1 .market-card::before {
    left: 1.15rem;
    top: 1.1rem;
  }

  body.scallex-home-brand-v1 .section { padding: 4rem 0; }
  body.scallex-home-brand-v1 .section-heading { margin-bottom: 2rem; }
  body.scallex-home-brand-v1 .section-heading h2,
  body.scallex-home-brand-v1 .split h2,
  body.scallex-home-brand-v1 .context-panel h2 { font-size: clamp(1.75rem, 9vw, 2.35rem); }

  body.scallex-home-brand-v1 .cards-grid,
  body.scallex-home-brand-v1 .services-grid,
  body.scallex-home-brand-v1 .brand-framework .framework-grid,
  body.scallex-home-brand-v1 .footer-grid { grid-template-columns: 1fr; }

  body.scallex-home-brand-v1 .info-card,
  body.scallex-home-brand-v1 .service-card { padding: 1.4rem; }

  body.scallex-home-brand-v1 .brand-problems .info-card::before,
  body.scallex-home-brand-v1 .brand-services .service-card::before,
  body.scallex-home-brand-v1 .brand-industries .info-card::before,
  body.scallex-home-brand-v1 .brand-resources .info-card::before {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 1.8rem;
  }

  body.scallex-home-brand-v1 .cta-content { width: min(100% - 28px, 820px); }
  body.scallex-home-brand-v1 .cta-section .button-row { display: grid; }
  body.scallex-home-brand-v1 .cta-section .btn { width: 100%; }
}

@media (min-width: 1100px) {
  body.scallex-home-brand-v1 .brand-industries .cards-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

/* Desktop-only correction for R3's mobile-only list items: visual scope only. */
body.scallex-home-brand-v1 .nav-menu > li.mobile-only { display: none; }
body.scallex-home-brand-v1 .brand-link img { width: 150px; }

@media (max-width: 1180px) {
  body.scallex-home-brand-v1 .brand-link img { width: 142px; }
}

@media (max-width: 900px) {
  body.scallex-home-brand-v1 .nav-menu > li.mobile-only { display: grid !important; }
  body.scallex-home-brand-v1 .brand-link img { width: 142px; }
}

@media (max-width: 620px) {
  body.scallex-home-brand-v1 .brand-link img { width: 136px; }
}

/* Keep the closed R3 mobile drawer out of the layout/scroll width. JS still toggles .active. */
@media (max-width: 900px) {
  body.scallex-home-brand-v1 .nav-menu {
    right: 0;
    display: none;
  }
  body.scallex-home-brand-v1 .nav-menu.active {
    display: block;
    right: 0;
  }
}

/* Tablet header: move R3 navigation into its existing drawer pattern before crowding occurs. */
@media (min-width: 901px) and (max-width: 1120px) {
  body.scallex-home-brand-v1 .menu-toggle { display: flex; }
  body.scallex-home-brand-v1 .desktop-cta { display: inline-flex; margin-left: auto; }
  body.scallex-home-brand-v1 .nav-menu {
    position: fixed;
    right: 0;
    top: 0;
    width: min(360px, 88vw);
    height: 100vh;
    background: var(--brand-white);
    padding: 5.6rem 1rem 2rem;
    overflow-y: auto;
    box-shadow: -16px 0 40px rgba(0,0,0,.16);
    z-index: 1150;
    display: none;
  }
  body.scallex-home-brand-v1 .nav-menu.active { display: block; }
  body.scallex-home-brand-v1 .nav-menu > li {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid var(--brand-line);
  }
  body.scallex-home-brand-v1 .nav-menu > li > a,
  body.scallex-home-brand-v1 .nav-label {
    justify-content: flex-start;
    width: 100%;
    padding: .85rem .55rem;
    min-height: 50px;
  }
  body.scallex-home-brand-v1 .nav-menu > li > a::after,
  body.scallex-home-brand-v1 .nav-label::after { display: none; }
  body.scallex-home-brand-v1 .submenu-toggle { display: block; }
  body.scallex-home-brand-v1 .dropdown-menu {
    position: static;
    grid-column: 1 / -1;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 .6rem .75rem;
    min-width: 0;
  }
  body.scallex-home-brand-v1 .has-dropdown:hover > .dropdown-menu,
  body.scallex-home-brand-v1 .has-dropdown:focus-within > .dropdown-menu { display: none; }
  body.scallex-home-brand-v1 .has-dropdown.open > .dropdown-menu { display: grid; }
  body.scallex-home-brand-v1 .nav-menu > li.mobile-only { display: grid !important; }
}
