/* Vibrant Prism: expressive campaign layout with saturated, playful composition. */
html body:not(.vitalweb-remix) main {
  width: min(1160px, calc(100% - 34px)) !important;
}

html body:not(.vitalweb-remix) .intro-block {
  max-width: 980px !important;
  margin-inline: auto !important;
  padding: clamp(30px, 5vw, 56px) !important;
  border-radius: 40px 40px 10px 40px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, .32), transparent 9rem),
    linear-gradient(120deg, rgba(236, 72, 153, .96), rgba(124, 58, 237, .78) 48%, rgba(34, 197, 94, .88)) !important;
  box-shadow: 0 30px 90px rgba(236, 72, 153, .22) !important;
  transform: rotate(-.6deg) !important;
}

html body:not(.vitalweb-remix) .intro-block * {
  color: #ffffff !important;
}

html body:not(.vitalweb-remix) .grid {
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  margin-top: clamp(28px, 5vw, 54px) !important;
}

html body:not(.vitalweb-remix) main .grid .card {
  grid-column: span 3 !important;
  min-height: 350px !important;
  border-radius: 40px 12px 40px 12px !important;
  border: 2px solid rgba(255, 255, 255, .72) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,255,255,.74)),
    repeating-linear-gradient(-12deg, rgba(236,72,153,.12) 0 8px, rgba(34,197,94,.1) 8px 16px) !important;
  box-shadow: 0 30px 70px rgba(124, 58, 237, .18) !important;
}

html body:not(.vitalweb-remix) main .grid .card:nth-child(1) {
  grid-column: 1 / span 3 !important;
  transform: translateY(22px) rotate(-2.2deg) !important;
}

html body:not(.vitalweb-remix) main .grid .card:nth-child(2) {
  grid-column: 4 / span 3 !important;
  transform: translateY(-16px) rotate(1.4deg) !important;
}

html body:not(.vitalweb-remix) main .grid .card:nth-child(3) {
  grid-column: 7 / span 3 !important;
  transform: translateY(32px) rotate(-1deg) !important;
}

html body:not(.vitalweb-remix) main .grid .card:hover {
  transform: translateY(-2px) rotate(0deg) !important;
}

