/* The home page week rotation (own file, linked beside home.css): eight scenes, the drawn screens and the device compositions (one phone, two phones, tablet, half-open foldable). Loaded only on the home page. */

/* ---------- device compositions per day (2026-11-21, owner: the week sometimes shows several devices) ---------- */
.cmp { width: 100%; display: flex; justify-content: center; align-items: flex-start; gap: 4%; }
.cmp .who { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font: 600 11px/1 var(--font-text); color: var(--a-muted); background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 99px; padding: 4px 9px; white-space: nowrap; z-index: 3; }
.cmp .ph, .cmp .fdh { position: relative; }
.cmp--one .ph { max-width: 270px; }
/* two phones: one action across both parents, the second a step later (staggered down) */
.cmp--duo { padding-top: 28px; }
.cmp--duo .ph { width: 46%; max-width: 205px; flex: none; }
.cmp--duo .ph + .ph { margin-top: 24px; }
/* Android phone (Blake): punch-hole camera, squarer corners */
.ph--px { border-radius: 26px; }
.ph--px .ph__s { border-radius: 20px; }
.ph--px .ph__s::before { width: 11px; height: 11px; top: 11px; border-radius: 50%; }
/* tablet, landscape, two panes */
.cmp--tab .tab { width: 100%; max-width: 560px; display: block; }
/* half-open foldable (book fold, about 120 degrees): two halves turned toward each other, a visible crease */
.fdh { display: flex; width: 100%; max-width: 340px; aspect-ratio: 1.12; perspective: 1100px; }
.fdh__l, .fdh__r { flex: 1; min-width: 0; overflow: hidden; background: var(--a-bg); border: 7px solid #111317; box-shadow: 0 30px 50px -30px rgba(22,24,29,.55); }
.fdh__l { border-right-width: 2px; border-radius: 20px 3px 3px 20px; transform-origin: right center; transform: rotateY(28deg); }
.fdh__r { border-left-width: 2px; border-radius: 3px 20px 20px 3px; transform-origin: left center; transform: rotateY(-28deg); background: var(--a-surface);
  background-image: linear-gradient(90deg, rgba(0,0,0,.16), transparent 9%); }
.fdh__l { background-image: linear-gradient(270deg, rgba(0,0,0,.12), transparent 9%); }
.fdh .fd__list { padding: 18px 6px 0 8px; }
.fdh .fd__bar { padding: 16px 10px 8px; }
.fdh .th { padding: 8px; gap: 6px; }
.fdh .bub { font-size: 10.5px; padding: 6px 8px; max-width: 94%; }
.fdh .att { width: 88%; font-size: 10.5px; }
.fdh .scr { padding: 14px 10px; }
.fdh .info__r { font-size: 11px; padding: 7px 8px; }
.fdh .info__r.is-on { background: var(--a-primary-c); }
.fdh--big { max-width: 460px; }
/* phone plus foldable: the phone stands in front, lower right */
.cmp--mix { padding-top: 28px; align-items: flex-end; }
.cmp--mix .fdh { width: 62%; }
.cmp--mix .ph { width: 34%; max-width: 190px; flex: none; margin-left: -6%; z-index: 2; }
.cmp--fold { padding-top: 28px; }
/* phones and reduced motion: the same compositions, smaller; nothing turns */
@media (max-width: 599px) {
  .cmp--duo .ph + .ph { margin-top: 32px; }
  .cmp--mix { flex-direction: column; align-items: center; gap: 40px; }
  .cmp--mix .fdh { width: 100%; } .cmp--mix .ph { width: 56%; margin-left: 0; }
  .cmp .tab { padding: 6px; border-radius: 16px; }
  .cmp .tab__s { grid-template-columns: minmax(0, 1fr); } .cmp .tab__list { display: none; }
}

/* ---------- the rotation (owner 2026-11-21): eight scenes, CSS only, slow crossfade, no sliding ---------- */
.rot { position: relative; display: grid; gap: 16px; }
.rot__sc { list-style: none; margin: 0; padding: 0; display: grid; }
.sc { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; }
.sc__cap { font: 800 clamp(1.25rem, 2.2vw, 1.75rem)/1.2 var(--font-display); color: var(--ink); }
.sc__cap .d7__day { display: block; margin-bottom: 6px; }
.sc__v { margin: 0; border-radius: var(--r); padding: clamp(24px, 3vw, 40px) clamp(12px, 3vw, 40px); display: grid; place-items: center; height: clamp(520px, 62vh, 640px); overflow: hidden; }
.rot__dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; justify-content: center; }
.rot__dots li { font-size: .8rem; color: var(--muted); padding: 3px 9px; border-radius: 99px; }
.rot__in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rot__pause { position: absolute; right: 0; top: 0; z-index: 2; min-height: 44px; }
.rot__p2 { display: none; }
.rot:has(.rot__in:checked) .rot__p1 { display: none; } .rot:has(.rot__in:checked) .rot__p2 { display: inline; }
.rot__in:focus-visible + .rot__pause { outline: 3px solid var(--accent); outline-offset: 3px; }
.cmp--tab .tab { max-width: 640px; }
.ag__row .part { display: flex; gap: 8px; } .ag__row .part b { margin-left: auto; color: var(--a-ink); }
.xc { display: grid; gap: 6px; max-width: 88%; }
.xc__card { display: grid; gap: 4px; background: color-mix(in srgb, var(--a-surface) 60%, transparent); border: 1px solid var(--a-line); border-radius: 10px; padding: 7px 9px; font-size: 11.5px; }
.xc .rcpt { width: 30px; height: 38px; }
.mini__bar { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-weight: 600; }
.fdh--big { max-width: 520px; }
@media (prefers-reduced-motion: no-preference) {
  .sc { opacity: 0; animation: rot8 36s linear infinite; }
  .sc:nth-child(2) { animation-delay: 4.5s; } .sc:nth-child(3) { animation-delay: 9s; } .sc:nth-child(4) { animation-delay: 13.5s; }
  .sc:nth-child(5) { animation-delay: 18s; } .sc:nth-child(6) { animation-delay: 22.5s; } .sc:nth-child(7) { animation-delay: 27s; } .sc:nth-child(8) { animation-delay: 31.5s; }
  .rot__dots li { animation: dot8 36s linear infinite; }
  .rot__dots li:nth-child(2) { animation-delay: 4.5s; } .rot__dots li:nth-child(3) { animation-delay: 9s; } .rot__dots li:nth-child(4) { animation-delay: 13.5s; }
  .rot__dots li:nth-child(5) { animation-delay: 18s; } .rot__dots li:nth-child(6) { animation-delay: 22.5s; } .rot__dots li:nth-child(7) { animation-delay: 27s; } .rot__dots li:nth-child(8) { animation-delay: 31.5s; }
  .rot:hover .sc, .rot:hover .rot__dots li, .rot:focus-within .sc, .rot:focus-within .rot__dots li,
  .rot:has(.rot__in:checked) .sc, .rot:has(.rot__in:checked) .rot__dots li { animation-play-state: paused; }
}
/* each scene: in over 0.8 s, held about 3.7 s, out over 0.8 s while the next comes in; nothing slides or scales */
@keyframes rot8 { 0% { opacity: 0; } 2.2% { opacity: 1; } 12.5% { opacity: 1; } 14.7%, 100% { opacity: 0; } }
@keyframes dot8 { 0%, 14.7%, 100% { background: transparent; color: var(--muted); } 2.2%, 12.5% { background: var(--hl); color: var(--ink); } }
/* reduced motion: all eight scenes stacked, nothing moves, no pause control */
@media (prefers-reduced-motion: reduce) {
  .rot__sc { gap: 48px; } .sc { grid-area: auto; } .rot__dots, .rot__pause { display: none; }
}
/* phones: one device at a time (the second phone of a two-phone scene waits for a wider screen) */
@media (max-width: 599px) { .wide-only { display: none !important; } .sc__v { height: 560px; } .cmp--duo { padding-top: 0; } .cmp--duo .ph { width: 70%; } .rot__pause { position: static; justify-self: end; } }
.scr .sheet { margin-top: 0; }
.cmp--duo .ph { position: relative; }
