/* Shared public-site design system. Loaded after page styles so semantic rules win. */
.public-site {
  --theme-accent: var(--yellow);
  --theme-accent-ink: #111;
  --public-shell: var(--site-shell);
  --public-section-space: var(--section-space);
}

.theme-web {
  --theme-accent: #8fa8ff;
  --yellow: var(--theme-accent);
}

.theme-social {
  --theme-accent: #ffd400;
}

.solution-theme {
  --theme-accent: var(--solution-accent, var(--yellow));
}

/* One responsive scale per semantic heading level. */
body.public-site.public-site main h1 {
  font-size: var(--type-display) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.06em !important;
}

body.public-site.public-site main h2 {
  font-size: var(--type-section) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.052em !important;
}

body.public-site.public-site main h3 {
  font-size: var(--type-card) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
}

.public-site .solutions {
  overflow-x: clip;
}

/* Shared content width and vertical rhythm. */
.public-site {
  --about-shell: var(--public-shell);
  --contact-shell: var(--public-shell);
  --shell: var(--public-shell);
  --solution-shell: var(--public-shell);
}

.public-site :is(
  .marketing__inner,
  .about__inner,
  .solutions__inner,
  .cases__inner,
  .testimonials__inner,
  .site-footer__inner,
  .smm-shell
) {
  width: var(--public-shell);
  margin-inline: auto;
}

.public-site :is(
  .marketing,
  .about,
  .cases,
  .testimonials,
  .about-story,
  .about-capabilities,
  .about-values,
  .about-process,
  .contact-next,
  .services-feature,
  .services-principles,
  .services-roadmap,
  .service-outcomes,
  .service-deliverables,
  .service-process,
  .service-standards,
  .service-faq,
  .solution-outcomes,
  .solution-process,
  .solution-faq,
  .smm-editorial,
  .smm-channel,
  .smm-works,
  .smm-proof,
  .smm-pricing,
  .smm-testimonials,
  .smm-faq
) {
  padding-block: var(--public-section-space);
}

.public-site :is(.cta-band, .about-contact, .service-cta, .solution-cta, .smm-final-cta) {
  padding-block: var(--section-space-compact);
}

/* Stable, theme-aware hero navigation. */
.nav--hero {
  width: 100%;
}

.nav-theme-light .nav--hero .nav__pill,
.nav-theme-light .nav--hero .nav__cta {
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.08);
}

.nav-theme-light .nav--hero :is(.nav__link, .nav-dropdown__toggle) {
  color: #343434;
}

.nav-theme-light .nav--hero :is(.nav__link:hover, .nav-dropdown__toggle:hover) {
  color: #111;
  background: #fff;
}

.nav-theme-light .nav--hero :is(.nav__link.is-active, .nav-dropdown.is-active .nav-dropdown__toggle) {
  color: var(--theme-accent-ink);
  background: var(--theme-accent);
}

.nav-theme-dark .nav--hero .logo__text {
  color: #fff;
}

