/* ============================================
   Master Sales & Marketing — Modern Dark Theme
   Hero section preserved · everything else redesigned
   ============================================ */

:root {
  --color-bg: #07080c;
  --color-bg-2: #0c0e14;
  --color-surface: #12151c;
  --color-surface-raised: #181c26;
  --color-surface-glass: rgba(18, 21, 28, 0.72);
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-hot: rgba(255, 107, 43, 0.45);
  --color-text: #f1f5f9;
  --color-text-muted: #8b95a8;
  --color-white: #ffffff;
  --color-orange: #ff6b2b;
  --color-orange-light: #ff8c4d;
  --color-red: #e53e3e;
  --color-red-deep: #c53030;
  --gradient-fire: linear-gradient(135deg, #ff6b2b 0%, #e53e3e 55%, #c53030 100%);
  --gradient-fire-soft: linear-gradient(135deg, rgba(255, 107, 43, 0.18), rgba(229, 62, 62, 0.08));
  --gradient-mesh: radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 107, 43, 0.09), transparent 55%),
                   radial-gradient(ellipse 60% 50% at 90% 80%, rgba(229, 62, 62, 0.07), transparent 50%);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --header-height: 76px;
  --max-width: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 100px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(255, 107, 43, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}

img, video { max-width: 100%; display: block; }

a {
  color: var(--color-orange-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-white); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

/* ---- Header ---- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-height);
  background: transparent;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(7, 8, 12, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-white);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.logo img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(255, 107, 43, 0.3));
}

.nav-desktop {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
}

.site-header.scrolled .nav-desktop {
  background: rgba(255, 255, 255, 0.06);
}

.nav-desktop a {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-white);
  background: rgba(255, 107, 43, 0.12);
}

.nav-desktop a.active {
  box-shadow: inset 0 0 0 1px var(--color-border-hot);
}

.nav-toggle {
  display: none;
  background: rgba(255, 107, 43, 0.12);
  border: 1px solid var(--color-border-hot);
  border-radius: 10px;
  color: var(--color-orange-light);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: rgba(7, 8, 12, 0.96);
  backdrop-filter: blur(24px);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 199;
  border-top: 1px solid var(--color-border);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.nav-mobile a:hover {
  background: var(--gradient-fire-soft);
  border-color: var(--color-border-hot);
  color: var(--color-white);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-fire);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(255, 107, 43, 0.35);
}

.btn-primary:hover {
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 107, 43, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--color-orange);
  background: rgba(255, 107, 43, 0.12);
  color: var(--color-white);
}

/* ---- Hero (preserved) ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 8, 12, 0.5) 0%,
    rgba(7, 8, 12, 0.72) 50%,
    rgba(7, 8, 12, 0.96) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-height) + 3rem) 1.25rem 4rem;
  max-width: 900px;
}

.hero-logo {
  width: min(630px, 88vw);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4));
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-sub {
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  color: rgba(241, 245, 249, 0.82);
  max-width: 100%;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
}

.hero-sub #hero-sub-line1 {
  display: inline-block;
}

.hero-sub #hero-sub-line2 {
  display: inline-block;
  margin-top: 0.35rem;
}

@media (min-width: 768px) {
  .hero-sub #hero-sub-line1 {
    white-space: nowrap;
  }
}

.hero-states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.state-pill {
  padding: 0.45rem 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 107, 43, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* ---- Sections ---- */

.section {
  padding: 6rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-hot), transparent);
}

.section-dark {
  background: var(--color-bg);
}

.section-raised {
  background: var(--color-bg-2);
}

.section-accent {
  background: var(--color-bg-2);
}

.section-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 107, 43, 0.06), transparent 70%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-orange-light);
  margin-bottom: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--gradient-fire-soft);
  border: 1px solid var(--color-border-hot);
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #fff 30%, #ffb088 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p,
.section-intro {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ---- Split layouts ---- */

.split-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--gradient-fire);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.image-frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-lg);
  image-rendering: auto;
}

.split-feature .image-frame img {
  height: 360px;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 8, 12, 0.6) 100%);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.split-feature .image-frame::after {
  background: linear-gradient(180deg, transparent 60%, rgba(7, 8, 12, 0.3) 100%);
}

.split-feature .section-intro {
  text-align: left;
  margin: 0;
  font-size: 1.05rem;
}

/* ---- MSM Difference ---- */

.section-difference {
  padding: 4.5rem 0;
}

.section-difference .section-header {
  margin-bottom: 2.5rem;
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.difference-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.difference-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-fire);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.difference-card:hover {
  border-color: var(--color-border-hot);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.difference-card:hover::after {
  transform: scaleX(1);
}

.difference-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.difference-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.difference-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- Team ---- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-fire);
  opacity: 0;
  transition: opacity var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-hot);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.team-card:hover::before { opacity: 1; }

.team-card-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface-raised);
}

