/**
 * Infinite IT — unified cover system
 *
 * Punch list:
 * 1. Cover copy/image edges match the body content rail on both sides.
 * 2. Cover image height follows cover text height (never the reverse).
 * 3. All main-page covers share one layout.
 * 4. All subpage covers share one (slightly tighter) layout.
 *
 * Consumes --vi-max-width / --vi-nav-height from viewport-engine.js.
 * viewport-engine-v3.css is not linked: its global type scale would
 * restyle the whole site. Tokens from the JS engine are used instead.
 */

:root {
  --cover-rail: var(--vi-max-width, var(--site-content-rail, var(--content-rail)));
  --cover-header-offset: var(--vi-nav-height, 68px);
  /* Default full breathing room; about/projects override --cover-top-gap-scale locally. */
  --cover-top-gap-scale: 1;
  --cover-copy-span: 0.42;
  --cover-art-span: 0.58;

  /* Main-page cover typography (v20260819g — +~12% from v20260819f baseline) */
  --cover-main-eyebrow-size: 0.875rem;
  --cover-main-title-size: clamp(1.8rem, 3vw, 2.65rem);
  --cover-main-title-lh: 1.22;
  --cover-main-title-ls: -0.02em;
  --cover-main-lead-size: clamp(1.14rem, 1.25vw, 1.19rem);
  --cover-main-lead-lh: 1.68;

  /* Homepage exception — unchanged from pre-unify hero scale */
  --cover-home-brand-size: clamp(2.75rem, 5.4vw, 4.35rem);
  --cover-home-kicker-size: clamp(1.55rem, 3.2vw, 2.55rem);
  --cover-home-lead-size: 1.0825rem;
  --cover-home-lead-lh: 1.7;

  /* Service subpages — separate tier, unchanged */
  --cover-service-eyebrow-size: 0.75rem;
  --cover-service-title-size: clamp(1.85rem, 3.2vw, 2.65rem);
  --cover-service-title-lh: 1.1;
  --cover-service-title-ls: -0.035em;
  --cover-service-lead-size: clamp(0.94rem, 1.1vw, 1.05rem);
  --cover-service-lead-lh: 1.48;
}

html[data-viewport-tier] {
  --cover-rail: var(--vi-max-width, var(--site-content-rail, var(--content-rail)));
  --cover-header-offset: var(--vi-nav-height, var(--cover-header-offset, 68px));
}

/* ── Shared rail: cover inners and body inners use the same box ── */
html:root body .section-inner,
html:root body .omifix-wrap,
html:root body .omifix-hero-inner,
html:root body .page-cover__inner,
html:root body .about-inner,
html:root body .pricing-inner,
html:root body .projects-inner,
html:root body .services-inner,
html:root body .blog-inner,
html:root body .contact-inner,
html:root body .footer-shell,
html:root body .nav-container {
  width: var(--cover-rail) !important;
  max-width: var(--cover-rail) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN PAGES — one split: copy left, artwork right, text-driven height
   ═══════════════════════════════════════════════════════════════ */
html:root body main > #home.omifix-hero,
html:root body main > #about .about-cover,
html:root body main > #projects .projects-cover,
html:root body main > #apps.page-top-section,
html:root body main > #pricing.page-top-section,
html:root body main > #pricing.pricing-intro.page-top-section,
html:root body main > #services.page-top-section,
html:root body main > #contact.page-top-section,
html:root body main > #insights.page-top-section {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html:root body main > #about .about-cover,
html:root body main > #projects .projects-cover,
html:root body main > #apps.page-top-section,
html:root body main > #pricing.page-top-section,
html:root body main > #pricing.pricing-intro.page-top-section,
html:root body main > #services.page-top-section,
html:root body main > #contact.page-top-section,
html:root body main > #insights.page-top-section {
  background-image: none !important;
}

html:root body.page-theme-red main > #home.omifix-hero,
html:root body.homepage-v110 main > #home.omifix-hero {
  min-height: 0 !important;
  background-color: #eaf3ff !important;
  background-image: none !important;
}

html:root body.page-max-v110 main > .page-top-section,
html:root body.page-max-v110 main > #about .about-cover,
html:root body.page-max-v110 main > #projects .projects-cover {
  min-height: 0 !important;
}

/* Blog cover photo is the real cover image; keep it visible. */
html:root body main > .has-page-cover > .page-max-cover-art {
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  top: var(--cover-header-offset) !important;
  bottom: 0 !important;
  right: calc((100vw - var(--cover-rail)) / 2) !important;
  left: auto !important;
  width: calc(var(--cover-rail) * var(--cover-art-span)) !important;
  height: var(--cover-text-height, auto) !important;
  object-fit: cover !important;
  object-position: right center !important;
  pointer-events: none !important;
}

html:root body main > #home.omifix-hero::before,
html:root body main > #about .about-cover::before,
html:root body main > #projects .projects-cover::before,
html:root body main > #apps.page-top-section::before,
html:root body main > #pricing.page-top-section::before,
html:root body main > #pricing.pricing-intro.page-top-section::before,
html:root body main > #services.page-top-section::before,
html:root body main > #contact.page-top-section::before,
html:root body main > #insights.page-top-section::before {
  content: "" !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  z-index: 0 !important;
  pointer-events: none !important;
  top: var(--cover-header-offset) !important;
  bottom: 0 !important;
  right: calc((100vw - var(--cover-rail)) / 2) !important;
  left: auto !important;
  width: calc(var(--cover-rail) * var(--cover-art-span)) !important;
  height: var(--cover-text-height, auto) !important;
  max-height: none !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: right center !important;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
}

/* Main-page cover artwork — single source (was duplicated in styles.css) */
html:root body main > #about .about-cover::before {
  background-image: url("/assets/covers/about-cover.png") !important;
}

html:root body main > #projects .projects-cover::before {
  background-image: url("/assets/covers/projects-cover.png") !important;
}

html:root body main > #apps.page-top-section::before {
  background-image: url("/assets/covers/apps-cover.png") !important;
}

html:root body main > #pricing.page-top-section::before,
html:root body main > #pricing.pricing-intro.page-top-section::before {
  background-image: url("/assets/covers/pricing-cover.png") !important;
}

html:root body main > #services.page-top-section::before {
  background-image: url("/assets/features/web-development.png") !important;
}

html:root body main > #contact.page-top-section::before {
  background-image: url("/assets/covers/contact-cover.png") !important;
}

html:root body main > #insights.page-top-section:not(.has-page-cover)::before {
  background-image: url("/assets/covers/insights-cover.png") !important;
}

html:root body.page-theme-red main > #home.omifix-hero::before,
html:root body.homepage-v110 main > #home.omifix-hero::before,
html:root body main > #home.omifix-hero::before {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-image: url("/assets/covers/home-cover.png") !important;
  background-position: right 22% !important;
}

html:root body.page-theme-red main > #home.omifix-hero.has-page-cover::before,
html:root body.homepage-v110 main > #home.omifix-hero.has-page-cover::before,
html:root body main > #home.omifix-hero.has-page-cover::before,
html:root body main > #insights.page-top-section.has-page-cover::before {
  display: none !important;
  background-image: none !important;
}

