/* Working with us: five styles (html[data-approach] story | focus | tabs | bento | rows), each item
   with a live mini visual for its theme. Visuals are drawn on a fixed stage (520 x 340, or 360 x 320
   on phones, class is-c) that approach.js scales to fit its frame without cropping. */

/* ---------- Palette for the visuals, light by default, dark when the section is dark ---------- */
.approach {
  --ap-win: #ffffff; --ap-win2: #f6f6f3; --ap-ln: rgba(13, 13, 13, .09); --ap-ln2: rgba(13, 13, 13, .18);
  --ap-ink: #0d0d0d; --ap-ink2: rgba(13, 13, 13, .5); --ap-bar: rgba(13, 13, 13, .13); --ap-bar2: rgba(13, 13, 13, .06);
  --ap-o: #ef4323; --ap-o2: #ff7a4a; --ap-o3: #cf2a0e;
  --ap-shadow: 0 1px 2px rgba(13, 13, 13, .05), 0 16px 36px -14px rgba(13, 13, 13, .2);
  --ap-tile: #ffffff; --ap-ground: #f6f6f3; --ap-dim: rgba(13, 13, 13, .2);
  --ap-frame-shadow: 0 40px 80px -50px rgba(13, 13, 13, .3);
  overflow: clip;
}
.approach[data-tone="dark"] {
  --ap-win: #1c1c1c; --ap-win2: #242424; --ap-ln: rgba(255, 255, 255, .08); --ap-ln2: rgba(255, 255, 255, .18);
  --ap-ink: #f2f2f2; --ap-ink2: rgba(242, 242, 242, .52); --ap-bar: rgba(255, 255, 255, .17); --ap-bar2: rgba(255, 255, 255, .07);
  --ap-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 20px 44px -16px rgba(0, 0, 0, .75);
  --ap-tile: #161616; --ap-ground: #1b1b1b; --ap-dim: rgba(255, 255, 255, .22);
  --ap-frame-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8);
}
.approach .wrap { position: relative; z-index: 1; }

/* reset the base list styles from a.css for every style */
html[data-approach] .approach .approach__list { border-top: 0; gap: 0; }
html[data-approach] .approach .approach__list > li::before { content: none; }
html[data-approach] .approach .approach__list > li { padding: 0; gap: 0; }
html[data-approach] .approach .ap-copy h3 { font-weight: 600; letter-spacing: -.03em; }
html[data-approach] .approach .ap-copy p { max-width: 40ch; }
.ap-copy .approach__n { font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; color: var(--ap-o); }

/* progress rail (story) */
.ap-rail { display: none; }
.ap-rail i { position: relative; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--ap-dim); overflow: hidden; }
.ap-rail i b { position: absolute; inset: 0; display: block; background: var(--ap-o); transform-origin: left; transform: scaleX(0); }
.ap-rail i.is-done b { transform: none; }
.ap-rail i.is-on b { transform: scaleX(var(--pp, 0)); }

/* tabs bar (tabs) */
.ap-tabs { display: none; }

/* ---------- Visual stage ---------- */
.ap-vis { position: relative; overflow: hidden; }
.ap-stage {
  position: absolute; left: 0; top: 0; width: 520px; height: 340px;
  transform-origin: 0 0; transform: translate(var(--ox, 0px), var(--oy, 0px)) scale(var(--k, .5));
  font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; color: var(--ap-ink); line-height: 1.2;
}
.ap-stage.is-c { width: 360px; height: 320px; --wall: 128px; --stop: 106px; --run: 200px; --fl: 18px; --tw: 260px; --qt: 110px; }
.ap-stage * { box-sizing: border-box; }
.ap-stage i, .ap-stage b, .ap-stage span, .ap-stage em { display: block; font-style: normal; }
.ap-vis:not(.is-live) *, .ap-vis:not(.is-live) *::before, .ap-vis:not(.is-live) *::after { animation-play-state: paused !important; }
.ap-win { position: absolute; background: var(--ap-win); border: 1px solid var(--ap-ln); border-radius: 14px; box-shadow: var(--ap-shadow); overflow: hidden; }
.ap-mono { font: 500 10px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--ap-ink2); }
.is-c .ap-mono { letter-spacing: .12em; }
.ap-o { color: var(--ap-o) !important; }
.ap-cap { position: absolute; }
.ap-ic { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ap-ic--fill { fill: currentColor; stroke: none; }
.ap-mark { display: block; width: 24px; height: auto; }
.ap-mark .m1 { fill: var(--ap-o); }
.ap-mark .m2 { fill: var(--ap-ink); }

/* a step that appears in sequence, holds, then clears and comes back */
.a-step { animation: ap-step 9s var(--ease) infinite backwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes ap-step { 0% { opacity: 0; transform: translateY(8px); } 7% { opacity: 1; transform: none; } 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ap-blink { 50% { opacity: 0; } }
@keyframes ap-bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }

/* ======================================================================
   THEME VISUALS
   ====================================================================== */
/* access: the week with today marked, and a thread with the team */
.ap-row { display: flex !important; justify-content: space-between; padding: 14px 16px 0; }
.ap-days { display: grid !important; grid-template-columns: repeat(7, 1fr); gap: 7px; padding: 12px 16px 0; }
.ap-day { height: 40px; border-radius: 10px; background: var(--ap-win2); border: 1px solid var(--ap-ln); display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ap-ink); }
.ap-day i { width: 6px; height: 6px; border-radius: 50%; background: var(--ap-bar); }
.ap-day.is-today { background: var(--ap-o); border-color: var(--ap-o); color: #fff; }
.ap-day.is-today i { background: #fff; animation: ap-blink 2s steps(1) infinite; }
.is-c .ap-row { padding: 12px 12px 0; }
.is-c .ap-days { gap: 5px; padding: 10px 12px 0; }
.ap-chat__head { display: flex !important; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--ap-ln); }
.ap-av { width: 30px; height: 30px; border-radius: 50%; background: var(--ap-win2); border: 1px solid var(--ap-ln); display: grid !important; place-items: center; }
.ap-av .ap-mark { width: 19px; }
.ap-chat__who b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.ap-chat__who .ap-mono { margin-top: 4px; }
.ap-chat__body { padding: 12px 14px; display: grid !important; gap: 8px; }
.ap-msg { display: grid !important; gap: 6px; padding: 10px 12px; border-radius: 14px; width: max-content; }
.ap-msg i { height: 7px; border-radius: 4px; }
.ap-msg--in { background: var(--ap-win2); border-bottom-left-radius: 4px; }
.ap-msg--in i { background: var(--ap-bar); }
.ap-msg--out { justify-self: end; background: var(--ap-o); border-bottom-right-radius: 4px; }
.ap-msg--out i { background: rgba(255, 255, 255, .78); }
.ap-typing { justify-self: end; display: flex !important; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(239, 67, 35, .1); }
.ap-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ap-o); animation: ap-bounce 1.2s ease-in-out infinite; }
.ap-typing i:nth-child(2) { animation-delay: .15s; }
.ap-typing i:nth-child(3) { animation-delay: .3s; }

