/* 03 Story · Batteries Plus, as one wide tile of the More customers family (4 Nov; option B of the options page, the
   pick): the head with the story's
   link at the right of its second line, then a midnight tile. On top, the film's silent loop of store shots
   (/_assets/design/dbd08dc326e6fabf/03-story.js), with the logo and 700+ on a shade in its lower left and "Watch the film" in its lower right; the whole
   film plays it (the dialog in 14-close.js). Under it, the foot: the headline, the President's words and three facts
   from the customer story; the foot opens the story. Every fact is on synthflow.ai/customer-stories/batteries-plus. */

.story { padding: var(--space-9) 0; }
.story-inner { display: flex; flex-direction: column; gap: var(--space-7); }
.story-head { position: relative; }
.story-title { max-width: 1080px; text-wrap: pretty; }   /* two lines at v8's 52 px head, as v8 sets it */
/* .link sizes and moves an inline svg; the Figma arrow is an image here */
.story-more { position: absolute; right: 0; bottom: 10px; }
.story-more img { width: 16px; height: 16px; flex: none; transition: transform var(--motion-hover) var(--ease-settle); }
.story-more:hover img { transform: translateX(2px); }

/* The tile */
.story-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface-inverse); color: var(--ink-on-dark); isolation: isolate; }
.story-window { position: relative; margin: 0; aspect-ratio: 16 / 7; overflow: hidden; background: var(--surface-inverse); }
.story-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* The figure's shade (lower left) and the seam into the foot, as on the More customers photos */
.story-window::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(90% 120% at 0% 100%, rgb(var(--c-midnight-rgb) / 0.86) 0, rgb(var(--c-midnight-rgb) / 0.6) 22%, rgb(var(--c-midnight-rgb) / 0.2) 44%, rgb(var(--c-midnight-rgb) / 0) 62%),
    linear-gradient(to bottom, rgb(var(--c-midnight-rgb) / 0) 74%, rgb(var(--c-midnight-rgb) / 0.5) 90%, var(--c-midnight) 100%);
}
.story-film-area { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.story-lockup { position: absolute; left: var(--space-7); bottom: var(--space-6); z-index: 2; display: flex; flex-direction: column;
  align-items: flex-start; gap: var(--space-4); pointer-events: none; }
.story-logo { display: block; width: 150px; height: auto; filter: brightness(0) invert(1); }
/* 700+ is the system's KeyFigure at Stat/Display's size (88 px), 72 on tablet and 56 on a phone */

/* "Watch the film" and the loop's pause button */
.story-play {
  position: absolute; right: var(--space-5); bottom: var(--space-5); z-index: 3; display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 22px 10px 10px; border-radius: var(--radius-full); color: var(--ink-primary); text-decoration: none;
  background: rgb(var(--c-white-rgb) / 0.9);   /* firmer than .glass, so its small words read at 4.5:1 over any frame of the loop */
  transition: transform var(--motion-hover) var(--ease-settle);
}
.story-play:hover { transform: translateY(-1px); }
.story-play:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 3px; }
.story-play-dot { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius-full); background: var(--c-violet); color: var(--ink-on-dark); }
.story-play-dot svg { width: 14px; height: 14px; margin-left: 2px; }
.story-play-words { display: flex; flex-direction: column; }
.story-play-title { font: 600 16px/22px var(--font-text); }
.story-play-meta { font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }
/* The loop's pause: the system's PauseButton on glass, 40 px, at the film's top right. Like every pause button it shows
   only while it has the keyboard's focus (Albert's pick); less motion keeps the still. */
.story-pause {
  position: absolute; right: var(--space-5); top: var(--space-5); z-index: 3; width: 40px; height: 40px;
  padding: 0; border: 0; color: var(--ink-primary); cursor: pointer;
}
.story-pause:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 3px; }

/* The foot: the headline and the President's words beside three facts; its link's box covers it, one stop for the
   keyboard, its focus ring inside the foot's edge */