html:root body main > #home.omifix-hero > .omifix-hero-inner,
html:root body main > #about .about-cover > .section-inner,
html:root body main > #projects .projects-cover > .section-inner,
html:root body main > #apps.page-top-section > .section-inner,
html:root body main > #pricing.page-top-section > .section-inner,
html:root body main > #pricing.pricing-intro.page-top-section > .section-inner,
html:root body main > #services.page-top-section > .section-inner,
html:root body main > #contact.page-top-section > .section-inner,
html:root body main > #insights.page-top-section > .section-inner {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: var(--cover-rail) !important;
  max-width: var(--cover-rail) !important;
  min-height: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: calc((var(--cover-header-offset) + 2rem) * var(--cover-top-gap-scale)) 0 2.5rem !important;
  overflow: visible !important;
  background: transparent !important;
  text-align: left !important;
  align-items: flex-start !important;
}

html:root body main > #home.omifix-hero > .omifix-hero-inner {
  --cover-top-gap-scale: 1;
}

html:root body.homepage-v110 main > #home.omifix-hero > .omifix-hero-inner {
  display: block !important;
}

html:root body.homepage-v110 main > #home.omifix-hero .omifix-hero-copy {
  width: calc(var(--cover-rail) * var(--cover-copy-span)) !important;
  max-width: calc(var(--cover-rail) * var(--cover-copy-span)) !important;
}

html:root body main > #about .about-cover > .section-inner.page-max-hero-grid,
html:root body main > #apps.page-top-section > .section-inner.page-max-hero-grid,
html:root body main > #services.page-top-section > .section-inner.page-max-hero-grid,
html:root body main > #projects .projects-cover .page-max-hero-grid,
html:root body main > #insights.page-top-section .page-max-hero-grid,
html:root body.page-max-v110 .page-max-hero-grid {
  display: block !important;
  grid-template-columns: none !important;
  width: var(--cover-rail) !important;
  max-width: var(--cover-rail) !important;
}

html:root body main > #about .about-cover .sec-hdr,
html:root body main > #about .about-cover .sec-title,
html:root body main > #about .about-cover .sec-sub,
html:root body main > #about .about-cover .about-cover-action,
html:root body main > #projects .projects-cover .sec-hdr,
html:root body main > #projects .projects-cover .sec-title,
html:root body main > #projects .projects-cover .sec-sub,
html:root body main > #apps.page-top-section .sec-hdr,
html:root body main > #apps.page-top-section .sec-title,
html:root body main > #apps.page-top-section .sec-sub,
html:root body main > #services.page-top-section .sec-hdr,
html:root body main > #services.page-top-section .sec-title,
html:root body main > #services.page-top-section .sec-sub,
html:root body main > #pricing.page-top-section .pricing-hero,
html:root body main > #pricing.page-top-section .sec-title,
html:root body main > #pricing.page-top-section .sec-sub,
html:root body main > #pricing.page-top-section .eyebrow,
html:root body main > #contact.page-top-section .contact-grid,
html:root body main > #contact.page-top-section .ci,
html:root body main > #insights.page-top-section .sec-hdr,
html:root body main > #insights.page-top-section .sec-hdr-row,
html:root body main > #insights.page-top-section .sec-hdr-left,
html:root body main > #insights.page-top-section .sec-title,
html:root body main > #insights.page-top-section .sec-sub {
  width: 100% !important;
  max-width: calc(var(--cover-rail) * var(--cover-copy-span)) !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

html:root body main > #about .about-cover .sec-sub,
html:root body main > #pricing.page-top-section .sec-sub,
html:root body main > #contact.page-top-section .ci > p,
html:root body main > #insights.page-top-section .sec-sub {
  text-align: justify !important;
  text-align-last: left !important;
  text-wrap: pretty !important;
  hyphens: auto !important;
}

html:root body main > #about .about-cover .eyebrow,
html:root body main > #projects .projects-cover .eyebrow,
html:root body main > #apps.page-top-section .eyebrow,
html:root body main > #services.page-top-section .eyebrow,
html:root body main > #insights.page-top-section .eyebrow,
html:root body main > #contact.page-top-section .ci .eyebrow {
  justify-content: flex-start !important;
  align-self: flex-start !important;
  margin-left: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   SUBPAGES — same rail + text-driven art; honor copy-left / copy-right
   ═══════════════════════════════════════════════════════════════ */
html:root body main > .page-cover:not(.service-page-cover),
html:root body main > header.page-cover,
html:root body main > section.page-cover:not(.service-page-cover),
html:root body main > section.project-page-cover,
html:root body main > section.app-page-cover {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #fffaf1 !important;
}

html:root body main > .page-cover::after,
html:root body main > section.service-page-cover::after {
  display: none !important;
  content: none !important;
}

html:root body main > .page-cover:not(.project-page-cover):not(.app-page-cover):not(.service-page-cover)::before,
html:root body main > header.page-cover::before,
html:root body main > section.page-cover:not(.project-page-cover):not(.app-page-cover):not(.service-page-cover)::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  pointer-events: none !important;
  top: var(--cover-header-offset) !important;
  bottom: 0 !important;
  right: calc((100vw - var(--cover-rail)) / 2) !important;
  left: auto !important;
  width: calc(var(--cover-rail) * var(--cover-art-span)) !important;
  height: var(--cover-text-height, auto) !important;
  opacity: 1 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: right center !important;
  mix-blend-mode: normal !important;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
}

/* Project/app subpages — art left, copy right (desktop + mobile base; mobile band resets below) */
html:root body main > section.page-cover.project-page-cover::before,
html:root body main > section.page-cover.app-page-cover::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  pointer-events: none !important;
  top: var(--cover-header-offset) !important;
  bottom: 0 !important;
  right: auto !important;
  left: calc((100vw - var(--cover-rail)) / 2) !important;
  width: calc(var(--cover-rail) * var(--cover-art-span)) !important;
  height: var(--cover-text-height, auto) !important;
  opacity: 1 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: left center !important;
  mix-blend-mode: normal !important;
  mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
}

html:root body main > section.page-cover.project-page-cover > .page-cover__inner,
html:root body main > section.page-cover.app-page-cover > .page-cover__inner {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  width: var(--cover-rail) !important;
  max-width: var(--cover-rail) !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: calc((var(--cover-header-offset) + 1.75rem) * var(--cover-top-gap-scale)) 0 2.25rem !important;
  text-align: left !important;
}

html:root body main > section.page-cover.project-page-cover .page-cover__copy,
html:root body main > section.page-cover.app-page-cover .page-cover__copy {
  margin-left: auto !important;
  margin-right: 0 !important;
}

html:root body main > section.page-cover.project-page-cover .page-cover__back,
html:root body main > section.page-cover.app-page-cover .page-cover__back {
  align-self: flex-end !important;
}

/* Service subpages — art left, copy right (glass covers; styles.css owns blend/opacity) */
html:root body main > section.page-cover.service-page-cover > .page-cover__inner {
  align-items: flex-end !important;
}

html:root body main > section.page-cover.service-page-cover .page-cover__copy {
  margin-left: auto !important;
  margin-right: 0 !important;
}

html:root body main > section.page-cover.service-page-cover .page-cover__back {
  align-self: flex-end !important;
}