/* secure: requests pass, bots stop at the filter; plugins, server software, monitoring */
.ap-urlbar { height: 36px; display: flex !important; align-items: center; gap: 10px; padding: 0 14px; background: var(--ap-win2); border-bottom: 1px solid var(--ap-ln); }
.ap-dots { display: flex !important; gap: 5px; }
.ap-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-bar); }
.ap-url { display: inline-flex !important; align-items: center; gap: 6px; height: 22px; margin: 0 auto; padding: 0 12px; border-radius: 999px; background: var(--ap-win); border: 1px solid var(--ap-ln); font: 500 10.5px/1 'JetBrains Mono', monospace; color: var(--ap-ink2); transform: translateX(-24px); }
.ap-url .ap-ic { width: 11px; height: 11px; color: var(--ap-o); }
.ap-lane { position: absolute; left: 14px; right: 14px; top: 50px; height: 142px; border-radius: 10px; background: var(--ap-win2); border: 1px solid var(--ap-ln); overflow: hidden; }
.ap-wall { position: absolute; left: var(--wall, 190px); top: 10px; bottom: 28px; width: 2px; background: repeating-linear-gradient(var(--ap-ink) 0 4px, transparent 4px 7px); opacity: .4; }
.ap-wallshield { position: absolute; left: calc(var(--wall, 190px) - 15px); top: 38px; width: 32px; height: 32px; border-radius: 50%; background: var(--ap-win); border: 1px solid var(--ap-ln); box-shadow: var(--ap-shadow); display: grid !important; place-items: center; color: var(--ap-o); z-index: 2; }
.ap-wallshield .ap-ic { width: 18px; height: 18px; }
.ap-site { position: absolute; right: 14px; top: 12px; width: 96px; height: 94px; border-radius: 10px; background: var(--ap-win); border: 1px solid var(--ap-ln); padding: 10px; display: grid !important; gap: 6px; align-content: start; }
.ap-site i { height: 6px; border-radius: 3px; background: var(--ap-bar); }
.ap-site i:first-child { height: 30px; border-radius: 6px; background: var(--ap-bar2); }
.ap-site i:nth-child(2) { width: 72%; background: var(--ap-ink); opacity: .7; }
.ap-req { position: absolute; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--ap-ink); opacity: .8; animation: ap-pass 4.8s linear infinite backwards; animation-delay: calc(var(--d, 0) * 1ms); }
.ap-req--bot { background: var(--ap-o); opacity: 1; animation-name: ap-block; }
@keyframes ap-pass { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: .8; } 70% { transform: translateX(var(--run, 296px)); opacity: .8; } 78%, 100% { transform: translateX(calc(var(--run, 296px) + 10px)); opacity: 0; } }
@keyframes ap-block { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 36% { transform: translateX(var(--stop, 168px)) scale(1); opacity: 1; } 46% { transform: translateX(var(--stop, 168px)) scale(2.6); opacity: 0; } 100% { transform: translateX(var(--stop, 168px)); opacity: 0; } }
.ap-lane__l, .ap-lane__m, .ap-lane__r { position: absolute; bottom: 9px; }
.ap-lane__l { left: 10px; } .ap-lane__m { left: var(--stop, 168px); } .ap-lane__r { right: 14px; }
.ap-reads { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 82px; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ap-read { border-radius: 10px; border: 1px solid var(--ap-ln); padding: 11px 12px; display: grid !important; align-content: space-between; }
.ap-read .ap-mono { line-height: 1.3; }
.ap-read b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.ap-read:first-child b { color: var(--ap-o); }
.ap-pulse { width: 100%; height: 26px; fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ap-pulse__bg { stroke: var(--ap-bar); }
.ap-pulse__fg { stroke: var(--ap-o); stroke-dasharray: 150; animation: ap-pulse 2.6s linear infinite; }
@keyframes ap-pulse { from { stroke-dashoffset: 150; } to { stroke-dashoffset: -150; } }
.is-c .ap-lane { left: 12px; right: 12px; top: 48px; height: 128px; }
.is-c .ap-site { right: 12px; width: 80px; height: 84px; }
.is-c .ap-reads { left: 12px; right: 12px; bottom: 12px; height: 98px; }
.is-c .ap-read { padding: 10px; }
.is-c .ap-url { transform: none; }

/* bespoke: generic templates struck out, one custom design built in their place */
.ap-tpl { width: 168px; height: 120px; padding: 10px; display: grid !important; gap: 8px; align-content: start; opacity: .25; filter: grayscale(1); transform: scale(.96); animation: ap-tpl 9s var(--ease) infinite; }
.ap-tpl__bar { height: 8px; width: 60%; border-radius: 4px; background: var(--ap-bar); }
.ap-tpl__hero { height: 44px; border-radius: 6px; background: var(--ap-bar2); border: 1px dashed var(--ap-ln2); }
.ap-tpl__row { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ap-tpl__row i { height: 26px; border-radius: 5px; background: var(--ap-bar2); }
.is-c .ap-tpl { width: 124px; height: 92px; padding: 8px; gap: 6px; }
.is-c .ap-tpl__hero { height: 30px; }
.is-c .ap-tpl__row i { height: 20px; }
@keyframes ap-tpl { 0%, 10% { opacity: 1; filter: none; transform: none; } 18%, 88% { opacity: .25; filter: grayscale(1); transform: scale(.96); } 100% { opacity: 1; filter: none; transform: none; } }
.ap-strike { position: absolute; left: 0; top: 0; width: 100%; height: 100%; fill: none; stroke: var(--ap-o); stroke-width: 2.4; stroke-linecap: round; }
.ap-strike path { stroke-dasharray: 100; animation: ap-strike 9s var(--ease) infinite; }
@keyframes ap-strike { 0%, 3% { stroke-dashoffset: 100; opacity: 1; } 11%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.ap-flow { position: absolute; width: 40px; height: 8px; }
.ap-flow i { position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ap-o); animation: ap-flow 1.6s linear infinite; }
.ap-flow i:nth-child(2) { animation-delay: .5s; } .ap-flow i:nth-child(3) { animation-delay: 1s; }
@keyframes ap-flow { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(var(--fl, 34px)); opacity: 0; } }
.ap-custom { padding: 14px; display: grid !important; gap: 12px; align-content: start; }
.ap-custom__nav { display: flex !important; align-items: center; gap: 8px; }
.ap-custom__nav i { width: 24px; height: 6px; border-radius: 3px; background: var(--ap-bar); }
.ap-custom__nav i:first-of-type { margin-left: auto; }
.ap-custom__nav b { width: 40px; height: 16px; border-radius: 999px; background: var(--ap-ink); }
.ap-custom__blob { height: 106px; border-radius: 12px; background: radial-gradient(circle at 70% 64%, var(--ap-o3) 0, var(--ap-o) 30%, var(--ap-o2) 46%, transparent 47%), radial-gradient(circle at 30% 34%, var(--ap-o2) 0, var(--ap-o) 13%, transparent 14%), var(--ap-win2); }
.ap-custom__h { display: grid !important; gap: 6px; }
.ap-custom__h i { height: 12px; border-radius: 4px; background: var(--ap-ink); }
.ap-custom__h i:first-child { width: 86%; } .ap-custom__h i:last-child { width: 58%; }
.ap-custom__p { display: grid !important; gap: 6px; }
.ap-custom__p i { height: 6px; border-radius: 3px; background: var(--ap-bar); }
.ap-custom__btn { width: 88px; height: 22px; border-radius: 999px; background: var(--ap-o); }

/* team: four stages joined by one orange thread that gathers into one team */
.ap-thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; fill: none; }
.ap-thread path { stroke: var(--ap-ln2); stroke-width: 2; stroke-dasharray: 4 6; }
.ap-thread .ap-thread__fg { stroke: var(--ap-o); stroke-width: 2.4; stroke-dasharray: 100; stroke-dashoffset: 0; animation: ap-draw 6s linear infinite; }
@keyframes ap-draw { 0% { stroke-dashoffset: 100; opacity: 1; } 55%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.ap-node { width: 100px; height: 112px; padding: 12px; display: grid !important; align-content: space-between; justify-items: start; z-index: 1; border-color: var(--ap-o); box-shadow: 0 0 0 3px rgba(239, 67, 35, .12), var(--ap-shadow); animation: 6s linear infinite; }
.ap-node:nth-child(2) { animation-name: ap-tn0; } .ap-node:nth-child(3) { animation-name: ap-tn1; }
.ap-node:nth-child(4) { animation-name: ap-tn2; } .ap-node:nth-child(5) { animation-name: ap-tn3; }
@keyframes ap-tn0 { 0%, 96%, 100% { border-color: var(--ap-ln); box-shadow: var(--ap-shadow); } 2%, 90% { border-color: var(--ap-o); box-shadow: 0 0 0 3px rgba(239, 67, 35, .12), var(--ap-shadow); } }
@keyframes ap-tn1 { 0%, 19%, 96%, 100% { border-color: var(--ap-ln); box-shadow: var(--ap-shadow); } 21%, 90% { border-color: var(--ap-o); box-shadow: 0 0 0 3px rgba(239, 67, 35, .12), var(--ap-shadow); } }
@keyframes ap-tn2 { 0%, 35%, 96%, 100% { border-color: var(--ap-ln); box-shadow: var(--ap-shadow); } 37%, 90% { border-color: var(--ap-o); box-shadow: 0 0 0 3px rgba(239, 67, 35, .12), var(--ap-shadow); } }
@keyframes ap-tn3 { 0%, 55%, 96%, 100% { border-color: var(--ap-ln); box-shadow: var(--ap-shadow); } 57%, 90% { border-color: var(--ap-o); box-shadow: 0 0 0 3px rgba(239, 67, 35, .12), var(--ap-shadow); } }
.ap-node__ic { width: 30px; height: 30px; border-radius: 9px; background: var(--ap-win2); display: grid !important; place-items: center; color: var(--ap-ink); }
.ap-node__ic .ap-ic { width: 17px; height: 17px; }
.ap-node b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.ap-node__n { position: absolute; right: 10px; top: 12px; }
.is-c .ap-node { width: 78px; height: 100px; padding: 10px; }
.is-c .ap-node b { font-size: 12.5px; }
.is-c .ap-node__ic { width: 28px; height: 28px; }
.is-c .ap-node__n { right: 8px; top: 10px; }
.ap-runner { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ap-o); box-shadow: 0 0 0 5px rgba(239, 67, 35, .16); z-index: 2; offset-rotate: 0deg; offset-distance: 100%; animation: ap-run 6s linear infinite; }
@keyframes ap-run { 0% { offset-distance: 0%; opacity: 1; } 55% { offset-distance: 100%; opacity: 1; } 62%, 100% { offset-distance: 100%; opacity: 0; } }
.ap-oneteam { display: flex !important; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; border-color: var(--ap-o); animation: ap-one 6s linear infinite; }
@keyframes ap-one { 0%, 60%, 96%, 100% { border-color: var(--ap-ln); transform: none; } 63% { transform: scale(1.04); } 66%, 90% { border-color: var(--ap-o); transform: none; } }
.ap-avs { display: flex !important; flex: none; }
.ap-avs i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ap-win); margin-left: -9px; }
.ap-avs i:first-child { margin-left: 0; background: var(--ap-o); }
.ap-avs i:nth-child(2) { background: var(--ap-ink); }
.ap-avs i:nth-child(3) { background: var(--ap-bar); }
.ap-oneteam b { font-size: 13px; font-weight: 600; }
.ap-oneteam .ap-mono { margin-top: 5px; white-space: nowrap; }

