/* ============================================================
   Diamond AI Consulting — shared styles
   Loaded by all 4 pages.
   Organized in sections per docs/superpowers/specs/2026-05-18-diamond-ai-revamp.md A.2.
   ============================================================ */

/* ---------- 1. Reset + tokens ---------- */

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

:root {
  --bg-base: #05070F;
  --bg-surface: rgba(255,255,255,0.05);
  --bg-surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --border-hover: rgba(123,63,228,0.40);
  --purple: #7B3FE4;
  --indigo: #3B5BDB;
  --cyan: #0EA5E9;
  --success: #10B981;
  --danger-soft: #F97316;
  --text-primary: #FFFFFF;
  --text-muted: rgba(255,255,255,0.65);
  --text-dim: rgba(255,255,255,0.35);
  --purple-glow: rgba(123,63,228,0.35);
  --radius: 16px;
}

/* ---------- 2. Base elements ---------- */

html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  animation: bodyFadeIn 400ms ease-out;
}

@keyframes bodyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Geist', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

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

button { font: inherit; cursor: pointer; }

/* Focus indicators */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Utility classes ---------- */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.section-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. Glass card ---------- */

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--radius);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 24px var(--purple-glow);
  border-color: var(--border-hover);
}

/* ---------- 5. Buttons ---------- */

.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: box-shadow 200ms ease-out, transform 200ms ease-out, background 200ms ease-out, border-color 200ms ease-out;
  text-align: center;
}

.btn-primary {
  background: var(--purple);
  color: var(--text-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(123, 63, 228, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(123, 63, 228, 0.7);
  transition-duration: 100ms;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- 6. Orb background (shared on every page) ---------- */

.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.30;
}

/* Positioning: each orb is 800px. With ~560px pushed off-screen, only ~240px
   (about 30%) of the orb shape itself is in the viewport. The 130px blur
   bleeds soft color beyond that edge into the dark base, giving an ambient
   wash rather than a visible blob. */
.orb-1 {
  width: 800px; height: 800px;
  background: var(--purple);
  top: -560px; left: -560px;
  animation: orbDrift1 18s ease-in-out infinite alternate;
}
.orb-2 {
  width: 800px; height: 800px;
  background: var(--indigo);
  top: 30%; right: -560px;
  animation: orbDrift2 22s ease-in-out infinite alternate;
}
.orb-3 {
  width: 800px; height: 800px;
  background: var(--cyan);
  bottom: -560px; left: -560px;
  animation: orbDrift3 20s ease-in-out infinite alternate;
}

@keyframes orbDrift1 { 0% { transform: translate(0,0); } 100% { transform: translate(60px, 40px); } }
@keyframes orbDrift2 { 0% { transform: translate(0,0); } 100% { transform: translate(-50px, 60px); } }
@keyframes orbDrift3 { 0% { transform: translate(0,0); } 100% { transform: translate(40px, -50px); } }

/* All non-orb content sits above the orbs */
nav, main, section, footer { position: relative; z-index: 1; }


/* ---------- 7. Nav ---------- */

nav#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 350ms ease, backdrop-filter 350ms ease, border-color 350ms ease;
}
nav#navbar.scrolled {
  background: rgba(5, 7, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.nav-logo svg { width: 24px; height: 24px; }
.nav-logo span { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 200ms ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-cta {
  background: var(--purple) !important;
  color: var(--text-primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: box-shadow 200ms ease, transform 200ms ease !important;
}
.nav-cta:hover {
  box-shadow: 0 0 22px rgba(123, 63, 228, 0.55) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  position: relative;          /* required for z-index to apply */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  background: none;
  border: none;
  appearance: none;            /* strip default UA button styling */
  -webkit-appearance: none;
  min-width: 36px;
  min-height: 28px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 300ms ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 7, 15, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 200ms ease;
}
.mobile-menu a:hover { color: var(--purple); }
.mobile-close {
  position: absolute;
  top: 1.75rem; right: 2rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  background: none;
  border: none;
}

/* ---------- 8. Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: rgba(255, 255, 255, 0.018);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-brand span { color: var(--purple); }
.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}
.footer-email {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.footer-email a { color: var(--cyan); transition: color 200ms ease; }
.footer-email a:hover { color: var(--text-primary); }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.84rem;
  transition: color 200ms ease;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-right {
  text-align: right;
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ---------- 9. Final CTA / Calendly section ---------- */

section#book {
  padding: 7rem 0;
}
.book-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.book-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.calendly-wrap {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.book-email {
  margin-top: 1.75rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.book-email a {
  color: var(--cyan);
  transition: color 200ms ease;
}
.book-email a:hover { color: var(--text-primary); text-decoration: underline; }

/* ---------- 10. Shared responsive ---------- */

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-right, .footer-links { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section-headline { font-size: 1.8rem; }
}


/* ---------- 11. Home hero ---------- */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 9rem 2rem 6rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(123, 63, 228, 0.5);
  border-radius: 100px;
  padding: 0.45rem 1.2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  box-shadow: 0 0 24px rgba(123, 63, 228, 0.12);
  letter-spacing: 0.05em;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--purple);
  flex-shrink: 0;
}
.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  min-height: 1.25em;
  /* Natural wrap. text-align is inherited from .hero-content (center). */
}

/* On wide desktops (>=1400px) widen the Home hero container only, so the
   31-character headline fits on a single line. Sub-headline (580px max) and
   CTAs (flex-center) have their own constraints and stay narrow. */
@media (min-width: 1400px) {
  #hero .hero-content { max-width: 1140px; }
}
.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--purple);
  margin-left: 3px;
  animation: blink 0.9s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.scroll-ind {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  z-index: 2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-ind svg {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@media (max-width: 768px) {
  .hero-headline { font-size: 2.4rem; }
  .hero-content { padding: 8rem 1.5rem 5rem; }
}

/* ---------- 12. Trust bar (Home, Automation) ---------- */

#trust-bar {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}
.trust-label {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-row .wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.55;
  transition: opacity 200ms ease;
}
.trust-row .wordmark:hover { opacity: 1; }
.trust-row .wordmark-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  gap: 0.15rem;
}
.trust-row .divider {
  width: 1px; height: 24px;
  background: var(--border);
}

@media (max-width: 768px) {
  .trust-row { flex-direction: column; gap: 1.25rem; }
  .trust-row .divider { display: none; }
  .trust-row .wordmark { border-bottom: 1px solid var(--border); padding-bottom: 1rem; width: 100%; text-align: center; }
  .trust-row .wordmark:last-child { border-bottom: none; }
}

/* ---------- 13. Home service pillars ---------- */

#services {
  padding: 7rem 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem;
  text-decoration: none;
  color: inherit;
}
.pillar-icon {
  width: 32px; height: 32px;
  color: var(--purple);
  margin-bottom: 1.25rem;
  transition: transform 400ms ease;
}
.pillar-card:hover .pillar-icon { transform: rotate(4deg); }
.pillar-name {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}
.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.4rem;
  flex: 1;
}
.pillar-link {
  font-size: 0.84rem;
  color: var(--cyan);
  font-weight: 600;
  transition: color 200ms ease;
}
.pillar-card:hover .pillar-link { color: var(--text-primary); }