html:root body main > .page-cover--copy-right:not(.project-page-cover):not(.app-page-cover)::before,
html:root body main > section.page-cover--copy-right:not(.project-page-cover):not(.app-page-cover)::before,
html:root body main > section.service-page-cover.page-cover--copy-right::before {
  right: auto !important;
  left: calc((100vw - var(--cover-rail)) / 2) !important;
  background-position: left center !important;
  mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
}

html:root body main > .page-cover:not(.project-page-cover):not(.app-page-cover):not(.service-page-cover) > .page-cover__inner,
html:root body main > header.page-cover > .page-cover__inner,
html:root body main > section.page-cover:not(.project-page-cover):not(.app-page-cover):not(.service-page-cover) > .page-cover__inner {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: var(--cover-rail) !important;
  max-width: var(--cover-rail) !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: calc((var(--cover-header-offset) + 1.75rem) * var(--cover-top-gap-scale)) 0 2.25rem !important;
  text-align: left !important;
}

html:root body main > .page-cover:not(.service-page-cover) .page-cover__copy,
html:root body main > section.page-cover:not(.service-page-cover) .page-cover__copy,
html:root body main > header.page-cover .page-cover__copy {
  width: calc(var(--cover-rail) * var(--cover-copy-span)) !important;
  max-width: calc(var(--cover-rail) * var(--cover-copy-span)) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:root body main > .page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) > .page-cover__inner,
html:root body main > section.page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) > .page-cover__inner,
html:root body main > section.service-page-cover.page-cover--copy-right > .page-cover__inner {
  align-items: flex-end !important;
}

html:root body main > .page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__copy,
html:root body main > section.page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__copy,
html:root body main > section.service-page-cover.page-cover--copy-right .page-cover__copy {
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: right !important;
}

html:root body main > .page-cover .page-cover__back,
html:root body main > section.page-cover .page-cover__back,
html:root body main > section.service-page-cover .page-cover__back {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 0 0.85rem !important;
}

html:root body main > .page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__back,
html:root body main > section.service-page-cover.page-cover--copy-right .page-cover__back {
  align-self: flex-end !important;
}

/* ═══════════════════════════════════════════════════════════════
   COVER ART LEFT — projects, services, apps (+ subpages)
   Desktop: artwork left, copy right (inverse of default main layout)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 901px) {
  html:root body main > #projects .projects-cover::before,
  html:root body main > #services.page-top-section::before,
  html:root body main > #apps.page-top-section::before,
  html:root body main > section.page-cover.project-page-cover::before,
  html:root body main > section.page-cover.app-page-cover::before {
    right: auto !important;
    left: calc((100vw - var(--cover-rail)) / 2) !important;
    background-position: left center !important;
    mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
  }

html:root body main > #projects .projects-cover .sec-hdr,
html:root body main > #projects .projects-cover .sec-title,
html:root body main > #projects .projects-cover .sec-sub,
html:root body main > #services.page-top-section .sec-hdr,
html:root body main > #services.page-top-section .sec-title,
html:root body main > #services.page-top-section .sec-sub,
html:root body main > #apps.page-top-section .sec-hdr,
html:root body main > #apps.page-top-section .sec-title,
html:root body main > #apps.page-top-section .sec-sub {
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: left !important;
}

  html:root body main > #projects .projects-cover .eyebrow,
  html:root body main > #services.page-top-section .eyebrow,
  html:root body main > #apps.page-top-section .eyebrow {
    justify-content: flex-end !important;
    align-self: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  html:root body main > section.service-page-cover > .page-cover__inner,
  html:root body main > section.page-cover.service-page-cover > .page-cover__inner,
  html:root body main > section.page-cover.project-page-cover > .page-cover__inner,
  html:root body main > section.page-cover.app-page-cover > .page-cover__inner {
    align-items: flex-end !important;
  }

  html:root body main > section.service-page-cover .page-cover__copy,
  html:root body main > section.page-cover.service-page-cover .page-cover__copy,
  html:root body main > section.page-cover.project-page-cover .page-cover__copy,
  html:root body main > section.page-cover.app-page-cover .page-cover__copy {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  html:root body main > section.service-page-cover .page-cover__back,
  html:root body main > section.page-cover.project-page-cover .page-cover__back,
  html:root body main > section.page-cover.app-page-cover .page-cover__back {
    align-self: flex-end !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Narrow viewports: artwork is a background of the TEXT height
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  html:root body main > .has-page-cover > .page-max-cover-art,
  html:root body main > #home.omifix-hero::before,
  html:root body main > #about .about-cover::before,
  html:root body main > #projects .projects-cover::before,
  html:root body main > #apps.page-top-section::before,
  html:root body main > #pricing.page-top-section::before,
  html:root body main > #pricing.pricing-intro.page-top-section::before,
  html:root body main > #services.page-top-section::before,
  html:root body main > #contact.page-top-section::before,
  html:root body main > #insights.page-top-section::before,
  html:root body main > .page-cover::before,
  html:root body main > header.page-cover::before,
  html:root body main > section.page-cover:not(.service-page-cover)::before,
  html:root body main > section.project-page-cover::before,
  html:root body main > section.app-page-cover::before {
    top: var(--cover-header-offset) !important;
    right: calc((100vw - var(--cover-rail)) / 2) !important;
    left: calc((100vw - var(--cover-rail)) / 2) !important;
    bottom: 0 !important;
    width: var(--cover-rail) !important;
    height: var(--cover-text-height, auto) !important;
    opacity: 0.28 !important;
    background-position: center !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  html:root body main > #home.omifix-hero > .omifix-hero-inner,
  html:root body main > #about .about-cover > .section-inner,
  html:root body main > #projects .projects-cover > .section-inner,
  html:root body main > #apps.page-top-section > .section-inner,
  html:root body main > #pricing.page-top-section > .section-inner,
  html:root body main > #pricing.pricing-intro.page-top-section > .section-inner,
  html:root body main > #services.page-top-section > .section-inner,
  html:root body main > #contact.page-top-section > .section-inner,
  html:root body main > #insights.page-top-section > .section-inner,
  html:root body main > .page-cover > .page-cover__inner,
  html:root body main > section.page-cover > .page-cover__inner,
  html:root body main > section.service-page-cover > .page-cover__inner,
  html:root body main > section.project-page-cover > .page-cover__inner,
  html:root body main > section.app-page-cover > .page-cover__inner {
    display: block !important;
    width: var(--cover-rail) !important;
    max-width: var(--cover-rail) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: calc((var(--cover-header-offset) + 1.5rem) * var(--cover-top-gap-scale)) !important;
    padding-bottom: 2rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html:root body.homepage-v110 main > #home.omifix-hero > .omifix-hero-inner {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }

  html:root body main > #about .about-cover .sec-hdr,
  html:root body main > #about .about-cover .sec-title,
  html:root body main > #about .about-cover .sec-sub,
  html:root body main > #projects .projects-cover .sec-hdr,
  html:root body main > #projects .projects-cover .sec-title,
  html:root body main > #projects .projects-cover .sec-sub,
  html:root body main > #apps.page-top-section .sec-hdr,
  html:root body main > #apps.page-top-section .sec-title,
  html:root body main > #apps.page-top-section .sec-sub,
  html:root body main > #services.page-top-section .sec-hdr,
  html:root body main > #services.page-top-section .sec-title,
  html:root body main > #services.page-top-section .sec-sub,
  html:root body main > #pricing.page-top-section .pricing-hero,
  html:root body main > #pricing.page-top-section .sec-title,
  html:root body main > #pricing.page-top-section .sec-sub,
  html:root body main > #contact.page-top-section .ci,
  html:root body main > #insights.page-top-section .sec-hdr,
  html:root body main > #insights.page-top-section .sec-hdr-row,
  html:root body main > #insights.page-top-section .sec-hdr-left,
  html:root body main > #insights.page-top-section .sec-title,
  html:root body main > #insights.page-top-section .sec-sub,
  html:root body main > .page-cover .page-cover__copy,
  html:root body main > section.page-cover .page-cover__copy,
  html:root body main > section.service-page-cover .page-cover__copy,
  html:root body main > section.project-page-cover .page-cover__copy,
  html:root body main > section.app-page-cover .page-cover__copy {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRICING — compact cover (+20% taller than v20260819d baseline)
   Scoped to main.pricing-page only; does not affect other covers.
   Legacy .pricing-hero used a 2-col grid (280px min 2nd col) with one
   child — that ghost column squished copy to ~170px and stacked ~500px
   of wrapped text. Collapse to block + cover-copy-span width instead.
   ═══════════════════════════════════════════════════════════════ */
