/* black-friday-my-business.css: places and sizes the page's parts (plan.md, "Black Friday My Business"), with
   system.css's tokens. The header, the close and the questions are the shared components (components.css). */

/* 1. Header: the baker's counter in three stretches of one clip; the words and the program's plate at the left, the
   notifications at the right over the customer's back (her face stands at 49 to 55% across: never under a card).
   Under 1200 px the stage stands above the words, so no word or card comes over her. */
/* (.bf-top .bf-top__feed: the base scene's own rule on its host sets position: relative, at one class's weight) */
.bf-top .bf-top__feed { position: absolute; z-index: 4; right: max(var(--gutter), calc(50% - 640px)); bottom: 74px; width: 480px; height: 330px; pointer-events: none; }
.bf-top .hero__words h1 { max-width: 12em; font-size: clamp(2.1rem, 1.1rem + 2.6vw, 3.4rem); }
@media (max-width: 1199px) {
  .bf-top { display: block; min-height: 0; }
  .bf-top .hero__stage { position: relative; height: clamp(420px, 56vw, 620px); }
  .bf-top .hero__stage::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 40%, transparent) 22%, transparent 46%); }
  .bf-top .hero__stop { bottom: auto; top: 14px; right: auto; left: 14px; }
  .bf-top .hero__words { padding-block: var(--space-3) var(--space-5); margin-top: -12px; }
  /* under 480 px wide the scene shows its first two notifications */
  .bf-top .bf-top__feed { right: var(--gutter); bottom: 64px; width: 360px; height: 170px; }
}
@media (max-width: 767px) {
  .bf-top .hero__stage { height: clamp(360px, 100vw, 430px); }
  .bf-top .bf-top__feed { left: 14px; right: 14px; width: auto; bottom: 44px; height: 150px; }
  .bf-top .hero__words h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
}

/* 2. Once a year: the type set as the picture on the ink's mesh, the year's line under it. */
/* the whole part fits one screen: the type on four lines and the year's line under it */
.rush { padding-block: clamp(4rem, 7vw, 6rem); --ground-mix: .55; }
.rush__in { display: grid; gap: clamp(1.75rem, 3.4vw, 3rem); }
.rush__type { margin: 0; max-width: 12.5em; font-size: clamp(2rem, .7rem + 3.6vw, 4.3rem); line-height: 1; letter-spacing: -.01em; }
.rush__pic { position: relative; }
.rush__scene { display: block; width: 100%; height: clamp(210px, 19vw, 270px); }
.rush__stop { position: absolute; right: 0; top: -58px; z-index: 2; }
@media (max-width: 599px) { .rush__type { font-size: clamp(1.7rem, 8.2vw, 2.3rem); } .rush__stop { top: -54px; } }

/* 3. The four ways: four tall dark cards that stick under the header, each covered by the next (the one beneath steps
   back and dims, black-friday-my-business.js); on the phone they follow one another. */
