/* Agency page: dark page with a teal accent. The header keeps the site's normal light/dark theme. */
:root,:root[data-theme]{--ag-bg:#fff;--ag-card:#f7f6f3;--ag-line:rgba(0,0,0,.1);--ag-text:#0b0b0d;--ag-muted:#5d5d66;--teal:#b8892a;--teal2:#8a6414}
body.agency{background:var(--ag-bg);color:var(--ag-text);font-family:Inter,system-ui,sans-serif}
body.agency header.site{--bg:#fff;--surface:#fff;--fg:#141827;--muted:#5d647d;--line:#e3e5ef;--accent:#8a6414;--glow:rgba(184,137,42,.2);background:#fff}
body.agency footer.site{background:var(--ag-bg);border-color:var(--ag-line);color:var(--ag-muted)}
body.agency footer.site a{color:var(--teal2)}
.ag-wrap{max-width:1040px;margin:0 auto;padding:0 clamp(20px,5vw,48px);text-align:center}
.ag-wrap.narrow{max-width:760px}
section[class^="ag-"]{position:relative;padding:96px 0}
.ag-eyebrow{margin:0 0 14px;font-size:.72rem;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--ag-muted)}
.ag-eyebrow.sm{margin:34px 0 16px}
.ag-work .ag-eyebrow.sm{margin:0 0 4px;letter-spacing:.16em}
h1,h2,h3{margin:0;color:var(--ag-text);letter-spacing:-.03em;line-height:1.08}
.ag-wrap h2{font-size:clamp(2rem,4.6vw,3.2rem);font-weight:700;margin-bottom:22px}
.ag-p{color:var(--ag-muted);font-size:1.08rem;line-height:1.7;max-width:62ch;margin:0 auto 18px}
.ag-link{display:inline-flex;gap:8px;align-items:center;color:var(--ag-text);font-weight:500;text-decoration:none;margin-top:18px}
.ag-link:hover{color:var(--teal2)}.ag-link.sm{font-size:.9rem;color:var(--ag-muted);margin-top:6px}

/* hero */
.ag-hero{min-height:min(88vh,760px);display:flex;align-items:center;overflow:hidden}
.ag-glow{position:absolute;left:50%;top:-120px;width:min(900px,120vw);height:520px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(184,137,42,.14),transparent 72%);pointer-events:none}
.ag-hero .ag-wrap{position:relative;width:100%}
.ag-hero h1{font-size:clamp(2.6rem,7vw,5.2rem);font-weight:700}
.ag-hero h1 em{font-style:normal;color:var(--teal)}
.ag-lead{max-width:44ch;margin:26px auto 30px;color:var(--ag-muted);font-size:1.15rem;line-height:1.6}