html:root body main.pricing-page > #pricing.page-top-section,
html:root body main.pricing-page > #pricing.pricing-intro.page-top-section {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

html:root body main.pricing-page > #pricing.page-top-section > .section-inner,
html:root body main.pricing-page > #pricing.pricing-intro.page-top-section > .section-inner {
  /* Compact baseline ~286px; +20% ≈ 343px via min-height + padding */
  min-height: clamp(343px, 26.8vw, 352px) !important;
  padding-top: calc((var(--cover-header-offset) + 0.9rem) * var(--cover-top-gap-scale)) !important;
  padding-bottom: 1.5rem !important;
}

html:root body main.pricing-page > #pricing.page-top-section .pricing-hero {
  display: block !important;
  grid-template-columns: none !important;
  align-items: flex-start !important;
  gap: 0 !important;
  margin-bottom: 0 !important;
  width: calc(var(--cover-rail) * var(--cover-copy-span)) !important;
  max-width: calc(var(--cover-rail) * var(--cover-copy-span)) !important;
}

html:root body main.pricing-page > #pricing.page-top-section .pricing-hero > div {
  width: 100% !important;
  max-width: 100% !important;
}

html:root body main.pricing-page > #pricing.page-top-section .sec-title,
html:root body main.pricing-page > #pricing.page-top-section .sec-sub,
html:root body main.pricing-page > #pricing.page-top-section .eyebrow {
  max-width: 100% !important;
}

html:root body main.pricing-page > #pricing.page-top-section .sec-sub {
  margin-top: 0.9rem !important;
}

html:root body main.pricing-page > #pricing.page-top-section::before,
html:root body main.pricing-page > #pricing.pricing-intro.page-top-section::before {
  top: var(--cover-header-offset) !important;
  height: var(--cover-text-height, auto) !important;
}

@media (max-width: 900px) {
  html:root body main.pricing-page > #pricing.page-top-section > .section-inner,
  html:root body main.pricing-page > #pricing.pricing-intro.page-top-section > .section-inner {
    padding-top: calc((var(--cover-header-offset) + 0.8rem) * var(--cover-top-gap-scale)) !important;
    padding-bottom: 1.2rem !important;
  }

  html:root body main.pricing-page > #pricing.page-top-section .pricing-hero {
    width: 100% !important;
    max-width: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT + PROJECTS — tighter top gap than pricing/services
   Root cause: styles.css gives #about/#projects 88px section
   padding-top AND cover-inner padding; scale 0.5 was applied to
   the inner pad only, which doubled clearance instead of reducing
   it. Zero the wrapper section pad; scale inner pad only here.
   ═══════════════════════════════════════════════════════════════ */
html:root body main > #about.section,
html:root body main > #projects.section {
  padding-top: 0 !important;
}

html:root body main > #about .about-cover,
html:root body main > #projects .projects-cover {
  --cover-top-gap-scale: 0.25;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

html:root body main > #about .about-cover > .section-inner,
html:root body main > #projects .projects-cover > .section-inner {
  /* Scale only the breathing room above copy; keep full nav offset. */
  padding-top: calc(var(--cover-header-offset) + (1rem * var(--cover-top-gap-scale))) !important;
  padding-bottom: 1.5rem !important;
}

html:root body main > #about .about-cover .about-cover-action {
  margin-top: 1.125rem !important;
}

html:root body main > #about .about-cover::before,
html:root body main > #projects .projects-cover::before {
  top: var(--cover-header-offset) !important;
}