/* Per-icon hover animations */
@keyframes nodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.pillar-card:hover .icon-automation .node {
  animation: nodePulse 1.6s ease-in-out infinite;
}
.pillar-card:hover .icon-automation .node:nth-of-type(2) { animation-delay: 0.1s; }
.pillar-card:hover .icon-automation .node:nth-of-type(3) { animation-delay: 0.2s; }
.pillar-card:hover .icon-automation .node:nth-of-type(4) { animation-delay: 0.3s; }

.icon-radar .arc { stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 600ms ease-out; }
.pillar-card:hover .icon-radar .arc { animation: radarSweep 2.6s ease-out infinite; }
.pillar-card:hover .icon-radar .arc:nth-of-type(2) { animation-delay: 0.08s; }
.pillar-card:hover .icon-radar .arc:nth-of-type(3) { animation-delay: 0.16s; }
@keyframes radarSweep {
  0% { stroke-dashoffset: 100; opacity: 0.2; }
  60% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.icon-prism { transition: transform 400ms ease; }
.pillar-card:hover .icon-prism { transform: rotate(15deg); }
.icon-prism .ray { opacity: 0; transition: opacity 400ms ease; }
.pillar-card:hover .icon-prism .ray { opacity: 1; }
.pillar-card:hover .icon-prism .ray:nth-of-type(2) { transition-delay: 0.1s; }
.pillar-card:hover .icon-prism .ray:nth-of-type(3) { transition-delay: 0.2s; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- 14. Process section (Home) + How-We-Work (Portfolio) ---------- */

#process,
#how-we-work {
  padding: 7rem 0;
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-row {
  display: grid;
  grid-template-columns: 1fr 90px 1fr 90px 1fr;
  align-items: start;
  margin-top: 4rem;
}
.step {
  text-align: center;
  padding: 0 0.75rem;
}
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1.4rem;
  box-shadow: 0 0 28px rgba(123, 63, 228, 0.45);
  color: var(--text-primary);
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}
.step p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.step-connector {
  display: flex;
  align-items: flex-start;
  padding-top: 27px;
}
.dashed-line {
  flex: 1;
  height: 2px;
  border-top: 2px dashed rgba(123, 63, 228, 0.35);
  position: relative;
  overflow: hidden;
}
.dashed-line::after {
  content: '';
  position: absolute;
  top: -1px; left: -100%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  animation: dashFlow 2.5s ease-in-out infinite;
}
@keyframes dashFlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

@media (max-width: 900px) {
  .steps-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .step-connector { display: none; }
}


/* ---------- 15. Nav dropdown (Growth) ---------- */

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Geist', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 200ms ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--text-primary); }
.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 200ms ease;
  display: inline-block;
}
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  min-width: 260px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  z-index: 1050;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a,
.nav-dropdown-menu .nav-dropdown-disabled {
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease;
}
.nav-dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.nav-dropdown-menu .nav-dropdown-disabled {
  color: var(--text-dim);
  opacity: 0.55;
  cursor: not-allowed;
}
.nav-dropdown-menu .nav-dropdown-disabled em {
  font-style: normal;
  margin-left: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

/* Mobile dropdown rendering — flattened inside the hamburger overlay */
.mobile-dropdown-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.mobile-dropdown-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.mobile-dropdown-group a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 200ms ease;
}
.mobile-dropdown-group a:hover { color: var(--purple); }
.mobile-dropdown-disabled {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dim);
  opacity: 0.5;
}
.mobile-dropdown-disabled em {
  font-style: normal;
  margin-left: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

/* ---------- 16. Automation hero ---------- */

#hero-automation {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-automation .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 9rem 2rem 6rem;
}
#hero-automation .hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
#hero-automation .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
#hero-automation .word.in {
  opacity: 1;
  transform: translateY(0);
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  #hero-automation .hero-content { padding: 8rem 1.5rem 5rem; }
  #hero-automation .hero-headline { font-size: 2.4rem; }
}