/* consistent: one brand system feeding a site, a deck, an announcement and a post */
.ap-links { position: absolute; left: 0; top: 0; width: 100%; height: 100%; fill: none; stroke: var(--ap-o); stroke-width: 1.6; stroke-dasharray: 3 5; opacity: .7; }
.ap-links path { animation: ap-dash 1.4s linear infinite; }
@keyframes ap-dash { to { stroke-dashoffset: -16; } }
.ap-art__in { padding: 10px; display: grid !important; gap: 6px; align-content: start; justify-items: start; }
.ap-art__in i { height: 6px; border-radius: 3px; background: var(--ap-bar); }
.ap-art .ap-mark { width: 22px; }
.ap-mini-bar { height: 18px; display: flex !important; gap: 4px; align-items: center; padding: 0 8px; background: var(--ap-win2); border-bottom: 1px solid var(--ap-ln); }
.ap-mini-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--ap-bar); }
.ap-acc { background: var(--ap-o); animation: ap-sync 3.2s var(--ease) infinite; }
@keyframes ap-sync { 0%, 58%, 100% { filter: none; transform: none; } 68% { filter: brightness(1.12) saturate(1.2); transform: scale(1.05); } }
.ap-acc--hero { width: 100%; height: 30px; border-radius: 6px; }
.ap-acc--title { width: 80px; height: 12px; border-radius: 4px; }
.ap-chart { display: flex !important; align-items: flex-end; gap: 5px; height: 50px; margin-top: 2px; }
.ap-chart i { width: 16px; border-radius: 3px 3px 0 0; background: var(--ap-bar); }
.ap-chart i.ap-acc { background: var(--ap-o); transform-origin: bottom; }
.ap-acc--rule { width: 100%; height: 3px; border-radius: 2px; margin: 3px 0; }
.ap-art--ann .ap-mono { font-size: 9px; }
.is-c .ap-art--ann .ap-mono { font-size: 10px; }
.ap-acc--blob { position: absolute; right: -26px; top: -26px; width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--ap-o3), var(--ap-o) 55%, var(--ap-o2)); }
.ap-art--post .ap-art__in { position: absolute; left: 0; bottom: 0; }
.ap-token { position: absolute; transform: translate(-50%, -50%); display: grid !important; justify-items: center; gap: 8px; z-index: 2; }
.ap-token__sw { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--ap-o3), var(--ap-o) 55%, var(--ap-o2)); box-shadow: 0 0 0 8px var(--ap-ground), 0 0 0 9px var(--ap-ln); animation: ap-sync 3.2s var(--ease) infinite; animation-delay: -.3s; }
.ap-token .ap-mono { padding: 3px 6px; border-radius: 4px; background: var(--ap-ground); white-space: nowrap; }