/* Beat styles.min.css desktop lock (main > .project-page-cover art-right) */
@media (min-width: 901px) {
  html:root body.loaded main > section.page-cover.page-cover--detail.project-page-cover::before,
  html:root body.loaded main > section.page-cover.page-cover--detail.app-page-cover::before {
    right: auto !important;
    left: calc((100vw - var(--cover-rail)) / 2) !important;
    background-position: left center !important;
    mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 0.7) 16%, #000 36%, #000 100%) !important;
  }

  html:root body.loaded main > section.page-cover.page-cover--detail.project-page-cover > .page-cover__inner,
  html:root body.loaded main > section.page-cover.page-cover--detail.app-page-cover > .page-cover__inner {
    align-items: flex-end !important;
  }

  html:root body.loaded main > section.page-cover.page-cover--detail.project-page-cover .page-cover__copy,
  html:root body.loaded main > section.page-cover.page-cover--detail.app-page-cover .page-cover__copy {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  html:root body.loaded main > section.page-cover.page-cover--detail.project-page-cover .page-cover__back,
  html:root body.loaded main > section.page-cover.page-cover--detail.app-page-cover .page-cover__back {
    align-self: flex-end !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   COVER TEXT ALIGNMENT — side-aware headings + justified copy
   Left column → left align; right column → right align.
   Paragraphs/intro copy use justify with matching text-align-last.
   Mobile stack defaults to left + justify-last left.
   ═══════════════════════════════════════════════════════════════ */

/* Left-side copy: headings, labels, containers */
html:root body main > #home.omifix-hero .omifix-hero-copy,
html:root body main > #home.omifix-hero .omifix-hero-copy h1,
html:root body main > #home.omifix-hero .omifix-hero-kicker,
html:root body main > #home.omifix-hero .omifix-cta-row,
html:root body main > #about .about-cover .sec-hdr,
html:root body main > #about .about-cover .sec-title,
html:root body main > #about .about-cover .eyebrow,
html:root body main > #about .about-cover .about-cover-action,
html:root body main > #pricing.page-top-section .pricing-hero,
html:root body main > #pricing.page-top-section .sec-title,
html:root body main > #pricing.page-top-section .eyebrow,
html:root body main > #contact.page-top-section .ci,
html:root body main > #contact.page-top-section .ci h1,
html:root body main > #contact.page-top-section .ci .eyebrow,
html:root body main > #insights.page-top-section .sec-hdr,
html:root body main > #insights.page-top-section .sec-hdr-left,
html:root body main > #insights.page-top-section .sec-hdr-row,
html:root body main > #insights.page-top-section .sec-title,
html:root body main > #insights.page-top-section .eyebrow,
html:root body main > .page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy,
html:root body main > section.page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy,
html:root body main header.page-cover--copy-left .page-cover__copy,
html:root body main header.insight-page-cover .page-cover__copy,
html:root body main .page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy .sec-title,
html:root body main section.page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy .sec-title,
html:root body main header.page-cover--copy-left .page-cover__copy .sec-title,
html:root body main header.insight-page-cover .page-cover__copy .sec-title {
  text-align: left !important;
}

/* Left-side copy: justified paragraphs */
html:root body main > #home.omifix-hero .omifix-hero-copy > p,
html:root body main > #about .about-cover .sec-sub,
html:root body main > #pricing.page-top-section .sec-sub,
html:root body main > #contact.page-top-section .ci > p,
html:root body main > #insights.page-top-section .sec-sub,
html:root body main > .page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy .sec-sub,
html:root body main > .page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy .insight-intro,
html:root body main > section.page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy .sec-sub,
html:root body main > section.page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy .insight-intro,
html:root body main header.page-cover--copy-left .page-cover__copy .sec-sub,
html:root body main header.page-cover--copy-left .page-cover__copy .insight-intro,
html:root body main header.insight-page-cover .page-cover__copy .insight-intro {
  text-align: justify !important;
  text-align-last: left !important;
  text-wrap: pretty !important;
  hyphens: auto !important;
}

/* Left-side copy: kicker/eyebrow flex */
html:root body main > .page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy .eyebrow,
html:root body main > .page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy .insight-kicker,
html:root body main > section.page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy .eyebrow,
html:root body main > section.page-cover--copy-left:not(.service-page-cover):not(.project-page-cover):not(.app-page-cover) .page-cover__copy .insight-kicker,
html:root body main header.page-cover--copy-left .page-cover__copy .eyebrow,
html:root body main header.page-cover--copy-left .page-cover__copy .insight-kicker,
html:root body main header.insight-page-cover .page-cover__copy .insight-kicker {
  justify-content: flex-start !important;
}

/* Right-side copy: headings, labels, containers */
html:root body main > #projects .projects-cover .sec-hdr,
html:root body main > #projects .projects-cover .sec-title,
html:root body main > #services.page-top-section .sec-hdr,
html:root body main > #services.page-top-section .sec-title,
html:root body main > #apps.page-top-section .sec-hdr,
html:root body main > #apps.page-top-section .sec-title,
html:root body main > section.service-page-cover .page-cover__copy,
html:root body main > section.project-page-cover .page-cover__copy,
html:root body main > section.app-page-cover .page-cover__copy,
html:root body main > .page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__copy,
html:root body main > section.page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__copy,
html:root body main > section.service-page-cover.page-cover--copy-right .page-cover__copy,
html:root body main > section.service-page-cover .page-cover__copy .sec-title,
html:root body main > section.project-page-cover .page-cover__copy .sec-title,
html:root body main > section.app-page-cover .page-cover__copy .sec-title,
html:root body main > .page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__copy .sec-title,
html:root body main > section.page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__copy .sec-title {
  text-align: right !important;
}

/* Right-side copy: justified paragraphs */
html:root body main > #projects .projects-cover .sec-sub,
html:root body main > #services.page-top-section .sec-sub,
html:root body main > #apps.page-top-section .sec-sub,
html:root body main > section.project-page-cover .page-cover__copy .sec-sub,
html:root body main > section.project-page-cover .page-cover__copy .insight-intro,
html:root body main > section.app-page-cover .page-cover__copy .sec-sub,
html:root body main > section.app-page-cover .page-cover__copy .insight-intro,
html:root body main > .page-cover--copy-right:not(.project-page-cover):not(.app-page-cover):not(.service-page-cover) .page-cover__copy .sec-sub,
html:root body main > .page-cover--copy-right:not(.project-page-cover):not(.app-page-cover):not(.service-page-cover) .page-cover__copy .insight-intro,
html:root body main > section.page-cover--copy-right:not(.project-page-cover):not(.app-page-cover):not(.service-page-cover) .page-cover__copy .sec-sub,
html:root body main > section.page-cover--copy-right:not(.project-page-cover):not(.app-page-cover):not(.service-page-cover) .page-cover__copy .insight-intro {
  text-align: justify !important;
  text-align-last: right !important;
  text-wrap: pretty !important;
  hyphens: auto !important;
}

/* Right-side copy: kicker/eyebrow flex */
html:root body main > #projects .projects-cover .eyebrow,
html:root body main > #services.page-top-section .eyebrow,
html:root body main > #apps.page-top-section .eyebrow,
html:root body main > section.service-page-cover .page-cover__copy .eyebrow,
html:root body main > section.service-page-cover .page-cover__copy .insight-kicker,
html:root body main > section.project-page-cover .page-cover__copy .eyebrow,
html:root body main > section.project-page-cover .page-cover__copy .insight-kicker,
html:root body main > section.app-page-cover .page-cover__copy .eyebrow,
html:root body main > section.app-page-cover .page-cover__copy .insight-kicker,
html:root body main > .page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__copy .eyebrow,
html:root body main > .page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__copy .insight-kicker,
html:root body main > section.page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__copy .eyebrow,
html:root body main > section.page-cover--copy-right:not(.project-page-cover):not(.app-page-cover) .page-cover__copy .insight-kicker,
html:root body main > section.service-page-cover.page-cover--copy-right .page-cover__copy .eyebrow,
html:root body main > section.service-page-cover.page-cover--copy-right .page-cover__copy .insight-kicker {
  justify-content: flex-end !important;
}

@media (max-width: 900px) {
  /* Mobile stack: left align + justified paragraphs (last line left) */
  html:root body main > #home.omifix-hero .omifix-hero-copy,
  html:root body main > #home.omifix-hero .omifix-hero-copy h1,
  html:root body main > #home.omifix-hero .omifix-hero-kicker,
  html:root body main > #about .about-cover .sec-hdr,
  html:root body main > #about .about-cover .sec-title,
  html:root body main > #about .about-cover .eyebrow,
  html:root body main > #pricing.page-top-section .pricing-hero,
  html:root body main > #pricing.page-top-section .sec-title,
  html:root body main > #pricing.page-top-section .eyebrow,
  html:root body main > #contact.page-top-section .ci,
  html:root body main > #contact.page-top-section .ci h1,
  html:root body main > #insights.page-top-section .sec-hdr,
  html:root body main > #insights.page-top-section .sec-hdr-row,
  html:root body main > #insights.page-top-section .sec-hdr-left,
  html:root body main > #insights.page-top-section .sec-title,
  html:root body main > #projects .projects-cover .sec-hdr,
  html:root body main > #projects .projects-cover .sec-title,
  html:root body main > #services.page-top-section .sec-hdr,
  html:root body main > #services.page-top-section .sec-title,
  html:root body main > #apps.page-top-section .sec-hdr,
  html:root body main > #apps.page-top-section .sec-title,
  html:root body main > .page-cover .page-cover__copy,
  html:root body main > section.page-cover .page-cover__copy,
  html:root body main > section.service-page-cover .page-cover__copy,
  html:root body main > section.project-page-cover .page-cover__copy,
  html:root body main > section.app-page-cover .page-cover__copy,
  html:root body main header.page-cover .page-cover__copy,
  html:root body main .page-cover .page-cover__copy .sec-title,
  html:root body main section.page-cover .page-cover__copy .sec-title,
  html:root body main header.page-cover .page-cover__copy .sec-title {
    text-align: left !important;
  }

  html:root body main > #home.omifix-hero .omifix-hero-copy > p,
  html:root body main > #about .about-cover .sec-sub,
  html:root body main > #pricing.page-top-section .sec-sub,
  html:root body main > #contact.page-top-section .ci > p,
  html:root body main > #insights.page-top-section .sec-sub,
  html:root body main > #projects .projects-cover .sec-sub,
  html:root body main > #services.page-top-section .sec-sub,
  html:root body main > #apps.page-top-section .sec-sub,
  html:root body main > .page-cover .page-cover__copy .sec-sub,
  html:root body main > section.page-cover .page-cover__copy .sec-sub,
  html:root body main > section.service-page-cover .page-cover__copy .sec-sub,
  html:root body main > section.project-page-cover .page-cover__copy .sec-sub,
  html:root body main > section.app-page-cover .page-cover__copy .sec-sub,
  html:root body main header.page-cover .page-cover__copy .sec-sub,
  html:root body main .page-cover .page-cover__copy .insight-intro,
  html:root body main section.page-cover .page-cover__copy .insight-intro,
  html:root body main header.page-cover .page-cover__copy .insight-intro {
    text-align: justify !important;
    text-align-last: left !important;
    hyphens: none !important;
  }

  html:root body main > #projects .projects-cover .eyebrow,
  html:root body main > #services.page-top-section .eyebrow,
  html:root body main > #apps.page-top-section .eyebrow,
  html:root body main > .page-cover .page-cover__copy .eyebrow,
  html:root body main > section.page-cover .page-cover__copy .eyebrow,
  html:root body main > section.service-page-cover .page-cover__copy .eyebrow,
  html:root body main > section.project-page-cover .page-cover__copy .eyebrow,
  html:root body main > section.app-page-cover .page-cover__copy .eyebrow,
  html:root body main header.page-cover .page-cover__copy .eyebrow,
  html:root body main .page-cover .page-cover__copy .insight-kicker,
  html:root body main section.page-cover .page-cover__copy .insight-kicker,
  html:root body main header.page-cover .page-cover__copy .insight-kicker {
    justify-content: flex-start !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   COVER TYPOGRAPHY — one source of truth (cover-unify.css)
   Tiers: main pages | homepage exception | service subpages |
          project/app/insight detail (main tier)
   Scoped to cover blocks only — body content below is untouched.
   ═══════════════════════════════════════════════════════════════ */

/* ── Main-page covers: eyebrow / kicker labels ── */
html:root body main > #about .about-cover .eyebrow,
html:root body main > #projects .projects-cover .eyebrow,
html:root body main > #apps.page-top-section .eyebrow,
html:root body main > #services.page-top-section .eyebrow,
html:root body main > #pricing.page-top-section .eyebrow,
html:root body main > #contact.page-top-section .ci .eyebrow,
html:root body main > #insights.page-top-section .eyebrow,
html:root body main > section.project-page-cover .page-cover__copy .eyebrow,
html:root body main > section.app-page-cover .page-cover__copy .eyebrow,
html:root body main > header.insight-page-cover .page-cover__copy .insight-kicker,
html:root body main > section.insight-page-cover .page-cover__copy .insight-kicker {
  font-size: var(--cover-main-eyebrow-size) !important;
  line-height: 1.35 !important;
  letter-spacing: 0.13em !important;
}

/* ── Main-page covers: titles ── */
html:root body main > #about .about-cover .sec-title,
html:root body main > #projects .projects-cover .sec-title,
html:root body main > #apps.page-top-section .sec-title,
html:root body main > #services.page-top-section .sec-title,
html:root body main > #pricing.page-top-section .sec-title,
html:root body main > #insights.page-top-section .sec-title,
html:root body main > #contact.page-top-section .ci h1,
html:root body main > section.project-page-cover .page-cover__copy .sec-title,
html:root body main > section.app-page-cover .page-cover__copy .sec-title,
html:root body main > header.insight-page-cover .page-cover__copy .sec-title,
html:root body main > section.insight-page-cover .page-cover__copy .sec-title {
  font-size: var(--cover-main-title-size) !important;
  line-height: var(--cover-main-title-lh) !important;
  letter-spacing: var(--cover-main-title-ls) !important;
  font-weight: 800 !important;
}

/* ── Main-page covers: lead / subcopy ── */
html:root body main > #about .about-cover .sec-sub,
html:root body main > #projects .projects-cover .sec-sub,
html:root body main > #apps.page-top-section .sec-sub,
html:root body main > #services.page-top-section .sec-sub,
html:root body main > #pricing.page-top-section .sec-sub,
html:root body main > #insights.page-top-section .sec-sub,
html:root body main > #contact.page-top-section .ci > p,
html:root body main > section.project-page-cover .page-cover__copy .sec-sub,
html:root body main > section.project-page-cover .page-cover__copy .insight-intro,
html:root body main > section.app-page-cover .page-cover__copy .sec-sub,
html:root body main > section.app-page-cover .page-cover__copy .insight-intro,
html:root body main > header.insight-page-cover .page-cover__copy .sec-sub,
html:root body main > header.insight-page-cover .page-cover__copy .insight-intro,
html:root body main > section.insight-page-cover .page-cover__copy .sec-sub,
html:root body main > section.insight-page-cover .page-cover__copy .insight-intro {
  font-size: var(--cover-main-lead-size) !important;
  line-height: var(--cover-main-lead-lh) !important;
}

/* ── Homepage cover exception ── */
html:root body main > #home.omifix-hero .omifix-brand-mark {
  font-size: var(--cover-home-brand-size) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.045em !important;
}

html:root body main > #home.omifix-hero .omifix-hero-kicker {
  font-size: var(--cover-home-kicker-size) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
}

html:root body main > #home.omifix-hero .omifix-hero-copy > p {
  font-size: var(--cover-home-lead-size) !important;
  line-height: var(--cover-home-lead-lh) !important;
}

/* ── Service detail covers (services/*.html) ── */
html:root body main > section.service-page-cover .page-cover__copy .eyebrow,
html:root body main > section.service-page-cover .page-cover__copy .insight-kicker {
  font-size: var(--cover-service-eyebrow-size) !important;
  line-height: 1.35 !important;
  letter-spacing: 0.08em !important;
}

html:root body main > section.service-page-cover .page-cover__copy .sec-title {
  font-size: var(--cover-service-title-size) !important;
  line-height: var(--cover-service-title-lh) !important;
  letter-spacing: var(--cover-service-title-ls) !important;
  font-weight: 850 !important;
}

html:root body main > section.service-page-cover .page-cover__copy .sec-sub,
html:root body main > section.service-page-cover .page-cover__copy .insight-intro {
  font-size: var(--cover-service-lead-size) !important;
  line-height: var(--cover-service-lead-lh) !important;
}

@media (max-width: 900px) {
  html:root body main > #about .about-cover .sec-title,
  html:root body main > #projects .projects-cover .sec-title,
  html:root body main > #apps.page-top-section .sec-title,
  html:root body main > #services.page-top-section .sec-title,
  html:root body main > #pricing.page-top-section .sec-title,
  html:root body main > #insights.page-top-section .sec-title,
  html:root body main > #contact.page-top-section .ci h1,
  html:root body main > section.project-page-cover .page-cover__copy .sec-title,
  html:root body main > section.app-page-cover .page-cover__copy .sec-title,
  html:root body main > header.insight-page-cover .page-cover__copy .sec-title,
  html:root body main > section.insight-page-cover .page-cover__copy .sec-title {
    font-size: clamp(1.62rem, 5.8vw, 2.1rem) !important;
    line-height: 1.2 !important;
  }

  html:root body main > section.service-page-cover .page-cover__copy .sec-title {
    font-size: clamp(1.55rem, 5.4vw, 2rem) !important;
    line-height: 1.14 !important;
  }

  html:root body main > #home.omifix-hero .omifix-brand-mark {
    font-size: clamp(2.2rem, 9vw, 3.1rem) !important;
  }

  html:root body main > #home.omifix-hero .omifix-hero-kicker {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICE DETAIL COVERS — rail alignment (services/*.html)
   Root cause: styles.css glass cover inner uses horizontal padding
   and margin:0; subpage block sets section width 100% while inner
   max-width is --cover-rail without margin:auto → inner sticks left.
   Body .section-inner uses --cover-rail + margin:auto, no pad.
   ═══════════════════════════════════════════════════════════════ */
html:root body.service-detail-page main {
  /* A first child's top margin collapses through <main>, which previously
     placed the cover underneath the fixed 58px desktop header. Keep the
     non-collapsing header clearance on the page container instead. */
  padding-top: calc(58px + 24px) !important;
}

html:root body main > section.service-page-cover {
  width: var(--cover-rail) !important;
  max-width: var(--cover-rail) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html:root body main > section.service-page-cover {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  width: var(--cover-rail) !important;
  max-width: var(--cover-rail) !important;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 20px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(var(--glass-tint, 219, 234, 254), 0.35) 60%, rgba(255, 255, 255, 0.9) 100%) !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08) !important;
}

