/*
 * Phone-only presentation layer.
 *
 * This file is loaded only below 768px. All future mobile composition,
 * typography, navigation, and touch refinements belong here so they cannot
 * alter the desktop experience.
 */

:root {
  --agf-layout-mode: mobile;
  --agf-page-gutter: clamp(1rem, 5vw, 1.5rem);
  --agf-section-space: clamp(3.5rem, 14vw, 5.5rem);
  --agf-mobile-ink: #07101c;
  --agf-mobile-paper: #fff;
  --agf-mobile-sky: #d9eef3;
  --agf-mobile-blue: #0a5cff;
}

html {
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  overflow-x: clip;
  background: var(--agf-mobile-paper);
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

button,
[role="button"],
input,
select,
textarea,
summary,
a {
  touch-action: manipulation;
}

:where(button, [role="button"], input, select, summary) {
  min-height: 44px;
}

textarea {
  min-height: 7rem;
}

::selection {
  color: #fff;
  background: var(--agf-mobile-blue);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--agf-mobile-blue);
  outline-offset: 3px;
}

/* Mobile navigation is a touch surface, not a compressed desktop menu. */
.site-header {
  padding-right: max(var(--agf-page-gutter), env(safe-area-inset-right));
  padding-left: max(var(--agf-page-gutter), env(safe-area-inset-left));
}

.mobile-menu-toggle,
.site-header__cta {
  min-width: 44px;
  min-height: 44px;
}

.mega-menu {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  display: flex;
  flex-direction: column;
  width: min(88vw, 24rem);
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid rgba(7, 16, 28, 0.12);
  background: #fff;
  box-shadow: -1.25rem 0 3.5rem rgba(7, 16, 28, 0.18);
  opacity: 1;
  transform: translateX(calc(100% + 1rem));
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain;
}

body.menu-open .mega-menu {
  transform: translateX(0);
}

.mega-menu-backdrop {
  background: rgba(7, 16, 28, 0.42);
  backdrop-filter: none;
}

.mega-menu__header {
  position: relative;
  top: auto;
  z-index: 2;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: max(1.1rem, env(safe-area-inset-top)) 1rem 0;
  border-bottom: 0;
  background: #fff;
}

.mega-menu__brand {
  display: block;
  align-self: center;
  font-size: 0.76rem;
}

.mega-menu__brand span,
.mega-menu__cta,
.mega-menu__tabs .mega-menu__utility-link {
  display: none;
}

.mega-menu__actions {
  grid-column: 2;
  grid-row: 1;
}

.mega-menu__close {
  min-height: 44px;
  padding: 0.55rem 0.15rem 0.55rem 0.65rem;
  color: var(--agf-mobile-ink);
  font-size: 0.7rem;
}

.mega-menu__tabs,
.mega-menu__mobile-links,
.mega-menu__body {
  display: none;
}

.mega-menu__mobile-directory {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 1rem max(1.25rem, env(safe-area-inset-bottom));
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 92, 255, 0.55) transparent;
}

.mobile-directory__group {
  padding: 1.65rem 0 0.7rem;
}

.mobile-directory__group + .mobile-directory__group {
  border-top: 1px solid rgba(7, 16, 28, 0.14);
}

.mobile-directory__group > :is(#mobile-websites-title, #mobile-agents-title) {
  margin: 0 0 0.65rem;
  color: var(--agf-mobile-ink);
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.mobile-directory__group > a {
  display: block;
  min-height: 44px;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(7, 16, 28, 0.1);
  color: var(--agf-mobile-ink);
  text-decoration: none;
}

.mobile-directory__group strong,
.mobile-directory__group span {
  display: block;
}

.mobile-directory__group strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.mobile-directory__group span {
  max-width: 34ch;
  margin-top: 0.28rem;
  color: #526277;
  font-size: 0.76rem;
  line-height: 1.4;
}

.mobile-directory__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  margin: 0.5rem 0 1.4rem;
  border-radius: 0.7rem;
  color: #fff;
  background: var(--agf-mobile-ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.mobile-directory__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(7, 16, 28, 0.14);
}

.mobile-directory__footer a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  color: var(--agf-mobile-ink);
  font-size: 0.82rem;
  font-weight: 780;
  text-decoration: none;
}

.mobile-directory__footer a:last-child {
  justify-content: flex-end;
}

.mega-menu__body {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 92, 255, 0.55) transparent;
}

.mega-menu__intro,
.mega-menu__columns,
.mega-menu__feature {
  padding: 1.5rem 1rem;
}

.mega-menu__intro {
  border-right: 0;
  border-bottom: 1px solid rgba(7, 16, 28, 0.13);
}

.mega-menu__intro > p:first-child { display: none; }

.mega-menu__intro [data-menu-title] {
  max-width: 16ch;
  margin-bottom: 0.75rem;
  font-size: clamp(1.65rem, 7.5vw, 2.15rem);
  line-height: 1.02;
}

.mega-menu__intro > p:nth-of-type(2) {
  font-size: 0.9rem;
  line-height: 1.5;
}