/* speed: one announcement from draft to live */
.ap-ann { position: absolute; inset: 0; }
.ap-ann__doc { top: 70px; width: 100px; height: 150px; padding: 10px; display: grid !important; gap: 8px; align-content: start; animation: ap-move 6s var(--ease) infinite; }
@keyframes ap-move { 0%, 8% { transform: translateX(calc(var(--tw, 400px) * -1)); opacity: 1; } 25%, 33% { transform: translateX(calc(var(--tw, 400px) * -.6667)); } 50%, 58% { transform: translateX(calc(var(--tw, 400px) * -.3333)); } 75%, 90% { transform: translateX(0); opacity: 1; } 96% { transform: translateX(0); opacity: 0; } 100% { transform: translateX(calc(var(--tw, 400px) * -1)); opacity: 0; } }
.ap-ann__logo .ap-mark { width: 20px; }
.ap-ann__head { height: 10px; width: 72%; border-radius: 3px; background: var(--ap-o); animation: ap-head 6s infinite; }
@keyframes ap-head { 0%, 22% { background: var(--ap-bar); } 26%, 100% { background: var(--ap-o); } }
.ap-ann__p { display: grid !important; gap: 6px; }
.ap-ann__p i { height: 5px; border-radius: 3px; background: var(--ap-bar); }
.ap-ann__stamp { position: absolute; right: 8px; bottom: 28px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ap-o); color: var(--ap-o); display: grid !important; place-items: center; animation: ap-stamp 6s var(--ease) infinite; }
.ap-ann__stamp .ap-ic { width: 14px; height: 14px; stroke-width: 2.4; }
@keyframes ap-stamp { 0%, 48% { opacity: 0; transform: scale(1.5); } 52%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.ap-ann__live { position: absolute; left: 10px; bottom: 9px; height: 17px; padding: 0 8px; border-radius: 999px; background: var(--ap-o); color: #fff; font-size: 10px; font-weight: 600; line-height: 17px; animation: ap-live 6s var(--ease) infinite; }
@keyframes ap-live { 0%, 73% { opacity: 0; transform: translateY(4px); } 77%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.ap-tl { position: absolute; left: 60px; right: 60px; top: 262px; height: 2px; background: var(--ap-ln2); }
.ap-tl__fill { position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--ap-o); transform-origin: left; animation: ap-fill 6s var(--ease) infinite; }
@keyframes ap-fill { 0%, 8% { transform: scaleX(0); } 25%, 33% { transform: scaleX(.3333); } 50%, 58% { transform: scaleX(.6667); } 75%, 90% { transform: scaleX(1); } 96%, 100% { transform: scaleX(1); opacity: 0; } }
.ap-tl__node { position: absolute; top: -6px; transform: translateX(-50%); }
.ap-tl__node i { width: 14px; height: 14px; border-radius: 50%; background: var(--ap-o); border: 2px solid var(--ap-o); }
.ap-tl__node:nth-child(2) i { animation: ap-n0 6s infinite; } .ap-tl__node:nth-child(3) i { animation: ap-n1 6s infinite; }
.ap-tl__node:nth-child(4) i { animation: ap-n2 6s infinite; } .ap-tl__node:nth-child(5) i { animation: ap-n3 6s infinite; }
@keyframes ap-n0 { 0%, 96%, 100% { background: var(--ap-win); border-color: var(--ap-ln2); } 4%, 92% { background: var(--ap-o); border-color: var(--ap-o); } }
@keyframes ap-n1 { 0%, 24%, 96%, 100% { background: var(--ap-win); border-color: var(--ap-ln2); } 27%, 92% { background: var(--ap-o); border-color: var(--ap-o); } }
@keyframes ap-n2 { 0%, 49%, 96%, 100% { background: var(--ap-win); border-color: var(--ap-ln2); } 52%, 92% { background: var(--ap-o); border-color: var(--ap-o); } }
@keyframes ap-n3 { 0%, 74%, 96%, 100% { background: var(--ap-win); border-color: var(--ap-ln2); } 77%, 92% { background: var(--ap-o); border-color: var(--ap-o); } }
.ap-tl__node .ap-mono { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.is-c .ap-ann__doc { top: 74px; width: 88px; height: 132px; padding: 9px; gap: 7px; }
.is-c .ap-tl { left: 50px; right: 50px; top: 250px; }

/* quality: a deck page with crop marks, a grid, measurements and a loupe */
.ap-crop { position: absolute; }
.ap-crop i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ap-ink2); }
.ap-crop i:nth-child(1) { left: -20px; top: -20px; border-right-width: 1px; border-bottom-width: 1px; }
.ap-crop i:nth-child(2) { right: -20px; top: -20px; border-left-width: 1px; border-bottom-width: 1px; }
.ap-crop i:nth-child(3) { left: -20px; bottom: -20px; border-right-width: 1px; border-top-width: 1px; }
.ap-crop i:nth-child(4) { right: -20px; bottom: -20px; border-left-width: 1px; border-top-width: 1px; }
.ap-cols { position: absolute; inset: 0 22px; background: repeating-linear-gradient(90deg, rgba(239, 67, 35, .055) 0 22px, transparent 22px 30px); animation: ap-cols 7s var(--ease) infinite; }
@keyframes ap-cols { 0%, 100% { opacity: .2; } 40%, 70% { opacity: 1; } }
.ap-page__in { position: absolute; inset: 26px 30px 22px 54px; display: grid !important; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 26px; row-gap: 10px; }
.ap-page__k { grid-column: 1; }
.ap-page__h { grid-column: 1; height: 15px; width: 92%; border-radius: 4px; background: var(--ap-ink); }
.ap-page__h--2 { width: 64%; }
.ap-page__chart { grid-column: 2; grid-row: 1 / span 4; display: flex !important; align-items: flex-end; gap: 10px; padding: 0 4px; border-bottom: 1px solid var(--ap-ln2); }
.ap-page__chart i { flex: 1; border-radius: 4px 4px 0 0; background: var(--ap-bar); transform-origin: bottom; animation: ap-grow 7s var(--ease) infinite; }
.ap-page__chart i:nth-child(2) { animation-delay: .1s; } .ap-page__chart i:nth-child(3) { animation-delay: .2s; } .ap-page__chart i:nth-child(4) { animation-delay: .3s; } .ap-page__chart i:nth-child(5) { animation-delay: .4s; }
.ap-o-bg { background: var(--ap-o) !important; }
@keyframes ap-grow { 0%, 6% { transform: scaleY(.15); } 22%, 90% { transform: none; } 100% { transform: scaleY(.15); } }
.ap-dim { position: absolute; border: 0 solid var(--ap-o); animation: ap-dimp 7s var(--ease) infinite; }
.ap-dim .ap-mono { position: absolute; color: var(--ap-o); }
.ap-dim--v { left: 12px; top: 26px; width: 7px; height: 48px; border-width: 1px 0 1px 1px; }
.ap-dim--v .ap-mono { left: 12px; top: 50%; transform: translateY(-50%); }
.ap-dim--h { left: 0; bottom: 22px; width: 30px; height: 7px; border-width: 0 1px 1px 1px; }
.ap-dim--h .ap-mono { left: 50%; top: 12px; transform: translateX(-50%); }
@keyframes ap-dimp { 0%, 100% { opacity: .35; } 40%, 70% { opacity: 1; } }
.ap-loupe { position: absolute; left: 318px; top: 116px; width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--ap-ink); background: rgba(255, 255, 255, .1); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .4), inset 0 0 0 5px rgba(255, 255, 255, .35); animation: ap-loupe 9s var(--ease) infinite; }
.ap-loupe i { position: absolute; right: -24px; bottom: -12px; width: 32px; height: 6px; border-radius: 3px; background: var(--ap-ink); transform: rotate(40deg); }
@keyframes ap-loupe { 0%, 100% { transform: none; } 30% { transform: translate(-52px, 30px); } 62% { transform: translate(26px, -26px); } }
.is-c .ap-page__in { inset: 22px 22px 18px 46px; column-gap: 18px; }
.is-c .ap-page__h { height: 13px; }
.is-c .ap-dim--v { top: 22px; height: 40px; }
.is-c .ap-loupe { left: 196px; top: 110px; width: 74px; height: 74px; }