/* ---------- 17. Automation services bento ---------- */

#services-automation { padding: 7rem 0; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1.25rem;
  margin-top: 3rem;
}
.bento-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem;
}
.bento-card.feature {
  padding: 3rem;
}
.bento-card.feature .bento-icon { width: 48px; height: 48px; margin-bottom: 1.5rem; }
.bento-card .bento-icon {
  width: 32px; height: 32px;
  color: var(--purple);
  margin-bottom: 1.25rem;
}
.bento-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}
.bento-card.feature h3 { font-size: 1.5rem; }
.bento-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.bento-card .pricing-line {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 1.25rem;
}
.bento-card.feature .pricing-line { font-size: 0.84rem; }

/* Locked bento geometry */
.bento-feature-1 { grid-column: 1 / span 2; grid-row: 1; }
.bento-feature-2 { grid-column: 3; grid-row: 1; }
.bento-standard-1 { grid-column: 1; grid-row: 2; }
.bento-standard-2 { grid-column: 2; grid-row: 2; }
.bento-standard-3 { grid-column: 3; grid-row: 2; }
.bento-standard-4 { grid-column: 1; grid-row: 3; }
.bento-standard-5 { grid-column: 2; grid-row: 3; }
.bento-callout { grid-column: 3; grid-row: 3; }

.bento-callout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px dashed rgba(123, 63, 228, 0.4);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  transition: border-color 200ms ease, color 200ms ease, transform 300ms ease;
}
.bento-callout:hover {
  border-color: var(--purple);
  color: var(--text-primary);
  transform: translateY(-4px);
}
.bento-callout .callout-arrow {
  font-size: 1.5rem;
  color: var(--purple);
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-feature-1,
  .bento-feature-2,
  .bento-standard-1,
  .bento-standard-2,
  .bento-standard-3,
  .bento-standard-4,
  .bento-standard-5,
  .bento-callout { grid-column: 1; grid-row: auto; }
}


/* ---------- 18. Who we build for (Automation) ---------- */