.story-words { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-8);
  padding: var(--space-5) var(--space-7) var(--space-7); }
.story-words-link { position: absolute; inset: 0; z-index: 1; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.story-words-link:focus-visible { outline: 2px solid var(--accent-line); outline-offset: -4px; }
.story-say { display: flex; flex-direction: column; gap: var(--space-4); }
.story-headline { font: var(--t-headline); letter-spacing: var(--t-headline-tracking); text-wrap: pretty; }   /* as the Customers headlines */
.story-facts { display: flex; flex-direction: column; margin: 0; }
.story-facts div { display: flex; flex-direction: column-reverse; gap: 2px; padding: var(--space-4) 0; border-top: 1px solid var(--border-on-dark); }
.story-facts div:first-child { padding-top: var(--space-1); border-top: 0; }
.story-facts div:last-child { padding-bottom: 0; }
.story-facts dd { margin: 0; font: var(--t-figure-s); letter-spacing: var(--t-figure-s-tracking); }
.story-facts dt { font: var(--t-label); color: var(--ink-on-dark-secondary); }

@media (max-width: 1199px) {
  .story { padding: var(--space-8) 0; }
  .story-inner { gap: var(--space-6); }
  .story-title { max-width: none; }
  .story-more { position: static; margin-top: var(--space-4); }
  .story-tile { border-radius: var(--radius-md); }
  .story-window { aspect-ratio: 16 / 8; }
  .story-lockup { left: var(--space-6); bottom: var(--space-5); }
  .story-key { --key-size: 72px; }
  .story-words { gap: var(--space-6); padding: var(--space-5) var(--space-6) var(--space-6); }
}
@media (max-width: 899px) {
  .story-words { grid-template-columns: minmax(0, 1fr); }
  .story-facts { flex-direction: row; gap: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border-on-dark); }
  .story-facts div, .story-facts div:first-child { flex: 1; padding: 0; border-top: 0; }
}
@media (max-width: 599px) {
  .story-inner { gap: var(--space-5); }
  .story-title { text-wrap: balance; }   /* no short line left at the end on a phone */
  .story-window { aspect-ratio: 4 / 3.4; }
  .story-photo { object-position: 80% 40%; }   /* the faces in every shot of the loop; the frames' people stand right of centre, hers at the first shot's right edge */
  .story-play { left: var(--space-3); right: auto; top: var(--space-3); bottom: auto; gap: var(--space-3); padding: 8px 16px 8px 8px; }
  .story-pause { top: var(--space-3); right: var(--space-3); width: 36px; height: 36px; }
  .story-play-dot { width: 38px; height: 38px; }
  .story-play-meta { font-size: 12px; line-height: 16px; }
  .story-lockup { left: var(--space-4); bottom: var(--space-4); gap: var(--space-3); }
  .story-logo { width: 112px; }
  .story-key { --key-size: 56px; }
  .story-words { padding: var(--space-4) var(--space-4) var(--space-5); gap: var(--space-5); }
  .story-headline { font-size: 20px; line-height: 28px; }   /* System/Phone/Headline */
  .story-facts { flex-direction: column; gap: 0; padding-top: 0; border-top: 0; }
  .story-facts div, .story-facts div:first-child { padding: var(--space-3) 0; border-top: 1px solid var(--border-on-dark); }
  .story-facts dd { font-size: 20px; line-height: 28px; }
}

/* base.css sets Inter's "opsz" 14 on body, but each `font` shorthand (.t-*, .btn, .link, .tag, .status) resets it
   to normal on its own element; this applies it here. Delete once base.css reaches those elements. */
#story, #story * { font-variation-settings: "opsz" 14; }

/* The facts and, under them, the link to the page for retail chains: one column beside the words */
.story-side { display: flex; flex-direction: column; gap: var(--space-5); }
.story-retail { align-self: flex-start; z-index: 2; }   /* above the link that covers the words */