/* stats */
.ag-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:6px}
.ag-card{background:var(--ag-card);border:1px solid var(--ag-line);border-radius:18px;padding:30px 24px;display:flex;flex-direction:column;align-items:center;gap:10px}
.ag-card svg{width:22px;height:22px;fill:none;stroke:var(--ag-muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ag-card b{font-size:2rem;letter-spacing:-.02em}
.ag-card span{color:var(--ag-muted);font-size:.9rem;line-height:1.5;max-width:26ch}

/* what we help with: scrolling chips with the logo badge in the middle */
.ag-help{padding:40px 0 96px}
.ag-marquee{position:relative;overflow:hidden;padding:18px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.ag-track{display:flex;gap:16px;width:max-content;animation:agscroll var(--dur,40s) linear infinite}
.ag-marquee:hover .ag-track{animation-play-state:paused}
@keyframes agscroll{from{transform:translateX(0)}to{transform:translateX(var(--dist,-50%))}}
.ag-chip{flex:0 0 112px;height:112px;border-radius:16px;background:var(--ag-card);border:1px solid var(--ag-line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:.72rem;color:var(--ag-muted);text-align:center;padding:8px}
.ag-chip i{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-style:normal;font-weight:700;font-size:.95rem;background:var(--c,var(--teal));color:var(--fc,#fff)}
.ag-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:170px;height:170px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,rgba(255,255,255,.97) 55%,rgba(255,255,255,0) 72%)}
.ag-badge img{width:96px;height:96px;object-fit:contain}

/* product hub */
.ag-products .ag-p{margin-bottom:40px}
.ag-hub{--r:190px;position:relative;width:min(560px,100%);height:480px;margin:0 auto}
.ag-ring{position:absolute;left:50%;top:50%;width:calc(var(--r)*2);height:calc(var(--r)*2);transform:translate(-50%,-50%);border:1px dashed rgba(0,0,0,.2);border-radius:50%}
.ag-core{position:absolute;left:50%;top:50%;width:150px;height:150px;transform:translate(-50%,-50%);border-radius:50%;background:var(--ag-card);border:1px solid var(--ag-line);display:grid;place-items:center;box-shadow:0 10px 40px rgba(184,137,42,.18)}
.ag-core img{width:84px;height:84px;object-fit:contain}
.ag-node{position:absolute;left:50%;top:50%;width:98px;height:98px;margin:-49px 0 0 -49px;border-radius:50%;border:1px solid var(--ag-line);background:#fff;color:var(--ag-text);font:600 .78rem Inter,sans-serif;display:grid;place-items:center;cursor:pointer;transform:rotate(var(--a)) translate(var(--r)) rotate(calc(var(--a)*-1));transition:border-color .2s,box-shadow .2s,background .2s}
.ag-node:hover,.ag-node:focus-visible,.ag-node.on{border-color:var(--teal2);box-shadow:0 6px 24px rgba(184,137,42,.3);background:#fbf5e6;outline:none}
.ag-detail{margin:18px auto 0;max-width:520px;min-height:92px;padding:18px 22px;border-radius:16px;border:1px solid var(--ag-line);background:var(--ag-card);display:flex;flex-direction:column;gap:6px}
.ag-detail b{font-size:1rem}.ag-detail span{color:var(--ag-muted);font-size:.92rem;line-height:1.55}

/* trusted by */
.ag-trust{padding:56px 0 24px;border-top:1px solid var(--ag-line)}
.ag-trust .ag-eyebrow{margin-bottom:10px}
.ag-marquee.small .ag-chip{flex:0 0 190px;height:84px;flex-direction:row;font-size:.82rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase}

/* selected work */
.ag-cases{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px;margin-top:40px;text-align:left}
.ag-case{background:var(--ag-card);border:1px solid var(--ag-line);border-radius:20px;padding:30px}
.ag-case header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.ag-case h3{font-size:1.4rem}
.ag-logo{padding:8px 14px;border:1px solid var(--ag-line);border-radius:8px;font-size:.7rem;letter-spacing:.18em;color:var(--ag-muted)}
.ag-metric{color:var(--teal2);font-size:1.5rem;font-weight:700;letter-spacing:-.02em;margin:0 0 14px}
.ag-case p{color:var(--ag-muted);line-height:1.65;margin:0 0 14px}
.ag-case .ag-metric{color:var(--teal2)}

/* contact */
.ag-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:18px;margin:34px 0;text-align:center}
.ag-info span{display:block;font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--ag-muted);margin-bottom:6px}
.ag-info b{font-weight:500;font-size:.95rem}
.ag-form{text-align:left;display:grid;gap:18px;margin-top:10px}
.ag-form label{display:grid;gap:8px;font-size:.78rem;color:var(--ag-muted)}
.ag-form input,.ag-form textarea{font:inherit;font-size:.95rem;color:var(--ag-text);background:#fff;border:1px solid var(--ag-line);border-radius:12px;padding:14px 16px;outline:none}
.ag-form input:focus,.ag-form textarea:focus{border-color:var(--teal2)}
.ag-send{justify-self:center;margin-top:8px;font:500 1rem Inter,sans-serif;color:var(--ag-text);background:none;border:0;cursor:pointer;display:inline-flex;gap:10px;align-items:center}
.ag-send:hover{color:var(--teal2)}

@media(max-width:700px){
  section[class^="ag-"]{padding:64px 0}
  .ag-hub{--r:128px;height:380px}.ag-node{width:78px;height:78px;margin:-39px 0 0 -39px;font-size:.68rem}.ag-core{width:112px;height:112px}.ag-core img{width:62px;height:62px}
  .ag-badge{width:130px;height:130px}.ag-badge img{width:72px;height:72px}
}
@media(prefers-reduced-motion:reduce){.ag-track{animation:none}.ag-marquee{overflow-x:auto}}

/* white theme: soft card edges and black accents */
.ag-card,.ag-case,.ag-detail,.ag-chip,.ag-core{box-shadow:0 1px 2px rgba(0,0,0,.05),0 8px 24px rgba(0,0,0,.04)}
.ag-detail b,.ag-case h3{color:var(--ag-text)}
.ag-logo{background:#fff}
body.agency footer.site{background:#fff;border-top:1px solid var(--ag-line)}
.ag-link:hover,.ag-send:hover{color:var(--teal2)}
.ag-metric{color:var(--teal)}

/* alternating black sections */
.ag-dark{--ag-bg:#0a0a0f;--ag-card:#14141b;--ag-line:rgba(255,255,255,.1);--ag-text:#fff;--ag-muted:#a9a9b4;--teal:#d4af37;--teal2:#e8c862;background:var(--ag-bg);color:var(--ag-text)}
.ag-dark .ag-card,.ag-dark .ag-case,.ag-dark .ag-detail,.ag-dark .ag-core{box-shadow:none}
.ag-dark .ag-ring{border-color:rgba(255,255,255,.16)}
.ag-dark .ag-node{background:var(--ag-card);color:#fff}
.ag-dark .ag-node:hover,.ag-dark .ag-node:focus-visible,.ag-dark .ag-node.on{background:#1b1608;box-shadow:0 0 28px rgba(212,175,55,.3)}
.ag-dark .ag-core{box-shadow:0 0 60px rgba(212,175,55,.14)}
.ag-dark .ag-logo{background:transparent}
.ag-dark .ag-link{color:#fff}.ag-dark .ag-link.sm{color:var(--ag-muted)}
.ag-dark .ag-link:hover{color:var(--teal2)}
.ag-dark h1,.ag-dark h2,.ag-dark h3,.ag-dark .ag-detail b,.ag-dark .ag-case h3{color:#fff}
