/* Performance Agent page: hero and the walk-through (played by agent.js) in the home page's style,
   then the flow, agents grid, split and fairness. */
.ag-hero { padding-bottom: 8px; }
.ag-hero h1 { max-width: 12em; }
.ag-hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

/* ── Walk-through ──────────────────────────────────────────────────── */
.ag-player { max-width: 1080px; margin: 0 auto; text-align: left; scroll-margin-top: 90px; }
.ag-chips { margin: 44px auto 18px; }
.ag-chips button[aria-selected="true"] i { animation: ag-fill var(--ms, 7000ms) linear forwards; }
.ag-player.paused .ag-chips button i { animation-play-state: paused; }
.ag-player.static .ag-chips button i { display: none; }
.ag-player .demo-note { text-align: center; }
@keyframes ag-fill { to { width: 100%; } }
@keyframes ag-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ag-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.ag-window { position: relative; z-index: 2; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 30px 80px -40px rgba(11, 11, 15, .35), 0 2px 6px rgba(11, 11, 15, .05); overflow: hidden; }
.ag-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: 12.5px; color: var(--ink-3); }
.ag-bar > span:not(.ag-status) { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #dcdce3; }
.ag-url { font-weight: 600; margin-left: 10px; white-space: nowrap; }
.ag-status { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--ink-2); font-weight: 600; }
.ag-status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.ag-status em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-pp { flex: none; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; width: 30px; height: 26px; font-size: 10px; cursor: pointer; color: var(--ink-2); }
.ag-stage { display: grid; background: #f7f7fa; }
.ag-scene { grid-area: 1 / 1; padding: 26px 28px 30px; opacity: 0; visibility: hidden; transform: translateX(18px); transition: opacity .45s ease, transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s .45s; font-size: 14px; min-width: 0; }
.ag-scene.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.ag-scene.was { transform: translateX(-18px); }
.ag-cap { font-size: clamp(1.1rem, 2.2vw, 1.45rem); letter-spacing: -.02em; margin: 0 0 20px; max-width: 30em; }
.ag-scene.on .ag-cap { animation: ag-up .5s ease both; }

.ag-card { background: #fff; border: 1px solid #e6e7ee; border-radius: 16px; padding: 18px; box-shadow: 0 1px 2px rgba(11, 11, 15, .04); }
.ag-scene.on .ag-card { animation: ag-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.ag-scene.on .ag-card + .ag-card { animation-delay: .25s; }
.ag-two { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; background: #111; color: #fff; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 13px; }
.ag-foot { font-size: 12px; color: #6b6e7c; margin-top: 12px; }
.ag-lbl { font-size: 12px; font-weight: 600; color: #5d6070; margin: 14px 0 8px; }
.ag-hint { font-size: 12px; color: #6b6e7c; margin: 10px 0 14px; }

/* 1 · count */
.ag-dh b { display: block; font-size: 15px; } .ag-dh small { color: #6b6e7c; font-size: 12.5px; }
.ag-time { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; background: #eef4ff; color: #1d63b0; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; }
.ag-outs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ag-outs div { border: 1px solid #e6e7ee; border-radius: 10px; padding: 8px 10px; }
.ag-outs small { display: block; font-size: 11px; color: #6b6e7c; }
.ag-outs b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ag-scene.on .ag-press { animation: ag-press .5s ease 2.6s both; }
@keyframes ag-press { 50% { transform: scale(.95); background: #6f3cf0; } 100% { transform: none; background: #15803d; } }
.ag-th, .ag-tr { display: grid; grid-template-columns: 24px 1.4fr .7fr .7fr .7fr; gap: 8px; align-items: center; padding: 9px 4px; font-size: 13px; }
.ag-th { grid-template-columns: 1.6fr .7fr .7fr .7fr; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8b8e9c; border-bottom: 1px solid #eef0f4; padding-left: 36px; }
.ag-tr { border-bottom: 1px solid #f1f2f6; }
.ag-tr b { text-align: right; font-variant-numeric: tabular-nums; }
.ag-tr.hl { border-radius: 10px; }
.ag-scene.on .ag-tr.hl { animation: ag-hl 1.6s ease 3.1s both; }
@keyframes ag-hl { 0% { background: transparent; } 30% { background: #f1ecff; } 100% { background: #faf8ff; } }

/* 2 · check */
.ag-poster { padding: 12px; }
.ag-art { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3.1; background: linear-gradient(160deg, #2b2b33, #4a3f35); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #f4ede4; }
.ag-typo { font: 800 clamp(22px, 3vw, 34px)/1 var(--font-head); letter-spacing: -.03em; }
.ag-bad { position: relative; display: inline-block; }
.ag-bad::after { content: ''; position: absolute; inset: -4px -6px; border: 2.5px solid #fb7185; border-radius: 8px; opacity: 0; transform: scale(1.2); }
.ag-scene.on .ag-bad::after { animation: ag-ring .4s ease 2.2s both; }
@keyframes ag-ring { to { opacity: 1; transform: none; } }
.ag-art em { font: 400 20px/1.2 var(--font-serif); font-style: italic; margin-top: 10px; color: #d9c7b0; }
.ag-art small { margin-bottom: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #bfae98; }
.ag-scan { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(180deg, transparent, rgba(111, 60, 240, .35), transparent); opacity: 0; }
.ag-scene.on .ag-scan { animation: ag-scan 1.8s ease-in-out .3s 1 both; }
@keyframes ag-scan { 0% { top: -40px; opacity: 1; } 100% { top: 100%; opacity: 1; } }
.ag-file { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin-top: 10px; color: #5d6070; }
.ag-dl { border: 1px solid #e6e7ee; border-radius: 8px; padding: 4px 9px; color: #111; font-weight: 600; }
.ag-scene.on .ag-dl { animation: ag-click .4s ease 4.4s both; }
@keyframes ag-click { 50% { transform: scale(.92); background: #f1ecff; } }
.ag-ch-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ag-ch-h .u-chip { margin-left: auto; opacity: 0; }
.ag-scene.on .ag-ch-h .u-chip { animation: ag-up .3s ease 2.2s both; }
.ag-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ded3ff; border-top-color: #6f3cf0; }
.ag-scene.on .ag-spin { animation: ag-rot .8s linear 0s 3, ag-done .2s ease 2.2s both; }
@keyframes ag-rot { to { transform: rotate(360deg); } }
@keyframes ag-done { to { border-color: #15803d; background: #15803d; } }
.ag-issue { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #eef0f4; border-radius: 10px; padding: 10px; margin-top: 8px; opacity: 0; }
.ag-scene.on .ag-issue { animation: ag-up .35s ease 2.5s both; }
.ag-scene.on .ag-issue + .ag-issue { animation-delay: 2.9s; }
.ag-issue small { display: block; color: #6b6e7c; font-size: 12px; }
.ag-issue s { color: #c0262d; }
.ag-tag { flex: none; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 8px; background: #eef0f4; color: #4b4e5c; }
.ag-tag.bad { background: #fde8e8; color: #c0262d; }
.ag-warn { margin-top: 14px; border-radius: 12px; background: #111; color: #fff; padding: 14px; opacity: 0; }
.ag-scene.on .ag-warn { animation: ag-in .4s ease 4.8s both; }
.ag-warn b { display: block; } .ag-warn span { font-size: 13px; color: #c9c9d3; }
.ag-warn div { display: flex; gap: 8px; margin-top: 10px; }
.ag-warn i { font-style: normal; font-size: 12.5px; font-weight: 600; border: 1px solid #3a3a46; border-radius: 8px; padding: 6px 10px; }
.ag-warn i.go { background: #fff; color: #111; border-color: #fff; }

/* 3 · time */
.ag-two-r { grid-template-columns: 1.3fr 1fr; }
.ag-usual b { display: block; } .ag-usual > small { display: block; color: #6b6e7c; font-size: 12.5px; margin-bottom: 12px; }
.ag-us { display: grid; grid-template-columns: 90px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; margin: 9px 0; }
.ag-us i { height: 8px; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.ag-us u { display: block; height: 100%; width: 0; background: #6f3cf0; border-radius: 99px; }
.ag-scene.on .ag-us u { animation: ag-bar-w .8s cubic-bezier(.2, .8, .2, 1) .7s forwards; }
.ag-us.over u { background: #d97706; }
.ag-scene.on .ag-us.over u { animation-delay: 1.4s; }
.ag-us.over b, .ag-us.over span { color: #b45309; font-weight: 700; }
.ag-us b { text-align: right; }
@keyframes ag-bar-w { to { width: var(--w); } }
.ag-usual p { font-size: 12.5px; color: #6b6e7c; margin: 12px 0 0; }
.ag-fl-h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ag-fl-h b { display: block; } .ag-fl-h small { color: #6b6e7c; font-size: 12.5px; }
.ag-flag { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-top: 1px solid #f1f2f6; opacity: 0; }
.ag-scene.on .ag-flag { animation: ag-up .4s ease both; }
.ag-scene.on .ag-flag:nth-of-type(2) { animation-delay: .5s; } .ag-scene.on .ag-flag:nth-of-type(3) { animation-delay: 1.4s; }
.ag-scene.on .ag-flag:nth-of-type(4) { animation-delay: 2.3s; } .ag-scene.on .ag-flag:nth-of-type(5) { animation-delay: 3.2s; }
.ag-flag small { display: block; color: #6b6e7c; font-size: 12.5px; }
.ag-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: #b8bac6; }
.ag-dot.warn { background: #d97706; } .ag-dot.bad { background: #e11d48; }

/* 4 · score */
.ag-score small { color: #6b6e7c; }
.ag-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 10px 0 12px; }
.ag-big b { font: 800 64px/1 var(--font-head); letter-spacing: -.04em; color: #15803d; font-variant-numeric: tabular-nums; }
.ag-big span { color: #6b6e7c; } .ag-big em { font-style: normal; color: #15803d; font-weight: 600; font-size: 13px; }
.ag-fair { font-size: 12.5px; color: #6b6e7c; margin: 0; }
.ag-part { margin-bottom: 12px; }
.ag-part div { display: flex; justify-content: space-between; font-size: 13px; }
.ag-part div span { font-weight: 700; color: #15803d; }
.ag-part i { display: block; height: 6px; border-radius: 99px; background: #eef0f4; margin: 5px 0 3px; overflow: hidden; }
.ag-part u { display: block; height: 100%; width: 0; border-radius: 99px; background: #15803d; }
.ag-scene.on .ag-part u { animation: ag-bar .9s cubic-bezier(.2, .8, .2, 1) calc(.6s + var(--i) * .25s) forwards; }
@keyframes ag-bar { to { width: var(--v); } }
.ag-part small { color: #6b6e7c; font-size: 12px; }

/* 5 · requests */
.ag-req-hl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ag-req-hl div { border: 1px solid #eef0f4; border-radius: 12px; padding: 10px 12px; opacity: 0; }
.ag-scene.on .ag-req-hl div { animation: ag-up .4s ease both; }
.ag-scene.on .ag-req-hl div:nth-child(2) { animation-delay: .5s; } .ag-scene.on .ag-req-hl div:nth-child(3) { animation-delay: 1s; }
.ag-req-hl small { display: block; font-size: 11.5px; color: #6b6e7c; } .ag-req-hl b { display: block; }
.ag-req-hl span { font-size: 12.5px; color: #5d6070; } .ag-req-hl .warn span { color: #b45309; font-weight: 600; }
.ag-th.r, .ag-tr.r { grid-template-columns: 1.6fr .6fr 1fr .7fr .7fr; padding-left: 4px; }
.ag-tr .w { color: #b45309; }
.ag-scene.on .ag-tr.r.hl { animation: ag-hl 1.6s ease 1.8s both; }

/* 6 · coach */
.ag-co-h { display: flex; gap: 12px; align-items: flex-start; }
.ag-co-h small { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #8b8e9c; }
.ag-spark { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f1ecff; color: #6f3cf0; font-size: 16px; }
.ag-co-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 12px; }
.ag-co-cols div { opacity: 0; } .ag-co-cols span { font-size: 13px; color: #45454f; }
.ag-scene.on .ag-co-cols div { animation: ag-up .4s ease .6s both; }
.ag-scene.on .ag-co-cols div:nth-child(2) { animation-delay: 1.1s; } .ag-scene.on .ag-co-cols div:nth-child(3) { animation-delay: 1.6s; }
.ag-co-cols p { font-size: 12.5px; font-weight: 700; margin: 0 0 4px; }
.ag-co-cols .ok { color: #15803d; } .ag-co-cols .warn { color: #b45309; } .ag-co-cols .bad { color: #c0262d; }
.ag-sug { background: #f6f6f8; border-radius: 10px; padding: 10px 12px; margin: 0; font-size: 13px; }

/* 7 · report */
.ag-cmd { max-width: 620px; margin: 0 auto; }
.ag-cmd-in { display: flex; align-items: center; gap: 10px; border: 1px solid #e6e7ee; border-radius: 12px; padding: 12px 14px; font-weight: 600; min-height: 48px; }
.ag-cmd-in kbd { margin-left: auto; font: 600 11px/1 var(--font-body); border: 1px solid #e6e7ee; border-radius: 6px; padding: 4px 6px; color: #6b6e7c; }
.ag-sp { color: #6f3cf0; }
.ag-cmd-plan { margin-top: 12px; border: 1px solid #e6e7ee; border-radius: 12px; padding: 14px; background: #fafafc; opacity: 0; }
.ag-scene.on .ag-cmd-plan { animation: ag-in .4s ease 3.4s both; }
.ag-cmd-plan small { font-size: 11px; letter-spacing: .12em; color: #6f3cf0; font-weight: 700; }
.ag-cmd-plan b { display: block; font-size: 16px; margin: 4px 0 8px; }
.ag-cmd-plan dl { display: grid; grid-template-columns: 70px 1fr; gap: 4px 10px; margin: 0 0 12px; font-size: 13px; }
.ag-cmd-plan dt { color: #6b6e7c; } .ag-cmd-plan dd { margin: 0; }
.ag-file-out { display: flex; align-items: center; gap: 10px; margin-top: 12px; border: 1px solid #e6e7ee; border-radius: 12px; padding: 10px 12px; opacity: 0; }
.ag-scene.on .ag-file-out { animation: ag-in .4s ease 5s both; }
.ag-file-out .x { background: #15803d; color: #fff; font-size: 10px; font-weight: 800; border-radius: 6px; padding: 6px 5px; }
.ag-file-out .u-chip { margin-left: auto; }
.ag-caret::after { content: '▍'; color: #6f3cf0; animation: ag-blink 1s steps(1) infinite; }
@keyframes ag-blink { 50% { opacity: 0; } }

/* ── How it works ──────────────────────────────────────────────────── */
.ag-flow { display: grid; grid-template-columns: 1fr .7fr auto .7fr 1fr; align-items: center; max-width: 1080px; margin: 0 auto; }
.ag-fcol { display: grid; grid-auto-rows: 1fr; height: 340px; gap: 0; }
.ag-fcol div { align-self: center; justify-self: end; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: .93rem; box-shadow: var(--shadow); opacity: 0; transform: translateX(-14px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * .1s); }
.ag-fcol.out div { justify-self: start; transform: translateX(14px); transition-delay: calc(.6s + var(--i) * .1s); }
.ag-fcol.out div::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-right: 9px; vertical-align: 1px; }
.ag-flow.in .ag-fcol div { opacity: 1; transform: none; }
.ag-wires { width: 100%; height: 340px; overflow: visible; }
.ag-wires path { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ag-wires .p { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 10 90; stroke-dashoffset: 100; opacity: 0; }
.ag-flow.in .ag-wires .p { opacity: 1; animation: ag-flowdash 2.4s linear infinite; }
.ag-wires .p:nth-of-type(4) { animation-delay: -.6s; } .ag-wires .p:nth-of-type(6) { animation-delay: -1.2s; } .ag-wires .p:nth-of-type(8) { animation-delay: -1.8s; } .ag-wires .p:nth-of-type(10) { animation-delay: -.9s; }
.ag-wires.out .p { stroke: var(--accent); }
@keyframes ag-flowdash { to { stroke-dashoffset: 0; } }
.ag-fcore { position: relative; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 10px var(--bg-soft), 0 0 0 11px var(--line); }
.ag-fcore b { font-size: 14px; line-height: 1.15; max-width: 7em; }
.ag-fcore small { font-size: 11px; color: #a3a3b4; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* ── Agents grid ───────────────────────────────────────────────────── */
.ag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ag-agent { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s, opacity .6s ease; transition-delay: 0s, 0s, 0s, calc(var(--i, 0) * 70ms); }
.ag-agent.rv { transition-property: transform, box-shadow, border-color, opacity; }
.ag-agent.rv:not(.in) { transform: translateY(22px); }
.ag-agent:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.ag-ah { display: flex; align-items: center; justify-content: space-between; }
.ag-ico { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); overflow: visible; }
.ag-agent h3 { margin: 14px 0 8px; }
.ag-agent p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.ag-n { font: 700 .76rem/1 var(--font-body); letter-spacing: .1em; color: var(--ink-3); }
.ag-more { background: var(--ink); border-color: var(--ink); }
.ag-more h3 { color: #fff; } .ag-more p { color: #c9c9d3; }
/* Each icon moves a little. */
.ag-ico * { transform-box: fill-box; transform-origin: center; }
.in .i-pop { animation: i-pop 2.4s ease-in-out infinite; }
@keyframes i-pop { 0%, 40%, 100% { transform: none; } 20% { transform: translate(1.5px, -1.5px); } }
.in .i-look { animation: i-look 3s ease-in-out infinite; }
@keyframes i-look { 25% { transform: translate(2px, 1px); } 50% { transform: translate(-1px, 2px); } 75% { transform: translate(1px, -1px); } }
.i-hand { transform-origin: 50% 100% !important; }
.in .i-hand { animation: i-hand 4s linear infinite; }
@keyframes i-hand { to { transform: rotate(360deg); } }
.in .i-bars { stroke-dasharray: 16; animation: i-bars 2.6s ease-in-out infinite alternate; }
@keyframes i-bars { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
.i-bell { transform-origin: 50% 0 !important; }
.in .i-bell { animation: i-bell 2.8s ease-in-out infinite; }
@keyframes i-bell { 0%, 50%, 100% { transform: none; } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-4deg); } }
.in .i-write { stroke-dasharray: 8; animation: i-bars 2s ease-in-out infinite alternate; }
.in .i-spark { animation: i-spark 2.4s ease-in-out infinite; }
.in .i-spark2 { animation: i-spark 2.4s ease-in-out -1.2s infinite; }
@keyframes i-spark { 50% { transform: scale(.75) rotate(20deg); opacity: .6; } }
@media (max-width: 1000px) { .ag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ag-grid { grid-template-columns: 1fr; } }

/* ── Agencies and in-house ─────────────────────────────────────────── */
.ag-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ag-side { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s, opacity .6s; }
.ag-side::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.8,.2,1) .3s; }
.ag-side.in::before { transform: none; }
.ag-side:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.ag-who { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 11px; margin-bottom: 14px; }
.ag-side h3 { font-size: 1.4rem; letter-spacing: -.02em; }
@media (max-width: 800px) { .ag-split { grid-template-columns: 1fr; } }

/* ── Fair by design ────────────────────────────────────────────────── */
.ag-fairs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ag-fair-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ag-fair-list.rv { opacity: 1; transform: none; }
.ag-fair-list li { position: relative; padding: 12px 14px 12px 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); opacity: 0; transform: translateX(16px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 90ms); }
.ag-fair-list.in li { opacity: 1; transform: none; }
.ag-fair-list li::before { content: '✓'; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: 12px; transform: scale(0); transition: transform .4s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(.25s + var(--i) * 90ms); }
.ag-fair-list.in li::before { transform: none; }
@media (max-width: 860px) { .ag-fairs { grid-template-columns: 1fr; gap: 24px; } }

/* ── Smaller screens and reduced motion ────────────────────────────── */
@media (max-width: 860px) {
  .ag-flow { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .ag-wires { display: none; }
  .ag-fcol { height: auto; grid-auto-rows: auto; gap: 8px; justify-items: center; }
  .ag-fcol div, .ag-fcol.out div { justify-self: center; }
  .ag-fcore { margin: 28px 0; }
  .ag-fcore::before, .ag-fcore::after { content: ''; position: absolute; left: 50%; width: 2px; height: 28px; background: var(--line-2); }
  .ag-fcore::before { bottom: 100%; } .ag-fcore::after { top: 100%; }
}
@media (max-width: 760px) {
  .ag-scene { padding: 18px 14px 20px; }
  .ag-two, .ag-two-r, .ag-req-hl, .ag-co-cols { grid-template-columns: 1fr; }
  .ag-th.r, .ag-tr.r { grid-template-columns: 1.4fr .5fr .9fr .6fr; }
  .ag-th.r span:last-child, .ag-tr.r b:last-child { display: none; }
  .ag-url { display: none; }
}
@media (max-width: 520px) { .ag-chips { gap: 6px; } .ag-chips button { padding: 0 12px; height: 34px; } }
@media (prefers-reduced-motion: reduce) {
  .ag-scene *, .ag-scene, .ag-flow *, .ag-agent * { animation: none !important; transition: none !important; }
  .ag-scene { transform: none !important; }
  .ag-issue, .ag-warn, .ag-flag, .ag-req-hl div, .ag-co-cols div, .ag-cmd-plan, .ag-file-out, .ag-ch-h .u-chip { opacity: 1; }
  .ag-part u { width: var(--v); } .ag-us u { width: var(--w); }
  .ag-fcol div, .ag-fair-list li { opacity: 1; transform: none; }
  .ag-fair-list li::before { transform: none; }
  .ag-wires .p { display: none; }
}
