/* Why Riffalong: one evening with one song. The page is the site's own world; each scene is a device
   showing the app in the app's colors (riffalong-ios App/Theme/theme.json), so the device reads as a
   window into Riffalong. A clock runs down the left and fills amber behind you. */
.evening { position: relative }

/* the first viewport: the fretboard photograph, the question, and the first phone already searching */
.wstage .photo img { object-position: 60% 50%; filter: contrast(1.1) brightness(.7) grayscale(1) }
.wstage .photo::after { background: linear-gradient(90deg, rgba(6,7,11,.92) 0%, rgba(6,7,11,.62) 44%, rgba(6,7,11,.3) 72%, rgba(6,7,11,.55) 100%), linear-gradient(0deg, var(--ground) 0%, rgba(6,7,11,0) 34%) }
.whero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(56px, 9vh, 112px) clamp(40px, 7vh, 96px) }
.whero h1 { font-size: clamp(46px, 5.5vw, 84px); line-height: 1; letter-spacing: -.03em; font-weight: 800 }
.whero h1 em { font-style: normal; color: var(--seat) }
.whero .lede { margin-top: 24px; font-size: clamp(18px, 1.5vw, 21px); color: var(--soft); max-width: 30ch; line-height: 1.5 }
.whero .ctas { margin-top: 30px }

/* a moment: its time, one statement, one or two lines; the screen beside it */
.moment { position: relative; padding-block: clamp(72px, 9vw, 132px) 0 }
.moment.first { padding-block: clamp(56px, 8vh, 96px) 0 }
.moment.last { padding-bottom: clamp(40px, 6vw, 80px) }
.mrow { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 96px); align-items: start }
.mrow.wide { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr) }
.mrow.whole { grid-template-columns: minmax(0, 1fr) }
.say-col { position: sticky; top: 120px; padding-bottom: 24px }
.moment .clock, .moment.first .clock { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--dim); font: 600 16px/1 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; transition: color 200ms ease-out }
.moment .clock b { color: var(--soft); font-size: clamp(30px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.03em; margin-right: 6px; transition: color 200ms ease-out }
.moment .clock::before { content: ""; position: absolute; left: 1px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); z-index: 1; transition: box-shadow 200ms ease-out, background-color 200ms ease-out }
.moment .clock.label { font: 700 clamp(19px, 1.7vw, 24px)/1.15 var(--display); letter-spacing: -.01em; color: var(--soft) }
.moment.past .clock::before { background: var(--seat); box-shadow: none }
.moment.now .clock::before { background: var(--ground); box-shadow: inset 0 0 0 3px var(--seat), 0 0 0 5px rgba(255,178,62,.16) }
.moment.now .clock, .moment.now .clock b { color: var(--seat) }
.moment h2 { padding-left: 30px; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.04; letter-spacing: -.025em; max-width: 17ch }
.hq { position: relative; display: flex; align-items: center; gap: 12px }
.hq .qm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: var(--ink); font: 700 17px/1 var(--display); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); position: relative }
.hq .qm::after { content: ""; position: absolute; inset: -5px }   /* a 44 px target */
.hq .qm[aria-expanded="true"] { background: var(--seat); color: var(--on-tape); box-shadow: none }
@media (hover: hover) { .hq .qm:hover { background: rgba(255,255,255,.16) } .hq .qm[aria-expanded="true"]:hover { background: var(--seat) } }
.hq .qpop { position: absolute; z-index: 6; left: 30px; top: calc(100% + 10px); width: min(340px, calc(100vw - 60px)); margin: 0; padding: 14px 16px; border-radius: 16px; color: var(--soft); font-size: 15px; line-height: 1.45 }
.moment .say { padding-left: 30px; margin-top: 18px; color: var(--soft); max-width: 38ch }
.moment .acts { padding-left: 30px; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px }
.moment .acts .btn { display: inline-flex; align-items: center; gap: 10px; padding-left: 16px }
.moment .acts .btn .i { width: 18px; height: 18px }
.mrow.whole .say-col { position: static; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; padding-bottom: 8px }
.mrow.whole .say-col h2 { max-width: none }
.mrow.whole .say-col .clock { grid-column: 1 / -1 }
.mrow.whole .say-col .say { margin-top: 0; padding-left: 0; padding-bottom: 6px }
.spine { position: absolute; width: 2px; margin-left: -1px; background: rgba(255,255,255,.12); border-radius: 2px; pointer-events: none; z-index: 0 }
.spine b { position: absolute; left: 0; right: 0; top: 0; height: var(--fill, 0px); background: var(--seat); border-radius: 2px }

