/* Brotherly Technology — Human Editorial visual system */
:root {
  --font-display: "Instrument Sans", "Open Sans", system-ui, sans-serif;
  --surface-warm: #fffaf6;
  --surface-cool: #f2f5ff;
  --ink-soft: #343640;
  --line-soft: rgba(32, 33, 42, 0.12);
  --space-section: clamp(5rem, 9vw, 8.5rem);
  --space-section-tight: clamp(3rem, 6vw, 5.5rem);
  --container-editorial: 1320px;
  --ease-out-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

h1, h2, h3, h4,
.editorial-heading {
  font-family: var(--font-display);
}

.editorial-heading {
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.editorial-measure { max-width: 62ch; }
.section-editorial { padding-block: var(--space-section); }
.surface-warm { background: var(--surface-warm); }
.surface-cool { background: var(--surface-cool); }

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 700ms var(--ease-out-editorial),
    transform 700ms var(--ease-out-editorial);
}

.motion-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.motion-ready [data-reveal][data-reveal-delay="1"] { transition-delay: 80ms; }
.motion-ready [data-reveal][data-reveal-delay="2"] { transition-delay: 160ms; }
.motion-ready [data-reveal][data-reveal-delay="3"] { transition-delay: 240ms; }

.signal-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.signal-fragment {
  position: absolute;
  width: 5px;
  height: 2px;
  border-radius: 99px;
  background: var(--brand-blue);
  opacity: 0.45;
  animation: signal-drift 14s ease-in-out infinite alternate;
}

.signal-fragment:nth-child(3n) {
  background: var(--brand-orange);
  animation-duration: 18s;
}

.signal-fragment:nth-child(3n + 2) {
  background: var(--brand-violet);
  animation-duration: 22s;
}

@keyframes signal-drift {
  from { opacity: 0.2; transform: translate3d(-8px, -6px, 0) rotate(-12deg); }
  to { opacity: 0.6; transform: translate3d(16px, 12px, 0) rotate(24deg); }
}

.image-frame {
  position: relative;
  padding: 6px;
  border-radius: 1.75rem;
  background: var(--gradient);
  box-shadow: 0 24px 64px rgba(32, 33, 42, 0.14);
}

.image-frame > img {
  width: 100%;
  border-radius: calc(1.75rem - 6px);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line-soft);
}

.proof-item {
  padding: 1.5rem;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--line-soft);
}

/* Shared presentation refinements */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(32, 33, 42, 0.08);
  backdrop-filter: blur(14px);
}

.site-header::before { display: none; }

.site-header .nav-cta {
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.site-header .nav-cta:hover {
  background: #343640;
  box-shadow: none;
}

.btn {
  border-radius: 999px;
  box-shadow: none;
}

.btn-primary { box-shadow: none; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(25, 89, 255, 0.16); }

.card {
  border-color: var(--line-soft);
  box-shadow: none;
}

/* Homepage hero */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-height));
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 8% 22%, rgba(255, 122, 47, 0.08), transparent 30%),
    radial-gradient(circle at 88% 72%, rgba(25, 89, 255, 0.10), transparent 34%),
    var(--white);
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-editorial);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.home-hero h1 {
  max-width: 10.5ch;
  font-size: clamp(3.75rem, 7vw, 6.5rem);
  font-weight: 560;
  line-height: 0.92;
}

.home-hero h1 > span { display: block; }
.home-hero-copy .lead { max-width: 37rem; }
.home-hero-media { position: relative; }

.home-hero .hero-ctas .btn {
  min-height: 50px;
  padding-inline: 1.5rem;
}

.home-hero .btn-secondary {
  border-color: rgba(32, 33, 42, 0.18);
  color: var(--ink);
}