/* Service cover artwork — left-aligned with page rail, fade effect on the right end */
html:root body main > section.service-page-cover::before {
  content: "" !important;
  display: block !important;
  visibility: visible !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: calc(var(--cover-rail) * 0.58) !important;
  height: 100% !important;
  opacity: 1 !important;
  background-size: cover !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
  mask-image: linear-gradient(90deg, #000 0%, #000 50%, rgba(0, 0, 0, 0.7) 75%, transparent 100%) !important;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 50%, rgba(0, 0, 0, 0.7) 75%, transparent 100%) !important;
}

html:root body main > section.service-page-cover::after {
  display: none !important;
}

html:root body main > section.service-page-cover > .page-cover__inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 3.5rem) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  text-align: right !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 2 !important;
}

html:root body main > section.service-page-cover .page-cover__back {
  align-self: flex-end !important;
  margin: 0 0 0.75rem 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 0.76rem !important;
  font-weight: 650 !important;
  color: var(--royal, #2b5fe6) !important;
  text-decoration: none !important;
}

html:root body main > section.service-page-cover .page-cover__copy,
html:root body main > section.service-page-cover.page-cover--copy-left .page-cover__copy,
html:root body main > section.service-page-cover.page-cover--copy-right .page-cover__copy {
  width: clamp(26rem, 50%, 38rem) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding: 0 !important;
  text-align: right !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

html:root body main > section.service-page-cover .page-cover__copy .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  text-align: right !important;
  margin: 0 0 0.5rem 0 !important;
  color: var(--royal, #2563eb) !important;
  font-family: var(--font-mono, 'Space Mono', monospace) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html:root body main > section.service-page-cover .sec-title {
  text-align: right !important;
  margin: 0 0 0.6rem 0 !important;
  font-family: var(--font-h, 'Syne', sans-serif) !important;
  font-size: clamp(2rem, 3.2vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #0b1b3a !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

html:root body main > section.service-page-cover .sec-sub {
  text-align: right !important;
  text-align-last: right !important;
  text-wrap: pretty !important;
  word-break: normal !important;
  word-spacing: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  font-size: clamp(0.98rem, 1.15vw, 1.12rem) !important;
  line-height: 1.55 !important;
  color: #334155 !important;
  margin: 0 !important;
}

html:root body.service-detail-page main#main > section.service-page-cover--web-development::before {
  background-image: url("/assets/features/web-development.png") !important;
}
html:root body.service-detail-page main#main > section.service-page-cover--mobile-app-development::before {
  background-image: url("/assets/features/apps-development.png") !important;
}
html:root body.service-detail-page main#main > section.service-page-cover--ai-solutions::before {
  background-image: url("/assets/features/ai-solutions.png") !important;
}
html:root body.service-detail-page main#main > section.service-page-cover--it-consulting::before {
  background-image: url("/assets/features/it-consulting.png") !important;
}
html:root body.service-detail-page main#main > section.service-page-cover--digital-marketing::before {
  background-image: url("/assets/features/digital-marketing.png") !important;
}
html:root body.service-detail-page main#main > section.service-page-cover--custom-software-development::before {
  background-image: url("/assets/features/custom-software.png") !important;
}
html:root body.service-detail-page main#main > section.service-page-cover--web-hosting::before {
  background-image: url("/assets/features/web-hosting.png") !important;
}
html:root body main > section.project-page-cover--infinite-workspace::before {
  background-image: url("/assets/covers/workspace-1.png") !important;
}
html:root body main > section.project-page-cover--appcraftr::before {
  background-image: url("/assets/covers/appcraftr.png") !important;
}
html:root body main > section.project-page-cover--bdnewsreader::before {
  background-image: url("/assets/covers/bdnews-3.png") !important;
}

