/*
 * /agency/ — the animated agency page. Generated markup: scripts/build-site.js (agencyPage).
 * Loads after site.css; everything here is scoped to body.ag so no other page changes.
 * Motion lives in /js/agency.js. Hidden "before" states only apply under html.ag-js, so
 * without JS the page is static and fully readable. Reduced motion and the site's own
 * "Pause animations" setting (html.a11y-still) switch the effects off.
 */
@font-face {
  font-family: "Archivo Expanded";
  src: url("../assets/fonts/archivo/ArchivoExpanded.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

body.ag {
  --ag-navy: #0b2545;
  --ag-deep: #071a33;
  --ag-blue: #1e5eff;
  --ag-sky: #6f9bff;
  --ag-cyan: #17d1c8;
  --ag-cream: #f8f3e4;
  --ag-paper: #f7f9fc;
  --ag-ink: #0b2545;
  --ag-dim: #9fb3d1;
  --ag-display: "Archivo Expanded", "Inter", system-ui, sans-serif;
  --ag-pad: clamp(20px, 5vw, 72px);
  --ag-sheet: clamp(22px, 3.4vw, 56px);
  --ag-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ag-out: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--ag-deep);
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
body.ag main { overflow-x: clip; }
body.ag .sb-footer { margin-top: 0; }
body.ag :focus-visible { outline: 3px solid var(--ag-cyan); outline-offset: 3px; }

/* film grain over the whole page */
body.ag::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- header: dark on this page, hides while scrolling down ---------- */
body.ag .sb-header { background: rgba(7, 26, 51, 0.72); border-bottom-color: rgba(248, 243, 228, 0.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform 0.55s var(--ag-ease); }
body.ag.ag-nav-hide .sb-header { transform: translateY(-101%); }
body.ag .sb-logo img { content: url("/assets/logo-light.webp"); }
body.ag .sb-nav a, body.ag .sb-header__login, body.ag .sb-menu summary { color: var(--ag-cream); }
body.ag .sb-nav a:hover, body.ag .sb-header__login:hover { color: #fff; }
body.ag .sb-nav a[aria-current="page"] { color: var(--ag-cyan); }
.ag-progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 95; background: linear-gradient(90deg, var(--ag-cyan), var(--ag-blue)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- intro loader ---------- */
.ag-loader { display: none; }
html.ag-js .ag-loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: var(--ag-deep); color: var(--ag-cream); transition: transform 1s var(--ag-out), border-radius 1s var(--ag-out); animation: ag-loader-safety 0.6s 6s forwards; }
.ag-loader__arc { width: min(46vw, 260px); overflow: visible; }
.ag-loader__arc path { fill: none; stroke: var(--ag-blue); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lp, 0)); }
.ag-loader__arc path:nth-child(2) { stroke: var(--ag-sky); }
.ag-loader__arc path:nth-child(3) { stroke: var(--ag-cyan); }
.ag-loader__n { position: absolute; right: var(--ag-pad); bottom: clamp(16px, 4vw, 44px); font-family: var(--ag-display); font-weight: 800; font-size: clamp(3.4rem, 13vw, 11rem); line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
html.ag-js.ag-in .ag-loader { transform: translateY(-101%); border-radius: 0 0 50% 50% / 0 0 18% 18%; pointer-events: none; }
@keyframes ag-loader-safety { to { transform: translateY(-101%); visibility: hidden; } }

/* ---------- cursor ---------- */
.ag-cur { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity 0.3s; }
.ag-cur.is-on { opacity: 1; }
.ag-cur i { position: absolute; left: 0; top: 0; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--ag-cyan); display: grid; place-items: center; transform: scale(0.13); transition: transform 0.45s var(--ag-out), background-color 0.3s; font: 700 13px/1 "Inter", sans-serif; font-style: normal; color: var(--ag-deep); }
.ag-cur i span { opacity: 0; transition: opacity 0.2s; }
.ag-cur.is-link i { transform: scale(0.5); background: rgba(23, 209, 200, 0.35); }
.ag-cur.is-label i { transform: scale(1); background: var(--ag-cyan); }
.ag-cur.is-label i span { opacity: 1; }

/* ---------- shared ---------- */
.ag-wrap { padding-left: var(--ag-pad); padding-right: var(--ag-pad); max-width: 1680px; margin: 0 auto; }
.ag-h2 { font-family: var(--ag-display); font-weight: 800; font-size: clamp(1.9rem, 5.2vw, 4.75rem); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.ag-note { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.6; max-width: 46ch; margin: 0; }
.ag-sheet { position: relative; z-index: 1; border-radius: var(--ag-sheet) var(--ag-sheet) 0 0; margin-top: calc(var(--ag-sheet) * -1); }

/* words that rise out of their own mask */
.ag-w { display: inline-block; overflow: hidden; overflow: clip; vertical-align: top; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.ag-w__i { display: inline-block; }
.ag-w--blue { color: var(--ag-sky); }
html.ag-js .ag-hero__title .ag-w__i, html.ag-js .ag-split .ag-w__i { transform: translateY(118%) rotate(7deg); transform-origin: 0 100%; transition: transform 1.15s var(--ag-out); transition-delay: calc(var(--n) * 70ms + var(--wd, 0ms)); }
html.ag-js.ag-in .ag-hero__title .ag-w__i, html.ag-js .ag-split.is-in .ag-w__i { transform: none; }
html.ag-js .ag-hero__title { --wd: 350ms; }
html.ag-js .ag-rise { opacity: 0; transform: translateY(40px); transition: opacity 0.9s, transform 1.1s var(--ag-out); transition-delay: calc(var(--d, 0) * 90ms); }
html.ag-js .ag-rise.is-in { opacity: 1; transform: none; }

/* buttons: colour floods up from the bottom, and they lean towards the cursor */
.ag-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; border: 2px solid transparent; transition: color 0.35s, border-color 0.35s, transform 0.6s var(--ag-out); will-change: transform; }
.ag-btn span { display: inline-block; transition: transform 0.6s var(--ag-out); }
.ag-btn::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: translateY(102%); transition: transform 0.55s var(--ag-out), border-radius 0.55s var(--ag-out); }
.ag-btn:hover::before, .ag-btn:focus-visible::before { transform: none; border-radius: 0; }
.ag-btn--solid { background: var(--ag-blue); color: #fff; }
.ag-btn--solid::before { background: var(--ag-cream); }
.ag-btn--solid:hover, .ag-btn--solid:focus-visible { color: var(--ag-navy); }
.ag-btn--line { border-color: rgba(248, 243, 228, 0.45); color: var(--ag-cream); }
.ag-btn--line::before { background: var(--ag-cream); }
.ag-btn--line:hover, .ag-btn--line:focus-visible { color: var(--ag-navy); border-color: var(--ag-cream); }
.ag-btn--cream { background: var(--ag-cream); color: var(--ag-navy); }
.ag-btn--cream::before { background: var(--ag-blue); }
.ag-btn--cream:hover, .ag-btn--cream:focus-visible { color: #fff; }

/* ---------- hero ---------- */
.ag-hero { position: relative; background: radial-gradient(120% 80% at 78% 100%, #123a7a 0%, var(--ag-navy) 42%, var(--ag-deep) 100%); color: var(--ag-cream); padding-top: clamp(32px, min(6vw, 7vh), 88px); overflow: hidden; overflow: clip; }
.ag-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s; }
.ag-gl.is-on { opacity: 1; }
.ag-hero__copy { position: relative; z-index: 2; will-change: transform, opacity; }
.ag-hero__title { font-family: var(--ag-display); font-weight: 800; font-size: clamp(2.2rem, min(8.1vw, 13.4vh), 8.6rem); line-height: 0.96; letter-spacing: -0.025em; color: var(--ag-cream); margin: 0; max-width: 11.2em; }
.ag-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(22px, 3vw, 44px); }
.ag-hero__row .ag-note { color: #d6e0f0; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 12px; }
html.ag-js .ag-hero__row { opacity: 0; transform: translateY(24px); transition: opacity 1s 1s, transform 1.2s 1s var(--ag-out); }
html.ag-js.ag-in .ag-hero__row { opacity: 1; transform: none; }

/* the arc: a huge slow wheel of work, only its top edge is on screen */
.ag-arc { position: relative; z-index: 1; height: clamp(230px, 33vw, 520px); margin-top: clamp(28px, 4vw, 56px); --r: clamp(520px, 66vw, 1180px); --tw: clamp(128px, 15.5vw, 268px); will-change: transform; }
.ag-arc__in { height: 100%; }
.ag-arc__turn { position: absolute; left: 50%; top: calc(var(--r) + var(--tw) * 0.72); width: 0; height: 0; will-change: transform; }
.ag-arc__spin { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: ag-spin 150s linear infinite; }
.ag-arc__ring { position: absolute; left: 0; top: 0; width: calc(var(--r) * 2 + var(--tw) * 1.64); height: calc(var(--r) * 2 + var(--tw) * 1.64); transform: translate(-50%, -50%) rotate(-150deg); overflow: visible; pointer-events: none; }
.ag-arc__ring circle { fill: none; stroke: url(#ag-arc-grad); stroke-width: 0.12; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.ag-tile { position: absolute; left: 0; top: 0; width: var(--tw); margin: 0; transform: translate(-50%, -50%) rotate(calc(var(--i) * 22.5deg)) translateY(calc(var(--r) * -1)); }
.ag-tile img { width: 100%; height: auto; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; border-radius: clamp(10px, 1.2vw, 20px); box-shadow: 0 24px 60px rgba(2, 10, 26, 0.55); background: #14325f; }
@keyframes ag-spin { to { transform: rotate(360deg); } }
html.ag-js .ag-arc__in { opacity: 0; transform: rotate(-34deg) translateY(90px); transform-origin: 50% calc(var(--r) + var(--tw) * 0.72); transition: opacity 1.4s 0.5s, transform 2.4s 0.5s var(--ag-out); }
html.ag-js .ag-arc__ring circle { stroke-dashoffset: 100; transition: stroke-dashoffset 2.8s 0.8s var(--ag-ease); }
html.ag-js.ag-in .ag-arc__in { opacity: 1; transform: none; }
html.ag-js.ag-in .ag-arc__ring circle { stroke-dashoffset: 0; }

/* ---------- marquees (speed and direction follow the scroll) ---------- */
.ag-clients { background: var(--ag-deep); color: var(--ag-cream); padding: clamp(28px, 4vw, 52px) 0 calc(clamp(28px, 4vw, 52px) + var(--ag-sheet)); border-top: 1px solid rgba(248, 243, 228, 0.08); }
.ag-clients__label { color: var(--ag-dim); font-size: 15px; margin: 0 0 18px; }
.ag-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ag-marquee ul { display: flex; flex: none; gap: clamp(28px, 4vw, 64px); padding: 0 clamp(28px, 4vw, 64px) 0 0; margin: 0; list-style: none; animation: ag-marquee 38s linear infinite; will-change: transform; }
.ag-marquee.is-js ul { animation: none; }
.ag-marquee li { font-family: var(--ag-display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 2.1rem); white-space: nowrap; display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); }
.ag-marquee li::after { content: ""; width: 0.5em; height: 0.25em; border: 0.09em solid var(--ag-cyan); border-bottom: 0; border-radius: 1em 1em 0 0; }
@keyframes ag-marquee { to { transform: translateX(-100%); } }
.ag-band { background: var(--ag-navy); color: var(--ag-cream); padding: clamp(40px, 6vw, 96px) 0 clamp(8px, 2vw, 32px); overflow: hidden; overflow: clip; }
.ag-marquee--xl { -webkit-mask-image: none; mask-image: none; will-change: transform; }
.ag-marquee--xl li { font-weight: 800; font-size: clamp(2.8rem, 10.5vw, 10.5rem); line-height: 1.02; letter-spacing: -0.03em; }
.ag-marquee--xl li::after { border-width: 0.07em; }
.ag-marquee--line li { color: transparent; -webkit-text-stroke: 1.5px rgba(248, 243, 228, 0.7); }
.ag-marquee--line li::after { border-color: var(--ag-sky); }

/* ---------- services ---------- */
.ag-services { background: var(--ag-paper); color: var(--ag-ink); padding: clamp(64px, 9vw, 150px) 0 clamp(56px, 8vw, 120px); }
.ag-services__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(28px, 4vw, 56px); }
.ag-services__head .ag-h2 { color: var(--ag-ink); }
.ag-services__head .ag-note { color: #44526a; }
.ag-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(11, 37, 69, 0.16); }
.ag-list li { border-bottom: 1px solid rgba(11, 37, 69, 0.16); }
.ag-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 40px; padding: clamp(18px, 2.4vw, 34px) 0; color: var(--ag-ink); text-decoration: none; position: relative; transition: padding 0.6s var(--ag-out); }
.ag-row__name { position: relative; font-family: var(--ag-display); font-weight: 700; font-size: clamp(1.25rem, 3.1vw, 2.9rem); line-height: 1.05; letter-spacing: -0.02em; }
.ag-row__name::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; color: var(--ag-blue); clip-path: inset(0 100% 0 0); transition: clip-path 0.7s var(--ag-out); }
.ag-row__sum { font-size: clamp(0.95rem, 1.1vw, 1.08rem); line-height: 1.5; color: #44526a; }
.ag-row__go { width: clamp(40px, 4vw, 58px); height: clamp(40px, 4vw, 58px); border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.6s var(--ag-out); }
.ag-row__go svg { width: 42%; height: 42%; }
.ag-row__thumb { display: none; }
.ag-row:hover, .ag-row:focus-visible { padding-left: clamp(8px, 1.8vw, 32px); }
.ag-row:hover .ag-row__name::after, .ag-row:focus-visible .ag-row__name::after { clip-path: inset(0); }
.ag-row:hover .ag-row__go, .ag-row:focus-visible .ag-row__go { background: var(--ag-blue); border-color: var(--ag-blue); color: #fff; transform: rotate(-45deg) scale(1.12); }
.ag-peek { position: fixed; left: 0; top: 0; width: clamp(240px, 22vw, 360px); aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; pointer-events: none; z-index: 40; opacity: 0; clip-path: inset(50% 50% 50% 50% round 18px); transition: opacity 0.35s, clip-path 0.6s var(--ag-out); box-shadow: 0 30px 70px rgba(11, 37, 69, 0.35); background: var(--ag-navy); will-change: transform; }
.ag-peek.is-on { opacity: 1; clip-path: inset(0 round 18px); }
.ag-peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.25); transition: opacity 0.35s, transform 0.9s var(--ag-out); }
.ag-peek img.is-on { opacity: 1; transform: scale(1.02); }

/* ---------- work ---------- */
.ag-work { background: var(--ag-navy); color: var(--ag-cream); position: relative; }
.ag-work__pin { padding: clamp(40px, 6vw, 90px) 0 clamp(56px, 8vw, 110px); }
.ag-work__track { display: flex; flex-direction: column; gap: clamp(26px, 4vw, 44px); }
.ag-work__panels { display: flex; gap: clamp(16px, 2.4vw, 40px); padding: 0 var(--ag-pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--ag-pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ag-work__panels::-webkit-scrollbar { display: none; }
.ag-work__intro { padding: 0 var(--ag-pad); display: flex; flex-direction: column; gap: clamp(14px, 2vw, 28px); }
.ag-work__intro .ag-h2 { color: var(--ag-cream); }
.ag-work__intro .ag-note { color: #d6e0f0; }
.ag-work__hint { color: var(--ag-dim); font-size: 15px; display: flex; align-items: center; gap: 10px; margin: 0; }
.ag-work__hint svg { width: 34px; height: 14px; animation: ag-nudge 1.6s var(--ag-ease) infinite; }
@keyframes ag-nudge { 50% { transform: translateX(8px); } }
.ag-panel { flex: none; width: min(78vw, 560px); margin: 0; scroll-snap-align: start; }
.ag-panel--tall { width: min(66vw, 430px); }
.ag-panel__img { border-radius: clamp(14px, 1.6vw, 26px); overflow: hidden; height: clamp(300px, 52vh, 560px); background: #14325f; }
.ag-panel__img img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(var(--px, 0px), 0, 0) scale(var(--ps, 1.02)); transition: scale 1.2s var(--ag-out); will-change: transform; }
.ag-panel:hover .ag-panel__img img { scale: 1.06; }
html.ag-js .ag-panel__img { clip-path: inset(100% 0 0 0 round 26px); transition: clip-path 1.3s var(--ag-out); }
html.ag-js .ag-panel.is-in .ag-panel__img { clip-path: inset(0 round 26px); }
html.ag-js .ag-panel figcaption { opacity: 0; transform: translateY(20px); transition: opacity 0.8s 0.35s, transform 0.9s 0.35s var(--ag-out); }
html.ag-js .ag-panel.is-in figcaption { opacity: 1; transform: none; }
.ag-panel figcaption { margin-top: 18px; }
.ag-panel h3 { font-family: var(--ag-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.8rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--ag-cream); margin: 0 0 6px; }
.ag-panel p { margin: 0; color: #d6e0f0; font-size: 1rem; line-height: 1.5; }
.ag-work__bar { height: 2px; background: rgba(248, 243, 228, 0.14); margin: clamp(28px, 3.4vw, 48px) var(--ag-pad) 0; border-radius: 2px; overflow: hidden; display: none; }
.ag-work__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ag-cyan), var(--ag-sky)); transform-origin: 0 50%; transform: scaleX(0); }
/* pinned sideways scroll, switched on by agency.js on wide screens with a mouse */
.ag-work.is-pinned .ag-work__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 68px 0 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.ag-work.is-pinned .ag-work__track { flex-direction: row; gap: clamp(16px, 2.4vw, 40px); will-change: transform; padding: 0 var(--ag-pad); width: max-content; }
.ag-work.is-pinned .ag-work__intro { flex: none; width: min(78vw, 520px); padding: 0; justify-content: space-between; }
.ag-work.is-pinned .ag-work__panels { display: contents; }
.ag-work.is-pinned .ag-work__bar { display: block; }
.ag-work.is-pinned .ag-work__hint { display: none; }
.ag-work.is-pinned .ag-panel__img img { --ps: 1.2; }

/* ---------- scene: a picture that opens up to fill the screen ---------- */
.ag-scene { background: var(--ag-navy); color: var(--ag-cream); position: relative; }
html.ag-js .ag-scene.is-live { height: 230vh; }
.ag-scene__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
html.ag-js .ag-scene.is-live .ag-scene__pin { position: sticky; top: 0; }
.ag-scene__frame { position: absolute; inset: 0; clip-path: inset(var(--cy, 0%) var(--cx, 0%) round var(--cr, 0px)); will-change: clip-path; }
.ag-scene__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--cs, 1)); will-change: transform; }
.ag-scene__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 51, 0.1) 30%, rgba(7, 26, 51, 0.86) 100%); }
.ag-scene__text { position: absolute; left: 0; right: 0; bottom: calc(clamp(36px, 7vw, 110px) + var(--ag-sheet)); opacity: var(--to, 1); transform: translateY(calc((1 - var(--to, 1)) * 50px)); }
.ag-scene__big { font-family: var(--ag-display); font-weight: 800; font-size: clamp(2rem, 6.6vw, 6.6rem); line-height: 0.98; letter-spacing: -0.025em; margin: 0 0 clamp(14px, 1.6vw, 24px); max-width: 12ch; color: var(--ag-cream); }
.ag-scene__text .ag-note { color: #e3eaf5; }

/* ---------- process ---------- */
.ag-process { background: var(--ag-paper); color: var(--ag-ink); padding: clamp(64px, 9vw, 150px) 0; }
.ag-process .ag-h2 { color: var(--ag-ink); max-width: 16ch; }
.ag-steps { list-style: none; margin: clamp(36px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.6vw, 44px); position: relative; }
.ag-steps::before, .ag-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: rgba(11, 37, 69, 0.12); }
.ag-steps::after { background: linear-gradient(90deg, var(--ag-blue), var(--ag-cyan)); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.ag-step { padding-top: clamp(22px, 2.6vw, 36px); position: relative; }
.ag-step__n { font-family: var(--ag-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--ag-blue); display: block; transition: color 0.5s, transform 0.7s var(--ag-out); transform-origin: 0 100%; }
.ag-step h3 { font-family: var(--ag-display); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.15; color: var(--ag-ink); margin: 14px 0 8px; }
.ag-step p { margin: 0; color: #44526a; font-size: 1rem; line-height: 1.6; }
html.ag-js .ag-steps.is-live .ag-step:not(.is-done) .ag-step__n { color: rgba(11, 37, 69, 0.2); transform: scale(0.82); }
.ag-facts { margin: clamp(48px, 6vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); }
.ag-facts div { border-top: 1px solid rgba(11, 37, 69, 0.16); padding-top: 16px; }
.ag-facts dt { font-family: var(--ag-display); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ag-ink); }
.ag-facts dd { margin: 8px 0 0; color: #44526a; font-size: 0.98rem; line-height: 1.5; }

/* ---------- beliefs (words light up with scroll) ---------- */
.ag-beliefs { background: var(--ag-cream); color: var(--ag-ink); padding: clamp(72px, 11vw, 190px) 0 calc(clamp(72px, 11vw, 190px) + var(--ag-sheet)); }
.ag-beliefs__lead { color: #5a5f55; font-size: 1.05rem; margin: 0 0 clamp(18px, 2.4vw, 34px); }
.ag-beliefs__text { font-family: var(--ag-display); font-weight: 700; font-size: clamp(1.45rem, 4.3vw, 4.1rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--ag-ink); margin: 0; max-width: min(100%, 1400px); }
.ag-beliefs__text .w { transition: opacity 0.35s linear; }
html.ag-js .ag-beliefs__text.is-live .w { opacity: 0.14; }
html.ag-js .ag-beliefs__text.is-live .w.is-on { opacity: 1; }

/* ---------- closing call ---------- */
.ag-call { background: radial-gradient(110% 90% at 50% 120%, #123a7a 0%, var(--ag-navy) 46%, var(--ag-deep) 100%); color: var(--ag-cream); padding: clamp(80px, 12vw, 200px) 0 clamp(72px, 10vw, 160px); overflow: hidden; overflow: clip; text-align: center; border-bottom: 1px solid rgba(248, 243, 228, 0.1); }
.ag-call__arcs { position: absolute; left: 50%; bottom: 0; width: min(150vw, 1900px); transform: translateX(-50%); pointer-events: none; }
.ag-call__arcs path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
html.ag-js .ag-call__arcs path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ag-ease); }
html.ag-js .ag-call__arcs path:nth-child(2) { transition-delay: 0.15s; }
html.ag-js .ag-call__arcs path:nth-child(3) { transition-delay: 0.3s; }
html.ag-js .ag-call.is-on .ag-call__arcs path { stroke-dashoffset: 0; }
.ag-call__in { position: relative; }
.ag-call__title { font-family: var(--ag-display); font-weight: 800; font-size: clamp(2rem, 7.4vw, 7.4rem); line-height: 0.98; letter-spacing: -0.025em; color: var(--ag-cream); margin: 0 auto; max-width: 13ch; }
.ag-call .ag-note { margin: clamp(20px, 2.6vw, 36px) auto 0; color: #d6e0f0; }
.ag-call .ag-actions { justify-content: center; margin-top: clamp(24px, 3vw, 40px); }
.ag-call__tel { margin: 22px 0 0; color: var(--ag-dim); font-size: 1rem; }
.ag-call__tel a { color: var(--ag-cream); font-weight: 700; text-decoration: none; }
.ag-call__tel a:hover { text-decoration: underline; }
.ag-badge { position: absolute; right: var(--ag-pad); top: clamp(-150px, -9vw, -60px); width: clamp(120px, 12vw, 176px); aspect-ratio: 1; border-radius: 50%; background: var(--ag-blue); color: #fff; display: grid; place-items: center; text-decoration: none; transition: background-color 0.3s, transform 0.6s var(--ag-out); will-change: transform; }
.ag-badge:hover { background: var(--ag-cyan); color: var(--ag-deep); }
.ag-badge svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: ag-spin 16s linear infinite; }
.ag-badge text { font: 700 15.5px "Inter", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; fill: currentColor; }
.ag-badge span { width: 34%; height: 34%; display: grid; place-items: center; transform: rotate(-45deg); transition: transform 0.6s var(--ag-out); }
.ag-badge:hover span { transform: rotate(0deg) scale(1.1); }
.ag-badge span svg { width: 100%; height: 100%; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .ag-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ag-row__sum { grid-column: 1; grid-row: 2; }
  .ag-row__go { grid-row: 1 / span 2; grid-column: 2; }
  .ag-steps, .ag-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-steps { row-gap: 36px; }
  .ag-steps::before, .ag-steps::after { display: none; }
  .ag-step { border-top: 3px solid var(--ag-blue); }
  .ag-badge { position: relative; right: auto; top: auto; margin: 0 auto clamp(24px, 4vw, 40px); }
}
/* ---------- touch screens: show the picture in the row instead of on hover ---------- */
@media (hover: none), (max-width: 700px) {
  .ag-row { grid-template-columns: 72px minmax(0, 1fr); align-items: start; column-gap: 16px; }
  .ag-row__thumb { display: block; grid-row: 1 / span 2; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
  .ag-row__name, .ag-row__sum { grid-column: 2; }
  .ag-row__sum { grid-row: 2; }
  .ag-row__go { display: none; }
  .ag-row:hover, .ag-row:focus-visible { padding-left: 0; }
  .ag-peek, .ag-cur { display: none; }
}
/* ---------- phone ---------- */
@media (max-width: 620px) {
  .ag-hero__title { font-size: 10.7vw; line-height: 0.98; }
  .ag-hero__row .ag-actions, .ag-call .ag-actions { width: 100%; }
  .ag-actions .ag-btn { flex: 1 1 100%; }
  .ag-steps, .ag-facts { grid-template-columns: 1fr; }
  .ag-arc { --r: 520px; --tw: 150px; height: 290px; }
  .ag-panel__img { height: 46vh; min-height: 280px; }
  .ag-marquee--line li { -webkit-text-stroke-width: 1px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ag-arc__spin, .ag-marquee ul, .ag-badge svg:first-child, .ag-work__hint svg { animation: none; }
  html.ag-js .ag-loader { display: none; }
  html.ag-js .ag-w__i, html.ag-js .ag-rise, html.ag-js .ag-hero__row, html.ag-js .ag-arc__in, html.ag-js .ag-panel figcaption { transform: none !important; opacity: 1 !important; transition: none !important; }
  html.ag-js .ag-panel__img { clip-path: none; }
  html.ag-js .ag-arc__ring circle, html.ag-js .ag-call__arcs path { stroke-dashoffset: 0; transition: none; }
  .ag-marquee { overflow-x: auto; }
}
html.a11y-still.ag-js .ag-loader { display: none; }
html.a11y-still .ag-gl { display: none; }