.team-badges {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  z-index: 2;
  max-width: calc(100% - 1.5rem);
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  background: rgba(7, 8, 12, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border-hot);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-orange-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.team-badge--compact {
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
}

.team-badge svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card-photo img {
  transform: scale(1.05);
}

.team-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.team-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.team-role {
  display: inline-block;
  color: var(--color-orange-light);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.team-contact {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
  display: flex;
  gap: 0.4rem;
}

.team-contact strong {
  color: var(--color-text);
  font-weight: 500;
  min-width: 3.5rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  line-height: 1.6;
}

/* ---- Services ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.25rem 2.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 107, 43, 0.12), transparent 70%);
  pointer-events: none;
  transition: opacity var(--transition);
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-fire);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: var(--color-border-hot);
  transform: translateY(-5px);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.service-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.85;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(145deg, rgba(255, 107, 43, 0.15), rgba(229, 62, 62, 0.08));
  border: 1px solid var(--color-border-hot);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--color-orange-light);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(255, 107, 43, 0.12);
  transition: all var(--transition);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card:hover .service-icon {
  background: var(--gradient-fire);
  color: var(--color-white);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(255, 107, 43, 0.35);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.services-visual {
  margin-bottom: 3rem;
}

.services-visual img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

/* ---- PBE Resources section ---- */

.resources-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.resource-feature {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  transition: all var(--transition);
}

.resource-feature:hover {
  border-color: var(--color-border-hot);
  box-shadow: var(--shadow), var(--shadow-glow);
  transform: translateY(-4px);
}

.resource-feature-visual {
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(255, 107, 43, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--color-border);
  min-height: 180px;
  display: grid;
  place-items: center;
}

.resource-feature-visual--glossary {
  background: linear-gradient(180deg, rgba(229, 62, 62, 0.06) 0%, transparent 100%);
}

.resource-stack-preview {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: min(100%, 280px);
}

.resource-stack-preview span {
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--c);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.resource-glossary-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 300px;
}

.resource-glossary-preview span {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--color-orange-light);
  background: rgba(255, 107, 43, 0.1);
  border: 1px solid var(--color-border-hot);
  border-radius: var(--radius-pill);
}

.resource-feature-body {
  padding: 2rem 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.resource-feature-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange-light);
  margin-bottom: 0.6rem;
}

.resource-feature-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.resource-feature-body > p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

.resource-feature-list {
  list-style: none;
  margin-bottom: 1.75rem;
}

.resource-feature-list li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}

.resource-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-fire);
}

/* ---- Territory ---- */

.territory-showcase {
  max-width: 720px;
  margin: 0 auto 3rem;
  position: relative;
}

.territory-showcase::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(255, 180, 60, 0.18), rgba(255, 107, 43, 0.08) 40%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.territory-showcase-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 180, 60, 0.6), rgba(255, 107, 43, 0.4), rgba(229, 62, 62, 0.3));
  box-shadow:
    0 0 60px rgba(255, 140, 40, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.5);
}

.territory-showcase-frame::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--radius-lg) - 3px);
  box-shadow: inset 0 0 40px rgba(255, 180, 60, 0.06);
  pointer-events: none;
  z-index: 2;
}

.territory-map {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 3px);
  aspect-ratio: 1;
  object-fit: cover;
}

.territory-callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 960px;
  margin: 2.5rem auto 2rem;
}

.territory-callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  text-align: center;
}

.territory-callout h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.territory-callout p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.territory-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.territory-states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.territory-states .state-pill {
  font-size: 0.82rem;
  padding: 0.5rem 1.2rem;
}

.office-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.office-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-fire);
}

.office-card h3 {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--color-orange-light);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.office-card p {
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---- Gallery ---- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}

.gallery-item:nth-child(1) { grid-column: span 8; aspect-ratio: 21 / 9; }
.gallery-item:nth-child(4) { grid-column: span 6; }
.gallery-item:nth-child(5) { grid-column: span 6; }
.gallery-item:nth-child(7) { grid-column: span 8; }

.gallery-item video,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.gallery-item--video {
  background: var(--color-surface-raised);
}

.gallery-video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-video.ready {
  opacity: 1;
}

.gallery-video-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: var(--color-surface-raised);
  transition: opacity 0.3s ease;
}

.gallery-video-loader::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-orange);
  border-radius: 50%;
  animation: gallery-spin 0.8s linear infinite;
}

.gallery-video-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes gallery-spin {
  to { transform: rotate(360deg); }
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 8, 12, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery-item:hover video,
.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after { opacity: 1; }

/* ---- Contact ---- */

.contact-section { text-align: center; }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
  text-align: left;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--color-border-hot);
  background: var(--color-surface-raised);
  transform: translateX(6px);
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-fire-soft);
  border: 1px solid var(--color-border-hot);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-card-content strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
  color: var(--color-orange-light);
  margin-bottom: 0.25rem;
}

.contact-card-content a,
.contact-card-content span {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-fire);
}