.home-hero .btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.home-hero .signal-field {
  z-index: 0;
  opacity: 0.6;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.home-hero .signal-fragment { max-width: 6px; max-height: 6px; }
.home-hero .signal-fragment:nth-child(1) { top: 16%; left: 5%; }
.home-hero .signal-fragment:nth-child(2) { top: 31%; left: 13%; }
.home-hero .signal-fragment:nth-child(3) { top: 72%; left: 8%; }
.home-hero .signal-fragment:nth-child(4) { top: 84%; left: 22%; }
.home-hero .signal-fragment:nth-child(5) { top: 12%; left: 42%; }
.home-hero .signal-fragment:nth-child(6) { top: 78%; left: 47%; }
.home-hero .signal-fragment:nth-child(7) { top: 22%; left: 67%; }
.home-hero .signal-fragment:nth-child(8) { top: 88%; left: 71%; }
.home-hero .signal-fragment:nth-child(9) { top: 8%; left: 84%; }
.home-hero .signal-fragment:nth-child(10) { top: 38%; left: 94%; }
.home-hero .signal-fragment:nth-child(11) { top: 65%; left: 88%; }
.home-hero .signal-fragment:nth-child(12) { top: 92%; left: 96%; }

.home-hero .image-frame {
  padding: 5px;
  box-shadow: 0 20px 56px rgba(32, 33, 42, 0.12);
}

.home-hero .image-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
}

.status-note {
  position: absolute;
  z-index: 2;
  left: -1.5rem;
  bottom: -1.25rem;
  max-width: 15rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
}

.status-note strong { display: block; color: var(--success); }

/* Homepage proof and editorial regions */
.home-proof { background: var(--white); }

.proof-item strong,
.proof-item span { display: block; }

.proof-item strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
}

.proof-item span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-editorial .section-head { margin-bottom: 0; }

.section-editorial .section-head .editorial-heading {
  max-width: 18ch;
}

#home-explainer .split,
#home-dental .hero-grid,
#home-owner .hero-grid {
  gap: clamp(3rem, 7vw, 7rem);
}

#home-difference .compare { margin-top: 3rem; }

#home-difference .compare-col {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
}

#home-difference .compare-col.is-before { box-shadow: none; }

#home-difference .compare-col.is-after {
  background: var(--ink);
  box-shadow: none;
}

#home-services .grid-2 {
  max-width: 46rem;
  margin-top: 3rem;
}

#home-services .stat {
  padding: 1.5rem 0;
  border: 0;
  border-block: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}

.home-service-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 3rem;
}

.service-group {
  padding-top: 1.5rem;
  border-top: 2px solid var(--line-soft);
}

.service-group:nth-child(1) { border-top-color: var(--brand-blue); }
.service-group:nth-child(2) { border-top-color: var(--brand-violet); }
.service-group:nth-child(3) { border-top-color: var(--brand-orange); }
.service-group ul { list-style: none; margin-top: 1.25rem; }
.service-group li + li { margin-top: 0.75rem; }
.service-group a { color: var(--ink); font-weight: 650; text-decoration: none; }
.service-group a:hover { color: var(--brand-blue); }

.service-group li p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

#home-dental .quote-card,
#home-owner .quote-card {
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  list-style: none;
}

.process-line::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--gradient);
}

.process-step-editorial { position: relative; padding-top: 2.25rem; }

.process-step-editorial::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 0 6px var(--white);
}

.process-step-editorial strong,
.process-step-editorial span { display: block; }
.process-step-editorial span { margin-top: 0.55rem; color: var(--muted); }

#home-owner .photo-frame {
  max-width: 32rem;
  justify-self: center;
}

.client-proof-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(4rem, 8vw, 7rem);
}

.resource-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.resource-pair > article {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: none;
}

.resource-pair .guide-pill {
  grid-template-columns: auto 1fr;
  align-content: start;
  color: var(--ink);
}

.resource-pair .guide-cover { width: clamp(7rem, 12vw, 9rem); }
.resource-pair .guide-copy h3 { color: var(--ink); }
.resource-pair .guide-copy p { color: var(--muted); }
.resource-pair .guide-copy .btn { margin-top: 1.5rem; }

.resource-pair .btn-onbrand {
  border-color: rgba(106, 55, 217, 0.28);
  box-shadow: 0 8px 20px rgba(106, 55, 217, 0.14);
}

.resource-pair .btn-onbrand:hover {
  border-color: rgba(106, 55, 217, 0.46);
  box-shadow: 0 10px 24px rgba(106, 55, 217, 0.2);
}

.resource-pair .lead-magnet {
  grid-template-columns: 1fr;
  align-content: start;
}

.resource-pair .lead-magnet::before { display: none; }

#home-cta .cta-card {
  border-color: var(--line-soft);
  background: var(--white);
  box-shadow: none;
}

#home-cta .cta-card::before { height: 2px; }

