.ag-sec {
  --ag-ground: #0B0D0C;
  --ag-surface: #141917;
  --ag-ink: #E4E3DD; --ag-ink-2: #C9C8C1; --ag-muted: #9D9E9D;
  --ag-ease: var(--rv-ease, cubic-bezier(.22, 1, .36, 1));
  position: relative; isolation: isolate; overflow-x: clip;
  background: var(--ag-ground); color: var(--forest-ink);
  padding: clamp(96px, 8.5vw, 136px) 0 clamp(88px, 8vw, 128px);
}

.ag-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 112px); align-items: start; }
.ag-title { margin: 0; max-width: 12em; font-size: clamp(36px, 3.3vw, 50px); line-height: 1.06; letter-spacing: -0.028em; font-weight: 500; color: var(--ivory); text-wrap: balance; }
.ag-accent { color: var(--signal); }
.ag-lede { margin: 0; padding-top: .3em; max-width: 34em; font-size: clamp(16.5px, 1.2vw, 18px); line-height: 1.6; color: var(--forest-ink-2); text-wrap: pretty; }

.ag-show { margin-top: clamp(20px, 2vw, 32px); }
.ag-stage { position: relative; height: clamp(430px, 33vw, 500px); display: grid; place-items: center; }

.ag-app {
  position: absolute; inset: 0 -2% 0 -2%; z-index: 0; overflow: hidden; pointer-events: none; user-select: none;
  font-size: 13px; color: var(--ag-muted); opacity: .62;
  --ag-fade: radial-gradient(ellipse 62% 70% at 50% 46%,
    #000 30%, rgba(0, 0, 0, .936) 41%, rgba(0, 0, 0, .774) 52%, rgba(0, 0, 0, .557) 63%,
    rgba(0, 0, 0, .331) 74%, rgba(0, 0, 0, .136) 85%, rgba(0, 0, 0, .017) 95%, transparent 100%);
  -webkit-mask-image: var(--ag-fade); mask-image: var(--ag-fade);
}
.ag-app-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-bottom: 1px solid rgba(242, 241, 236, .07); font-weight: 500; color: #C7C8C6; }
.ag-app-mark { width: 12px; height: 12px; border-radius: 3px; background: rgba(242, 241, 236, .5); }
.ag-app-crumb { margin-left: 26px; font-weight: 400; color: var(--ag-muted); }
.ag-app-body { display: grid; grid-template-columns: 200px 1fr; height: calc(100% - 46px); }
.ag-app-nav { list-style: none; margin: 0; padding: 14px 12px; border-right: 1px solid rgba(242, 241, 236, .07); }
.ag-app-nav li { padding: 7px 10px; border-radius: 6px; }
.ag-app-nav li.on { background: rgba(242, 241, 236, .05); color: #C7C8C6; }
.ag-app-main { padding: 22px 30px 0; }
.ag-app-h { margin: 0 0 14px; font-size: 15px; font-weight: 500; color: #C7C8C6; }
.ag-app-rows { list-style: none; margin: 0; padding: 0; }
.ag-app-rows li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 90px 60px; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(242, 241, 236, .055); white-space: nowrap; }
.ag-app-rows span, .ag-app-rows time { font: 12px/1.6 var(--mono); }
.ag-app-rows em { font-style: normal; color: #C7C8C6; overflow: hidden; text-overflow: ellipsis; }
.ag-app-rows i { font-style: normal; }
.ag-app-rows time { text-align: right; }

.ag-panel {
  position: relative; z-index: 1; isolation: isolate; width: min(760px, 100%); min-width: 0; max-width: 100%;
  border-radius: 16px; outline: none;
}
.ag-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ag-surface); border: 1px solid rgba(242, 241, 236, .105);
  box-shadow: inset 0 1px 0 rgba(242, 241, 236, .055), 0 1px 3px rgba(0, 0, 0, .32);
}
.ag-panel:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.ag-shadow { position: absolute; z-index: -1; pointer-events: none; display: block; }
.ag-atmos { position: absolute; z-index: -1; pointer-events: none; display: block; }

