/* 0.4.69: approved editorial motion. All enhancements are scoped to JS-created
   wrappers; the saved sections remain the normal no-JS/mobile presentation. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .vg-story-069 {
    --vg-story-rule: #d5d2c9;
    --vg-story-accent: #8a7756;
    padding-block: clamp(3rem, 5.5vw, 5rem);
    border-top: 1px solid var(--vg-border);
    background: var(--vg-ivory);
  }
  .vg-story-069__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .vg-story-069__stage {
    position: sticky;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 108px);
    min-width: 0;
    align-self: start;
  }
  .vg-story-069__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: calc(100svh - 250px);
    min-height: 210px;
    overflow: hidden;
    background: #e7e4dc;
    isolation: isolate;
  }
  .vg-story-069--capabilities .vg-story-069__frame { aspect-ratio: 16 / 9; }
  .vg-story-069__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 650ms var(--vg-motion-ease);
    pointer-events: none;
  }
  .vg-story-069__slide.is-active { opacity: 1; z-index: 1; }
  .vg-story-069__slide > picture,
  .vg-story-069__slide > picture > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
    clip-path: none;
  }
  .vg-story-069__slide > picture > img {
    object-fit: contain;
    object-position: center;
    transform: none;
  }
  .vg-story-069__controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.4rem;
    margin-top: 1.3rem;
  }
  .vg-story-069__controls button {
    position: relative;
    appearance: none;
    display: block;
    min-width: 0;
    padding: .7rem 0 0;
    border: 0;
    border-top: 1px solid var(--vg-story-rule);
    border-radius: 0;
    background: transparent;
    color: var(--vg-muted);
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: color 220ms ease;
  }
  .vg-story-069__controls button::before {
    content: '';
    position: absolute;
    inset: -1px 0 auto;
    height: 2px;
    background: var(--vg-story-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 450ms var(--vg-motion-ease);
  }
  .vg-story-069__controls button[aria-pressed="true"],
  .vg-story-069__controls button:hover { color: var(--vg-charcoal); }
  .vg-story-069__controls button[aria-pressed="true"]::before { transform: scaleX(1); }
  .vg-story-069__controls button:focus-visible { outline: 2px solid var(--vg-story-accent); outline-offset: 6px; }
  .vg-story-069__chapters { min-width: 0; }
  .vg-site .vg-story-069 .vg-story-069__chapter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(390px, 50vh, 480px);
    min-width: 0;
    margin: 0;
    padding: 3rem 0;
    border: 0;
    border-bottom: 1px solid var(--vg-story-rule);
    background: transparent;
    scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 120px);
  }
  .vg-site .vg-story-069 .vg-story-069__chapter:first-child { padding-top: 1rem; }
  .vg-site .vg-story-069 .vg-story-069__chapter:last-child { border-bottom: 0; padding-bottom: 1rem; }
  .vg-site .vg-story-069 .vg-story-069__chapter > .vg-container {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .vg-site .vg-story-069 .vg-story-069__chapter :is(.vg-illustrated-copy, .vg-chapter-copy, .vg-page-section__content) {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .vg-site .vg-story-069 .vg-story-069__chapter :is(h2, h3) {
    margin: 0 0 1.5rem;
    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    line-height: 1.12;
    overflow-wrap: normal;
  }
  .vg-story-069__chapter :is(.vg-illustrated-media, .vg-home-strengths__media) { display: none !important; }
  .vg-story-069__chapter .vg-page-copy { margin-top: 0; }
  .vg-story-069__chapter .vg-page-links { gap: .7rem 1.5rem; }

  /* The homepage uses the approved dark band; other service stories retain the
     site's paper palette and leave subsequent section backgrounds untouched. */
  .vg-site section.vg-home-story-069 {
    --vg-surface-background: #1d2c37;
    background: #1d2c37;
    color: var(--vg-ivory);
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
  }
  .vg-home-story-069 > .vg-container > .vg-eyebrow { color: #bdae91; }
  .vg-home-story-069 h2 { margin-bottom: 3rem; }
  .vg-home-strengths__grid > .vg-story-069 { grid-column: 1 / -1; }
  .vg-story-069--home {
    --vg-story-rule: #40515d;
    --vg-story-accent: #b8a582;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .vg-story-069--home .vg-story-069__frame { aspect-ratio: 16 / 9; background: #283d4c; }
  .vg-site .vg-story-069--home .vg-story-069__chapter { min-height: 420px; }
  .vg-home-story-069 .vg-story-069__chapter p { color: #c4cdd2; font-size: 1.125rem; line-height: 1.65; }
  .vg-home-story-069 .vg-story-069__chapter .vg-text-link { align-self: flex-start; color: var(--vg-ivory); margin-top: 1.5rem; }
  .vg-story-069--home .vg-story-069__controls button { color: #b7c1c7; }
  .vg-story-069--home .vg-story-069__controls button[aria-pressed="true"],
  .vg-story-069--home .vg-story-069__controls button:hover { color: var(--vg-ivory); }
}

/* Content is never invisible while waiting for a reveal observer. */
@media (prefers-reduced-motion: no-preference) {
  .vg-soft-motion-069 .vg-enter-069 {
    opacity: .8;
    transform: translateY(10px);
    transition: opacity 750ms var(--vg-motion-ease), transform 750ms var(--vg-motion-ease);
  }
  .vg-soft-motion-069 .vg-enter-069.vg-entered-069 { opacity: 1; transform: none; }
  .vg-soft-motion-069 .vg-home-shared-066 h1 > span { animation: vg-hero-line-069 800ms var(--vg-motion-ease) both; }
  .vg-soft-motion-069 .vg-home-shared-066 h1 > span:nth-child(2) { animation-delay: 90ms; }
  .vg-soft-motion-069 .vg-home-shared-066 h1 > span:nth-child(3) { animation-delay: 180ms; }
  .vg-soft-motion-069 .vg-home-shared-066 .vg-lead { animation: vg-hero-line-069 850ms 180ms var(--vg-motion-ease) both; }
  @keyframes vg-hero-line-069 {
    from { opacity: .2; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

@media print {
  .vg-story-069__stage { display: none !important; }
  .vg-story-069__layout, .vg-story-069__chapters { display: block !important; }
  .vg-story-069__chapter :is(.vg-illustrated-media, .vg-home-strengths__media) { display: block !important; }
  .vg-story-069__chapter { min-height: 0 !important; break-inside: avoid; }
  .vg-soft-motion-069 .vg-enter-069 { opacity: 1; transform: none; }
}