.mega-menu__columns {
  grid-template-columns: 1fr;
  gap: 0;
}

.mega-menu__column + .mega-menu__column {
  padding-top: 1rem;
  border-top: 1px solid rgba(7, 16, 28, 0.13);
}

.mega-menu__column > p {
  margin-bottom: 0.9rem;
  color: #526277;
  font-size: 0.68rem;
}

.mega-menu__link {
  margin-bottom: 1rem;
  padding: 0.15rem 1.6rem 0.15rem 0;
}

.mega-menu__link strong { font-size: 0.92rem; }
.mega-menu__link span { font-size: 0.76rem; }
.mega-menu__feature { display: none; }
/* Pages with the dedicated mobile directory use that content; every other page
   keeps the shared, script-rendered menu body visible. */
.mega-menu:has(.mega-menu__mobile-directory) .mega-menu__body { display: none; }

/* Keep bottom actions above modern phone home indicators. */
.site-footer,
.booking-drawer {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --agf-section-space: 3rem;
  }

  .mega-menu {
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Homepage scroll story ---------------------------------------------------
 * The desktop scene deliberately layers several large canvases. On a phone,
 * each beat needs one focal object and a protected copy zone instead of a
 * scaled-down desktop collage.
 */
.scroll-scene .panel-art {
  inset: 0;
}

.scroll-scene .panel-art img {
  max-width: none;
}

.scroll-scene .panel-copy:not(.panel-copy--generated-subtext) .panel-copy__box {
  width: 84vw !important;
  font-size: clamp(2.35rem, 10.5vw, 3.75rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.scroll-scene .panel-copy--generated-subtext .panel-copy__box {
  --copy-edit-x: 0px !important;
  width: 82vw !important;
  font-size: clamp(1rem, 4.35vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.scroll-scene .panel-copy--generated-subtext[data-copy-id="custom-subcopy-1"] .panel-copy__box {
  width: auto !important;
}

.scroll-scene .panel-copy--generated-subtext[data-copy-id="custom-subcopy-1"] .home-hero-actions {
  width: 100%;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.scroll-scene .panel-copy--generated-subtext[data-copy-id="custom-subcopy-1"] .home-hero-actions__link {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Website scene: one wide focal screen, two clearly separated companions. */
.scroll-scene .panel-art--website-builders {
  --art-x: 0vw !important;
  --art-base: calc(-17svh + var(--blue-art-lift)) !important;
}

.scroll-scene .panel-art--website-builders img {
  width: 88vw;
  height: auto;
  object-fit: contain;
}

.scroll-scene .panel-art--website-wellness {
  --art-x: -24vw !important;
  --art-base: calc(18svh + var(--blue-art-lift)) !important;
}

.scroll-scene .panel-art--website-wellness img {
  width: 42vw;
  height: auto;
  object-fit: contain;
}

.scroll-scene .panel-art--website-strategy {
  --art-x: 25vw !important;
  --art-base: calc(20svh + var(--blue-art-lift)) !important;
}

.scroll-scene .panel-art--website-strategy img {
  width: 38vw;
  height: auto;
  object-fit: contain;
}

.scroll-scene .panel-copy--websites .panel-copy__box {
  --copy-edit-x: 0px !important;
  --copy-edit-y: -255px !important;
}

/* Agent scenes: preserve the photography as one deliberate hero object. */
.scroll-scene .panel-art--automation-founder-man,
.scroll-scene .panel-art--automation-founder-woman {
  --art-x: 0vw !important;
  --art-base: 18svh !important;
}

.scroll-scene .panel-art--automation-founder-man img,
.scroll-scene .panel-art--automation-founder-woman img {
  width: 86vw;
  max-height: 52svh;
  border-radius: 1rem;
  object-fit: cover;
}

.scroll-scene .panel-copy--green .panel-copy__box,
.scroll-scene .panel-copy--operations .panel-copy__box {
  --copy-edit-x: 0px !important;
  width: 86vw !important;
}

/* Service-card beat: a readable two-by-two field rather than four stacked
   portrait canvases occupying the same center point. */
.scroll-scene .panel-art--yellow-card {
  --art-base: 48svh !important;
  --art-scale: 0.48 !important;
}

.scroll-scene .panel-art--yellow-card-websites {
  --art-x: -25vw !important;
}

.scroll-scene .panel-art--yellow-card-automation {
  --art-x: 25vw !important;
}

.scroll-scene .panel-art--yellow-card-insights {
  --art-x: -25vw !important;
  --art-edit-y: 23svh !important;
}

.scroll-scene .panel-art--yellow-card-systems {
  --art-x: 25vw !important;
  --art-edit-y: 23svh !important;
}

.scroll-scene .panel-art--yellow-card img {
  width: 88vw;
  height: auto;
  object-fit: contain;
}

/* Final command-center beat: headline first, wide dashboard second, compact
   report as a supporting overlay. Nothing crosses the copy boundary. */
.scroll-scene .panel-copy--command .panel-copy__box {
  --copy-edit-x: 0px !important;
  --copy-edit-y: -250px !important;
  width: 86vw !important;
  font-size: clamp(2.4rem, 10.8vw, 3.8rem);
}

.scroll-scene .panel-art--command-dashboard {
  --art-x: 0vw !important;
  --art-base: 19svh !important;
}

.scroll-scene .panel-art--command-dashboard img {
  width: 88vw;
  height: auto;
  object-fit: contain;
}

.scroll-scene .panel-art--command-report {
  --art-x: 23vw !important;
  --art-base: 38svh !important;
}

.scroll-scene .panel-art--command-report img {
  width: 38vw;
  height: auto;
  object-fit: contain;
}

.scroll-scene .panel-art--command-replacement-desktop {
  --art-x: 0vw !important;
  --art-base: 20svh !important;
}

.scroll-scene .panel-art--command-replacement-desktop img {
  width: 88vw;
  height: auto;
  object-fit: contain;
}

.scroll-scene .panel-art--command-replacement-phone {
  --art-x: 28vw !important;
  --art-base: 39svh !important;
}

.scroll-scene .panel-art--command-replacement-phone img {
  width: 34vw;
  height: auto;
  object-fit: contain;
}

/* Final blue page: keep the desktop editor offsets out of the phone canvas. */
.scroll-scene .panel-copy--final-blue .panel-copy__box {
  --copy-edit-x: 0px !important;
  --copy-edit-y: -255px !important;
  width: 86vw !important;
}

.scroll-scene .panel-copy--final-blue-subtext .panel-copy__box {
  --copy-edit-x: 0px !important;
  --copy-edit-y: -78px !important;
  width: 82vw !important;
  font-size: clamp(1.05rem, 4.7vw, 1.35rem);
  line-height: 1.48;
  letter-spacing: -0.012em;
}

/* Mobile homepage rebuild -------------------------------------------------
 * The phone version intentionally removes the desktop collage. The existing
 * curved color transitions and scroll timing now carry a type-led story.
 */
.home-hero-copy {
  top: 17%;
  right: var(--agf-page-gutter);
  left: var(--agf-page-gutter);
  width: auto;
  max-width: 34rem;
}

.home-hero-heading {
  max-width: 10ch;
  font-size: clamp(3rem, 12.5vw, 4.8rem);
  font-weight: 780;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.home-hero-subtext {
  max-width: 32ch;
  margin-top: 1.5rem;
  color: #294564;
  font-size: clamp(1rem, 4.25vw, 1.2rem);
  line-height: 1.5;
}

.scroll-scene .panel-art-stack,
.scroll-scene .panel-art:not(.panel-art--mobile-obvious-choice):not(.panel-art--automation-founder-man):not(.panel-art--automation-founder-woman):not([data-art-id="command-dashboard"]):not([data-art-id="command-report"]),
.scroll-scene .yellow-system-board {
  display: none !important;
}

.scroll-scene .panel-art--mobile-obvious-choice {
  --art-x: 0vw !important;
  --art-base: 4svh !important;
  --art-edit-x: 0px !important;
  --art-edit-y: 0px !important;
  --art-scale: 1 !important;
  display: grid !important;
  place-items: center;
  z-index: 5;
  pointer-events: none;
}

.scroll-scene .panel-art--mobile-obvious-choice img {
  width: 48vw;
  height: clamp(9.5rem, 21svh, 13rem);
  top: 5svh;
  right: 0;
  left: auto;
  margin-top: 0;
  border-radius: 1rem 0 0 1rem;
  object-fit: cover;
  object-position: 70% 57%;
  box-shadow: 0 1.25rem 3rem rgba(7, 16, 28, 0.16);
}

/* The green beat gets one clear supporting image on phones instead of
   disappearing with the desktop collage. Keep it small and high on the
   right so the headline remains the first read. */
.scroll-scene .panel-art--automation-founder-man {
  --art-x: 31vw !important;
  --art-base: -60svh !important;
  --art-edit-x: 0px !important;
  --art-edit-y: 0px !important;
  --art-scale: 1 !important;
  display: grid !important;
  z-index: 8;
}

.scroll-scene .panel-art--automation-founder-man img {
  width: 38vw;
  max-height: 24svh;
  border-radius: 0.9rem;
  object-fit: cover;
  box-shadow: 0 1.25rem 3rem rgba(7, 16, 28, 0.18);
}

.scroll-scene .panel-art--automation-founder-woman {
  --art-x: 30vw !important;
  --art-base: -42svh !important;
  --art-edit-x: 0px !important;
  --art-edit-y: 0px !important;
  --art-scale: 1 !important;
  display: grid !important;
  z-index: 9;
}

.scroll-scene .panel-art--automation-founder-woman img {
  width: 42vw;
  max-height: 29svh;
  border: 0;
  border-radius: 1rem 0 0 1rem;
  object-fit: cover;
  object-position: 64% center;
  box-shadow: 0 1.25rem 3rem rgba(7, 16, 28, 0.18);
}

.scroll-scene [data-art-id="command-dashboard"],
.scroll-scene [data-art-id="command-report"] {
  --art-edit-x: 0px !important;
  --art-edit-y: 0px !important;
  --art-scale: 1 !important;
  display: grid !important;
  z-index: 10 !important;
}

.scroll-scene [data-art-id="command-dashboard"] {
  --art-x: -5vw !important;
  --art-base: 12svh !important;
}

.scroll-scene [data-art-id="command-dashboard"] img {
  width: 84vw;
  height: auto;
  border-radius: 1rem;
  object-fit: contain;
  box-shadow: 0 1.5rem 3.5rem rgba(7, 16, 28, 0.2);
}

.scroll-scene [data-art-id="command-report"] {
  --art-x: 30vw !important;
  --art-base: 22svh !important;
}

.scroll-scene [data-art-id="command-report"] img {
  width: 28vw;
  height: auto;
  border-radius: 0.9rem;
  object-fit: contain;
  box-shadow: 0 1.2rem 2.5rem rgba(7, 16, 28, 0.2);
}

.scroll-scene .panel-copy__box {
  --copy-edit-x: 0px !important;
  --copy-edit-y: 0px !important;
  --copy-scale: 1 !important;
  right: var(--agf-page-gutter);
  left: var(--agf-page-gutter);
  width: auto !important;
  max-width: none;
  transform: none !important;
}

.scroll-scene .panel-copy:not(.panel-copy--generated-subtext):not(.panel-copy--final-blue-subtext) .panel-copy__box {
  top: 18%;
  color: #07101c;
  font-family: "AGF Inter", Inter, sans-serif;
  font-size: clamp(3rem, 14vw, 4.8rem);
  font-weight: 760;
  line-height: 0.91;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.scroll-scene .panel-copy--generated-subtext .panel-copy__box,
.scroll-scene .panel-copy--final-blue-subtext .panel-copy__box {
  top: 56%;
  color: rgba(7, 16, 28, 0.82);
  font-family: "AGF Inter", Inter, sans-serif;
  font-size: clamp(1rem, 4.4vw, 1.2rem);
  font-weight: 470;
  line-height: 1.52;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.scroll-scene .panel-copy--generated-subtext .panel-copy__box {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.scroll-scene .panel-copy--generated-subtext .panel-copy__box::before,
.scroll-scene .panel-copy--final-blue-subtext .panel-copy__box::before {
  display: none !important;
}

.scroll-scene .websites-heading-line {
  display: block;
  white-space: normal !important;
}

.scroll-scene .panel-copy:not(.panel-copy--generated-subtext):not(.panel-copy--final-blue-subtext) .panel-copy__box::after {
  position: absolute;
  right: 0;
  bottom: -1.5rem;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  opacity: 0.2;
  transform: scaleX(var(--copy-opacity, 1));
  transform-origin: left center;
}

.scroll-scene .panel-copy--websites .panel-copy__box {
  top: -25%;
  z-index: 8;
}

.scroll-scene .panel-copy--generated-subtext[data-copy-motion="blue"] .panel-copy__box {
  top: 39%;
  z-index: 8;
}

.scroll-scene .panel-copy--green .panel-copy__box {
  top: 12%;
  right: 29vw;
  width: auto !important;
  font-size: clamp(2.35rem, 9.6vw, 3.6rem) !important;
  line-height: 0.92;
}

.scroll-scene .panel-copy--operations .panel-copy__box {
  top: 13%;
  right: 24vw;
  width: auto !important;
  z-index: 11;
}

.scroll-scene .panel-copy--command .panel-copy__box {
  top: 16%;
  font-size: clamp(2.85rem, 13vw, 4.4rem);
  z-index: 11;
}

.scroll-scene .panel-copy--final-blue .panel-copy__box {
  top: 15%;
  color: #fff;
  font-size: clamp(2.75rem, 12.5vw, 4.3rem);
}

.scroll-scene .panel-copy--final-blue-subtext .panel-copy__box {
  top: 53%;
  color: rgba(255, 255, 255, 0.88);
}

.scroll-scene .panel-copy--generated-subtext .panel-copy__box > p:first-child {
  margin-bottom: 0.75rem !important;
  font-size: 0.78rem;
  font-weight: 760 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-scene .panel-copy--generated-subtext[data-copy-motion="green"] .panel-copy__box {
  top: 57%;
  font-size: clamp(0.96rem, 3.8vw, 1.04rem);
  line-height: 1.34;
}

.scroll-scene .panel-copy--generated-subtext[data-copy-motion="green"] ul {
  gap: 0.2rem;
}

.scroll-scene .panel-copy--generated-subtext[data-copy-motion="purple"] .panel-copy__box {
  top: 48%;
  font-size: clamp(0.96rem, 3.9vw, 1.06rem);
  line-height: 1.38;
}

.scroll-scene .panel-copy--generated-subtext ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.15rem !important;
}

.scroll-scene .panel-copy--generated-subtext li {
  margin: 0 !important;
}

.scroll-scene .human-handoff-link {
  min-height: 44px;
  margin-top: 1rem;
}

@property --journey-progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.mobile-canopy-journey {
  --journey-progress: 0;
  --journey-accent: #68c7dd;
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 24;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem 1rem;
  padding: 0.78rem 0.9rem 0.72rem;
  border-radius: 0.85rem;
  color: #fff;
  background: #07101c;
  box-shadow: 0 1rem 2.5rem rgba(7, 16, 28, 0.2);
  contain: layout paint style;
  pointer-events: none;
  transition: background-color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-canopy-journey[data-phase="automation"] { --journey-accent: #8ccf9a; }
.mobile-canopy-journey[data-phase="handoffs"] { --journey-accent: #c9a9e2; }
.mobile-canopy-journey[data-phase="busywork"] { --journey-accent: #f0cf52; }
.mobile-canopy-journey[data-phase="growth"] { --journey-accent: #6eb4ff; }

.mobile-canopy-journey__track {
  grid-column: 1 / -1;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.mobile-canopy-journey__track > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--journey-accent);
  transform: scaleX(var(--journey-progress));
  transform-origin: left center;
  will-change: transform;
}

.mobile-canopy-journey__label,
.mobile-canopy-journey__count {
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  line-height: 1;
}

.mobile-canopy-journey__count {
  color: rgba(255, 255, 255, 0.64);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-canopy-journey,
  .mobile-canopy-journey__track > span {
    transition: none;
  }
}

/* Real mobile homepage: ordinary flow, no desktop collage or imagery. */
.scroll-scene { display: none !important; }
.home-ai-solutions--desktop { display: none !important; }
.mobile-home {
  --mobile-ink: #061321;
  --mobile-blue: #1268e8;
  --mobile-sky: #dff3fa;
  --mobile-line: rgba(6, 19, 33, 0.18);
  display: block;
  overflow: clip;
  color: var(--mobile-ink);
  background: #fff;
}
.mobile-home :where(h1, h2, h3, p) { margin: 0; }
.mobile-home :where(h1, h2) {
  max-width: 10ch;
  font-weight: 790;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.mobile-home :where(p) {
  color: #284a68;
  font-size: clamp(1rem, 4.3vw, 1.14rem);
  line-height: 1.52;
  text-wrap: pretty;
}
.mobile-home :where(a) {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}
.mobile-home > section {
  padding-right: max(var(--agf-page-gutter), env(safe-area-inset-right));
  padding-left: max(var(--agf-page-gutter), env(safe-area-inset-left));
}
.mobile-home__hero {
  position: relative;
  min-height: max(82svh, 50rem);
  padding-top: clamp(8.5rem, 24svh, 11rem);
  padding-bottom: 8rem;
  background: linear-gradient(180deg, #fff 0 66%, #f4fbfd 100%);
}
.mobile-home__hero::after {
  display: none;
}
.mobile-home__hero::before {
  display: none;
}
.mobile-home__swoop {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 36svh;
  overflow: visible;
}
.mobile-home__swoop path {
  fill: var(--mobile-sky);
  stroke: none;
}
.mobile-home__hero h2 {
  position: relative;
  z-index: 2;
  max-width: none;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.mobile-home__hero > p {
  position: relative;
  z-index: 2;
  max-width: 40ch;
  margin-top: 0.9rem;
  font-size: clamp(0.95rem, 4vw, 1.05rem);
  line-height: 1.42;
}
.mobile-home__hero .mobile-home__primary { margin-top: 1.5rem; }
.mobile-home__primary {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 3.25rem;
  margin-top: 2rem;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  color: #fff !important;
  background: var(--mobile-ink);
  text-decoration: none;
}
.mobile-home__primary:active { background: var(--mobile-blue); }
.mobile-home__service-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.mobile-home__service-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(9, 17, 26, 0.72);
  border-radius: 999px;
  color: var(--mobile-ink) !important;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
  text-decoration: none;
}
.mobile-home__service-links a:first-child,
.mobile-home__service-links a:hover,
.mobile-home__service-links a:focus-visible {
  color: #fff !important;
  background: var(--mobile-ink);
}
.mobile-home__service-links a:focus-visible { outline: 3px solid var(--mobile-blue); outline-offset: 3px; }
.mobile-home__hero-photo {
  position: absolute;
  top: auto;
  bottom: 0;
  right: 0.5vw;
  z-index: 2;
  width: 33vw;
  height: clamp(15rem, 31svh, 20rem);
  border: 0;
  border-radius: 42% 9% 34% 13% / 12% 24% 10% 31%;
  object-fit: cover;
  object-position: 50% 30%;
  box-shadow: 0 1.25rem 3rem rgba(7, 16, 28, 0.16);
  transform: rotate(-1.5deg);
}
.mobile-home__signal {
  display: none;
}
.mobile-home__signal span {
  height: 0.22rem;
  background: var(--mobile-blue);
  transform-origin: left;
  animation: mobile-signal 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mobile-home__signal span:nth-child(2) { opacity: 0.55; animation-delay: 90ms; }
.mobile-home__signal span:nth-child(3) { opacity: 0.25; animation-delay: 180ms; }
@keyframes mobile-signal { from { transform: scaleX(0.15); } to { transform: scaleX(1); } }
.mobile-home__statement {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 7rem;
  background: var(--mobile-sky);
}
.mobile-home__statement h2,
.mobile-home__statement > p,
.mobile-home__statement > a {
  position: relative;
  z-index: 1;
  width: 50%;
}
.mobile-home__statement h2 { max-width: 6.8ch; }
.mobile-home__statement h2,
.mobile-home__system h2,
.mobile-home__services > h2,
.mobile-home__close h2 { font-size: clamp(3rem, 13vw, 4.65rem); }
.mobile-home__statement > p { max-width: 29ch; margin-top: 1.5rem; }
.mobile-home__statement > a { display: inline-block; margin-top: 2rem; }
.mobile-home__statement-image {
  position: absolute;
  top: 12rem;
  right: var(--agf-page-gutter);
  width: 43%;
  aspect-ratio: 4 / 5;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 1.2rem 2.8rem rgba(20, 70, 104, 0.16);
}
.mobile-home__system {
  padding: 0 !important;
  background: #fff;
}
.mobile-home__divider {
  display: block;
  width: 100%;
  height: clamp(7rem, 24vw, 11rem);
  background: #fff;
}
.mobile-home__divider path {
  fill: var(--mobile-sky);
}
.mobile-home__system-stage {
  position: relative;
  padding: 4.5rem var(--agf-page-gutter) 6rem;
}
.mobile-home__system h2 {
  max-width: none;
  font-size: clamp(1.2rem, 5vw, 1.75rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.mobile-home__system h2 span {
  display: block;
  white-space: nowrap;
}
.mobile-home__system-stage > p { max-width: 34ch; margin-top: 0.8rem; }
.mobile-home__flow {
  display: grid;
  margin-top: 3rem;
}
.mobile-home__flow h3 {
  margin: 0;
  color: var(--mobile-blue);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mobile-home__flow > p {
  max-width: 30ch;
  margin-top: 0.65rem;
  color: var(--mobile-ink);
  font-size: clamp(1.2rem, 5.1vw, 1.55rem);
  font-weight: 680;
  line-height: 1.18;
}
.mobile-home__flow ul {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.mobile-home__flow li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--mobile-line);
  color: #284a68;
  font-size: clamp(1rem, 4.2vw, 1.12rem);
  line-height: 1.4;
}
.mobile-home__flow > a {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--mobile-blue);
}
.mobile-home__outcomes {
  padding: 4rem var(--agf-page-gutter) 4.5rem;
  background: #e8daf0;
}
.mobile-home__services-exit {
  height: clamp(6rem, 21vw, 9rem);
  overflow: hidden;
  background: var(--mobile-ink);
}
.mobile-home__services-exit svg {
  display: block;
  width: 100%;
  height: 100%;
}
.mobile-home__services-exit path { fill: #f7edb5; }
.mobile-home__close {
  padding-top: 4.5rem;
  padding-bottom: max(7rem, calc(5rem + env(safe-area-inset-bottom)));
  color: #fff;
  background: var(--mobile-ink);
}
.mobile-home__close h2 { max-width: 9ch; color: #fff; }
.mobile-home__close p { max-width: 28ch; margin-top: 1.5rem; color: #cce3f3; }
.mobile-home__close .mobile-home__primary { color: var(--mobile-ink) !important; background: #fff; }
@media (max-width: 560px) {
  .mobile-home__outcomes { padding-top: 3.25rem; padding-bottom: 3.5rem; }
}
@media (max-width: 370px) {
  .mobile-home__hero h2,
  .mobile-home__statement h2,
  .mobile-home__system h2,
  .mobile-home__services > h2,
  .mobile-home__close h2 { font-size: clamp(2.7rem, 12.7vw, 3.4rem); }
}
@media (max-width: 767px) {
  .mobile-home__statement h2,
  .mobile-home__statement > p,
  .mobile-home__statement > a { width: auto; }
  .mobile-home__statement h2 { max-width: 9ch; }
  .mobile-home__statement > p {
    max-width: 34ch;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .mobile-home__statement .mobile-home__service-links {
    width: 100%;
    max-width: 100%;
    gap: 0.8rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .mobile-home__statement .mobile-home__service-links a {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding-block: 0.45rem;
    padding-inline: 1.3rem;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-home__statement-image {
    position: relative;
    top: auto;
    right: auto;
    display: block;
    width: 100%;
    max-width: 32rem;
    height: auto;
    margin-top: 3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-home__signal span { animation: none; }
}

/* The mobile web-design pitch owns the full phone viewport so its artwork
 * continues behind the opening copy instead of ending halfway down the page. */
@media (max-width: 767px) {
  body.website-design-page .website-outcomes__sticky {
    height: 100dvh !important;
    min-height: 100dvh !important;
  }
}

/* Mobile web-design story: hold the hero while the next chapter rises over it. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  body.website-design-page .website-outcomes {
    position: relative;
    z-index: 0;
    min-height: 200dvh !important;
    overflow: visible;
  }

  body.website-design-page .website-outcomes__sticky {
    position: sticky !important;
    top: 0;
    overflow: clip;
  }

  body.website-design-page .website-outcomes-cards {
    position: relative;
    z-index: 1;
    margin-top: -100dvh !important;
  }
}

/* Replace the mobile outcome cards with a readable text checklist. */
@media (max-width: 767px) {
  body.website-design-page .website-outcomes__canvas {
    gap: 0;
  }

  body.website-design-page .website-outcome {
    border-top: 1px solid rgba(5, 10, 17, 0.16);
  }

  body.website-design-page .website-outcome:first-child {
    border-top: 0;
  }

  body.website-design-page .website-outcome__visual {
    display: none;
  }

  body.website-design-page .website-outcome__note {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 1.4rem 0 1.55rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.website-design-page .website-outcome__title-default,
  body.website-design-page .website-outcome__copy-default {
    display: none;
  }

  body.website-design-page .website-outcome__title-mobile {
    display: inline;
  }

  body.website-design-page .website-outcome__bullets-mobile {
    display: grid;
    gap: 0.55rem;
    margin: 0.85rem 0 0;
    padding-left: 1.2rem;
    color: #284866;
    font-size: 0.98rem;
    line-height: 1.5;
  }
}

/* Editorial Blueprint ----------------------------------------------------
 * A phone-first white-and-sky system. The curved sheets remain the single
 * authored motion, while every act reads like a page in one precise story.
 */
.scroll-scene {
  --editorial-ink: #061321;
  --editorial-blue: #1268e8;
  --editorial-sky: #dff3fa;
  --editorial-rule: rgba(6, 19, 33, 0.22);
}

.sticky-stage {
  background: #fdfefe;
}

.hero-curved-light {
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(18, 104, 232, 0.1) 0) 0 0 / 25% 100%,
    linear-gradient(#fff, #f7fcff 62%, #e5f6fb);
}

.hero-curved-light__surface {
  right: -24vw;
  bottom: -29svh;
  width: 118vw;
  height: 54svh;
  border-radius: 58% 42% 0 0 / 78% 52% 0 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), #d7f0f8 64%, #bfe7f2);
  box-shadow: inset 0 1px 0 rgba(18, 104, 232, 0.46), 0 -2rem 5rem rgba(18, 104, 232, 0.08);
}

.hero-curved-light__rim {
  right: -20vw;
  bottom: 1svh;
  width: 112vw;
  border-color: rgba(18, 104, 232, 0.56);
}

.home-hero-copy {
  top: 15%;
  right: var(--agf-page-gutter);
  left: var(--agf-page-gutter);
}

.home-hero-copy::before {
  display: block;
  width: 3.25rem;
  height: 0.22rem;
  margin-bottom: 1.1rem;
  background: var(--editorial-blue);
  content: "";
}

.home-hero-heading {
  max-width: 9.4ch;
  color: var(--editorial-ink);
  font-size: clamp(3.15rem, 13.4vw, 4.75rem);
  font-weight: 790;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.home-hero-heading__break {
  display: none;
}

.home-hero-subtext {
  max-width: 29ch;
  margin-top: 1.25rem;
  color: #284a68;
  font-size: clamp(1rem, 4.15vw, 1.15rem);
  line-height: 1.45;
}

.surface--sheet-blue .surface-fill,
.surface--sheet-green .surface-fill,
.surface--sheet-purple .surface-fill,
.surface--sheet-yellow .surface-fill {
  fill: var(--editorial-sky);
}

.surface--sheet-green .surface-fill { fill: #f8fcfe; }
.surface--sheet-purple .surface-fill { fill: #d9eff7; }
.surface--sheet-yellow .surface-fill { fill: #ffffff; }

.surface--sheet-blue .edge-outline,
.surface--sheet-green .edge-outline,
.surface--sheet-purple .edge-outline,
.surface--sheet-yellow .edge-outline {
  stroke: rgba(18, 104, 232, 0.34) !important;
  stroke-width: 2px !important;
}

.surface--sheet .edge-shadow,
.surface--sheet .edge-glint {
  display: none !important;
}

.final-blue-cover {
  background: #d9eff7;
}

.scroll-scene .panel-copy:not(.panel-copy--generated-subtext):not(.panel-copy--final-blue-subtext) .panel-copy__box {
  top: 16%;
  right: var(--agf-page-gutter);
  left: var(--agf-page-gutter);
  color: var(--editorial-ink);
  font-size: clamp(2.85rem, 12.9vw, 4.55rem);
  font-weight: 790;
  line-height: 0.89;
  letter-spacing: -0.04em;
}

.scroll-scene .panel-copy:not(.panel-copy--generated-subtext):not(.panel-copy--final-blue-subtext) .panel-copy__box::after {
  right: auto;
  bottom: -1rem;
  width: 4rem;
  height: 0.22rem;
  background: var(--editorial-blue);
  opacity: 1;
}

.scroll-scene .panel-copy--websites .panel-copy__box {
  top: -29%;
  max-width: 7.8ch;
}

.scroll-scene .panel-copy--generated-subtext[data-copy-motion="blue"] .panel-copy__box {
  top: 35%;
  max-width: 27ch;
  color: #284a68;
}

.scroll-scene .panel-copy--green .panel-copy__box {
  top: 11%;
  right: 18vw;
  max-width: 9.2ch;
  font-size: clamp(2.65rem, 11.7vw, 4.1rem) !important;
}

.scroll-scene .panel-copy--operations .panel-copy__box {
  top: 14%;
  right: var(--agf-page-gutter);
  max-width: 8ch;
}

.scroll-scene .panel-copy--command .panel-copy__box {
  top: 13%;
  max-width: 9ch;
  font-size: clamp(2.75rem, 12.4vw, 4.35rem);
}

.scroll-scene .panel-copy--final-blue .panel-copy__box {
  top: 14%;
  max-width: 8.5ch;
  color: var(--editorial-ink);
}

.scroll-scene .panel-copy--final-blue-subtext .panel-copy__box {
  top: 52%;
  max-width: 27ch;
  color: #284a68;
}

.scroll-scene .panel-copy--generated-subtext .panel-copy__box {
  color: #284a68;
}

.scroll-scene .panel-copy--generated-subtext .panel-copy__box > p:first-child {
  color: var(--editorial-blue);
}

.scroll-scene .panel-art--mobile-obvious-choice img,
.scroll-scene .panel-art--automation-founder-man img,
.scroll-scene .panel-art--automation-founder-woman img,
.scroll-scene [data-art-id="command-dashboard"] img,
.scroll-scene [data-art-id="command-report"] img {
  border: 1px solid rgba(6, 19, 33, 0.12);
  border-radius: 0.35rem;
  box-shadow: 0 1.4rem 3rem rgba(20, 70, 104, 0.14);
}

.scroll-scene .panel-art--mobile-obvious-choice {
  --art-x: 22vw !important;
  --art-base: 2svh !important;
}

.scroll-scene .panel-art--mobile-obvious-choice img {
  width: 43vw;
  height: clamp(8.5rem, 19svh, 11.5rem);
}

.scroll-scene .panel-art--automation-founder-man {
  --art-x: 31vw !important;
  --art-base: -63svh !important;
}

.scroll-scene .panel-art--automation-founder-man img {
  width: 35vw;
  max-height: 22svh;
  border: 0;
  border-radius: 42% 9% 34% 13% / 12% 24% 10% 31%;
  box-shadow: 0 1.25rem 3rem rgba(7, 16, 28, 0.16);
  object-position: 50% 34%;
  transform: rotate(-1.5deg);
}

.scroll-scene .panel-art--automation-founder-woman {
  --art-x: 29vw !important;
  --art-base: -48svh !important;
}

.scroll-scene .panel-art--automation-founder-woman img {
  width: 38vw;
  max-height: 26svh;
}

.scroll-scene [data-art-id="command-dashboard"] {
  --art-x: -7vw !important;
  --art-base: 14svh !important;
}

.scroll-scene [data-art-id="command-dashboard"] img {
  width: 86vw;
}

.scroll-scene [data-art-id="command-report"] {
  --art-x: 31vw !important;
  --art-base: 24svh !important;
}

.mobile-canopy-journey {
  --journey-accent: var(--editorial-blue);
  right: 0;
  bottom: 0;
  left: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.72rem var(--agf-page-gutter) max(0.78rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(6, 19, 33, 0.16);
  border-radius: 0;
  color: var(--editorial-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -0.75rem 2rem rgba(20, 70, 104, 0.06);
}

.mobile-canopy-journey[data-phase] {
  --journey-accent: var(--editorial-blue);
}

.mobile-canopy-journey__track {
  order: 3;
  height: 1px;
  background: rgba(6, 19, 33, 0.18);
}

.mobile-canopy-journey__label {
  color: var(--editorial-ink);
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mobile-canopy-journey__count {
  color: #42637e;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 370px) {
  .scroll-scene .panel-copy:not(.panel-copy--generated-subtext):not(.panel-copy--final-blue-subtext) .panel-copy__box {
    font-size: clamp(2.55rem, 13vw, 3.2rem);
  }

  .scroll-scene .panel-copy--generated-subtext .panel-copy__box,
  .scroll-scene .panel-copy--final-blue-subtext .panel-copy__box {
    top: 52%;
    font-size: 0.96rem;
  }

  .scroll-scene .panel-copy--generated-subtext[data-copy-motion="blue"] .panel-copy__box {
    top: 42%;
  }
}