/* found: a search that ranks your site first, and an AI answer that cites it */
.ap-serp { padding: 14px; display: grid !important; gap: 14px; align-content: start; }
.ap-q { height: 34px; border-radius: 999px; border: 1px solid var(--ap-ln2); display: flex !important; align-items: center; gap: 8px; padding: 0 12px; }
.ap-q__ic { width: 15px; height: 15px; color: var(--ap-ink2); }
.ap-q__t { width: var(--qt, 150px); height: 7px; border-radius: 4px; background: var(--ap-ink); opacity: .6; animation: ap-type 9s steps(14) infinite; }
@keyframes ap-type { 0% { width: 0; } 22%, 92% { width: var(--qt, 150px); } 100% { width: 0; } }
.ap-caret { width: 1.5px; height: 14px; background: var(--ap-o); animation: ap-blink 1s steps(1) infinite; }
.ap-res { position: relative; height: 212px; }
.ap-r { position: absolute; left: 0; right: 0; height: 62px; padding: 10px 12px; border-radius: 10px; display: grid !important; grid-template-columns: 22px 1fr; column-gap: 10px; row-gap: 6px; align-content: center; }
.ap-r i { grid-column: 2; height: 6px; border-radius: 3px; background: var(--ap-bar); }
.ap-fav { grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 6px; background: var(--ap-bar2); }
.ap-r--you { top: 0; background: rgba(239, 67, 35, .07); border: 1px solid rgba(239, 67, 35, .26); animation: ap-rise 9s var(--ease) infinite; }
.ap-fav--you { background: var(--ap-win); border: 1px solid var(--ap-ln); display: grid !important; place-items: center; }
.ap-fav--you .ap-mark { width: 15px; }
.ap-r__url { grid-column: 2; color: var(--ap-o) !important; }
.ap-r--a { top: 72px; animation: ap-down1 9s var(--ease) infinite; }
.ap-r--b { top: 144px; animation: ap-down2 9s var(--ease) infinite; }
@keyframes ap-rise { 0%, 24% { transform: translateY(144px); } 40%, 90% { transform: none; } 100% { transform: translateY(144px); } }
@keyframes ap-down1 { 0%, 24% { transform: translateY(-72px); } 40%, 90% { transform: none; } 100% { transform: translateY(-72px); } }
@keyframes ap-down2 { 0%, 24% { transform: translateY(-72px); } 40%, 90% { transform: none; } 100% { transform: translateY(-72px); } }
.ap-ai { padding: 14px; display: grid !important; gap: 12px; align-content: start; }
.ap-ai__head { display: flex !important; align-items: center; gap: 8px; }
.ap-ai__ic { width: 22px; height: 22px; border-radius: 7px; background: rgba(239, 67, 35, .1); color: var(--ap-o); display: grid !important; place-items: center; }
.ap-ai__ic .ap-ic { width: 13px; height: 13px; }
.ap-ai__p { display: grid !important; gap: 8px; }
.ap-ai__p i { height: 7px; border-radius: 4px; background: var(--ap-bar); }
.ap-cite { display: inline-flex !important; align-items: center; gap: 6px; width: max-content; height: 24px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid rgba(239, 67, 35, .35); background: rgba(239, 67, 35, .06); font: 500 10px/1 'JetBrains Mono', monospace; color: var(--ap-o); }
.ap-cite .ap-mark { width: 17px; }
.is-c .ap-serp, .is-c .ap-ai { padding: 12px; }
.is-c .ap-serp { gap: 12px; }

/* ======================================================================
   SCROLL STYLES (story, focus, sticky, stack, calm). Desktop only: on phones they all become one
   calm flow (see the phone block below). Everything is scrubbed by approach.js through --o
   (how much a point is shown), --ty (its drift), --e (how far a row has entered) and --sc (card scale).
   ====================================================================== */
