.lap { position: relative; display: block; max-width: 620px; }
.lap::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-4); border-radius: var(--lap-r, 28px); pointer-events: none; }
.lap__dots { position: absolute; left: -12px; top: -12px; width: calc(100% + 24px); height: calc(100% + 24px); pointer-events: none; }
.lap__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin: 0; padding: 36px 28px 40px 42px; list-style: none; }
.lap__item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lap__item::before { content: ""; position: absolute; left: -48px; top: 2px; box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--surface-canvas); }
.lap__back { position: absolute; right: -15px; bottom: 50%; display: grid; place-items: center; width: 30px; height: 18px; margin-bottom: -9px; transform: rotate(90deg); background: var(--surface-canvas); color: var(--text-muted); }
.lap__back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lap__lead { position: absolute; left: 0; top: 0; z-index: 1; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); opacity: 0; pointer-events: none; }
.lap.has-lead .lap__lead { opacity: 1; }
.lap.is-armed .lap__item > * { opacity: .4; transition: opacity .7s ease; }
.lap.is-armed .lap__item.is-on > * { opacity: 1; }
.lap.is-across { max-width: none; }
.lap.is-across::before { border-radius: var(--lap-r, 44px); }
.lap.is-across .lap__row { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0 clamp(20px, 2.6vw, 40px); padding: 0 clamp(48px, 4vw, 60px) clamp(52px, 5vw, 72px); }
.lap.is-across .lap__item { padding-top: 40px; }
.lap.is-across .lap__item::before { left: 0; top: -6px; }
.lap.is-across .lap__back { left: 50%; right: auto; bottom: -9px; margin: 0 0 0 -15px; transform: none; }
.lap--open::before { border-width: 0 0 0 1px; border-radius: 0; }
.lap--open .lap__row { padding: 6px 0 6px 42px; }
.lap--open .lap__back { display: none; }
.lap--open.is-across::before { border-width: 1px 0 0; border-radius: 0; }
.lap--open.is-across .lap__row { padding: 0; gap: 0 clamp(18px, 2.2vw, 32px); }
.lap__no { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 12px; line-height: 1.3; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.lap__title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 1.55vw, 22px); line-height: 1.3; letter-spacing: -0.012em; color: var(--text-strong); }
.lap--open .lap__title { font-size: clamp(20px, 1.7vw, 24px); }
.lap__title a { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--line-5); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s; }
.lap__title a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.lap__line { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.65; color: var(--text-body); text-wrap: pretty; }

.td { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.td__cell { position: relative; min-width: 0; }
.td__panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; box-sizing: border-box; height: 100%; min-height: 380px; padding: clamp(22px, 2.4vw, 34px); border-radius: clamp(22px, 2.4vw, 34px); color: var(--text-strong); }
.td__panel > * { position: relative; z-index: 1; }
.td__art { position: absolute; inset: 0; z-index: 0; }
.td__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--at, 50% 50%); }
.td__words { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.td__label { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 12px; line-height: 1.3; letter-spacing: 0.18em; text-transform: uppercase; color: inherit; opacity: .78; }
.td__name { margin: 0; line-height: 0; }
.td__first, .td__rest { margin: 0; max-width: 44ch; font-size: 16px; line-height: 1.58; text-wrap: pretty; }
.td__rest { margin-top: 8px; transition: opacity .45s ease; }
.td__panel--lab .td__art img, .td__panel--mmm .td__art img { inset: auto; right: -6%; top: -4%; width: 62%; height: auto; opacity: .16; object-fit: contain; }
.td__panel--mv .td__art img { inset: auto; left: 50%; top: 6%; width: auto; height: 46%; transform: translate(-50%, 0); object-fit: contain; }
.td__way { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 2px 0; font-size: 13px; line-height: 1.3; color: var(--text-muted); white-space: nowrap; }
.td__way span { display: inline-flex; align-items: center; gap: 6px; }
.td__way svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) { .td__way svg { transform: rotate(90deg); } }
@media (max-width: 899px) { .td__panel--mv { padding-top: 212px; } .td__panel--mv .td__art img { top: 24px; height: 168px; } }
@media (min-width: 900px) {
  .td { flex-direction: row; gap: 14px; height: clamp(470px, 46vw, 590px); }
  .td__cell { flex: 1 1 0; transition: flex-grow .85s cubic-bezier(.2, .7, .2, 1); }
  .td__panel { min-height: 0; }
  .td.is-live .td__cell.is-on { flex-grow: 1.85; }
  .td.is-live .td__panel--mv .td__art img { transition: left .85s cubic-bezier(.2, .7, .2, 1), top .85s cubic-bezier(.2, .7, .2, 1), height .85s cubic-bezier(.2, .7, .2, 1), transform .85s cubic-bezier(.2, .7, .2, 1); }
  .td.is-live .td__cell.is-on .td__panel--mv .td__art img { left: 75%; top: 46%; height: 50%; transform: translate(-50%, -50%); }
  .td.is-live .td__text { position: relative; width: min(var(--tw, 100%), 100%); padding-bottom: var(--room, 0px); transition: padding-bottom .85s cubic-bezier(.2, .7, .2, 1); }
  .td.is-live .td__rest { position: absolute; left: 0; right: 0; bottom: 0; margin-top: 0; pointer-events: none; }
  .td.is-live .td__cell:not(.is-on) .td__rest { opacity: 0; }
  .td__way { position: absolute; z-index: 2; left: 100%; top: var(--y, 5%); width: 14px; overflow: visible; padding: 0; }
  .td__way span { padding: 6px 12px; border-radius: 999px; background: var(--surface-canvas); box-shadow: 0 0 0 1px var(--line-3); }
}

.rq { display: block; }
.rq blockquote { margin: 0; }
.rq.is-reading .rq__w { color: color-mix(in srgb, var(--text-strong) 56%, transparent); transition: color .4s ease; }
.rq.is-reading .rq__w.is-lit { color: var(--text-strong); }

@media (prefers-reduced-motion: reduce) {
  .lap.is-armed .lap__item > *, .td__cell, .td__rest, .td .td__text, .td .td__art img, .rq .rq__w { transition: none !important; }
}