.nav-theme-dark .nav--hero .nav__pill {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.nav-theme-dark .nav--hero :is(.nav__link, .nav-dropdown__toggle) {
  color: rgba(255, 255, 255, 0.82);
}

.nav-theme-dark .nav--hero :is(.nav__link:hover, .nav-dropdown__toggle:hover) {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-theme-dark .nav--hero :is(.nav__link.is-active, .nav-dropdown.is-active .nav-dropdown__toggle) {
  color: var(--theme-accent-ink);
  background: var(--theme-accent);
  box-shadow: 0 0.45rem 1.4rem color-mix(in srgb, var(--theme-accent) 20%, transparent);
}

.nav-theme-dark .nav--hero .nav__cta {
  color: var(--theme-accent-ink);
  border-color: var(--theme-accent);
  background: var(--theme-accent);
}

.sticky-nav__shell::before {
  background: linear-gradient(90deg, transparent, var(--theme-accent), transparent);
}

.sticky-nav :is(.nav__link, .nav-dropdown__toggle) {
  color: rgba(255, 255, 255, 0.82);
}

.sticky-nav :is(.nav__link.is-active, .nav-dropdown.is-active .nav-dropdown__toggle) {
  color: var(--theme-accent-ink);
  background: var(--theme-accent);
  box-shadow: 0 0.35rem 1.1rem color-mix(in srgb, var(--theme-accent) 20%, transparent);
}

.sticky-nav__cta:hover {
  color: var(--theme-accent-ink);
  background: var(--theme-accent);
}

.sticky-nav__cta::after {
  color: var(--theme-accent);
}

.nav-dropdown__menu small {
  color: rgba(255, 255, 255, 0.72);
}

.nav-dropdown__menu > a:not(:first-child) {
  grid-template-columns: 1fr;
}

.nav-dropdown__icon--blue {
  color: #111;
  border-color: #8fa8ff;
  background: #8fa8ff;
}

.nav-dropdown__icon--orange {
  color: #111;
  border-color: #ff9a62;
  background: #ff9a62;
}

.nav-dropdown__icon--green {
  color: #111;
  border-color: #70d9a6;
  background: #70d9a6;
}

.nav-dropdown__icon--lime {
  color: #111;
  border-color: #b9e769;
  background: #b9e769;
}

.nav-dropdown__icon--gold {
  color: #111;
  border-color: #ffd400;
  background: #ffd400;
}

/* Readable muted text on dark surfaces. */
.public-site :is(
  .about-hero,
  .about-process,
  .contact-hero,
  .services-hero,
  .service-detail-hero,
  .service-deliverables,
  .solution-hero,
  .solution-capabilities,
  .smm-channel,
  .smm-final-cta,
  .cta-band
) :is(p, small, dd) {
  color: var(--text-muted-on-dark);
}

.public-site :is(
  .smm-channel__console-bar,
  .smm-channel__caption,
  .smm-channel__panel-head small,
  .smm-channel__num,
  .smm-channel__copy > span,
  .smm-channel__metric
) {
  color: rgba(255, 255, 255, 0.7);
}

.public-site .smm-works__step:nth-child(even) p {
  color: rgba(255, 255, 255, 0.74);
}

.public-site :is(
  .about-kicker,
  .contact-kicker,
  .service-kicker,
  .solution-kicker,
  .smm-eyebrow--on-dark
) {
  color: rgba(255, 255, 255, 0.82);
}

.public-site :is(.contact-facts dt, .service-detail-hero__proof span, .solution-hero__proof span) {
  color: rgba(255, 255, 255, 0.74);
}

.public-site :is(.site-footer__brand > p, .site-footer__column a) {
  color: rgba(255, 255, 255, 0.72);
}

.public-site :is(.site-footer__bottom p, .site-footer__bottom a) {
  color: rgba(255, 255, 255, 0.62);
}

.public-site mark,
.public-site main h1 span,
.public-site main h2 span {
  color: var(--theme-accent);
}

.public-site :is(.about-contact, .service-cta, .solution-cta) :is(h1, h2, h3) :is(mark, span) {
  color: rgba(17, 17, 17, 0.68);
}

.public-site :focus-visible {
  outline: 3px solid var(--theme-accent);
  outline-offset: 3px;
}

/* Hero images stay bare: no glass/transparent panel behind supplied artwork. */
.website-design-hero-visual,
.solution-hero-image {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.website-design-hero-visual::before,
.website-design-hero-visual::after,
.solution-hero-image::before,
.solution-hero-image::after {
  content: none;
}

@media (max-width: 980px) {
  .public-site {
    --public-section-space: clamp(4.75rem, 9vw, 7rem);
  }
}

@media (max-width: 720px) {
  .public-site {
    --public-shell: calc(100% - 2rem);
    --type-display: clamp(2.5rem, 11vw, 3.5rem);
    --type-section: clamp(2.2rem, 10vw, 3.2rem);
    --type-card: clamp(1.2rem, 5.5vw, 1.45rem);
    --public-section-space: 4.75rem;
  }

  .public-site .nav--hero {
    display: grid;
    grid-template-columns: 1fr auto;
    max-width: 100vw;
    flex-wrap: initial;
  }

  .public-site .nav--hero > .logo {
    order: initial;
  }

  .public-site .nav--hero > .nav__cta {
    grid-column: 2;
    grid-row: 1;
    order: initial;
    margin-left: 0;
  }

  .public-site .nav--hero > .nav__pill {
    grid-column: 1 / -1;
    order: initial;
    flex: initial;
    max-width: 100%;
    margin-top: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .contact-page .nav--hero .nav__pill .nav__link[href$="#marketing"],
  .contact-page .nav--hero .nav__pill .nav__link[href$="#work"] {
    display: inline-flex;
  }

  .nav-dropdown__menu {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-site .card,
  .public-site .testimonial-card,
  .public-site .nav__link,
  .public-site .nav__cta {
    transition: none;
  }
}

/* Second navigation: solid, restrained, and stable. */
.public-site .sticky-nav {
  --sticky-nav-pad: 0.75rem;
  padding: var(--sticky-nav-pad) clamp(1rem, 3vw, 2rem) 0;
  transform: translateY(calc(-100% - 1rem));
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.public-site .sticky-nav.is-visible {
  transform: translateY(0);
}

.public-site .sticky-nav__shell,
.public-site .sticky-nav.is-compact .sticky-nav__shell {
  width: min(78rem, 100%);
  gap: 1rem 1.5rem;
  padding: 0.72rem 0.8rem 0.72rem 1rem;
  overflow: visible;
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.65rem;
  background: #171816;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: padding 0.2s ease, background 0.2s ease;
}

.public-site .sticky-nav__shell::before {
  content: none;
}

.public-site .sticky-nav .logo {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.public-site .sticky-nav .logo__text {
  font-weight: 500;
}

.public-site .sticky-nav__menu {
  justify-content: flex-end;
  justify-self: end;
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.public-site .sticky-nav :is(.nav__link, .nav-dropdown__toggle) {
  padding: 0.42rem 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  box-shadow: none;
  border-bottom: 2px solid transparent;
  font-weight: 400;
  transform: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.public-site .sticky-nav :is(.nav__link:hover, .nav-dropdown__toggle:hover, .nav-dropdown.is-open .nav-dropdown__toggle) {
  color: #fff;
  background: transparent;
  opacity: 1;
  transform: none;
}

.public-site .sticky-nav :is(.nav__link.is-active, .nav-dropdown.is-active .nav-dropdown__toggle) {
  color: #fff;
  background: transparent;
  border-bottom-color: var(--theme-accent);
  font-weight: 500;
}

.public-site .sticky-nav__cta,
.public-site .sticky-nav__cta:hover {
  padding: 0.68rem 1rem;
  border: 0.5px solid var(--theme-accent);
  border-radius: 0.35rem;
  color: var(--theme-accent-ink);
  background: var(--theme-accent);
  box-shadow: none;
  font-weight: 500;
  transform: none;
}

.public-site .sticky-nav__cta::after {
  content: none;
}

.public-site .sticky-nav .nav-dropdown__menu {
  top: calc(100% + 0.85rem);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.65rem;
  background: #11120f;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.public-site .sticky-nav .nav-dropdown__menu a:hover,
.public-site .sticky-nav .nav-dropdown__menu a:focus-visible {
  background: #20211e;
  transform: none;
}

.public-site .sticky-nav .nav-dropdown__menu strong {
  font-weight: 500;
}

.public-site .sticky-nav .nav-dropdown__icon {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--theme-accent);
  background: transparent;
  font-weight: 400;
}

@media (max-width: 980px) {
  .public-site .sticky-nav__shell,
  .public-site .sticky-nav.is-compact .sticky-nav__shell {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.65rem;
    padding: 0.65rem 0.7rem 0.7rem 0.9rem;
  }

  .public-site .sticky-nav__menu {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 1.15rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .public-site .sticky-nav__menu::-webkit-scrollbar {
    display: none;
  }

  .public-site .sticky-nav :is(.nav__link, .nav-dropdown__toggle) {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .public-site .sticky-nav {
    padding: 0.5rem 0.6rem 0;
  }

  .public-site .sticky-nav__shell,
  .public-site .sticky-nav.is-compact .sticky-nav__shell {
    border-radius: 0.5rem;
  }

  .public-site .sticky-nav .nav-dropdown__menu {
    top: 7rem;
  }
}
