/* Reduced motion: the homepage becomes a run of still screens. Nothing moves on its own; a screen moves only with the
   visitor's own scroll. A "stop" is a pinned screen that holds while the page scrolls past a spacer, then moves on.
   Frames that follow one another slide up over the one before, like cards dealt onto a pile.
   reduced-motion.js builds the frames, the portfolio grid and the footer phrase. */

.rm-stack, .rm-work, .rm-gap, .rm-phrase { display: none; }

@media (prefers-reduced-motion: reduce) {
  /* A solid header, so no content shows through behind the wordmark or nav. */
  :root .site-header, :root .site-header.is-scrolled { background: #fff; box-shadow: 0 1px 0 var(--rc-color-rule); }
  :root .primary-nav .nav-disabled { color: var(--rc-color-border); opacity: 1; }

  /* Hero: the design system's section gap below it (80px compact, 120px standard), so "Connect with me" doesn't sit
     flush against the full crowd screen that follows. On phones the panel also keeps 24px inside below the button. */
  :root .hero { margin-bottom: var(--rc-space-30); }

  /* Frames and stops */
  :root .rm-stack { display: block; position: relative; background: var(--rc-color-canvas); }
  :root .rm-frame { position: sticky; top: 69px; height: calc(100svh - 69px); margin: 0; overflow: hidden; isolation: isolate; background: #fff; border-top: 2px solid var(--rc-color-ink); box-shadow: 0 -14px 34px -10px rgb(36 43 39 / .4); }
  :root .rm-frame:first-child { border-top: 0; box-shadow: none; }
  :root .rm-hold { height: 45svh; }
  :root .rm-gap, :root .rm-stop { display: block; height: 70svh; }

  /* Crowd: one still screen, "Let's get you in front of the right customers." */
  :root #customer-crowd { height: auto; }
  :root #customer-crowd .crowd-stage, :root .crowd-steps { display: none; }
  :root .rm-crowd { display: grid; place-items: center; }
  :root .rm-faces { position: absolute; inset: 0; z-index: -2; }
  :root .rm-faces img { position: absolute; top: 0; left: 0; }
  :root .rm-crowd .crowd-reading-space { z-index: -1; background: radial-gradient(ellipse 70% 46% at 50% 50%, #fff 0%, #fff 55%, rgb(255 255 255 / .85) 78%, rgb(255 255 255 / 0) 100%); }
  :root .rm-crowd h2 { position: relative; width: 92%; max-width: 1120px; margin: 0; text-align: center; font-size: clamp(31px, 5.6vw, 82px); font-weight: 800; line-height: 1.04; letter-spacing: -.055em; color: #252722; }
  :root .rm-crowd .rm-qty { display: block; margin: 5px 0 8px; font-size: 1.6em; line-height: 1.18; letter-spacing: -.06em; color: #426e4b; }

  /* Funnel, then the ecosystem slides over it and stops. The live art stays offscreen and draws the stills. */
  :root #lead-sale.home-journey { height: auto; }
  :root #lead-sale .home-journey-stage { position: absolute; top: 0; left: -300vw; width: 100vw; visibility: hidden; }
  :root #journey-steps { display: none; }
  :root .rm-frame > .rm-art { display: block; width: 100%; height: 100%; object-fit: cover; }
  :root .rm-frame .journey-copy { --t: 1; transform: none; }

  /* Statement: TEAM stays on screen, struck through, with ME. under it, and the screen stops. */
  :root .statement { height: calc(100svh - 69px + 70svh); }
  :root .statement-stage { position: sticky; top: 69px; box-sizing: border-box; height: calc(100svh - 69px); padding-block: 0 var(--rc-space-15); }
  :root .statement-lead { white-space: nowrap; font-size: min(7.4vw, 9svh); }
  :root .statement-swap { display: flex; flex-direction: column; align-items: center; }
  :root .statement-swap > span { grid-area: auto; }
  :root .statement-team { opacity: 1; color: var(--rc-color-border); font-size: .42em; line-height: 1; }
  :root .statement-team::after { height: .14em; background: var(--rc-color-ink); }
  :root .statement-me { margin-top: .02em; }
  :root .statement-cta { margin-bottom: var(--rc-space-10); }

  /* What growth is made of: a heading, the services and a grid of brands, stopped at the top. */
  /* Matches gallery-ticker.css's fixed-height rule, which would otherwise cut the stop short. */
  :root body.gallery-direct main #gallery { height: auto; transform: none; }
  :root #gallery .gallery-pin { position: static; height: auto; }
  :root .gallery-ticker, :root #gallery .gallery-sticky { display: none; }
  :root .rm-work { display: block; position: sticky; top: 69px; z-index: 1; padding: 56px var(--rc-layout-gutter, 24px) 72px; background: #fff; border-top: 1px solid var(--rc-color-rule); }
  :root .rm-work h2 { margin: 0; font: 900 clamp(40px, 7vw, 96px)/.95 var(--rc-font-brand); letter-spacing: -.05em; text-transform: uppercase; color: var(--rc-color-ink); }
  :root .rm-services { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 32px; padding: 0; list-style: none; }
  :root .rm-services li { padding: 6px 14px; border: 2px solid var(--rc-color-ink); border-radius: 999px; font: 800 14px/1.2 var(--rc-font-brand); letter-spacing: .03em; text-transform: uppercase; }
  :root .rm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
  :root .rm-grid figure { margin: 0; }
  :root .rm-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1px solid var(--rc-color-rule); border-radius: 12px; background: var(--rc-color-canvas); }
  :root .rm-grid figcaption { margin-top: 6px; font: 700 13px/1.3 var(--rc-font-brand); color: var(--rc-color-ink); }

  /* Footer: the whole phrase at once. The whole footer stops when its top meets the header, then scrolls on;
     the spacer after it (reduced-motion.js) gives the stop its scroll. */
  :root .connect-footer { position: sticky; top: 69px; overflow: clip; }
  :root .cf-flip { display: none; }
  :root .rm-phrase { display: block; }
  :root .cf-one { display: none; }
  :root .rm-phrase .rm-line { display: block; white-space: nowrap; }
  /* Sized so "into many." fits inside the card's padding on one line. */
  :root #connect-title { font-size: min(clamp(40px, 9vw, 140px), calc((100vw - 112px) / 6.2)); }
  :root .rm-phrase .cf-mark { display: inline-block; line-height: .85; }
  /* The title sits on a solid card, like the intro under it, instead of a glow over the crowd. */
  :root .cf-title::before { display: none; }
  :root #connect-title { width: fit-content; margin-inline: auto; padding: var(--rc-space-5) var(--rc-space-6); border-radius: var(--rc-radius-control); background: var(--rc-color-canvas); }
  :root .cf-sub { text-align: left; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 744px) {
  :root .rm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 1100px) {
  :root .rm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) and (max-width: 743px) {
  :root .hero { margin-bottom: var(--rc-space-20); }
  :root .hero-panel { padding-block: var(--rc-space-6); }
}

@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  :root .rm-crowd .crowd-reading-space { background: radial-gradient(ellipse 120% 40% at 50% 50%, #fff 0%, #fff 62%, rgb(255 255 255 / .85) 82%, rgb(255 255 255 / 0) 100%); }
}