.ap-stick { display: none; }
html:is([data-approach="story"], [data-approach="focus"], [data-approach="sticky"], [data-approach="stack"], [data-approach="calm"], [data-approach="tabs"]) .approach .ap-vis {
  border-radius: 24px; background: var(--ap-tile); border: 1px solid var(--ap-ln); box-shadow: var(--ap-frame-shadow);
}
@media (min-width: 900px) {
  /* ---------- STORY and FOCUS share a pinned frame; each point gets half a screen of scroll ---------- */
  html:is([data-approach="story"], [data-approach="focus"]) .approach {
    --fh: min(600px, calc(100svh - 170px));
    --ft: calc(50svh - var(--fh) / 2 + 38px);
    padding-bottom: clamp(48px, 5vw, 88px);
  }
  html:is([data-approach="story"], [data-approach="focus"]) .approach .approach__list { display: block; position: relative; height: calc(var(--fh) + 200svh); }
  html:is([data-approach="story"], [data-approach="focus"]) .approach .approach__list > li.ap-item {
    position: sticky; top: var(--ft); height: var(--fh); pointer-events: none; align-content: stretch;
  }
  html:is([data-approach="story"], [data-approach="focus"]) .approach .approach__list > li.ap-item + li.ap-item { margin-top: calc(-1 * var(--fh)); }

  /* STORY: one point at a time. The copy block has a fixed height and the title a fixed two line
     slot sitting on one baseline, so titles of any length never move the sentence or the visual. */
  html[data-approach="story"] .approach { --tfs: clamp(38px, 3.5vw, 54px); }
  html[data-approach="story"] .approach .approach__list > li.ap-item {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); grid-template-rows: minmax(0, 1fr); align-items: center;
    column-gap: clamp(36px, 4.2vw, 64px);
  }
  html[data-approach="story"] .ap-item .ap-copy {
    grid-column: 1; grid-row: 1; height: min(100%, 380px);
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto calc(var(--tfs) * 2.06 + 26px) auto; align-content: center; column-gap: 16px;
  }
  html[data-approach="story"] .ap-item .ap-rail { display: flex; gap: 6px; align-self: center; }
  html[data-approach="story"] .ap-item .approach__n { align-self: center; }
  html[data-approach="story"] .approach .ap-item h3 { grid-column: 1 / -1; align-self: end; margin-top: 22px; font-size: var(--tfs); line-height: 1.02; letter-spacing: -.04em; }
  html[data-approach="story"] .approach .ap-item p { grid-column: 1 / -1; align-self: start; margin-top: 20px; font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.55; color: var(--fg-2); max-width: 34ch; min-height: calc(1.55em * 4); }
  html[data-approach="story"] .ap-item .ap-copy > :is(h3, p) { opacity: var(--ot, 0); translate: 0 var(--ty, 0px); }
  html[data-approach="story"] .ap-item .ap-copy > :is(.ap-rail, .approach__n) { opacity: var(--o, 0); }
  html[data-approach="story"] .ap-item .ap-vis {
    grid-column: 2; grid-row: 1; justify-self: end; width: min(100%, calc(var(--fh) * 520 / 340)); aspect-ratio: 520 / 340;
    opacity: var(--o, 0); scale: calc(.985 + var(--o, 0) * .015);
  }

  /* FOCUS: four rows in fixed slots that never resize. The point in view lights up and fills its line;
     its sentence shows in one fixed place below the rows, its visual beside them. */
  html[data-approach="focus"] .approach .approach__list > li.ap-item {
    display: grid; grid-template-columns: 40px minmax(0, .82fr) minmax(0, 1.3fr);
    grid-template-rows: minmax(0, 1fr) repeat(4, 68px) 28px 150px minmax(0, 1fr); column-gap: 0;
  }
  html[data-approach="focus"] .ap-item .ap-copy, html[data-approach="focus"] .ap-item .ap-rail { display: contents; }
  html[data-approach="focus"] .ap-item .ap-rail { display: none; }
  html[data-approach="focus"] .ap-item .approach__n {
    grid-column: 1; grid-row: var(--r); display: flex; align-items: center; border-top: 1px solid var(--ln);
    color: color-mix(in srgb, var(--ap-o) calc(var(--o, 0) * 100%), var(--ap-dim));
  }
  html[data-approach="focus"] .approach .ap-item h3 {
    grid-column: 2; grid-row: var(--r); position: relative; display: flex; align-items: center; min-width: 0; border-top: 1px solid var(--ln);
    font-size: clamp(22px, 1.85vw, 28px); line-height: 1.2; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: color-mix(in srgb, var(--fg) calc(var(--o, 0) * 100%), var(--fg-3)); pointer-events: auto; cursor: pointer;
  }
  html[data-approach="focus"] .approach .ap-item h3::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ap-o); transform-origin: left; transform: scaleX(var(--f, 0)); opacity: var(--o, 0); }
  html[data-approach="focus"] .approach .approach__list > li:last-child :is(h3, .approach__n) { box-shadow: 0 1px 0 var(--ln); }
  html[data-approach="focus"] .approach .ap-item p {
    grid-column: 1 / 3; grid-row: 7; align-self: start; padding-left: 40px; font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.55; color: var(--fg-2); max-width: 46ch;
    opacity: var(--ot, 0); translate: 0 var(--ty, 0px);
  }
  html[data-approach="focus"] .ap-item .ap-vis {
    grid-column: 3; grid-row: 1 / -1; align-self: center; justify-self: end; margin-left: clamp(36px, 4.2vw, 64px);
    width: min(calc(100% - clamp(36px, 4.2vw, 64px)), calc(var(--fh) * 520 / 340)); aspect-ratio: 520 / 340; opacity: var(--o, 0);
  }

  /* ---------- STICKY: the text flows in place; one pinned visual beside it follows the scroll ---------- */
  html[data-approach="sticky"] .approach .approach__list { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); column-gap: clamp(40px, 5vw, 88px); }
  html[data-approach="sticky"] .approach .approach__list > li.ap-item { grid-column: 1; display: grid; align-content: center; min-height: 34svh; padding: 2svh 0; }
  html[data-approach="sticky"] .ap-item .ap-copy { display: grid; grid-template-columns: 40px minmax(0, 1fr); row-gap: 16px; opacity: calc(.28 + var(--o, 0) * .72); }
  html[data-approach="sticky"] .ap-item .approach__n { padding-top: .9em; }
  html[data-approach="sticky"] .approach .ap-item h3 { grid-column: 2; font-size: clamp(32px, 3vw, 46px); line-height: 1.04; letter-spacing: -.035em; }
  html[data-approach="sticky"] .approach .ap-item p { grid-column: 2; font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.6; color: var(--fg-2); max-width: 36ch; }
  html[data-approach="sticky"] .approach .ap-stick { display: block; grid-column: 2; grid-row: 1 / span 4; }
  html[data-approach="sticky"] .ap-stick__in {
    position: sticky; top: calc(50svh + 38px - var(--sh, 480px) / 2); margin-left: auto;
    width: min(100%, calc((100svh - 170px) * 520 / 340)); aspect-ratio: 520 / 340;
  }
  html[data-approach="sticky"] .ap-stick .ap-vis { position: absolute; inset: 0; opacity: var(--o, 0); scale: calc(.985 + var(--o, 0) * .015); }

  /* ---------- STACK: full width cards pin and stack, each a little lower than the last ---------- */
  html[data-approach="stack"] .approach .approach__list { display: block; position: relative; }
  html[data-approach="stack"] .approach .approach__list > li.ap-item {
    position: sticky; top: calc(104px + var(--r, 2) * 14px - 28px); height: min(560px, calc(100svh - 190px)); margin-bottom: 14svh;
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); grid-template-rows: minmax(0, 1fr); align-items: center; column-gap: clamp(36px, 4vw, 64px);
    padding: clamp(24px, 2.6vw, 40px); border-radius: 32px; background: var(--ap-tile); border: 1px solid var(--ap-ln);
    box-shadow: 0 -1px 0 var(--ap-ln), 0 30px 70px -40px rgba(13, 13, 13, .3);
    transform-origin: 50% 0; scale: var(--sc, 1);
  }
  html[data-approach="stack"] .approach .approach__list > li.ap-item:last-of-type { margin-bottom: 0; }
  html[data-approach="stack"] .approach .ap-stick { display: block; height: 22svh; }
  html[data-approach="stack"] .ap-item .ap-copy { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr); row-gap: 16px; align-self: center; }
  html[data-approach="stack"] .ap-item .approach__n { padding-top: .9em; }
  html[data-approach="stack"] .approach .ap-item h3 { grid-column: 2; font-size: clamp(32px, 3vw, 46px); line-height: 1.04; letter-spacing: -.035em; }
  html[data-approach="stack"] .approach .ap-item p { grid-column: 2; font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.6; color: var(--fg-2); max-width: 34ch; }
  html[data-approach="stack"] .ap-item .ap-vis { grid-column: 2; grid-row: 1; justify-self: end; align-self: stretch; height: auto; width: auto; max-width: 100%; aspect-ratio: 520 / 340; border-radius: 20px; box-shadow: none; background: var(--ap-ground); }

  /* ---------- CALM: no pinning; rows in normal flow, each visual eases in as it enters ---------- */
  html[data-approach="calm"] .approach .approach__list { display: block; position: relative; padding-left: 44px; }
  html[data-approach="calm"] .approach .approach__list::before, html[data-approach="calm"] .approach .approach__list::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--ln); }
  html[data-approach="calm"] .approach .approach__list::after { background: var(--ap-o); transform-origin: top; transform: scaleY(var(--sp, 0)); }
  html[data-approach="calm"] .approach .approach__list > li.ap-item {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); align-items: center; column-gap: clamp(40px, 5vw, 88px);
    padding: clamp(40px, 5vw, 72px) 0;
  }
  html[data-approach="calm"] .approach .approach__list > li.ap-item + li.ap-item { border-top: 1px solid var(--ln); }
  html[data-approach="calm"] .ap-item .ap-copy { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr); row-gap: 16px; opacity: calc(.35 + var(--e, 1) * .65); translate: 0 calc((1 - var(--e, 1)) * 18px); }
  html[data-approach="calm"] .ap-item .approach__n { padding-top: .9em; }
  html[data-approach="calm"] .approach .ap-item h3 { grid-column: 2; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.05; letter-spacing: -.035em; }
  html[data-approach="calm"] .approach .ap-item p { grid-column: 2; font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.6; color: var(--fg-2); max-width: 36ch; }
  html[data-approach="calm"] .ap-item .ap-vis { grid-column: 2; grid-row: 1; aspect-ratio: 520 / 340; width: min(100%, calc((100svh - 220px) * 520 / 340)); justify-self: end; opacity: var(--e, 1); translate: 0 calc((1 - var(--e, 1)) * 56px); scale: calc(.96 + var(--e, 1) * .04); }
}