.ways__stack { position: relative; }
.ways__bar { position: sticky; top: 98px; z-index: 20; height: 0; display: flex; justify-content: flex-end; pointer-events: none; }
.ways__stop { pointer-events: auto; margin: 16px 16px 0 0; }
.ways__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 9vh, 5rem); }
.way { position: sticky; top: calc(96px + var(--i) * 14px); z-index: calc(var(--i) + 1); }
.way__card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: min(620px, calc(100svh - 150px));
  transform-origin: 50% 0; scale: calc(1 - .045 * var(--cover, 0)); filter: brightness(calc(1 - .45 * var(--cover, 0)));
}
@media (prefers-reduced-motion: reduce) { .way__card { scale: none; } }
.way__text { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 3rem); }
.way__num { margin: 0 0 var(--space-2); color: var(--c-accent-on-ink); font: 700 var(--fs-small)/1 var(--font-display); letter-spacing: .1em; }
.way__title { margin: 0 0 .45em; font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.3vw, 2.1rem); line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.way__line { margin: 0 0 var(--space-3); max-width: 30em; color: color-mix(in oklab, var(--pane-on) 82%, var(--pane)); font-size: var(--fs-body); line-height: 1.5; }
.way__points { display: grid; gap: 13px; margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.way__points li { display: flex; align-items: flex-start; gap: 12px; }
.way__points .icon { flex: none; margin-top: .1em; color: var(--c-brand-on-ink); font-size: 1.15rem; }
.way__points b { display: block; color: var(--pane-on); font: 600 var(--fs-ui)/1.3 var(--font-ui); }
.way__points span { color: color-mix(in oklab, var(--pane-on) 70%, var(--pane)); font-size: var(--fs-small); line-height: 1.45; }
.way__link { display: inline-flex; align-items: center; align-self: flex-start; gap: .45em; min-height: 44px; margin-top: auto; color: var(--c-accent-on-ink); font: 600 var(--fs-ui)/1.3 var(--font-ui); text-decoration: none; }
.way__link .icon { transition: translate var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .way__link:not([data-planned]):hover .icon { translate: 3px 0; } .way__link:not([data-planned]):hover { text-decoration: underline; text-underline-offset: 4px; } }
.way__link:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.way__media { position: relative; overflow: hidden; border-left: 1px solid var(--pane-edge); }
.way__chip { position: absolute; left: 20px; bottom: 20px; z-index: 2; max-width: calc(100% - 40px); }
@media (max-width: 899px) {
  .ways__bar { position: relative; top: 0; }
  .ways__list { gap: var(--space-4); }
  .way { position: static; }
  .way__card { grid-template-columns: 1fr; min-height: 0; scale: none; filter: none; }
  .way__media { order: -1; aspect-ratio: 4 / 3; border-left: 0; border-bottom: 1px solid var(--pane-edge); }
  .way__chip { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}

/* 4. The path (the unique element): the scene on the ink, in a frame lit from its top; the head, the frame and the
   part's padding fit one computer screen under the header. */
.path { padding-block: clamp(3.5rem, 6vw, 5rem); }
.path .part-head { margin-bottom: var(--space-3); }
.path > .wrap { max-width: 1060px; }
.path__frame {
  position: relative; padding: clamp(10px, 1.6vw, 22px); border-radius: var(--radius-l);
  background: radial-gradient(90% 70% at 72% 0%, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 70%), color-mix(in srgb, var(--c-on-ink) 4%, var(--c-ink));
  border: 1px solid color-mix(in srgb, var(--c-on-ink) 12%, transparent); box-shadow: var(--shadow-l);
}
.path__scene { display: block; }
.path__stop { position: absolute; right: 0; top: -56px; z-index: 3; }

/* 5. Every kind of customer: a boutique's owner at her counter with a customer in a wide frame (F3: Part 2's was the
   bakery's line), the three cards under it on the ground at every width (a card over the photo at 1440 px would leave
   it at narrower widths, where the cards grow taller than the photo's lower part); the stop icon rides at the cards' top
   right while they are in view. The 3 : 1 band shows 8 to 58% of the photo's height: the owner's bun to her hands. */
.buyers__frame { display: grid; gap: clamp(1.25rem, 2.6vw, 2.25rem); }
.buyers__photo { position: relative; aspect-ratio: 3 / 1; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.buyers__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.buyers__cards { position: relative; }
.buyers__bar { position: sticky; top: 86px; z-index: 5; height: 0; display: flex; justify-content: flex-end; pointer-events: none; }
.buyers__stop { pointer-events: auto; margin: 10px 10px 0 0; }
.buyers__scene { display: block; width: 100%; }
@media (max-width: 759px) {
  .buyers__photo { aspect-ratio: 4 / 3; }
  .buyers__photo img { object-position: 54% 46%; }
  .buyers__scene { min-height: 800px; }
}

/* 7. Close: the two owners at their counter, the clip moved right so the words and the picker stand clear of their
   faces (his at about 44%, hers at 61% of the clip: 61% and 80% of the part), its left edge melting into the ink;
   under 1200 px the loop stands above the words. */
.bf-close .close__video { inset: -1px auto -1px 10%; width: 112%; object-position: 0 38%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
.bf-close .close__media::after { background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 80%, transparent) 33%, color-mix(in srgb, var(--c-ink) 30%, transparent) 47%, transparent 60%); }
@media (max-width: 1199px) {
  .bf-close { padding-block: 0 var(--space-6); }
  .bf-close .close__media { position: relative; height: clamp(280px, 52vw, 520px); }
  .bf-close .close__video { inset: -1px; width: calc(100% + 2px); object-position: 52% 30%; -webkit-mask-image: none; mask-image: none; }
  .bf-close .close__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 30%, transparent) 30%, transparent 55%); }
  .bf-close .close__in { margin-top: calc(-1 * var(--space-4)); }
  .bf-close .close__stop { top: 14px; right: 14px; }
}
