/* Landing page (/about/): the day as a time-lapse (section 三). Fifteen frames of one view lie on each
   other and fade into the next as the clock runs (about-day.js); a bar of the day's sky under them
   carries the playhead, today's hour in Japan (いま) and four marks to jump to. */
.daylapse { max-width: 1080px; }
.lapse-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #11141f; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.lapse-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.lapse-stage img.on { opacity: 1; }
.lapse-clock { position: absolute; z-index: 3; margin: 0; left: clamp(12px, 2.4vw, 26px); top: clamp(10px, 2vw, 22px); display: flex; align-items: baseline; gap: 12px; padding: 6px 16px 8px; border-radius: 14px; background: rgba(12, 14, 22, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.lapse-time { font-family: var(--serif); font-size: clamp(26px, 4.4vw, 46px); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.lapse-name { font-size: clamp(13px, 1.5vw, 16px); color: #f1cf86; }

.lapse-track { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; margin-top: 18px; }
.lapse-play { grid-row: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(243, 236, 218, 0.3); background: rgba(255, 255, 255, 0.06); color: #f3ecda; display: grid; place-items: center; cursor: pointer; padding: 0; }
.lapse-play:hover { background: rgba(255, 255, 255, 0.14); }
.lapse-play svg { width: 18px; height: 18px; fill: currentColor; }
.lapse-play .i-play { display: none; }
.lapse-play[aria-pressed="true"] .i-play { display: block; }
.lapse-play[aria-pressed="true"] .i-pause { display: none; }
/* The bar: the sky of a summer day from midnight to midnight. */
.lapse-bar {
  position: relative; grid-row: 1; height: 14px; border-radius: 999px; cursor: pointer; touch-action: none;
  background: linear-gradient(90deg, #1b2140 0%, #222a52 16%, #6f5c8c 19%, #e39a7c 21.5%, #f3cf9a 24%, #9fc9ea 30%, #8ec3ec 50%, #a6cde8 68%, #f1c27e 74%, #df7d63 78%, #7b5d8f 82%, #2a2f5a 86%, #1b2140 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lapse-bar:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.lapse-head { position: absolute; top: 50%; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fffaf0; box-shadow: 0 0 0 4px rgba(241, 207, 134, 0.45), 0 4px 14px rgba(0, 0, 0, 0.5); pointer-events: none; }
.lapse-now { position: absolute; bottom: calc(100% + 6px); left: 0; transform: translateX(-50%); padding: 0 7px; border-radius: 999px; background: var(--gold); color: var(--sumi); font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: 0.06em; line-height: 1.6; pointer-events: none; }
.lapse-now::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 8px; margin-left: -1px; background: var(--gold); }
.lapse-marks { grid-column: 2; position: relative; height: 44px; margin-top: 6px; }
.lapse-marks button { position: absolute; left: calc(var(--at) / 1440 * 100%); transform: translateX(-50%); border: 0; background: none; color: #c5c4cf; font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 999px; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.25; white-space: nowrap; }
.lapse-marks button time { font-variant-numeric: tabular-nums; font-size: 11.5px; opacity: 0.75; }
.lapse-marks button:hover, .lapse-marks button[aria-current="true"] { color: #fffaf0; }
.lapse-marks button[aria-current="true"] span { border-bottom: 2px solid var(--gold); }
@media (max-width: 520px) {
  .lapse-stage { border-radius: 12px; }
  .lapse-clock { padding: 4px 12px 6px; gap: 8px; }
  /* Too narrow to stand at their hours on the bar: four in a row under it. */
  .lapse-marks { display: grid; grid-template-columns: repeat(4, 1fr); height: auto; }
  .lapse-marks button { position: static; transform: none; font-size: 12px; padding: 4px; }
}