.contact-form-wrap h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.contact-form-wrap > p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}

.form-group { margin-bottom: 1.15rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-success {
  display: none;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.form-success.visible { display: block; }

.form-error {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.form-error.visible { display: block; }

/* ---- Footer ---- */

.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 2rem;
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-fire);
  opacity: 0.5;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.site-footer .logo {
  justify-content: center;
  font-size: 1.1rem;
}

.site-footer .logo img {
  height: 44px;
}

.footer-states {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-states span {
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.site-footer p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ---- Animations ---- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .split-feature,
  .contact-split {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .difference-grid,
  .territory-callouts { grid-template-columns: 1fr; }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(7) {
    grid-column: span 12;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }

  .section { padding: 4rem 0; }
  .image-frame img { height: 220px; }
  .split-feature .image-frame img { height: 260px; }

  .contact-card:hover { transform: none; }
}

/* ---- Glossary page ---- */

.glossary-hero {
  padding: calc(var(--header-height) + 4rem) 0 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-2) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.glossary-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 107, 43, 0.1), transparent 70%);
  pointer-events: none;
}

.glossary-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0.75rem 0 1rem;
  background: linear-gradient(135deg, #fff 30%, #ffb088 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glossary-hero p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
}

.glossary-page {
  padding: 3rem 0 5rem;
}

.glossary-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.glossary-search-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.glossary-search-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  pointer-events: none;
}

#glossary-search {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
}

#glossary-search:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.15);
}

.glossary-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#glossary-category {
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.glossary-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-orange-light);
  font-family: var(--font-display);
  white-space: nowrap;
}

.glossary-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.letter-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
}

.letter-btn:hover,
.letter-btn.active {
  color: var(--color-white);
  border-color: var(--color-border-hot);
  background: var(--gradient-fire-soft);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.glossary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  transition: all var(--transition);
}

.glossary-card:hover {
  border-color: var(--color-border-hot);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.glossary-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.glossary-card h3 {
  font-size: 1.1rem;
  color: var(--color-orange-light);
}

.glossary-tag {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.glossary-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.glossary-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 3rem 1rem;
  font-size: 1.05rem;
}

.glossary-cta {
  margin-top: 4rem;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.glossary-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 107, 43, 0.08), transparent 70%);
  pointer-events: none;
}

.glossary-cta h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  position: relative;
}

.glossary-cta p {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  position: relative;
}

/* ---- Product Guide ---- */

.guide-hero .guide-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.guide-page {
  padding: 2rem 0 5rem;
}

.guide-section {
  margin-bottom: 5rem;
}

.stack-explorer {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: stretch;
}

.stack-visual {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.stack-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  border: 2px solid transparent;
  border-left: 5px solid var(--layer-color);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  font-family: inherit;
  color: var(--color-text);
}

.stack-layer:hover,
.stack-layer.active {
  background: color-mix(in srgb, var(--layer-color) 12%, transparent);
  border-color: color-mix(in srgb, var(--layer-color) 40%, transparent);
  transform: translateX(6px);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--layer-color) 20%, transparent);
}

.stack-layer.active {
  border-left-width: 6px;
}

.stack-layer-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-white);
}

.stack-layer-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--layer-color);
  font-family: var(--font-display);
}

.stack-detail-panel {
  padding: 2rem 2.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.stack-detail-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-fire);
}

.stack-detail-tag {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stack-detail-panel h3 {
  font-size: 1.75rem;
  margin: 0.5rem 0 1rem;
}

.stack-detail-summary {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: 500;
}

.stack-detail-body {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.stack-products strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  color: var(--color-orange-light);
  margin-bottom: 0.6rem;
}

.stack-products ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-products li {
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  background: var(--gradient-fire-soft);
  border: 1px solid var(--color-border-hot);
  border-radius: var(--radius-pill);
  color: var(--color-text);
}

.guide-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.guide-category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

.guide-category-card:hover {
  border-color: var(--color-border-hot);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.guide-category-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.guide-category-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.guide-category-card > p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.guide-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.guide-highlights li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.challenge-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-left: 4px solid var(--color-orange);
  transition: all var(--transition);
}

.challenge-card:hover {
  border-color: var(--color-border-hot);
  box-shadow: var(--shadow-glow);
}

.challenge-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--color-orange-light);
}

.challenge-row {
  margin-bottom: 1rem;
}

.challenge-row:last-child {
  margin-bottom: 0;
}

.challenge-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.challenge-row p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.challenge-fix .challenge-label {
  color: var(--color-orange-light);
}

.challenge-fix p {
  color: var(--color-text);
}

.guide-resources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.resource-link-card {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.resource-link-card:hover {
  border-color: var(--color-border-hot);
}

.resource-link-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.resource-link-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.resource-link-card a {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .stack-explorer,
  .resources-showcase,
  .guide-resources {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-item:hover video,
  .gallery-item:hover img,
  .team-card:hover .team-card-photo img { transform: none; }
}