html body .eyebrow,
html body .tag,
html body .badge,
html body .pill,
html body main .grid .card > span:first-child {
  color: #111827 !important;
  background: linear-gradient(135deg, #fef08a, #7dd3fc) !important;
  border-radius: 999px !important;
}

/* Interior layout identity: colorful campaign landing page with offset feature bands. */
html body .hero {
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  min-height: 660px !important;
  text-align: center !important;
  border-radius: 52px 12px 52px 12px !important;
  overflow: hidden !important;
  padding: clamp(42px, 7vw, 92px) !important;
}

html body .hero-copy {
  max-width: 860px !important;
  margin-inline: auto !important;
}

html body .hero h1 {
  font-size: clamp(58px, 9vw, 108px) !important;
}

html body .summary-card {
  width: min(760px, 100%) !important;
  margin-top: 26px !important;
  transform: rotate(-1deg) !important;
}

html body .service-list,
html body .support-grid,
html body .systems-grid,
html body .trust-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html body .service-list article,
html body .support-grid article,
html body .systems-grid article,
html body .trust-grid article {
  grid-column: span 2 !important;
  min-height: 220px !important;
  border-radius: 34px 8px 34px 8px !important;
}

html body .service-list article:nth-child(2),
html body .support-grid article:nth-child(2),
html body .systems-grid article:nth-child(2),
html body .trust-grid article:nth-child(2) {
  grid-column: span 3 !important;
  transform: translateY(-22px) rotate(1deg) !important;
}

html body .service-list article:nth-child(3n),
html body .support-grid article:nth-child(3n),
html body .systems-grid article:nth-child(3n),
html body .trust-grid article:nth-child(3n) {
  grid-column: span 3 !important;
  transform: translateY(18px) rotate(-.8deg) !important;
}

@media (max-width: 820px) {
  html body:not(.vitalweb-remix) .grid {
    grid-template-columns: 1fr !important;
  }

  html body:not(.vitalweb-remix) main .grid .card,
  html body:not(.vitalweb-remix) main .grid .card:nth-child(1),
  html body:not(.vitalweb-remix) main .grid .card:nth-child(2),
  html body:not(.vitalweb-remix) main .grid .card:nth-child(3) {
    grid-column: auto !important;
    transform: none !important;
  }
}

/* Card spacing safety pass: keeps text from hugging card borders on all sample pages. */
html body :where(.card, .card-link, .summary-card, .portrait-card, .service-card, .specialty-card, .resource-card, .testimonial-card, .fit-card, .process-card, .detail-card, .board-card, .contact-panel, .trust-panel, .detail-module, .detail-console),
html body :where(.service-list, .support-grid, .systems-grid, .trust-grid, .mosaic-grid, .reason-stack, .fit-ribbon) > article,
html body :where(.process-lane) li {
  box-sizing: border-box !important;
  padding: clamp(20px, 2.4vw, 30px) !important;
}

/* Form spacing safety pass: keeps labels and controls comfortably inside contact forms. */
html body :where(form, .lead-form, .quote-form, .managed-form) {
  box-sizing: border-box !important;
  padding: clamp(22px, 2.6vw, 34px) !important;
}

/* Mobile fit pass: keep colorful prism cards readable on narrow screens. */
@media (max-width: 760px) {
  html body main,
  html body .studio-hero,
  html body .summary-card,
  html body .service-mosaic,
  html body .mosaic-grid,
  html body .reason-stack,
  html body .support-grid,
  html body .trust-grid,
  html body .systems-grid,
  html body .detail-module,
  html body .detail-card,
  html body .trust-contact,
  html body .contact-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body .studio-hero,
  html body .service-mosaic,
  html body .mosaic-grid,
  html body .reason-stack,
  html body .support-grid,
  html body .trust-grid,
  html body .systems-grid,
  html body .trust-contact,
  html body .process-lane,
  html body .process-lane ol {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  html body p,
  html body li,
  html body dd,
  html body .summary-card *,
  html body article * {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

/* Final readability/media safety pass: keeps page images contained and tiny marks readable. */
html body img {
  max-width: 100% !important;
}

html body :where(.brand-mark, .tag, .badge, .label, .kicker) {
  opacity: 1 !important;
  text-shadow: none !important;
}

html body :where(.brand-mark) {
  color: #102326 !important;
  background: #f7fff9 !important;
  border: 1px solid rgba(16, 35, 38, .14) !important;
}

html body:not(.vitalweb-remix) main .grid .card,
html body:not(.vitalweb-remix) main .grid .card:visited {
  color: inherit !important;
  overflow: hidden !important;
}

html body:not(.vitalweb-remix) main .grid .card * {
  opacity: 1 !important;
  text-shadow: none !important;
}

html body .button,
html body button,
html body a[class*="button"] {
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Final mobile override: remove offset card layout on phone screens. */
@media (max-width: 760px) {
  html body .service-list,
  html body .support-grid,
  html body .systems-grid,
  html body .trust-grid,
  html body .reason-stack,
  html body .mosaic-grid,
  html body .trust-contact {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body .service-list article,
  html body .support-grid article,
  html body .systems-grid article,
  html body .trust-grid article,
  html body .service-list article:nth-child(2),
  html body .support-grid article:nth-child(2),
  html body .systems-grid article:nth-child(2),
  html body .trust-grid article:nth-child(2),
  html body .service-list article:nth-child(3n),
  html body .support-grid article:nth-child(3n),
  html body .systems-grid article:nth-child(3n),
  html body .trust-grid article:nth-child(3n) {
    grid-column: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  html body article *,
  html body p,
  html body li,
  html body h3 {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

/* Contact form safety pass: keeps compact demo forms readable on every page. */
html body form.contact-panel,
html body .contact-panel:is(form) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  align-content: start !important;
}

html body form.contact-panel label,
html body .contact-panel:is(form) label {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 7px !important;
  min-width: 0 !important;
  color: inherit !important;
  font-weight: 700 !important;
}

html body form.contact-panel input,
html body form.contact-panel select,
html body form.contact-panel textarea,
html body .contact-panel:is(form) input,
html body .contact-panel:is(form) select,
html body .contact-panel:is(form) textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  font: inherit !important;
}

html body form.contact-panel textarea,
html body .contact-panel:is(form) textarea {
  min-height: 116px !important;
  resize: vertical;
}

/* Form field readability pass: prevents dark inherited controls on light contact layouts. */
html body form.contact-panel input,
html body form.contact-panel select,
html body form.contact-panel textarea,
html body .contact-panel:is(form) input,
html body .contact-panel:is(form) select,
html body .contact-panel:is(form) textarea {
  color: #172126 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(23, 33, 38, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

html body form.contact-panel input::placeholder,
html body form.contact-panel textarea::placeholder,
html body .contact-panel:is(form) input::placeholder,
html body .contact-panel:is(form) textarea::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}