#who-we-build-for {
  padding: 3rem 0;
}
.wwbf-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.wwbf-row .wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.55;
  transition: opacity 200ms ease;
}
.wwbf-row .wordmark:hover { opacity: 1; }
.wwbf-row .dot {
  width: 3px; height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* ---------- 19. Case study card (Automation) ---------- */

#case-study { padding: 7rem 0; }
.case-feature {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding: 3rem;
  margin-top: 3rem;
  align-items: center;
}
.case-feature .case-tag {
  display: inline-block;
  background: rgba(123, 63, 228, 0.14);
  border: 1px solid rgba(123, 63, 228, 0.35);
  color: #c4b5fd;
  border-radius: 6px;
  padding: 0.25rem 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.case-feature h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.case-feature .case-summary {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.case-feature .case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.case-feature .case-tags span:not(:last-child)::after {
  content: '\00B7';
  margin-left: 0.5rem;
  color: var(--text-dim);
}
.case-feature .case-result {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.case-feature .case-link {
  font-size: 0.92rem;
  color: var(--cyan);
  font-weight: 600;
  transition: color 200ms ease;
}
.case-feature .case-link:hover { color: var(--text-primary); }
.case-feature .case-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(123,63,228,0.08), rgba(14,165,233,0.08));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .case-feature { grid-template-columns: 1fr; gap: 2rem; }
}


/* ---------- 20. Home Services hero ---------- */

#hero-hs {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
}
#hero-hs .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}
#hero-hs .hero-badge {
  margin-bottom: 2rem;
  letter-spacing: 0.15em;
}
.hs-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hs-headline .accent {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.hs-reveal-line {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.hs-reveal-line.in {
  opacity: 1;
  transform: translateY(0);
}
.hs-math-line {
  font-family: 'Geist', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}
#hero-hs .hero-sub {
  max-width: 720px;
}

/* Ad-spend stat row beneath hero */
#hero-stat {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}
.hero-stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  color: var(--text-primary);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.55;
}
.hero-stat-source {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.85rem;
}

/* ---------- 21. Pain section (Home Services) ---------- */

#pain { padding: 6rem 0; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.pain-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 1.75rem;
  transition: border-color 200ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.pain-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.15);
}
.pain-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  color: var(--danger-soft);
}
.pain-card p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr; }
}

/* ---------- 22. Home Services services bento ---------- */

#services-hs { padding: 6rem 0; }
.hs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.hs-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem;
}
.hs-card.featured {
  grid-column: 1 / -1;
  padding: 3rem;
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
    linear-gradient(135deg, var(--purple), var(--cyan)) border-box;
}
.hs-card.featured::before {
  /* Restore the glass tint inside the gradient border */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--bg-surface);
  backdrop-filter: blur(16px) saturate(140%);
  z-index: -1;
}
.hs-card .popular-chip {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}
.hs-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.hs-card.featured h3 { font-size: 1.7rem; }
.hs-card .hs-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}
.hs-card .hs-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.hs-card .hs-price strong { color: var(--purple); font-weight: 700; }
.hs-card .hs-link {
  font-size: 0.86rem;
  color: var(--cyan);
  font-weight: 600;
  transition: color 200ms ease;
}
.hs-card .hs-link:hover { color: var(--text-primary); }

@media (max-width: 900px) {
  .hs-grid { grid-template-columns: 1fr; }
  .hs-card.featured { grid-column: 1; }
}
.hs-card .founding-banner {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}
.hs-card .pricing-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* ---------- 23. The Diamond Difference (Home Services) ---------- */

#diamond-difference {
  padding: 7rem 0;
  position: relative;
}
#diamond-difference::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(123,63,228,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
#diamond-difference > .container { position: relative; z-index: 1; }

.dd-headline {
  text-align: center;
}
.dd-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}
.dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.dd-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem;
}
.dd-card .dd-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.dd-card .dd-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  font-size: 1rem;
}
.dd-card .dd-row + .dd-row {
  border-top: 1px solid var(--border);
}
.dd-card .dd-row svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
}

.dd-left {
  filter: saturate(0.7);
}
.dd-left .dd-header { color: rgba(255,255,255,0.65); }
.dd-left .dd-row { color: var(--text-muted); }
.dd-left .dd-row svg { color: var(--danger-soft); }

.dd-right {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
    linear-gradient(135deg, var(--purple), var(--cyan)) border-box;
  box-shadow: 0 0 32px rgba(123, 63, 228, 0.25);
  position: relative;
}
.dd-right::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--bg-surface);
  backdrop-filter: blur(16px) saturate(140%);
  z-index: -1;
}
.dd-right .dd-header { color: var(--purple); font-weight: 700; }
.dd-right .dd-row { color: var(--text-primary); }
.dd-right .dd-row svg { color: var(--success); }
.dd-right .dd-closer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: 'Geist', sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