.ag-p-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 20px; border-bottom: 1px solid rgba(242, 241, 236, .065); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-muted); }
.ag-p-k { color: #C7C8C6; white-space: nowrap; }
.ag-p-sid { letter-spacing: .04em; text-transform: none; }
.ag-p-tag { margin-left: auto; padding: 3px 9px; border: 1px solid rgba(242, 241, 236, .1); border-radius: 999px; font-size: 10px; letter-spacing: .1em; white-space: nowrap; }

.ag-p-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 20px 12px; }
.ag-p-title { margin: 0; font-size: 16px; font-weight: 500; color: var(--ag-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-p-meta { display: flex; gap: 18px; margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--ag-muted); white-space: nowrap; }
.ag-p-meta b { font-weight: 500; color: var(--ag-ink-2); }

.ag-evs { list-style: none; margin: 0; padding: 0 20px; }
.ag-ev {
  display: grid; grid-template-columns: 70px 108px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  height: 46px; border-top: 1px solid rgba(242, 241, 236, .055);
  font-size: 13px; color: var(--ag-ink-2);
}
.ag-ev-t { font: 12px/1 var(--mono); color: var(--ag-muted); font-variant-numeric: tabular-nums; }
.ag-ev-k { justify-self: start; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(242, 241, 236, .09); font: 500 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ag-muted); white-space: nowrap; }
.ag-ev-x { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ag-ev-x b { font-weight: 500; color: var(--ag-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev-x em { font-style: normal; font: 11.5px/1.3 var(--mono); color: var(--ag-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev-r { font: 11.5px/1 var(--mono); color: var(--ag-muted); white-space: nowrap; }
.ag-ev[data-k="review"] .ag-ev-k { color: var(--ag-ink-2); border-color: rgba(242, 241, 236, .16); }
.ag-ev[data-k="record"] .ag-ev-k { color: var(--signal); border-color: rgba(127, 209, 168, .38); }
.ag-ev[data-k="record"] .ag-ev-r { color: var(--signal); }

.ag-p-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px 16px; border-top: 1px solid rgba(242, 241, 236, .065); font-family: var(--mono); font-size: 11.5px; color: var(--ag-muted); }
.ag-p-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.ag-p-ref { margin-left: auto; color: var(--ag-ink-2); white-space: nowrap; }

.ag-p-in { position: relative; }
.ag-ghost {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: var(--ag-surface);
  box-shadow: inset 0 0 0 1px rgba(242, 241, 236, .105), inset 0 1px 0 rgba(242, 241, 236, .055);
  animation: ag-xfade .3s ease-in-out forwards;
}
@keyframes ag-xfade { from { opacity: 1; } to { opacity: 0; } }

.ag-strip { position: relative; margin-top: clamp(26px, 2.6vw, 40px); }
.ag-strip-vp {
  position: relative; overflow: hidden; height: 96px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.ag-track { position: absolute; left: 0; top: 0; display: flex; gap: var(--ag-gap, 14px); padding: 8px 0; will-change: transform; }
.ag-track.is-moving { transition: transform .7s var(--ag-ease); }
.ag-tile {
  position: relative; flex: none; width: 80px; height: 80px; border-radius: 16px; display: grid; place-items: center; cursor: pointer;
  background: #121715; border: 1px solid rgba(242, 241, 236, .085); padding: 0;
  box-shadow: inset 0 1px 0 rgba(242, 241, 236, .035), 0 1px 2px rgba(0, 0, 0, .3);
  transition: border-color .6s var(--ag-ease), background-color .6s var(--ag-ease), box-shadow .6s var(--ag-ease);
}
.ag-tile img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); opacity: .46; transition: opacity .6s var(--ag-ease); }
.ag-tile[data-mono="tone"] img { filter: grayscale(1) contrast(2.5) brightness(1.3); }
.ag-tile .ag-tile-fb { font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--ag-muted); }
.ag-tile:hover { border-color: rgba(242, 241, 236, .16); }
.ag-tile:hover img { opacity: .62; }
.ag-tile:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.ag-tile[aria-selected="true"] { border-color: rgba(127, 209, 168, .55); background: #151d1a; box-shadow: inset 0 0 0 1px rgba(127, 209, 168, .08), 0 1px 2px rgba(0, 0, 0, .3); }
.ag-tile[aria-selected="true"] img { opacity: .96; }
.ag-tile::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 10px; height: 1px; background: rgba(127, 209, 168, .6); transform: scaleX(0); transform-origin: left; opacity: 0; }
.ag-tile.is-timing::after { opacity: 1; transform: scaleX(1); transition: transform var(--ag-step, 4.5s) linear; }

html.rv-on:not(.rv-off) .ag-strip:not(.rv-in) .ag-tile { opacity: 0; transform: translate3d(0, 8px, 0); }
.ag-strip.rv-in .ag-tile { transition: opacity .6s var(--ag-ease) calc(var(--d, 0) * 50ms + .2s), transform .6s var(--ag-ease) calc(var(--d, 0) * 50ms + .2s), border-color .6s var(--ag-ease), background-color .6s var(--ag-ease), box-shadow .6s var(--ag-ease); }

.ag-points { list-style: none; margin: clamp(40px, 3.8vw, 56px) 0 0; padding: clamp(24px, 2.2vw, 30px) 0 0; border-top: 1px solid rgba(242, 241, 236, .07);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.ag-points li { display: flex; align-items: baseline; gap: 12px; font-size: clamp(15px, 1.05vw, 16px); line-height: 1.5; color: #B3B4B1; }
.ag-mark { flex: none; width: 6px; height: 6px; border-radius: 1.5px; transform: translateY(-.2em) rotate(45deg); background: var(--signal); opacity: .85; }

@media (max-width: 1100px) {
  .ag-head { grid-template-columns: 1fr; }
  .ag-lede { margin-top: 24px; padding-top: 0; }
  .ag-points { grid-template-columns: 1fr; row-gap: 14px; }
}
@media (max-width: 860px) {
  .ag-stage { height: auto; padding: 40px 0; }
  .ag-ev { grid-template-columns: 62px minmax(0, 1fr) auto; grid-template-areas: "t k r" "x x x"; height: auto; row-gap: 6px; padding: 11px 0; }
  .ag-ev-t { grid-area: t; } .ag-ev-k { grid-area: k; } .ag-ev-r { grid-area: r; } .ag-ev-x { grid-area: x; }
  .ag-p-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 767px) {
  .ag-app { opacity: .4; }
  .ag-p-bar { gap: 10px; padding: 0 14px; }
  .ag-p-sid, .ag-p-k { display: none; }
  .ag-p-tag { margin-left: 0; }
  .ag-p-foot { flex-wrap: wrap; row-gap: 6px; }
  .ag-p-ref { margin-left: 16px; }
  .ag-p-head, .ag-p-foot { padding-left: 14px; padding-right: 14px; }
  .ag-evs { padding: 0 14px; }
  .ag-ev-x { flex-direction: column; gap: 3px; }
  .ag-p-meta { flex-direction: column; gap: 4px; }
  .ag-tile { width: 64px; height: 64px; border-radius: 14px; }
  .ag-tile img { width: 28px; height: 28px; }
  .ag-strip-vp { height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-track.is-moving, .ag-tile, .ag-tile img, .ag-strip.rv-in .ag-tile { transition: none; }
  .ag-ghost { display: none; }
  .ag-tile::after { display: none; }
}