.consultation-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  list-style: none;
  text-align: left;
}

.consultation-steps li {
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.consultation-steps strong,
.consultation-steps span { display: block; }

.consultation-steps span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Phase 2 — shared service and industry page foundation */
.editorial-page-hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.editorial-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.editorial-page-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 6.5vw, 6rem);
  font-weight: 560;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.editorial-page-copy .lead { max-width: 42rem; }
.editorial-page-media { position: relative; }
.local-context { max-width: 62ch; color: var(--muted); }

.narrative-grid,
.capability-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.capability-group {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.editorial-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line-soft);
}

.editorial-process-step { padding: 1.75rem; }
.editorial-process-step + .editorial-process-step { border-left: 1px solid var(--line-soft); }

.editorial-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.editorial-page-cta {
  border: 1px solid var(--line-soft);
  border-radius: 1.5rem;
  background: var(--surface-warm);
  padding: clamp(2rem, 5vw, 4rem);
}

/* Phase 3 — shared site-wide editorial family primitives */
.editorial-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}
.editorial-index-item { padding: 2rem 0; border-bottom: 1px solid var(--line-soft); }
.editorial-index-item:nth-child(odd) { padding-right: clamp(1.5rem, 4vw, 4rem); }
.editorial-index-item:nth-child(even) { padding-left: clamp(1.5rem, 4vw, 4rem); border-left: 1px solid var(--line-soft); }
.location-context, .company-story { max-width: 68rem; }
.location-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.conversion-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.conversion-copy { position: sticky; top: 7rem; }
.conversion-panel { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line-soft); border-radius: 1.5rem; background: var(--white); }
.trust-note { padding-top: 1rem; border-top: 1px solid var(--line-soft); color: var(--muted); }

@media (max-width: 1080px) {
  .site-header.nav-open { backdrop-filter: none; }
  .nav-open .nav-links { inset: var(--nav-height) 0 0; }
}

@media (max-width: 860px) {
  .home-hero { min-height: auto; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-media { max-width: 42rem; }
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .home-service-groups,
  .resource-pair { grid-template-columns: 1fr; }
  .editorial-index,
  .conversion-layout { grid-template-columns: 1fr; }
  .editorial-index-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .conversion-copy { position: static; }
  .editorial-page-grid,
  .narrative-grid,
  .capability-groups,
  .editorial-proof,
  .editorial-process { grid-template-columns: 1fr; }
  .editorial-process-step + .editorial-process-step {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }
  .process-line { grid-template-columns: 1fr; }
  .process-line::before {
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.35rem;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process-step-editorial { padding: 0 0 1.75rem 2rem; }
  .process-step-editorial::before {
    top: 0.25rem;
    box-shadow: 0 0 0 6px var(--white);
  }
  .client-proof-band { grid-template-columns: 1fr; }
  .consultation-steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .editorial-page-copy h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .editorial-page-hero .hero-ctas .btn,
  .editorial-page-hero .hero-actions .btn { min-height: 44px; }
  .home-hero h1 {
    max-width: none;
    font-size: clamp(2.75rem, 15vw, 4rem);
  }
  .home-hero-grid { padding-block: clamp(3.5rem, 14vw, 5rem); }
  .home-hero .hero-ctas .btn { width: 100%; min-height: 44px; }
  .home-hero .signal-fragment:nth-child(n + 9) { display: none; }
  .status-note { position: relative; left: auto; bottom: auto; margin: -1rem 1rem 0; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-item + .proof-item {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }
  .resource-pair .guide-pill { grid-template-columns: 1fr; }
  .resource-pair .guide-cover { justify-self: center; }
  .location-links a,
  .editorial-index-item a,
  .conversion-panel a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .conversion-panel button,
  .conversion-panel input,
  .conversion-panel select,
  .conversion-panel textarea {
    min-height: 44px;
  }
  #dl-fallback-1 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 0.5rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(25, 89, 255, 0.24);
    border-radius: 999px;
    background: var(--surface-cool);
    font-weight: 700;
    text-decoration: none;
  }
  .service-group a { display: inline-flex; align-items: center; min-height: 44px; }
  .section-editorial .btn { min-height: 44px; }
  .site-footer li { margin-bottom: 0; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-social a { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .signal-fragment,
  [data-reveal] {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}