@media (max-width: 900px) {
  .dd-grid { grid-template-columns: 1fr; }
  .dd-left { order: 1; }
  .dd-right { order: 2; }
}
.dd-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 24. ROI calculator (Home Services) ---------- */

#roi {
  padding: 7rem 0;
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.roi-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}
.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.roi-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.roi-field .val {
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--purple);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(123, 63, 228, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--purple);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(123, 63, 228, 0.5);
}
.roi-text {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-family: 'Geist', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 200ms ease;
}
.roi-text:focus { border-color: rgba(123, 63, 228, 0.5); }
.roi-output { padding: 2.25rem; }
.roi-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.roi-line-label { font-size: 0.85rem; color: var(--text-muted); }
.roi-line-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: right;
}
.roi-big {
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  background: rgba(123, 63, 228, 0.08);
  border: 1px solid rgba(123, 63, 228, 0.22);
}
.roi-big-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.roi-big-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.roi-big-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.roi-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
}
.roi-disclaimer {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .roi-inner { grid-template-columns: 1fr; }
}

/* ---------- 25. Why Diamond (Home Services) ---------- */

#why-diamond { padding: 6rem 0; }
.wd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.wd-card { padding: 2.5rem 2.25rem; }
.wd-card .wd-icon {
  width: 32px; height: 32px;
  color: var(--purple);
  margin-bottom: 1.25rem;
}
.wd-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.wd-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) { .wd-grid { grid-template-columns: 1fr; } }

/* ---------- 26. Be First / More Soon (dashed-border invitation card) ---------- */

#be-first, #more-soon { padding: 6rem 0; }
.dashed-invite {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  text-align: center;
  border: 1px dashed rgba(123, 63, 228, 0.4);
  border-radius: var(--radius);
  background: rgba(123, 63, 228, 0.04);
  transition: border-color 300ms ease, background 300ms ease;
}
.dashed-invite:hover {
  border-color: rgba(123, 63, 228, 0.7);
  background: rgba(123, 63, 228, 0.07);
}
.dashed-invite h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 1rem;
}
.dashed-invite p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 27. Compact trust bar (Home Services variant) ---------- */
/* Same DOM as the Home/Automation trust bar but visually subordinate:
   single horizontal row with label left-aligned, smaller wordmarks,
   lower opacity. Reads as a credibility footnote, not a hero element. */

.trust-bar-compact { padding: 1.75rem 0; }
.trust-bar-compact .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.trust-bar-compact .trust-label {
  margin-bottom: 0;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.trust-bar-compact .trust-row {
  gap: 1.25rem;
}
.trust-bar-compact .trust-row .wordmark {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  opacity: 0.5;
}
.trust-bar-compact .trust-row .divider {
  height: 16px;
}
.trust-bar-compact .wordmark-stack { gap: 0.05rem; }
@media (max-width: 900px) {
  .trust-bar-compact .container { gap: 1rem; }
  .trust-bar-compact .trust-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .trust-bar-compact .trust-row .wordmark {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    width: auto !important;
  }
}

/* ---------- 28. Pain stat cards (Home Services) ---------- */
/* Overrides the original red-X pain card visual with a stat-led format:
   big gradient stat phrase, body copy, tiny muted source footnote. */

.pain-card {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  padding: 2rem 1.75rem !important;
}
.pain-card .pain-stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 2.3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.pain-card .pain-body {
  font-family: 'Geist', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.pain-card .pain-source {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pain-card:hover {
  border-color: var(--border-hover) !important;
  box-shadow: 0 0 24px var(--purple-glow) !important;
}

/* ---------- 29. À la carte compressed services grid (Home Services) ---------- */
/* Sits below the Full Growth Stack featured card. Compact text-only grid
   (2x2 desktop, stacked mobile) instead of 4 individual glass cards. */

.alacarte-wrap {
  margin-top: 2.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}
.alacarte-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  text-align: center;
}
.alacarte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.alacarte-item {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.alacarte-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.alacarte-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--purple);
  white-space: nowrap;
}
.alacarte-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.alacarte-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 1.25rem;
}
.alacarte-cta {
  display: block;
  width: max-content;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .alacarte-grid { grid-template-columns: 1fr; gap: 0; }
  .alacarte-name { flex-direction: column; gap: 0.15rem; align-items: flex-start; }
}

