/*
 * Desktop-only presentation layer.
 *
 * This file is loaded only when the viewport is 768px or wider. Desktop
 * refinements belong here so they cannot change the phone experience.
 */

:root {
  --agf-layout-mode: desktop;
  --agf-page-gutter: clamp(2.5rem, 5vw, 6rem);
  --agf-section-space: clamp(5rem, 8vw, 9rem);
  --agf-content-width: 90rem;
}

html {
  scroll-padding-top: 6rem;
}

body {
  min-width: 48rem;
}

.rising-sheet,
.rising-sheet *,
.surface {
  pointer-events: none;
}

.panel-copy .panel-copy__box,
.panel-copy .panel-copy__box * {
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
}

/* Give the opening statement a centered, deliberate two-line composition. */
.home-hero-copy {
  left: 5%;
  width: 90%;
  max-width: none;
  text-align: center;
}

.home-hero-heading {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  font-size: clamp(1.5rem, 3.6vw, 3.5rem);
  line-height: 1.02;
}

.home-hero-heading__break {
  display: block;
}

.home-hero-subtext {
  max-width: 65ch;
  margin: 28px auto 0;
  text-align: center;
}

/* Keep the transition artwork above the pinned green scene. The AI panel stays
   in place while the client-work panel rises over it. */
.scroll-scene {
  height: 300svh;
}

.home-ai-story--desktop {
  position: relative;
  z-index: 12;
  isolation: isolate;
}

.home-ai-solutions--desktop {
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  min-height: 100svh;
  box-sizing: border-box;
  overflow: visible;
  --home-ai-wave-height: clamp(5rem, 12vw, 11rem);
  padding-top: calc(var(--home-ai-wave-height) + clamp(4rem, 8vw, 7rem));
  background: linear-gradient(to bottom, #dcefdc 0 var(--home-ai-wave-height), #e8daf0 var(--home-ai-wave-height) 100%);
}

.home-ai-solutions__wave {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: var(--home-ai-wave-height);
  pointer-events: none;
}

.home-ai-solutions__wave path {
  fill: #e8daf0;
}

.home-ai-solutions--desktop > [data-home-ai-solutions] {
  position: relative;
  z-index: 1;
}

.home-client-work--desktop {
  position: relative;
  z-index: 2;
}

[data-copy-id="final-blue-copy"] .panel-copy__box {
  top: 18%;
  left: 65%;
  width: 31%;
  transform: none;
  font-size: clamp(1.75rem, 3.2vw, 3.25rem);
}

[data-copy-id="final-blue-subcopy"] .panel-copy__box {
  top: calc(18% + clamp(8rem, 12vw, 12rem));
  left: 65%;
  width: 31%;
  transform: none;
  font-size: clamp(1rem, 1.7vw, 1.6rem);
}

/* Keep the desktop website headline and supporting line together, overriding
   stale saved editor positions that separated these two copy layers. */
.sticky-stage {
  --websites-copy-heading-y: calc(-590px - max(0px, calc(760px - 100svh)));
}

.panel-copy--websites .panel-copy__box {
  --copy-edit-y: var(--websites-copy-heading-y) !important;
  font-size: clamp(2rem, 5.6vw, 5.25rem);
}

.panel-copy--websites .websites-heading-line {
  white-space: normal;
}

.panel-copy--generated-subtext[data-copy-id="custom-subcopy-1"] .panel-copy__box {
  --copy-edit-y: calc(var(--websites-copy-heading-y) + 55px) !important;
  transform: translate3d(calc(-50% + clamp(-30vw, var(--copy-edit-x), 30vw)), var(--copy-edit-y), 0) scale(var(--copy-scale));
  transform-origin: 50% 0;
}

.panel-copy--generated-subtext[data-copy-id="custom-subcopy-1"] .panel-copy__box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
  text-transform: none;
}

.home-hero-actions__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(9, 17, 26, 0.75);
  border-radius: 999px;
  color: #09111a;
  background: rgba(255, 255, 255, 0.72);
  font: 650 0.9rem/1 "AGF Inter", Inter, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.home-hero-actions__link--primary,
.home-hero-actions__link:hover,
.home-hero-actions__link:focus-visible {
  color: #fff;
  background: #09111a;
}

.home-hero-actions__link:hover { transform: translateY(-2px); }
.home-hero-actions__link:focus-visible { outline: 3px solid #2489c7; outline-offset: 3px; }

@media (min-width: 768px) {
  .panel-copy--generated-subtext[data-copy-id="custom-subcopy-1"] .home-hero-actions__link {
    min-height: 5.8rem;
    padding: 1.2rem .75rem;
    font-size: 1.2rem;
  }
}

@media (min-width: 980px) {
  .panel-copy--generated-subtext[data-copy-id="custom-subcopy-2"] .home-hero-actions {
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .panel-copy--generated-subtext[data-copy-id="custom-subcopy-2"] .home-hero-actions__link {
    gap: 0.4rem;
    min-height: 2.65rem;
    padding: 0.55rem 0.6rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-actions__link { transition: none; }
  .home-hero-actions__link:hover { transform: none; }
}

/* Position the green panel's plain text alongside its photo. */

.panel-copy--green .panel-copy__box {
  top: 53%;
  left: 54%;
  width: 41%;
  padding: 0;
  transform: none;
  font-size: clamp(1.65rem, 3.2vw, 3rem);
  line-height: 1.1;
}

.panel-copy--generated-subtext[data-copy-id="custom-subcopy-2"] .panel-copy__box {
  top: calc(53% + clamp(6rem, 8vw, 8rem));
  left: 54%;
  width: 41%;
  padding: 0;
  transform: none;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.45;
}

.panel-copy--generated-subtext[data-copy-id="custom-subcopy-2"] .panel-copy__box::before {
  display: none;
}

.panel-copy--generated-subtext[data-copy-id="custom-subcopy-2"] .human-handoff-link {
  display: inline-flex;
  justify-content: flex-start;
  margin-top: 0.8em;
  padding: 0;
  border: 0;
}

/* Keep the command headline to two readable lines and bring its plain-text
   supporting copy fully inside the yellow panel. */
.panel-copy--command .panel-copy__box {
  --copy-width: 42vw !important;
  font-size: clamp(2.3rem, 4.2vw, 3.8rem);
}

.command-heading-line {
  display: block;
  white-space: nowrap;
}

.panel-copy--generated-subtext[data-copy-id="custom-subcopy-4"] .panel-copy__box {
  --copy-width: 55vw !important;
  --copy-edit-y: calc(278px + 6svh) !important;
}

.panel-copy--generated-subtext[data-copy-id="custom-subcopy-4"] .panel-copy__box::before {
  display: none;
}

.panel-art--mobile-obvious-choice {
  display: none !important;
}

/* Give the four desktop service cards a regular rhythm with visible gutters.
   Their mobile layout remains controlled by the mobile stylesheet. */
.panel-art--yellow-card-websites {
  --art-x: -32.25vw;
  --art-edit-x: 0vw !important;
}

.panel-art--yellow-card-automation {
  --art-x: -10.75vw;
  --art-edit-x: 0vw !important;
}

.panel-art--yellow-card-insights {
  --art-x: 10.75vw;
  --art-edit-x: 0vw !important;
}

.panel-art--yellow-card-systems {
  --art-x: 32.25vw;
  --art-edit-x: 0vw !important;
}

.panel-art--yellow-card img {
  height: min(92svh, 68vw);
}

::selection {
  color: #fff;
  background: #0a5cff;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid #0a5cff;
  outline-offset: 4px;
}
