/* AumnI digital — shared landing-page styles (subpages) */

:root {
  --nv: #00004D;          /* AumnI digital brand navy — page bg */
  --teal: #2EC4B6;
  --cyan: #35E0FF;
  --amber: #EB573A;       /* brand orange */
  --coral: #FF6B9D;
  --cream: #F4EFE6;
  --ink-soft: #A8A8C8;
  --glass: rgba(0, 0, 77, 0.35);
  --glass-border: rgba(255, 255, 255, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--nv);
  color: var(--cream);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- top bar ---------- */
/* One canonical bar for every page — no per-page background or blur, so the
   header can't drift from page to page. */
.pg-topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  /* Near-opaque through the wordmark/nav row, then fading. The old soft fade
     measured 1.03:1 on the orange wordmark where the bar crossed a pale band,
     i.e. invisible. This holds AA across every page instead of each page
     patching it with its own plate. */
  background: linear-gradient(rgba(0,0,77,.95) 0%, rgba(0,0,77,.90) 60%, rgba(0,0,77,0) 100%);
}
.pg-topbar a { color: var(--cream); text-decoration: none; font-weight: 700; }
.pg-topbar .pg-back { display: flex; align-items: center; gap: 10px; }
.pg-topbar .pg-back .dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(160deg, var(--cyan), var(--teal));
}
.pg-topbar nav { display: flex; gap: 16px; font-size: 13px; }

/* Nav items are plain text. The current page and hover are marked with an
   accent underline that wipes in — never a filled pill or blob, which made the
   current item look like a button and sat oddly beside its plain siblings.
   `--acc` is each page's own accent, so this stays on-palette everywhere. */
.pg-topbar nav a {
  position: relative; color: var(--ink-soft); font-weight: 600;
  padding-bottom: 5px;
  transition: color .2s cubic-bezier(.4,0,.2,1);
}
.pg-topbar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--acc, var(--amber)); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.pg-topbar nav a:hover, .pg-topbar nav a:focus-visible { color: var(--cream); }
.pg-topbar nav a:hover::after, .pg-topbar nav a:focus-visible::after { transform: scaleX(1); }
/* --acc-lift lets a page supply a lighter variant where its raw accent is too
   dark for 12.5px text (contact's blue is 3.71:1 on navy, under AA). */
.pg-topbar nav a[aria-current] { color: var(--acc-lift, var(--acc, var(--amber))); font-weight: 700; }
.pg-topbar nav a[aria-current]::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .pg-topbar nav a, .pg-topbar nav a::after { transition: none; }
}

/* ---------- scroll-scrub hero (mount with hero-scrub.js) ---------- */
.pg-hero-track { position: relative; }              /* height set by JS (scrollVh) */
.pg-hero {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; display: grid; place-items: center;
}
.pg-hero video, .pg-hero .pg-hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.pg-hero .pg-hero-shade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 70%, transparent 30%, rgba(6,10,20,.65) 100%);
}
.pg-hero .pg-hero-copy {
  /* width, not just max-width: as a grid item this box is shrink-to-fit, and
     once SplitText turns the headline into inline-blocks it collapses to one
     word per line. Pinning the width keeps splits laying out normally. */
  position: relative; z-index: 2; text-align: center; padding: 0 24px;
  width: min(880px, 92vw); max-width: 880px;
}
.pg-hero .pg-eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 700;
  color: var(--cyan); margin-bottom: 14px;
}
.pg-hero h1 { font-size: clamp(38px, 7vw, 84px); line-height: 1.04; letter-spacing: -0.02em; }
.pg-hero p { margin-top: 18px; color: var(--cream); opacity: .85; font-size: clamp(16px, 2vw, 20px); }
.pg-hero .pg-hero-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- content sections ---------- */
.pg-section {
  position: relative; padding: 120px 6vw; max-width: 1200px; margin: 0 auto;
}
.pg-section.full { max-width: none; padding-left: 0; padding-right: 0; }
.pg-section h2 { font-size: clamp(28px, 4.4vw, 54px); letter-spacing: -0.02em; line-height: 1.08; }
.pg-section .pg-eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700;
  color: var(--amber); margin-bottom: 12px;
}
.pg-section p.lede { color: var(--ink-soft); max-width: 620px; margin-top: 16px; font-size: 18px; }

/* glass card (same look as the main site copy cards) */
.pg-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--glass-border); border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pg-card { background: rgba(0, 0, 77, 0.90); }
}


/* ---------- buttons ---------- */
.pg-btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 800; font-size: 15px; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 999px;
  background: var(--cream); color: var(--nv);
}
.pg-btn.ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--glass-border);
}