.project-business-hero .project-detail-art-card--phone {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(226, 232, 240, 0.6) 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px 20px !important;
  box-sizing: border-box !important;
}
.project-detail-phone-img {
  width: 25% !important;
  min-width: 180px !important;
  max-width: 240px !important;
  max-height: 420px !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
  display: block !important;
  margin: 0 auto !important;
}

#projects .project-ledger .port-thumb img[src*="workspace"] {
  object-fit: contain !important;
  padding: 0.25rem !important;
  background: #070e1e !important;
}

#projects .project-ledger .port-thumb img[src*="bdnews"] {
  object-fit: contain !important;
  padding: 0.35rem !important;
  background: #e9eef7 !important;
}

#apps-body .project-ledger .port-card--duo {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) auto !important;
  gap: 2rem !important;
  align-items: center !important;
}

.app-card-duo-showcase {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  height: 180px !important;
  padding: 4px 6px !important;
  flex-shrink: 0 !important;
}

.app-duo-phone {
  height: 180px !important;
  width: 82px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.14), 0 2px 6px -1px rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.app-duo-phone img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
}

.port-card--duo:hover .app-duo-phone--primary {
  transform: translateY(-4px) rotate(-1.5deg) scale(1.02) !important;
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.2) !important;
}

.port-card--duo:hover .app-duo-phone--secondary {
  transform: translateY(-4px) rotate(1.5deg) scale(1.02) !important;
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.2) !important;
}

