/* AgentGuru v11 (11 Nov 2026): Pea as the core product, Scribe apart as an Agent in a Box, Beagle retired, the
   work-is-changing band, Elevate, and a round of motion. Loaded on every page after site.css.
   Motion rule for this site: content animations keep playing under prefers-reduced-motion, because JJ's laptop
   reports it and the motion is what he asked for (memory: jj-machine-reduced-motion). Only scroll fades calm down. */

/* ---------------------------------------------------------------- the menu */
.dd-k { margin: 14px 8px 8px; font: 800 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dd-k.first { margin-top: 4px; }
.dd-hero { position: relative; display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 20px; text-decoration: none; color: var(--ink); background: linear-gradient(110deg, #e9f1df 0%, #f4f7ef 60%, #fbf9f4 100%); box-shadow: inset 0 0 0 1.5px #d8e5c6; overflow: hidden; transition: box-shadow .25s, transform .35s var(--pop); }
.dd-hero:hover { box-shadow: inset 0 0 0 1.5px #a9c58c, 0 18px 40px -24px rgba(34, 56, 26, .6); transform: translateY(-1px); }
.dd-hero .dd-ic { width: 76px; height: 76px; border-radius: 20px; background: radial-gradient(70% 70% at 50% 82%, #cfe2b6, #f4f7ef); }
.dd-hero .dd-ic img { height: 84%; }
.dd-hero:hover .dd-ic img { transform: translateY(-4px) rotate(-5deg) scale(1.07); }
.dd-hero b { display: block; font: 800 24px/1 var(--display); letter-spacing: -.03em; color: var(--pea-band); }
.dd-hero small { display: block; margin-top: 6px; color: #56604f; font-size: 14.5px; line-height: 1.35; }
.dd-go { display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 99px; background: var(--pea-band); color: #fff; font: 800 14px/1 var(--body); white-space: nowrap; }
.dd-go svg { width: 14px; height: 14px; }
.dd-hero::after { content: ""; position: absolute; top: -40%; bottom: -40%; width: 40%; left: -60%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); transform: skewX(-18deg); pointer-events: none; }
.dd.open .dd-hero::after, .dd:hover .dd-hero::after { animation: sheen 1.1s var(--ease) .15s; }
@keyframes sheen { to { left: 130%; } }
.dd-item b em:not(.free):not(.soon) { background: #ffe7e1; color: #9c2f1d; }
.sh-item.sh-pea { padding: 12px; margin: 0 -4px; border-radius: 18px; background: rgba(111, 161, 74, .14); box-shadow: inset 0 0 0 1px rgba(111, 161, 74, .35); }
.sh-item.sh-pea img { width: 56px; height: 56px; }
@media (max-width: 1060px) { .dd-hero { grid-template-columns: 64px 1fr; } .dd-go { display: none; } }

/* Agent in a Box label beside Scribe's name */
.name .aib, em.aib { display: inline-block; margin-left: 4px; padding: 5px 9px; border-radius: 99px; font: 800 11px/1 var(--body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; background: #ffe7e1; color: #9c2f1d; vertical-align: 3px; }

/* ---------------------------------------------------------------- the orbit: Pea with the business turning round it */
/* Real 3D: the ring sits at Pea's knees and tilts toward you, so the cards in front pass under Pea's feet and the
   ones behind pass behind it. Radius and sizes step down with the screen. */
.orbit { --r: 215px; --tilt: -20deg; --ph: 300px; position: relative; height: 540px; perspective: 1400px; perspective-origin: 50% 35%; }
.ob-glow { position: absolute; left: 50%; top: 40%; width: 480px; height: 480px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(207, 226, 182, .95), rgba(207, 226, 182, .35) 55%, rgba(207, 226, 182, 0)); animation: obpulse 6s ease-in-out infinite; }
@keyframes obpulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
.ob-floor { position: absolute; left: 50%; top: calc(58% + var(--ph) * .19); width: 200px; height: 30px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 56, 26, .24), rgba(34, 56, 26, 0)); animation: obshadow 3.6s ease-in-out infinite; }
@keyframes obshadow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(.86); opacity: .7; } }
.ob-ring { position: absolute; left: 50%; top: 58%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(var(--tilt)); }
.ob-spin { position: absolute; left: 0; top: 0; transform-style: preserve-3d; animation: obspin 32s linear infinite; }
@keyframes obspin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.ob-chip { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateY(calc(var(--i) * 60deg)) translateZ(var(--r)) rotateY(calc(var(--i) * -60deg)); }
.ob-face { position: absolute; left: 0; top: 0; display: grid; gap: 6px; justify-items: start; padding: 11px 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, .97); box-shadow: 0 16px 30px -16px rgba(34, 46, 20, .45), 0 0 0 1px rgba(34, 56, 26, .08); animation: obface 32s linear infinite; backface-visibility: hidden; }
@keyframes obface { from { transform: translate(-50%, -50%) rotateY(0deg) rotateX(20deg); } to { transform: translate(-50%, -50%) rotateY(-360deg) rotateX(20deg); } }
.ob-face b { font: 800 14px/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.ob-face em { font: 800 10px/1 var(--body); font-style: normal; letter-spacing: .09em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; background: #e3f4e6; color: #22713a; }
.ob-face em.gold { background: #fff1d6; color: var(--ink); }
.ob-face::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--pea-hi); box-shadow: 0 0 0 4px rgba(111, 161, 74, .18); }
.ob-chip:nth-child(even) .ob-face::before { background: var(--accent-fill); box-shadow: 0 0 0 4px rgba(242, 181, 68, .2); }
.ob-pea { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--tilt) * -1)); }
.ob-pea img { position: absolute; left: 0; top: 0; height: var(--ph); width: auto; max-width: none; transform: translate(-50%, -80%); filter: drop-shadow(0 22px 22px rgba(34, 56, 26, .25)); animation: obbob 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes obbob { 0%, 100% { transform: translate(-50%, -80%) rotate(0); } 50% { transform: translate(-50%, -83%) rotate(-2deg); } }
@media (max-width: 1100px) { .orbit { --r: 190px; --ph: 270px; height: 500px; } }
@media (max-width: 640px) { .orbit { --r: 122px; --ph: 190px; height: 380px; } .ob-glow { width: 320px; height: 320px; } .ob-face { padding: 8px 10px; gap: 5px; } .ob-face b { font-size: 11.5px; } .ob-face em { font-size: 8.5px; padding: 3px 6px; } .ob-floor { width: 140px; } }

/* ---------------------------------------------------------------- the products page */
.ag-hero.core { padding-bottom: 60px; }
.core-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: center; }
.core-grid .copy { display: grid; gap: 20px; justify-items: start; }
.core-grid .pea-word { height: 52px; width: auto; }
.core-grid h1 { color: #18201a; }
.core-grid h1 .em { color: var(--pea); }
.core-grid .row { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-hero.core .packs { margin-top: 10px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trio .mini h3 { font-size: 30px; }
.mini.el { background: linear-gradient(160deg, #fff 50%, #f4efe4); }
@media (max-width: 1000px) { .core-grid { grid-template-columns: 1fr; } .trio { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Elevate on the skills page: the before gets struck, the after lands */
.nw.elv { background: linear-gradient(140deg, #fff 40%, #fbf1dc); box-shadow: inset 0 0 0 1.5px var(--accent-soft), var(--shadow-sm); }
.nw.elv .nw-copy .small { margin-top: 2px; }
.nw.elv .ex p { position: relative; }
.nw.elv .ex.before p::after { content: ""; position: absolute; left: -2%; top: 50%; height: 3px; width: 0; border-radius: 99px; background: #c2412d; transition: width .7s var(--ease) .5s; }
.nw.elv.go .ex.before p::after { width: 104%; }
.nw.elv .ex.before { transition: opacity .6s ease 1.2s; }
.nw.elv.go .ex.before { opacity: .6; }
.nw.elv .ex.after { opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .6s ease 1.5s, transform .8s var(--pop) 1.5s, box-shadow .6s ease 2.1s; }
.nw.elv.go .ex.after { opacity: 1; transform: none; box-shadow: 0 0 0 2px var(--accent-fill), 0 24px 50px -24px rgba(217, 146, 26, .7); }
html:not(.js) .nw.elv .ex.after { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Learn: the new guides */
.tag.new { background: var(--ink); color: #fff; }
.card.guide.new { box-shadow: inset 0 0 0 1.5px var(--accent-fill), var(--shadow-sm); background: linear-gradient(170deg, #fff 55%, var(--accent-tint)); }

/* ---------------------------------------------------------------- 404: Pea searching */
.lost { width: auto; height: 250px; animation: search404 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes search404 { 0%, 100% { transform: rotate(0) translateX(0); } 25% { transform: rotate(-4deg) translateX(-10px); } 75% { transform: rotate(4deg) translateX(10px); } }

/* ---------------------------------------------------------------- the star Skills card on the starter page */
.lab .art.mark { height: 150px; }
.bigstar.sm { width: 150px; height: 150px; }
.bigstar.sm svg { width: 80px; height: 80px; animation: glint 3.2s ease-in-out infinite; }

/* ---------------------------------------------------------------- shooting stars over the night sections */
.stars { pointer-events: none; }
.shoot { position: absolute; z-index: 0; width: var(--len, 140px); height: 2px; border-radius: 99px; background: linear-gradient(90deg, rgba(255, 246, 224, 0), rgba(255, 246, 224, .95)); transform: rotate(-24deg) translateX(0); transform-origin: 100% 50%; opacity: 0; animation: shoot 1.4s cubic-bezier(.2, .6, .3, 1) forwards; pointer-events: none; }
.shoot::after { content: ""; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff6e0; box-shadow: 0 0 10px 2px rgba(242, 181, 68, .8); }
@keyframes shoot { 0% { opacity: 0; transform: rotate(-24deg) translateX(-60px) scaleX(.3); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(-24deg) translateX(260px) scaleX(1); } }
.ftr .stars, .night .stars, .hero .stars, .phero.dark .stars { overflow: hidden; }