/* ---------- footer ----------
   One canonical footer on every page. Pages must not restyle it: a footer that
   changes shape page to page reads as a broken site. Markup is in each page so
   the links stay crawlable (a JS-injected footer would hide them). */
.pg-footer {
  padding: 72px 6vw 84px; border-top: 1px solid var(--glass-border);
  display: grid; gap: 32px 48px;
  grid-template-columns: minmax(260px, 1.4fr) auto auto;
  align-items: start;
  color: var(--ink-soft); font-size: 14px;
}
.pg-footer__brand .ad-wordmark { margin-bottom: 14px; }
.pg-footer__brand p { max-width: 42ch; line-height: 1.65; }
.pg-footer__nav { display: grid; gap: 10px; }
.pg-footer__nav a, .pg-footer__contact a {
  color: var(--cream); text-decoration: none;
  transition: color .2s cubic-bezier(.4,0,.2,1);
}
.pg-footer__nav a:hover, .pg-footer__contact a:hover { color: var(--acc, var(--amber)); }
.pg-footer__nav a[aria-current] { color: var(--acc-lift, var(--acc, var(--amber))); font-weight: 700; }
.pg-footer__contact a { font-weight: 600; }

@media (max-width: 860px) {
  .pg-footer { grid-template-columns: 1fr; gap: 26px; padding: 56px 7vw 68px; }
  .pg-footer__nav { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-footer__nav a, .pg-footer__contact a { transition: none; }
}

/* ---------- mobile navigation (nav.js injects the button) ----------
   Above 860px nothing here applies and the header is the normal inline nav. */
.pg-navtoggle {
  display: none; position: relative; z-index: 2;
  background: transparent; border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 9px 10px; cursor: pointer;
}
.pg-navtoggle:focus-visible { outline: 2px solid var(--acc, var(--amber)); outline-offset: 3px; }
.pg-navtoggle__bars { display: block; width: 20px; }
.pg-navtoggle__bars i {
  display: block; height: 2px; border-radius: 2px; background: var(--cream);
  transition: transform .2s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.pg-navtoggle__bars i + i { margin-top: 4px; }
.nav-open .pg-navtoggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .pg-navtoggle__bars i:nth-child(2) { opacity: 0; }
.nav-open .pg-navtoggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .pg-section { padding: 84px 7vw; }

  /* no JS: the nav stays hidden exactly as it did before */
  .pg-topbar nav { display: none; }

  .pg-topbar.has-mobile-nav .pg-navtoggle { display: block; }
  .pg-topbar.has-mobile-nav {
    /* solid while the panel can cover the page, so copy never shows through */
    background: rgba(0,0,77,.94);
  }
  .pg-topbar.has-mobile-nav nav {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 62px 0 auto 0;
    background: rgba(0,0,77,.985);
    border-top: 1px solid rgba(255,255,255,.10);
    padding: 8px 0 18px;
    font-size: 16px;
    max-height: calc(100dvh - 62px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .22s cubic-bezier(.4,0,.2,1), opacity .22s ease, visibility .22s;
  }
  .pg-topbar.has-mobile-nav.nav-open nav {
    transform: translateY(0); opacity: 1; visibility: visible;
  }
  .pg-topbar.has-mobile-nav nav a {
    padding: 15px 22px; border-bottom: 1px solid rgba(255,255,255,.06);
  }
  /* the underline marker is a left bar in the stacked panel */
  .pg-topbar.has-mobile-nav nav a::after {
    left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto;
    transform: scaleY(0); transform-origin: center top;
  }
  .pg-topbar.has-mobile-nav nav a:hover::after,
  .pg-topbar.has-mobile-nav nav a[aria-current]::after { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

/* ---------- scroll motion (motion-kit.js) ----------
   The single layout rule the shared scroll patterns need. motion-kit.js adds
   this class to a land-and-lift section only once it has measured the section
   and decided to pin it, and removes it again if the viewport stops allowing
   the pin. Without JS, under reduced motion, below 861px, or on a window too
   short to hold the section still safely, it is never applied and every
   section keeps exactly the layout it was designed with.

   Pinned, the section fills the viewport with its content centred, which is
   what the full funnel on the Deliver & Grow page does. Block padding only:
   the section's own side padding is left alone.

   The pinned-horizontal sections style their own `.hz-on` state on their own
   pages, because each one slides a different component. */
.land-stage--pinned {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(70px, 8.6vh, 94px);
  padding-bottom: clamp(14px, 2.8vh, 30px);
}