/* ---------- TABS: four tabs, one panel; the active tab's bar fills, then the next point shows ---------- */
html[data-approach="tabs"] .approach .ap-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); margin-bottom: clamp(28px, 3.2vw, 48px);
}
.ap-tabs button {
  appearance: none; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline;
  margin: 0; padding: 20px 0 6px; border: 0; background: none; font: inherit; text-align: left; color: var(--fg-3); cursor: pointer; transition: color .4s ease;
}
.ap-tabs button:hover { color: var(--fg-2); }
.ap-tabs button[aria-selected="true"] { color: var(--fg); }
.ap-tabs button:focus-visible { outline: 2px solid var(--ap-o); outline-offset: 6px; border-radius: 6px; }
.ap-tabs__bar { position: absolute; left: 0; right: 0; top: 0; display: block; height: 2px; border-radius: 2px; background: var(--ln); overflow: hidden; }
.ap-tabs__bar b { position: absolute; inset: 0; display: block; background: var(--ap-o); transform-origin: left; transform: scaleX(0); }
.ap-tabs button[aria-selected="true"] .ap-tabs__bar b { transform: none; }
.approach.is-auto .ap-tabs button[aria-selected="true"] .ap-tabs__bar b { animation: ap-tabfill 7s linear both; }
.approach.is-auto:not(.is-inview) .ap-tabs__bar b, .approach.is-auto .wrap:has(.ap-tabs:hover, .approach__list:hover) .ap-tabs__bar b { animation-play-state: paused; }
@keyframes ap-tabfill { from { transform: scaleX(0); } to { transform: none; } }
.ap-tabs__n { font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; color: var(--ap-dim); transition: color .4s ease; }
.ap-tabs button[aria-selected="true"] .ap-tabs__n { color: var(--ap-o); }
.ap-tabs__t { font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
html[data-approach="tabs"] .approach .approach__list { display: grid; grid-template-columns: minmax(0, 1fr); }
html[data-approach="tabs"] .approach .approach__list > li.ap-item {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); align-items: center; column-gap: clamp(36px, 4.2vw, 64px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
html[data-approach="tabs"] .approach .approach__list > li.ap-item.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
html[data-approach="tabs"] .ap-item .ap-copy { grid-column: 1; grid-row: 1; display: grid; gap: 14px; }
html[data-approach="tabs"] .ap-item .approach__n { display: none; }
html[data-approach="tabs"] .approach .ap-item h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the tab shows the title */
html[data-approach="tabs"] .approach .ap-item p { font-size: clamp(19px, 1.65vw, 24px); line-height: 1.5; letter-spacing: -.01em; color: var(--fg); max-width: 24ch; }
html[data-approach="tabs"] .ap-item .ap-copy > * { opacity: 0; translate: 0 10px; transition: opacity .5s var(--ease), translate .7s var(--ease); }
html[data-approach="tabs"] .ap-item.is-active .ap-copy > * { opacity: 1; translate: 0 0; transition-delay: .06s; }
html[data-approach="tabs"] .ap-item .ap-vis { grid-column: 2; grid-row: 1; justify-self: end; width: min(100%, calc((100svh - 300px) * 520 / 340)); aspect-ratio: 520 / 340; }

/* ======================================================================
   BENTO
   ====================================================================== */
html[data-approach="bento"] .approach .approach__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
html[data-approach="bento"] .approach .approach__list > li.ap-item {
  grid-column: span 5; display: flex; flex-direction: column; padding: 10px; border-radius: 28px;
  background: var(--ap-tile); border: 1px solid var(--ap-ln);
  box-shadow: 0 1px 2px rgba(13, 13, 13, .03);
  opacity: 0; translate: 0 26px;
  transform: perspective(1400px) rotateX(calc(var(--ty, 0) * -1.4deg)) rotateY(calc(var(--tx, 0) * 1.4deg));
  transition: opacity .9s var(--ease) var(--ad, 0ms), translate .9s var(--ease) var(--ad, 0ms), transform .8s var(--ease), box-shadow .6s var(--ease), border-color .5s ease;
}
html[data-approach="bento"] .approach .approach__list > li.ap-item:nth-child(1), html[data-approach="bento"] .approach .approach__list > li.ap-item:nth-child(4) { grid-column: span 7; }
html[data-approach="bento"] .approach .approach__list > li.ap-item.is-shown { opacity: 1; translate: 0 0; }
html[data-approach="bento"] .approach .approach__list > li.ap-item.is-shown:hover { translate: 0 -5px; transition-delay: 0ms; box-shadow: 0 34px 64px -34px rgba(13, 13, 13, .3); border-color: var(--ap-ln2); }
html[data-approach="bento"] .ap-item .ap-vis { height: clamp(280px, 25vw, 360px); border-radius: 20px; background: var(--ap-ground); }
html[data-approach="bento"] .ap-item .ap-copy { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 10px; align-items: baseline; padding: 22px 16px 14px; }
html[data-approach="bento"] .ap-item .approach__n { grid-row: 1; }
html[data-approach="bento"] .approach .ap-item h3 { grid-column: 2; font-size: clamp(22px, 2vw, 30px); line-height: 1.08; }
html[data-approach="bento"] .approach .ap-item p { grid-column: 2; font-size: 15.5px; line-height: 1.58; color: var(--fg-2); }

/* ======================================================================
   ROWS, large lines that light up in turn
   ====================================================================== */
html[data-approach="rows"] .approach .approach__list { display: block; position: relative; }
html[data-approach="rows"] .approach .approach__list > li.ap-item { position: relative; display: block; padding: clamp(26px, 3vw, 46px) 0; }
html[data-approach="rows"] .approach .approach__list::before, html[data-approach="rows"] .approach .approach__list > li.ap-item::after { content: ''; position: absolute; left: 0; right: 520px; height: 1px; background: var(--ln); }
html[data-approach="rows"] .approach .approach__list::before { top: 0; }
html[data-approach="rows"] .approach .approach__list > li.ap-item::after { bottom: 0; }
html[data-approach="rows"] .ap-item .ap-copy { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 24px; max-width: calc(100% - 520px); }
html[data-approach="rows"] .ap-item .approach__n { padding-top: .9em; color: var(--ap-dim); transition: color .6s var(--ease); }
html[data-approach="rows"] .approach .ap-item h3 { font-size: clamp(40px, 6.2vw, 108px); line-height: .98; letter-spacing: -.045em; color: var(--ap-dim); transition: color .7s var(--ease); }
html[data-approach="rows"] .ap-item .ap-vis, html[data-approach="rows"] .approach .ap-item p {
  position: absolute; right: 0; width: 460px; opacity: 0; translate: 24px 0; pointer-events: none;
  transition: opacity .7s var(--ease), translate .9s var(--ease);
}
html[data-approach="rows"] .ap-item .ap-vis { top: clamp(26px, 3vw, 46px); aspect-ratio: 520 / 340; border-radius: 20px; background: var(--ap-tile); border: 1px solid var(--ap-ln); }
html[data-approach="rows"] .approach .ap-item p { top: calc(clamp(26px, 3vw, 46px) + 322px); font-size: 16px; line-height: 1.6; color: var(--fg-2); max-width: none; }
html[data-approach="rows"] .ap-item.is-active .ap-vis, html[data-approach="rows"] .approach .ap-item.is-active p { opacity: 1; translate: 0 0; }
html[data-approach="rows"] .approach .ap-item.is-active p { transition-delay: .12s; }
html[data-approach="rows"] .approach .ap-item.is-active h3 { color: var(--fg); }
html[data-approach="rows"] .ap-item.is-active .approach__n { color: var(--ap-o); }
.ap-motes { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: none; }
.approach[data-mode="rows"] .ap-motes { display: block; }
.ap-motes i { position: absolute; left: 0; top: 0; border-radius: 50%; opacity: 0; background: radial-gradient(circle at 35% 35%, #cf2a0e 0%, #ef4323 55%, #ff7a4a 100%); will-change: transform; transition: opacity .6s ease; }

/* ======================================================================
   TABLETS AND PHONES: one column; story and focus stay pinned, one point at a time
   ====================================================================== */
@media (max-width: 899px) {
  /* every scroll style on phones and tablets: one calm flow, one point after another, no pinning */
  html:is([data-approach="story"], [data-approach="focus"], [data-approach="sticky"], [data-approach="stack"], [data-approach="calm"]) .approach .approach__list { display: block; position: relative; }
  html:is([data-approach="story"], [data-approach="focus"], [data-approach="sticky"], [data-approach="stack"], [data-approach="calm"]) .approach .approach__list > li.ap-item {
    display: flex; flex-direction: column; gap: 22px; padding: 34px 0 40px; border-top: 1px solid var(--ln);
  }
  html:is([data-approach="story"], [data-approach="focus"], [data-approach="sticky"], [data-approach="stack"], [data-approach="calm"]) .ap-item .ap-copy { order: -1; display: grid; grid-template-columns: 34px minmax(0, 1fr); row-gap: 12px; }
  html:is([data-approach="story"], [data-approach="focus"], [data-approach="sticky"], [data-approach="stack"], [data-approach="calm"]) .ap-item .approach__n { padding-top: .75em; }
  html:is([data-approach="story"], [data-approach="focus"], [data-approach="sticky"], [data-approach="stack"], [data-approach="calm"]) .approach .ap-item h3 { grid-column: 2; font-size: clamp(28px, 7.4vw, 38px); line-height: 1.06; letter-spacing: -.035em; }
  html:is([data-approach="story"], [data-approach="focus"], [data-approach="sticky"], [data-approach="stack"], [data-approach="calm"]) .approach .ap-item p { grid-column: 2; font-size: 17px; line-height: 1.6; color: var(--fg-2); max-width: none; }
  html:is([data-approach="story"], [data-approach="focus"], [data-approach="sticky"], [data-approach="stack"], [data-approach="calm"]) .ap-item .ap-vis {
    width: 100%; aspect-ratio: 520 / 340; border-radius: 20px;
    opacity: calc(.15 + var(--e, 1) * .85); translate: 0 calc((1 - var(--e, 1)) * 36px);
  }

  /* tabs: numbered steps on top, then the point and its visual */
  html[data-approach="tabs"] .approach .ap-tabs { column-gap: 8px; margin-bottom: 26px; }
  html[data-approach="tabs"] .approach .approach__list { grid-template-rows: auto auto; }
  html[data-approach="tabs"] .approach .approach__list > li.ap-item { grid-row: 1 / span 2; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; row-gap: 22px; align-items: start; }
  html[data-approach="tabs"] .approach .ap-item h3 { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; font-size: clamp(28px, 7.6vw, 40px); line-height: 1.05; letter-spacing: -.035em; }
  html[data-approach="tabs"] .approach .ap-item p { font-size: 17px; color: var(--fg-2); max-width: none; }
  html[data-approach="tabs"] .ap-item .ap-copy { gap: 12px; }
  html[data-approach="tabs"] .ap-item .ap-vis { grid-column: 1; grid-row: 2; justify-self: stretch; width: 100%; }

  /* bento: one column */
  html[data-approach="bento"] .approach .approach__list { grid-template-columns: 1fr; gap: 12px; }
  html[data-approach="bento"] .approach .approach__list > li.ap-item, html[data-approach="bento"] .approach .approach__list > li.ap-item:nth-child(1), html[data-approach="bento"] .approach .approach__list > li.ap-item:nth-child(4) { grid-column: auto; border-radius: 24px; }
  html[data-approach="bento"] .ap-item .ap-vis { height: auto; aspect-ratio: 520 / 340; }

  /* rows: heading, sentence, visual */
  html[data-approach="rows"] .approach .approach__list::before, html[data-approach="rows"] .approach .approach__list > li.ap-item::after { right: 0; }
  html[data-approach="rows"] .ap-item .ap-copy { max-width: none; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; }
  html[data-approach="rows"] .approach .ap-item h3 { font-size: clamp(34px, 9.4vw, 54px); }
  html[data-approach="rows"] .ap-item .approach__n { padding-top: .7em; }
  html[data-approach="rows"] .approach .approach__list > li.ap-item { display: flex; flex-direction: column; }
  html[data-approach="rows"] .ap-item .ap-vis, html[data-approach="rows"] .approach .ap-item p { position: static; width: auto; opacity: 1; translate: none; }
  html[data-approach="rows"] .approach .ap-item p { grid-column: 2; margin-top: 12px; }
  html[data-approach="rows"] .ap-item .ap-vis { position: relative; top: auto; order: 1; margin-top: 20px; }
}
@media (max-width: 640px) {
  /* phones draw the compact 360 x 320 visuals */
  html[data-approach] .approach .ap-item .ap-vis { aspect-ratio: 360 / 320; }
  .ap-tabs__t { display: none; }
  .ap-tabs button { grid-template-columns: 1fr; padding-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-vis *, .ap-vis *::before, .ap-vis *::after { animation: none !important; }
  .ap-req { transform: translateX(calc(var(--d, 0) * .036px)); }
  html[data-approach="bento"] .approach .approach__list > li.ap-item { opacity: 1; translate: none; }
  html[data-approach] .approach .ap-copy > *, html[data-approach] .approach .ap-vis { translate: none !important; scale: none !important; }
}
