/* Set Control hero scene: the same running day on the Mac, the iPhone and the Watch. Four beats, one clock. */
.sc-duo { margin: clamp(28px, 4vh, 48px) auto 0; width: min(1120px, 92vw); text-align: center; }
.sc-status { position: relative; height: 1.6em; margin-bottom: 18px; }
.sc-status span { position: absolute; inset: 0; display: block; white-space: nowrap; opacity: 0; }
.sc-status i { display: inline-block; width: .62em; height: .62em; margin-right: .6em; background: #8fd687; }
.sc-status .is-late i { background: #e3b23c; }
.sc-status b { font-weight: 600; }
.sc-box { position: relative; padding: 0 7% 5% 5%; }
.sc-mac { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #0a0a09; box-shadow: 0 30px 70px rgba(20, 18, 14, .22); }
.sc-phone { position: absolute; right: 0; bottom: 0; width: 20.5%; padding: .7%; border-radius: 13% / 6%; background: #17171a; box-shadow: 0 24px 50px rgba(20, 18, 14, .32); }
.sc-phone .sc-screen { position: relative; aspect-ratio: 600 / 1304; border-radius: 12% / 5.5%; overflow: hidden; background: #0a0a09; }
.sc-duo .sc-mac img, .sc-duo .sc-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.sc-watch { position: absolute; left: 0; bottom: 0; width: 14%; padding: 1%; border-radius: 28% / 24%; background: #17171a; box-shadow: 0 20px 40px rgba(20, 18, 14, .3); }
.sc-duo .sc-watch img { display: block; width: 100%; height: auto; margin: 0; border-radius: 22% / 18%; background: #000; }
.sc-cap { display: block; margin-top: 20px; color: #6f6b62; }

@keyframes sc-in2 { 0%, 24% { opacity: 0; } 26%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sc-in3 { 0%, 49% { opacity: 0; } 51%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sc-in4 { 0%, 74% { opacity: 0; } 76%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sc-say1 { 0%, 24% { opacity: 1; } 25%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sc-say2 { 0%, 24% { opacity: 0; } 25%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes sc-say3 { 0%, 49% { opacity: 0; } 50%, 74% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes sc-say4 { 0%, 74% { opacity: 0; } 75%, 99% { opacity: 1; } 100% { opacity: 0; } }
.sc-b2 { opacity: 0; animation: sc-in2 14s linear infinite; }
.sc-b3 { opacity: 0; animation: sc-in3 14s linear infinite; }
.sc-b4 { opacity: 0; animation: sc-in4 14s linear infinite; }
.sc-s1 { animation: sc-say1 14s step-end infinite; }
.sc-s2 { animation: sc-say2 14s step-end infinite; }
.sc-s3 { animation: sc-say3 14s step-end infinite; }
.sc-s4 { animation: sc-say4 14s step-end infinite; }
/* Reduced motion: hold the moment the day slips. */
@media (prefers-reduced-motion: reduce) {
  .sc-b2, .sc-b3 { opacity: 1; animation: none; }
  .sc-b4, .sc-status span { opacity: 0; animation: none; }
  .sc-status .sc-s3 { opacity: 1; }
}
@media (max-width: 699px) {
  .sc-duo { width: 94vw; }
  .sc-status { font-size: 11px; }
  .sc-box { padding: 0 6% 16% 4%; }
  .sc-phone { width: 27%; }
  .sc-watch { width: 20%; }
}

/* Three moments. Frames change on one clock once the section is on screen (.is-on, sc-moments.js). */
.mo { padding: clamp(72px, 11vh, 140px) 4vw; text-align: center; }
.mo.tone-dark { background: #0f0f0e; color: #ece5d8; }
.mo-head { margin: 0 auto; font-size: clamp(36px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.mo-head span { display: block; }
.mo-sub { max-width: 52ch; margin: 22px auto 0; opacity: .72; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; }
.mo-steps { position: relative; height: 1.6em; margin: clamp(32px, 5vh, 56px) 0 18px; }
.mo-steps span { position: absolute; inset: 0; opacity: 0; white-space: nowrap; }
.mo-steps .mo-s1 { opacity: 1; }
.mo-win { position: relative; width: min(1040px, 100%); margin: 0 auto; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #0a0a09; box-shadow: 0 30px 70px rgba(10, 9, 7, .28); }
.mo.tone-dark .mo-win { box-shadow: 0 0 0 1px #2a2926, 0 30px 80px rgba(0, 0, 0, .6); }
.mo-board { aspect-ratio: 1800 / 1226; }
.mo .mo-win img, .mo .mo-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.mo-pair { display: grid; grid-template-columns: minmax(0, 22fr) minmax(0, 78fr); gap: clamp(14px, 3vw, 40px); align-items: center; width: min(1180px, 100%); margin: 0 auto; }
.mo-ph { padding: 3.5%; border-radius: 14% / 6.5%; background: #17171a; box-shadow: 0 24px 50px rgba(20, 18, 14, .32); }
.mo-screen { position: relative; aspect-ratio: 600 / 1304; border-radius: 12% / 5.5%; overflow: hidden; background: #0a0a09; }
.mo .mo-win img.mo-card { inset: auto; left: 34.96%; top: 53.3%; width: 29.96%; height: auto; opacity: 0; border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .65); }
.mo .mo-b2, .mo .mo-b3 { opacity: 0; }
.mo-note { text-align: center; margin: 0 0 56px; }

@keyframes mo-in2 { 0%, 31% { opacity: 0; } 34%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mo-in3 { 0%, 63% { opacity: 0; } 66%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mo-say1 { 0%, 32% { opacity: 1; } 33%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mo-say2 { 0%, 32% { opacity: 0; } 33%, 65% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes mo-say3 { 0%, 65% { opacity: 0; } 66%, 99% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mo-drag {
  0%, 22% { opacity: 0; left: 34.96%; top: 53.3%; transform: none; }
  30% { opacity: 1; left: 34.96%; top: 52%; transform: rotate(-2.5deg) scale(1.06); }
  58% { opacity: 1; left: 66%; top: 50%; transform: rotate(-2.5deg) scale(1.06); }
  66% { opacity: 1; left: 66%; top: 55%; transform: none; }
  70%, 100% { opacity: 0; left: 66%; top: 55%; }
}
.mo.is-on .mo-b2 { animation: mo-in2 10s linear infinite; }
.mo.is-on .mo-b3 { animation: mo-in3 10s linear infinite; }
.mo.is-on .mo-s1 { animation: mo-say1 10s step-end infinite; }
.mo.is-on .mo-s2 { animation: mo-say2 10s step-end infinite; }
.mo.is-on .mo-s3 { animation: mo-say3 10s step-end infinite; }
.mo.is-on .mo-card { animation: mo-drag 10s cubic-bezier(.65, 0, .35, 1) infinite; }

/* Reduced motion: one still per moment, the one that shows the problem being solved. */
@media (prefers-reduced-motion: reduce) {
  .mo .mo-b2, .mo .mo-b3, .mo .mo-card, .mo .mo-steps span { animation: none !important; }
  .mo-meal .mo-b2, .mo-move .mo-b3 { opacity: 1; }
  .mo-meal .mo-steps .mo-s1, .mo-move .mo-steps .mo-s1 { opacity: 0; }
  .mo-meal .mo-steps .mo-s2, .mo-move .mo-steps .mo-s3 { opacity: 1; }
}
@media (max-width: 699px) {
  .mo { padding-left: 4vw; padding-right: 4vw; }
  .mo-steps { font-size: 11px; }
  /* Close in on the part that matters. */
  .mo-center { aspect-ratio: 4 / 5; }
  .mo-left { aspect-ratio: 5 / 4; }
  .mo .mo-left img { object-position: left center; }
  .mo-pair { grid-template-columns: 1fr; justify-items: center; }
  .mo-ph { width: 62%; }
}

/* The headline. */
.hero h1.sc-chaos { max-width: none; font-size: clamp(46px, 9.4vw, 148px); line-height: .94; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