@media (max-width: 900px) {
  #apps-body .project-ledger .port-card--duo {
    grid-template-columns: 135px minmax(0, 1fr) !important;
  }
  .app-card-duo-showcase {
    grid-column: 1 / -1 !important;
    justify-content: flex-start !important;
    margin-top: 0.5rem !important;
    height: 160px !important;
  }
  .app-duo-phone {
    height: 160px !important;
    width: 72px !important;
  }
}

@media (max-width: 900px) {
  html:root body.service-detail-page main {
    padding-top: calc(56px + var(--app-safe-top, 0px) + 12px) !important;
  }

  html:root body main > section.service-page-cover {
    width: var(--cover-rail) !important;
    max-width: var(--cover-rail) !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
  }

  html:root body main > section.service-page-cover > .page-cover__inner {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 1.5rem 1.25rem !important;
  }

  html:root body main > section.service-page-cover .page-cover__back {
    align-self: flex-start !important;
  }

  html:root body main > section.service-page-cover .page-cover__copy,
  html:root body main > section.service-page-cover.page-cover--copy-left .page-cover__copy,
  html:root body main > section.service-page-cover.page-cover--copy-right .page-cover__copy {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  html:root body main > section.service-page-cover .page-cover__copy .eyebrow {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  html:root body main > section.service-page-cover .sec-title {
    text-align: left !important;
  }

  html:root body main > section.service-page-cover .sec-sub {
    text-align: left !important;
    text-align-last: left !important;
  }

  html:root body main > section.service-page-cover::before {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.18 !important;
    background-size: cover !important;
    background-position: left center !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES LISTING — outcome guide polish
   The three starting points are the first decision a visitor makes. Give
   them enough contrast and structure to read as intentional choices, while
   keeping the existing copy and destinations unchanged.
   ═══════════════════════════════════════════════════════════════ */
html:root body main#main > #services-body .services-body-intro {
  gap: clamp(2rem, 5vw, 5.5rem) !important;
  margin-bottom: clamp(2rem, 3.5vw, 3.5rem) !important;
  padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12) !important;
}

html:root body main#main > #services-body .services-body-intro h2 {
  max-width: 18ch !important;
  font-size: clamp(2rem, 3.15vw, 3.15rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
}

html:root body main#main > #services-body .services-body-intro p {
  max-width: 58ch !important;
  padding-top: 0.35rem !important;
  font-size: clamp(1rem, 1.25vw, 1.16rem) !important;
  line-height: 1.72 !important;
}

html:root body main#main > #services-body .service-start-grid {
  gap: clamp(1rem, 1.8vw, 1.5rem) !important;
  margin-bottom: clamp(3rem, 6vw, 5.5rem) !important;
}

html:root body main#main > #services-body .service-start-grid article {
  position: relative !important;
  min-height: 18rem !important;
  padding: clamp(1.5rem, 2.5vw, 2.25rem) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 1.5rem !important;
  background: linear-gradient(145deg, #0c1b38 0%, #153a72 100%) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14) !important;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important;
}

html:root body main#main > #services-body .service-start-grid article::after {
  content: "" !important;
  position: absolute !important;
  right: -3rem !important;
  bottom: -4rem !important;
  width: 11rem !important;
  height: 11rem !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 1.25rem rgba(255, 255, 255, 0.035), 0 0 0 2.5rem rgba(255, 255, 255, 0.025) !important;
  pointer-events: none !important;
}

html:root body main#main > #services-body .service-start-grid article:nth-child(2) {
  background: linear-gradient(145deg, #123a70 0%, #176b8c 100%) !important;
}

html:root body main#main > #services-body .service-start-grid article:nth-child(3) {
  background: linear-gradient(145deg, #632e25 0%, #a34a2e 100%) !important;
}

html:root body main#main > #services-body .service-start-grid article:hover,
html:root body main#main > #services-body .service-start-grid article:focus-within {
  transform: translateY(-5px) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.22) !important;
}

html:root body main#main > #services-body .service-start-grid article > span {
  position: relative !important;
  z-index: 1 !important;
  min-width: 2.75rem !important;
  min-height: 2.75rem !important;
  margin-bottom: 2.25rem !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

html:root body main#main > #services-body .service-start-grid h2 {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 0 0.7rem !important;
  color: #fff !important;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem) !important;
  line-height: 1.16 !important;
}

html:root body main#main > #services-body .service-start-grid p {
  position: relative !important;
  z-index: 1 !important;
  max-width: 31ch !important;
  margin: 0 0 1.25rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

html:root body main#main > #services-body .service-start-grid a {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  min-height: 2.75rem !important;
  align-items: center !important;
  margin-top: auto !important;
  padding: 0.65rem 0.95rem !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: background 180ms ease, border-color 180ms ease !important;
}

html:root body main#main > #services-body .service-start-grid a:hover,
html:root body main#main > #services-body .service-start-grid a:focus-visible {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
}

@media (max-width: 900px) {
  html:root body main#main > #services-body .services-body-intro h2 {
    max-width: 22ch !important;
    font-size: clamp(1.9rem, 7vw, 2.7rem) !important;
  }

  html:root body main#main > #services-body .service-start-grid article {
    min-height: 15rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:root body main#main > #services-body .service-start-grid article,
  html:root body main#main > #services-body .service-start-grid a {
    transition: none !important;
  }

  html:root body main#main > #services-body .service-start-grid article:hover,
  html:root body main#main > #services-body .service-start-grid article:focus-within {
    transform: none !important;
  }
}

/* Readability guardrail: display copy stays left-aligned instead of forcing
   stretched word spacing or automatic hyphenation across narrow cover rails. */
html:root body main p,
html:root body main li {
  text-align: left !important;
  text-align-last: left !important;
  hyphens: none !important;
  word-spacing: normal !important;
}

/* Project artwork used to carry these rules as inline styles. Keep the same
   crop/contain behavior while allowing the static CSP to reject attributes. */
html:root body main .project-art-image--bdnews {
  object-fit: contain !important;
  background: #e9eef7 !important;
  padding: 4px !important;
}

html:root body main .project-art-image--workspace {
  object-fit: contain !important;
  background: #070e1e !important;
  padding: 2px !important;
}

html:root body main .project-detail-art-card {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}

html:root body main .project-detail-art-card--bdnews {
  background: transparent !important;
}

html:root body main .project-detail-art-card--workspace {
  background: #070e1e !important;
}

html:root body main .project-detail-art-image {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 18px !important;
}

html:root body main .project-detail-art-image--bdnews {
  object-fit: cover !important;
}

html:root body main .project-detail-art-image--workspace {
  max-height: 440px !important;
  object-fit: contain !important;
}