/* ---------- 30. Home hero tech-font override ---------- */
/* Monospace treatment on the Home page typewriter headline only.
   Scope: #hero .hero-headline (Home only); the Automation page's
   .hero-headline stays Space Grotesk for the word-reveal effect. */

#hero .hero-headline {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.9rem, 4.3vw, 3.2rem);
  letter-spacing: -0.015em;
  font-weight: 700;
}

/* ---------- 31. Real Estate case study page ---------- */

#hero-cs {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
}
#hero-cs .hero-content {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}
.cs-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1.5rem;
}
.cs-headline .accent {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#hero-cs .hero-sub { max-width: 680px; }

/* Section rhythm for case study blocks */
.cs-section { padding: 5rem 0; }
.cs-section.alt {
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-narrow { max-width: 820px; margin: 0 auto; }

/* Problem / Result statement card */
.cs-statement { padding: 2.75rem 2.5rem; }
.cs-statement p {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
}

/* Result card — gradient-border emphasis (mirrors .hs-card.featured) */
.cs-result {
  position: relative;
  padding: 2.75rem 2.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
    linear-gradient(135deg, var(--purple), var(--cyan)) border-box;
  box-shadow: 0 0 32px rgba(123, 63, 228, 0.22);
}
.cs-result::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--bg-surface);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  z-index: -1;
}
.cs-result p {
  font-size: 1.12rem;
  color: var(--text-primary);
  line-height: 1.7;
}

/* What we built — feature grid */
.cs-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.cs-feature {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
}
.cs-feature .cs-feature-icon {
  width: 30px; height: 30px;
  color: var(--purple);
  margin-bottom: 1.1rem;
}
.cs-feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.cs-feature p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.cs-feature.span-2 { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .cs-features { grid-template-columns: 1fr; }
  .cs-feature.span-2 { grid-column: 1; }
}

/* The stack — pill badges */
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  justify-content: center;
}
.stack-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.15rem;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.stack-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

/* Dashboard preview — screenshot in a glass frame with gradient glow */
#dashboard-preview { padding: 1rem 0 2rem; }
.dash-frame {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
/* Faint gradient glow behind the frame so it sits cleanly on the dark base */
.dash-frame::before {
  content: '';
  position: absolute;
  inset: -8% -4%;
  background: radial-gradient(ellipse at center, rgba(123, 63, 228, 0.22) 0%, rgba(14, 165, 233, 0.10) 45%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.dash-card {
  position: relative;
  z-index: 1;
  padding: 0.6rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.dash-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
}
.dash-cta {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .dash-card { padding: 0.4rem; }
}

/* ---------- 32. Web Services "What We Build" capabilities page ---------- */

#hero-web {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 4rem;
}
#hero-web .hero-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}
.web-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
#hero-web .hero-sub { max-width: 660px; }

/* Experience bar — stat blocks (mirrors the homepage social-proof bar) */
#experience-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}
.exp-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.exp-block {
  text-align: center;
  min-width: 150px;
}
.exp-stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.exp-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}
.exp-row .exp-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

@media (max-width: 768px) {
  .exp-row { flex-direction: column; gap: 1.75rem; }
  .exp-row .exp-divider { display: none; }
}

/* What We Build — capability bento (mirrors homepage services grid) */
#capabilities { padding: 7rem 0; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.cap-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem;
}
.cap-card.feature {
  grid-column: 1 / span 2;
  padding: 3rem;
}
.cap-card .cap-icon {
  width: 34px; height: 34px;
  color: var(--purple);
  margin-bottom: 1.25rem;
  transition: transform 400ms ease;
}
.cap-card:hover .cap-icon { transform: rotate(6deg) scale(1.08); }
.cap-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}
.cap-card.feature h3 { font-size: 1.6rem; }
.cap-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.cap-card.feature p { font-size: 0.98rem; max-width: 640px; }

@media (max-width: 900px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card.feature { grid-column: 1; }
}

/* Recent builds — compact proof tiles at the bottom */
#recent-builds { padding: 6rem 0; }
.builds-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.build-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.6rem 1.6rem;
}
.build-label {
  display: inline-block;
  background: rgba(123, 63, 228, 0.14);
  border: 1px solid rgba(123, 63, 228, 0.35);
  color: #c4b5fd;
  border-radius: 6px;
  padding: 0.2rem 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.build-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .builds-row { grid-template-columns: 1fr; }
}

/* ---------- 99. Reduced motion override (KEEP AT END OF FILE) ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .orb { animation: none !important; }
  #heroCanvas { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { animation: none !important; }
}