/* the figure: a device, and the scene's pause under it */
.show { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px }
.duo { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; justify-items: center; gap: 22px }
.duo .wctl { grid-column: 1 / -1 }
.xray { width: 100%; padding: 16px 16px 14px; border-radius: 24px }
.xray canvas { display: block; width: 100%; aspect-ratio: 560 / 300; border-radius: 12px }
.xray .cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px; color: var(--dim); font-size: 14px; line-height: 1.35 }
.xray .score { color: var(--soft); font-variant-numeric: tabular-nums } .xray .score b { color: var(--seat); font-weight: 700 }

/* the morning: five devices on the desk */
.cluster .dev { position: relative; width: 100%; aspect-ratio: 1320 / 480 }
#devices.moment { padding-top: clamp(40px, 4.5vw, 56px) }
.win.mac { left: 33%; top: 0; width: 34%; z-index: 3 }
.win.pc { left: 0; top: 9%; width: 32%; z-index: 2 }
.win.web { right: 0; top: 9%; width: 32%; z-index: 2 }
.hand { position: absolute; bottom: 0; width: 10.5% }
.hand.iphone { left: 22% } .hand.android { right: 22%; border-radius: 22px } .hand.android .sw { border-radius: 17px }

.close .ctas.center { justify-content: center; margin-top: 34px }

@media (prefers-contrast: more) { .xray { background: #0B0C12; border: 1px solid #8A8A99 } }

@media (max-width: 1100px) {
  .duo { grid-template-columns: minmax(0, 260px) minmax(0, 1fr) }
}
@media (max-width: 960px) {
  .whero, .mrow, .mrow.wide { grid-template-columns: minmax(0, 1fr); gap: 34px }
  .whero { padding-block: 36px 24px }
  .say-col { position: static; padding-bottom: 0 }
  .mrow.whole .say-col { display: block; padding-bottom: 28px } .mrow.whole .say-col .say { margin-top: 18px; padding-left: 30px }
  .show { align-self: stretch }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 18px }
  .duo .dev.phone { width: min(100%, 300px) }
  .cluster .dev { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
  .cluster .win, .cluster .hand { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto }
  .cluster .win.mac { grid-column: 1 / -1 }
  .cluster .hand { justify-self: center; width: min(100%, 190px) }
  .wstage .photo::after { background: linear-gradient(180deg, rgba(6,7,11,.55) 0%, rgba(6,7,11,.78) 40%, var(--ground) 82%) }
}
@media (max-width: 560px) {
  .whero { padding-block: 22px 16px; gap: 26px }
  .whero h1 { font-size: min(46px, 11.6vw); letter-spacing: -.025em }
  .whero .lede { margin-top: 14px }
  .whero .ctas { margin-top: 20px; gap: 10px } .whero .ctas .btn { min-height: 50px }
  .moment.first { padding-top: 34px }
  .moment .clock b { font-size: 28px }
  .moment { padding-top: 64px }
  .moment h2 { font-size: clamp(28px, 8vw, 34px) }
  .moment .clock, .moment h2, .moment .say, .moment .acts { padding-left: 28px }
  .moment .acts .btn { width: 100%; justify-content: center }
  .dev.phone { width: min(100%, 300px); border-radius: 46px; padding: 8px } .dev.phone .sw { border-radius: 39px }
  .xray { padding: 12px 12px 10px; border-radius: 20px }
  .close .ctas.center .btn { width: 100% }
}
