/* ==========================================================================
   Afterglyph inner pages
   ========================================================================== */

/* ---------- Generic page hero ---------- */
.ag-phero {
	position: relative;
	min-height: 92vh;
	min-height: 92svh;
	display: flex;
	align-items: flex-end;
	padding: calc(var(--header-h) + 60px) 0 clamp(48px, 7vw, 110px);
	overflow: hidden;
	background: var(--bg);
}
.ag-phero__inner { position: relative; z-index: 2; }
.ag-phero__title {
	font-size: var(--fs-mega);
	line-height: .9;
	letter-spacing: -.055em;
	margin-bottom: clamp(24px, 4vw, 48px);
}
.ag-phero__title .ag-outline,
.ag-phero__title .ag-outline .ag-split-char { -webkit-text-stroke-width: 4px; }
.ag-line--r { text-align: right; }
.ag-phero__lede { max-width: 52ch; font-size: var(--fs-lede); color: var(--muted); line-height: 1.5; }
.ag-split-char { display: inline-block; will-change: transform; }

/* Services hero gyroscope */
.ag-shero__gyro {
	position: absolute;
	right: clamp(-200px, -8vw, -40px);
	top: 50%;
	width: min(70vw, 820px);
	aspect-ratio: 1;
	transform: translateY(-50%);
	perspective: 1400px;
	transform-style: preserve-3d;
	pointer-events: none;
	opacity: .9;
}
.ag-shero__ring {
	position: absolute;
	inset: calc(var(--i) * 4%);
	border-radius: 50%;
	border: 2px solid rgba(73, 107, 255, .75);
	transform-style: preserve-3d;
	will-change: transform;
}
.ag-shero__ring:nth-child(2n) { border-color: rgba(138, 92, 255, .7); }
.ag-shero__ring:nth-child(3) { border-color: var(--lime); border-width: 2px; }
.ag-shero__core { position: absolute; left: 50%; top: 50%; width: 18%; height: 18%; margin: -9% 0 0 -9%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--blue) 40%, var(--violet) 75%, transparent 76%); filter: blur(.3px); }

.ag-scrubtext {
	font-family: var(--font-d);
	font-weight: 600;
	font-size: clamp(1.5rem, 3.6vw, 3.6rem);
	line-height: 1.12;
	letter-spacing: -.03em;
	max-width: 30ch;
}
.ag-scrubtext--xl { font-size: clamp(1.7rem, 4.6vw, 4.8rem); max-width: 24ch; }
.ag-scrubtext .ag-word { display: inline-block; }

/* Service explorer (horizontal pinned panels) */
.ag-sx { padding: 0; overflow: hidden; background: var(--bg); }
.ag-sx__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.ag-sx__track { display: flex; height: 100%; width: max-content; will-change: transform; }
.ag-sx__panel { position: relative; flex: none; width: 100vw; height: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 80px); padding: calc(var(--header-h) + 20px) var(--gutter) 80px; --sc: var(--blue); }
.ag-sx__panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50vmax 50vmax at 30% 50%, color-mix(in srgb, var(--sc) 18%, transparent), transparent 70%); pointer-events: none; }
.ag-sx__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; will-change: transform; }
.ag-sx__copy { position: relative; }
.ag-sx__num { font-family: var(--font-m); color: var(--sc); letter-spacing: .14em; margin-bottom: 16px; }
.ag-sx__num span { color: var(--muted); }
.ag-sx__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(2rem, 3.6vw, 4.6rem); letter-spacing: -.045em; line-height: .95; margin-bottom: 20px; }
.ag-sx__short { font-size: var(--fs-lede); color: var(--muted); margin-bottom: 28px; }
.ag-sx__dots { position: absolute; left: 50%; bottom: 32px; display: flex; gap: 10px; transform: translateX(-50%); }
.ag-sx__dots i { width: 28px; height: 3px; border-radius: 3px; background: var(--line); transition: background .4s var(--ease), width .4s var(--ease); }
.ag-sx__dots i.is-active { background: var(--lime); width: 48px; }
.ag-sx--flow .ag-sx__pin { height: auto; }
.ag-sx--flow .ag-sx__track { flex-direction: column; width: auto; }
.ag-sx--flow .ag-sx__panel { width: 100%; height: auto; padding-block: 60px; }
.ag-sx--flow .ag-sx__dots { display: none; }
@media (max-width: 800px) { .ag-sx__panel { grid-template-columns: 1fr; } }

/* Detail rows with cursor-following image */
.ag-sdet__head { margin-bottom: clamp(40px, 6vw, 90px); }
.ag-sdet__list { border-top: 1px solid var(--line); }
.ag-sdet__row { border-bottom: 1px solid var(--line); }
.ag-sdet__sum { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr) 40px; align-items: center; gap: 24px; padding: clamp(20px, 3vw, 36px) 0; cursor: pointer; }
.ag-sdet__num { font-family: var(--font-m); color: var(--muted); }
.ag-sdet__name { font-family: var(--font-d); font-weight: 800; font-size: clamp(1.5rem, 3.6vw, 3.6rem); letter-spacing: -.04em; line-height: 1; transition: transform .6s var(--ease), color .4s; }
.ag-sdet__short { color: var(--muted); }
.ag-sdet__row:hover .ag-sdet__name,
.ag-sdet__row[open] .ag-sdet__name { transform: translateX(16px); color: var(--lime); }
.ag-sdet__panel { display: grid; gap: 20px; padding: 0 0 36px 88px; max-width: 900px; }
.ag-sdet__panel p { color: var(--muted); font-size: var(--fs-lede); }
.ag-follow { position: fixed; left: 0; top: 0; width: 320px; aspect-ratio: 4 / 3; pointer-events: none; z-index: 50; border-radius: 16px; overflow: hidden; opacity: 0; transform: scale(.6); display: none; }
.ag-has-cursor .ag-follow { display: block; }
.ag-follow__img { position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease); }
.ag-follow__img.is-active { opacity: 1; }
@media (max-width: 760px) {
	.ag-sdet__sum { grid-template-columns: 40px 1fr 40px; }
	.ag-sdet__short { display: none; }
	.ag-sdet__panel { padding-left: 0; }
}

/* Capabilities marquees + grid */
.ag-caps { overflow: hidden; }
.ag-caps__head { margin-bottom: 48px; }
.ag-caps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 80px; }
.ag-caps__cell { padding: 28px; border-radius: var(--radius); background: var(--paper2); transform-style: preserve-3d; }
.ag-caps__cell:nth-child(4) { background: var(--bg); color: var(--ink); }
.ag-caps__cell h3 { font-family: var(--font-d); font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; letter-spacing: -.01em; }
.ag-caps__cell p { font-family: var(--font-m); font-size: .78rem; color: inherit; opacity: .72; }

/* Workflow line */
.ag-flow__head { margin-bottom: clamp(40px, 6vw, 90px); }
.ag-flow__stage { position: relative; }
.ag-flow__svg { width: 100%; height: clamp(140px, 18vw, 260px); overflow: visible; }
.ag-flow__base { fill: none; stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ag-flow__line { fill: none; stroke: var(--lime); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.ag-flow__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.ag-flow__step { position: relative; padding-top: 24px; }
.ag-flow__dot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(214, 255, 56, .15); }
.ag-flow__n { font-family: var(--font-m); color: var(--muted); font-size: .75rem; }
.ag-flow__step h3 { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.6rem); margin: 8px 0; }
.ag-flow__step p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 800px) { .ag-flow__steps { grid-template-columns: 1fr 1fr; } .ag-flow__svg { display: none; } }

/* Featured by service */
.ag-fwork__head { display: grid; gap: 20px; margin-bottom: 48px; }
.ag-fwork__head .ag-label { margin: 0; }
.ag-fwork__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ag-mini { display: grid; gap: 12px; }
.ag-mini__img { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.ag-mini__img .ag-art { transition: transform 1s var(--ease); }
.ag-mini:hover .ag-mini__img .ag-art { transform: scale(1.06); }
.ag-mini__t { font-family: var(--font-d); font-weight: 700; font-size: 1.25rem; }
.ag-mini__m { color: var(--muted); font-size: .875rem; }
.ag-fwork__empty { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 800px) { .ag-fwork__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ag-fwork__grid { grid-template-columns: 1fr; } }

/* FAQ sections */
.ag-faqsec__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.ag-faqsec__grid header .ag-h2 { margin-bottom: 24px; }
@media (max-width: 860px) { .ag-faqsec__grid { grid-template-columns: 1fr; } }
.ag-link--dark { color: var(--paper-ink); }

/* ---------- Service detail ---------- */
.ag-svhero { --sc: var(--blue); }
.ag-svhero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60vmax 50vmax at 80% 30%, color-mix(in srgb, var(--sc) 20%, transparent), transparent 65%); pointer-events: none; }
.ag-svhero__visual { position: absolute; right: 0; top: 0; width: 46%; height: 100%; display: grid; place-items: center; padding: calc(var(--header-h) + 20px) var(--gutter) 40px 0; opacity: .95; }
.ag-svhero__num { font-family: var(--font-d); font-weight: 900; font-size: clamp(5rem, 14vw, 16rem); line-height: .8; letter-spacing: -.06em; color: rgba(245, 245, 243, .06); position: absolute; right: var(--gutter); top: calc(var(--header-h) + 10px); pointer-events: none; }
.ag-svhero__title { font-size: clamp(2.2rem, 5.6vw, 7rem); max-width: 12ch; }
.ag-svhero .ag-phero__inner { padding-right: calc(46% + 24px); }
.ag-svhero__foot .ag-phero__lede { max-width: 46ch; }
.ag-svhero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
@media (max-width: 900px) {
	.ag-svhero__visual { position: relative; width: 100%; height: 50vh; padding: 0; order: -1; }
	.ag-svhero .ag-phero__inner { padding-right: var(--gutter); }
	.ag-svhero { flex-direction: column; align-items: stretch; }
	.ag-svhero__foot { grid-template-columns: 1fr; }
}

/* Motifs */
.ag-mo { position: relative; width: 100%; max-width: 760px; aspect-ratio: 4 / 3; --mc: var(--blue); }
.ag-mo--grid { display: grid; }
.ag-mo__cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.ag-mo__cols i { background: color-mix(in srgb, var(--mc) 10%, transparent); border-inline: 1px solid color-mix(in srgb, var(--mc) 30%, transparent); transform-origin: top; }
.ag-mo__wire { position: absolute; inset: 6%; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(9, 1fr); gap: 8px; }
.ag-mo__box { border: 1.5px dashed rgba(245, 245, 243, .5); border-radius: 8px; background: transparent; }
.ag-mo__box.is-filled { border-style: solid; border-color: transparent; }
.ag-mo__box--h.is-filled { background: var(--ink); }
.ag-mo__box--t.is-filled { background: var(--mc); }
.ag-mo__box--b.is-filled { background: var(--lime); border-radius: 999px; }
.ag-mo__box--i.is-filled { background: linear-gradient(135deg, var(--mc), var(--violet)); }
.ag-mo__box--c.is-filled { background: var(--bg3); }

.ag-mo--blocks { display: grid; grid-template-columns: 1fr; place-items: center; }
.ag-mo__sys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: 78%; }
.ag-mo__blk { aspect-ratio: 1; border-radius: 12px; background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); }
.ag-mo__blk--1 { background: var(--mc); }
.ag-mo__blk--2 { background: var(--lime); }
.ag-mo__code { position: absolute; right: 0; bottom: 0; margin: 0; padding: 16px 20px; border-radius: 14px; background: rgba(8, 9, 13, .82); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-m); font-size: clamp(.62rem, .9vw, .8rem); line-height: 1.7; color: var(--ink); }
.ag-mo__code span { display: block; white-space: pre; }
.ag-mo__code span:nth-child(1) { color: var(--violet); }
.ag-mo__code span:nth-child(4) { color: var(--lime); }

.ag-mo--commerce .ag-mo__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ag-mo__path path { fill: none; stroke: var(--mc); stroke-width: 2.5; stroke-dasharray: 3 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ag-mo__card { position: absolute; width: 30%; padding: 10px; border-radius: 16px; background: var(--bg2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line); }
.ag-mo__card p { font-weight: 600; font-size: .875rem; margin-top: 10px; }
.ag-mo__cimg { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.ag-mo__price { position: absolute; right: 12px; bottom: 12px; font-family: var(--font-m); font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--mc); color: var(--bg); }
.ag-mo__card--0 { left: 0; top: 52%; }
.ag-mo__card--1 { left: 35%; top: 4%; }
.ag-mo__card--2 { right: 0; top: 52%; }
.ag-mo__bag { position: absolute; right: 4%; top: 4%; width: 56px; height: 56px; border-radius: 16px; background: var(--ink); display: grid; place-items: center; color: var(--bg); font-family: var(--font-m); font-weight: 700; }
.ag-mo__runner { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 8px rgba(214, 255, 56, .2); }

.ag-mo--geometry canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ag-mo__filter { position: absolute; }
.ag-mo__warp { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-family: var(--font-d); font-weight: 900; font-size: clamp(2.5rem, 7vw, 6.6rem); letter-spacing: 0; color: var(--bg2); -webkit-text-stroke: 3px var(--mc); paint-order: stroke fill; }

.ag-mo--nodes svg { width: 100%; height: 100%; overflow: visible; }
.ag-mo__edges path { fill: none; stroke: color-mix(in srgb, var(--mc) 55%, transparent); stroke-width: 1.2; }
.ag-mo__edges path.is-flow { stroke: var(--lime); stroke-dasharray: 4 14; animation: ag-flow 1.4s linear infinite; }
@keyframes ag-flow { to { stroke-dashoffset: -36; } }
.ag-mo__nodes circle { fill: var(--bg2); stroke: var(--ink); stroke-width: 2; }
.ag-mo__nodes circle.is-out { fill: var(--lime); stroke: none; }

.ag-mo--devices { perspective: 1400px; display: grid; place-items: center; }
.ag-mo__phone { position: absolute; width: 30%; aspect-ratio: 9 / 19; border-radius: 28px; padding: 8px; background: #050608; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(245, 245, 243, .16); transform-style: preserve-3d; will-change: transform; }
.ag-mo__screen { width: 100%; height: 100%; border-radius: 21px; overflow: hidden; }
.ag-mo__phone--0 { transform: translateX(-62%) rotateY(28deg) translateZ(-60px); }
.ag-mo__phone--1 { transform: translateZ(40px); z-index: 2; }
.ag-mo__phone--2 { transform: translateX(62%) rotateY(-28deg) translateZ(-60px); }

/* Pinned motif stage */
.ag-stage2 { padding: 0; background: var(--bg2); overflow: hidden; }
.ag-stage2__pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 20px) 40px; }
.ag-stage2__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.ag-stage2__copy .ag-h2 { margin-bottom: 36px; }
.ag-stage2__steps { display: grid; gap: 4px; }
.ag-stage2__step { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-lede); transition: color .5s var(--ease), padding .5s var(--ease); }
.ag-stage2__step span { font-family: var(--font-m); font-size: .75rem; padding-top: .45em; }
.ag-stage2__step.is-active { color: var(--ink); padding-left: 12px; }
.ag-stage2__step.is-active span { color: var(--sc, var(--lime)); }
.ag-stage2__visual { display: grid; place-items: center; }
@media (max-width: 900px) { .ag-stage2__grid { grid-template-columns: 1fr; } .ag-stage2__visual { order: -1; } }

.ag-capl__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.ag-capl__list li { display: flex; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--font-d); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 2rem); letter-spacing: -.02em; }
.ag-capl__list span { font-family: var(--font-m); font-size: .75rem; color: var(--paper-muted); }
@media (max-width: 860px) { .ag-capl__grid { grid-template-columns: 1fr; } }

.ag-outc__head { margin-bottom: clamp(40px, 6vw, 90px); }
.ag-outc__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.ag-outc__card { padding: clamp(24px, 3vw, 44px); border-radius: var(--radius); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; transform-style: preserve-3d; }
.ag-outc__card--0 { background: var(--sc); color: var(--bg); box-shadow: none; }
.ag-outc__card--0 p { color: rgba(8, 9, 13, .78); }
.ag-outc__card--2 { margin-top: 80px; }
.ag-outc__n { font-family: var(--font-m); font-size: .8rem; }
.ag-outc__card h3 { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.3rem, 2vw, 2rem); letter-spacing: -.02em; line-height: 1.05; margin: 40px 0 12px; }
.ag-outc__card p { color: var(--muted); }
@media (max-width: 900px) { .ag-outc__grid { grid-template-columns: 1fr; } .ag-outc__card--2 { margin-top: 0; } }

.ag-sproc__head { margin-bottom: 64px; }
.ag-sproc__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ag-sproc__line { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.ag-sproc__line i { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.ag-sproc__step { position: relative; padding-top: 40px; }
.ag-sproc__dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--lime); }
.ag-sproc__n { font-family: var(--font-m); font-size: .75rem; color: var(--muted); }
.ag-sproc__step h3 { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.8rem); letter-spacing: -.02em; margin-top: 8px; }
@media (max-width: 800px) { .ag-sproc__list { grid-template-columns: 1fr 1fr; row-gap: 40px; } .ag-sproc__line { display: none; } }

.ag-stech__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
.ag-stech__cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.ag-stech__cloud li { padding: 16px 26px; border-radius: 999px; background: var(--bg); color: var(--ink); font-family: var(--font-d); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.5rem); }
.ag-stech__cloud li:nth-child(3n+2) { background: var(--blue); }
.ag-stech__cloud li:nth-child(4n) { background: transparent; color: var(--paper-ink); box-shadow: inset 0 0 0 1.5px var(--paper-ink); }
@media (max-width: 860px) { .ag-stech__grid { grid-template-columns: 1fr; } }

.ag-srel__head { margin-bottom: 64px; }
.ag-srel__grid { display: grid; gap: 100px; }

.ag-nextsvc { padding: 0; border-top: 1px solid var(--line); }
.ag-nextsvc__link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 32px; padding-block: clamp(60px, 9vw, 140px); }
.ag-nextsvc__link .ag-label { grid-column: 1 / -1; margin: 0; }
.ag-nextsvc__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(2.2rem, 7vw, 8rem); letter-spacing: -.05em; line-height: .9; transition: transform .7s var(--ease), color .5s; }
.ag-nextsvc__icon { display: grid; place-items: center; width: clamp(64px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%; background: var(--lime); color: var(--bg); transition: transform .7s var(--ease); }
.ag-nextsvc__icon .ag-icon { width: 40%; height: 40%; }
.ag-nextsvc__link:hover .ag-nextsvc__title { transform: translateX(20px); color: var(--lime); }
.ag-nextsvc__link:hover .ag-nextsvc__icon { transform: rotate(-45deg); }

/* ---------- Work ---------- */
.ag-whero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
.ag-whero__foot { display: flex; justify-content: flex-end; }
.ag-whero__strip { display: flex; gap: 12px; padding-inline: var(--gutter); margin-top: 40px; will-change: transform; }
.ag-whero__thumb { flex: none; width: clamp(140px, 16vw, 260px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }

.ag-port { padding-top: 40px; }
.ag-port__bar { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; padding: 10px; border-radius: 999px; background: rgba(17, 19, 26, .78); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line); }
.ag-port__status { font-family: var(--font-m); font-size: .75rem; color: var(--muted); padding-right: 16px; }
.ag-port__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(16px, 2vw, 32px); align-items: start; }
.ag-port__grid .ag-pcard { width: auto; margin: 0; }
.ag-port__grid .ag-pcard__meta { grid-template-columns: auto minmax(0, 1fr); }
.ag-port__grid .ag-pcard__cta { grid-column: 2; grid-row: auto; margin-top: 6px; }
.ag-port__grid .g0 { grid-column: 1 / span 7; }
.ag-port__grid .g0 .ag-pcard__media { aspect-ratio: 4 / 3; }
.ag-port__grid .g1 { grid-column: 9 / span 4; margin-top: 18vh; }
.ag-port__grid .g1 .ag-pcard__media { aspect-ratio: 3 / 4; }
.ag-port__grid .g2 { grid-column: 2 / span 5; }
.ag-port__grid .g2 .ag-pcard__media { aspect-ratio: 1; }
.ag-port__grid .g3 { grid-column: 7 / span 6; margin-top: 10vh; }
.ag-port__grid .g3 .ag-pcard__media { aspect-ratio: 5 / 4; }
.ag-port__grid .g4 { grid-column: 1 / span 12; }
.ag-port__grid .g4 .ag-pcard__media { aspect-ratio: 21 / 9; }
.ag-port__grid .g5 { grid-column: 4 / span 7; }
.ag-port__grid .g5 .ag-pcard__media { aspect-ratio: 16 / 10; }
.ag-port__grid.is-filtered .ag-pcard { grid-column: auto / span 6 !important; margin-top: 0 !important; }
.ag-port__grid.is-filtered .ag-pcard__media { aspect-ratio: 4 / 3 !important; }
.ag-port__grid .ag-pcard.is-out { display: none; }
@media (max-width: 860px) {
	.ag-port__grid .ag-pcard { grid-column: 1 / -1 !important; margin-top: 0 !important; }
	.ag-port__bar { border-radius: 20px; position: static; }
}

.ag-feat { padding: 0; overflow: hidden; }
.ag-feat__pin { position: relative; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.ag-feat__media { position: absolute; left: 50%; top: 50%; width: 46vw; aspect-ratio: 16 / 10; transform: translate(-50%, -50%); border-radius: var(--radius); overflow: hidden; will-change: width, height, border-radius; }
.ag-feat__media .ag-art { width: 100%; height: 100%; }
.ag-feat__copy { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 20px; }
.ag-feat__copy .ag-label { margin: 0; color: var(--ink); }
.ag-feat__line { font-size: var(--fs-lede); max-width: 40ch; }
.ag-feat__copy .ag-h1 { text-shadow: 0 10px 40px rgba(0, 0, 0, .5); }

/* ---------- Case study ---------- */
.ag-chero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 40px) 0 40px; overflow: hidden; --pc: var(--blue); }
.ag-chero__media { position: absolute; inset: 0; will-change: transform; }
.ag-chero__media .ag-art { width: 100%; height: 100%; }
.ag-chero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 13, .92), rgba(8, 9, 13, .2) 60%, rgba(8, 9, 13, .5)); }
.ag-chero__inner { position: relative; }
.ag-chero__title { font-family: var(--font-d); font-weight: 900; font-size: clamp(2.6rem, 10vw, 13rem); letter-spacing: -.06em; line-height: .88; }
.ag-chero__line { font-size: var(--fs-lede); max-width: 44ch; margin-top: 24px; }
.ag-chero__meta { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.ag-chero__meta dt { font-family: var(--font-m); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 760px) { .ag-chero__meta { grid-template-columns: 1fr 1fr; } }

.ag-cintro__grid .ag-h2 { font-size: clamp(1.6rem, 3.6vw, 3.8rem); max-width: 26ch; }
.ag-cchal__grid { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); gap: 40px; }
@media (max-width: 760px) { .ag-cchal__grid { grid-template-columns: 1fr; } }

.ag-cdir__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
.ag-cdir__copy .ag-h2 { margin-bottom: 24px; }
.ag-cdir__swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.ag-cdir__sw { position: relative; aspect-ratio: 3 / 5; border-radius: 16px; background: var(--c); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; color: var(--ink); mix-blend-mode: normal; transform-origin: bottom; }
.ag-cdir__sw:nth-child(3),
.ag-cdir__sw:nth-child(4) { color: var(--bg); }
.ag-cdir__sw b { font-weight: 600; font-size: .875rem; }
.ag-cdir__sw code { font-family: var(--font-m); font-size: .68rem; opacity: .8; }
.ag-cdir__type { display: flex; align-items: center; gap: 28px; padding: 24px; border-radius: 16px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.ag-cdir__aa { font-family: var(--font-d); font-weight: 800; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; color: var(--pc); }
.ag-cdir__spec { font-size: .875rem; color: var(--muted); line-height: 1.9; }
.ag-cdir__spec b { color: var(--ink); font-weight: 600; margin-right: 6px; }
@media (max-width: 860px) { .ag-cdir__grid { grid-template-columns: 1fr; } }

.ag-cexp { padding: 0; overflow: hidden; }
.ag-cexp__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 40px; overflow: hidden; padding-top: var(--header-h); }
.ag-cexp__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 16px 40px; align-items: end; }
.ag-cexp__head .ag-label { grid-column: 1 / -1; margin: 0; }
.ag-cexp__head p { color: var(--muted); }
.ag-cexp__track { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.ag-cexp__item { flex: none; width: clamp(280px, 38vw, 620px); }
.ag-cexp__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.ag-cexp__item figcaption { font-family: var(--font-m); font-size: .72rem; letter-spacing: .1em; color: var(--muted); margin-top: 12px; text-transform: uppercase; }
.ag-cexp--flow .ag-cexp__pin { height: auto; padding-block: var(--sec-pad); }
.ag-cexp--flow .ag-cexp__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.ag-cexp--flow .ag-cexp__item { scroll-snap-align: start; width: 78vw; }
@media (max-width: 760px) { .ag-cexp__head { grid-template-columns: 1fr; } }

.ag-cdev { padding: 0; overflow: hidden; }
.ag-cdev__pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 20px) 40px; }
.ag-cdev__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.ag-cdev__copy .ag-h2 { margin-bottom: 20px; }
.ag-cdev__copy p:not(.ag-label) { color: var(--paper-muted); font-size: var(--fs-lede); }
.ag-cdev__device { position: relative; perspective: 1600px; }
.ag-cdev__frame { border-radius: 18px; background: var(--bg); padding: 12px; box-shadow: 0 50px 100px -40px rgba(8, 9, 13, .6); transform: rotateX(8deg) rotateY(-14deg); transform-style: preserve-3d; will-change: transform; }
.ag-cdev__bar { display: flex; gap: 6px; padding: 4px 4px 12px; }
.ag-cdev__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(245, 245, 243, .25); }
.ag-cdev__screens { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.ag-cdev__screen { position: absolute; inset: 0; }
.ag-cdev__screen + .ag-cdev__screen { clip-path: inset(100% 0 0 0); }
.ag-cdev__phone { position: absolute; right: -4%; bottom: -10%; width: 26%; aspect-ratio: 9 / 18; border-radius: 22px; overflow: hidden; border: 6px solid var(--bg); box-shadow: 0 30px 60px -20px rgba(8, 9, 13, .6); will-change: transform; }
@media (max-width: 860px) { .ag-cdev__grid { grid-template-columns: 1fr; } }

.ag-cgal { overflow: hidden; }
.ag-cgal .ag-h2 { margin-bottom: 48px; }
.ag-cgal__viewport { overflow: hidden; padding-inline: var(--gutter); }
.ag-cgal__track { display: flex; align-items: center; gap: 20px; width: max-content; touch-action: pan-y; }
.ag-cgal__item { flex: none; border-radius: var(--radius); overflow: hidden; user-select: none; }
.ag-cgal__item--0 { width: clamp(260px, 34vw, 560px); aspect-ratio: 4 / 3; }
.ag-cgal__item--1 { width: clamp(200px, 22vw, 360px); aspect-ratio: 3 / 4; }
.ag-cgal__item--2 { width: clamp(240px, 28vw, 460px); aspect-ratio: 1; }
.ag-cgal__item .ag-art { pointer-events: none; }

.ag-cres__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.ag-cres__list li { display: flex; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.ag-cres__list span { font-family: var(--font-m); color: var(--lime); font-size: .8rem; padding-top: .4em; }
.ag-cres__list p { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.7rem); letter-spacing: -.015em; line-height: 1.2; }
@media (max-width: 860px) { .ag-cres__grid { grid-template-columns: 1fr; } }

.ag-next { position: relative; overflow: hidden; --pc: var(--blue); }
.ag-next__link { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; padding-block: 80px; }
.ag-next__media { position: absolute; inset: 0; clip-path: inset(18% 12% 18% 12% round 24px); will-change: clip-path; }
.ag-next__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 13, .85), transparent 70%); }
.ag-next__inner { position: relative; display: grid; gap: 12px; }
.ag-next__inner .ag-label { margin: 0; color: var(--ink); }
.ag-next__title { font-family: var(--font-d); font-weight: 900; font-size: clamp(2.6rem, 10vw, 12rem); letter-spacing: -.06em; line-height: .88; }
.ag-next__line { font-size: var(--fs-lede); max-width: 44ch; }
.ag-next__bar { display: block; height: 2px; max-width: 520px; margin-top: 24px; background: rgba(245, 245, 243, .2); }
.ag-next__bar i { display: block; height: 100%; background: var(--pc); transform: scaleX(0); transform-origin: left; }

/* ---------- About ---------- */
.ag-ahero__layers { position: absolute; inset: 0; pointer-events: none; }
.ag-ahero__layer { position: absolute; border-radius: var(--radius); overflow: hidden; opacity: .55; }
.ag-ahero__layer--a { right: 6%; top: 14%; width: min(30vw, 420px); aspect-ratio: 3 / 4; }
.ag-ahero__layer--b { right: 26%; top: 40%; width: min(22vw, 300px); aspect-ratio: 1; opacity: .7; }
@media (max-width: 760px) { .ag-ahero__layers { display: none; } }

.ag-amani { padding-block: clamp(60px, 8vw, 120px); overflow: hidden; }
.ag-amani__row { font-family: var(--font-d); font-weight: 900; font-size: clamp(2.6rem, 8vw, 9.4rem); letter-spacing: -.05em; line-height: .98; white-space: nowrap; will-change: transform; }
.ag-amani__row--o { letter-spacing: 0; color: var(--paper); -webkit-text-stroke: 3px var(--paper-ink); paint-order: stroke fill; }
.ag-amani__row:nth-child(3) { color: var(--blue); }

.ag-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
.ag-story__media { position: relative; height: clamp(420px, 48vw, 680px); }
.ag-story__img { position: absolute; border-radius: var(--radius); overflow: hidden; }
.ag-story__img > div { width: 100%; height: 100%; }
.ag-story__img--a { left: 0; top: 0; width: 70%; aspect-ratio: 4 / 5; }
.ag-story__img--b { right: 0; bottom: 0; width: 52%; aspect-ratio: 1; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.ag-story__copy .ag-h2 { margin-bottom: 28px; }
.ag-story__copy p:not(.ag-label) { color: var(--muted); margin-bottom: 16px; max-width: 52ch; }
@media (max-width: 860px) { .ag-story__grid { grid-template-columns: 1fr; } }

.ag-values__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.ag-values__head { position: sticky; top: calc(var(--header-h) + 40px); }
.ag-values__stack { display: grid; gap: 24px; }
.ag-values__card { position: sticky; top: calc(var(--header-h) + 40px + var(--i) * 28px); min-height: 300px; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); background: var(--vc); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 -20px 40px -20px rgba(8, 9, 13, .25); transform-origin: top center; }
.ag-values__card:nth-child(4) { color: var(--bg); }
.ag-values__n { font-family: var(--font-m); font-size: .8rem; }
.ag-values__card h3 { font-family: var(--font-d); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 3.2rem); letter-spacing: -.035em; line-height: 1; margin: 40px 0 14px; }
.ag-values__card p { font-size: var(--fs-lede); opacity: .86; max-width: 40ch; }
@media (max-width: 860px) { .ag-values__grid { grid-template-columns: 1fr; } .ag-values__head { position: static; } }

.ag-team__head { margin-bottom: clamp(48px, 6vw, 90px); }
.ag-team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ag-team__card { display: grid; gap: 10px; transform-style: preserve-3d; }
.ag-team__card:nth-child(3n+2) { margin-top: 60px; }
.ag-team__img { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; filter: grayscale(.4); transition: filter .6s var(--ease); }
.ag-team__card:hover .ag-team__img { filter: none; }
.ag-team__role { font-family: var(--font-d); font-weight: 700; font-size: 1.2rem; margin-top: 8px; }
.ag-team__bio { color: var(--muted); font-size: .9375rem; }
@media (max-width: 860px) { .ag-team__grid { grid-template-columns: 1fr 1fr; } .ag-team__card:nth-child(3n+2) { margin-top: 0; } }
@media (max-width: 520px) { .ag-team__grid { grid-template-columns: 1fr; } }

.ag-culture { padding: 0; overflow: hidden; }
.ag-culture__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding-block: calc(var(--header-h) + 20px) 40px; overflow: hidden; }
.ag-culture__track { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.ag-culture__card { flex: none; width: clamp(260px, 30vw, 440px); padding: 16px 16px 28px; border-radius: var(--radius); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.ag-culture__card:nth-child(even) { transform: translateY(40px); }
.ag-culture__img { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.ag-culture__card h3 { font-family: var(--font-d); font-weight: 700; font-size: 1.35rem; padding-inline: 8px; margin-bottom: 8px; }
.ag-culture__card p { color: var(--muted); padding-inline: 8px; }
.ag-culture--flow .ag-culture__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 50px; }
.ag-culture--flow .ag-culture__card { scroll-snap-align: start; width: 78vw; }

.ag-method__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 120px); }
.ag-method__list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.ag-method__list h3 { font-family: var(--font-d); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; padding-top: 18px; border-top: 2px solid var(--paper-ink); }
.ag-method__list p { color: var(--paper-muted); }
@media (max-width: 860px) { .ag-method__grid, .ag-method__list { grid-template-columns: 1fr; } }

.ag-tl { padding: 0; overflow: hidden; }
.ag-tl__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 56px; padding-block: calc(var(--header-h) + 20px) 40px; overflow: hidden; }
.ag-tl__track { position: relative; display: flex; gap: clamp(40px, 6vw, 120px); padding: 60px var(--gutter) 0; width: max-content; will-change: transform; }
.ag-tl__axis { position: absolute; left: var(--gutter); right: 0; top: 30px; height: 2px; background: var(--line); }
.ag-tl__axis i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--lime)); transform: scaleX(0); transform-origin: left; }
.ag-tl__item { position: relative; flex: none; width: clamp(240px, 26vw, 380px); }
.ag-tl__dot { position: absolute; left: 0; top: -38px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--lime); }
.ag-tl__when { font-family: var(--font-m); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.ag-tl__item h3 { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.3rem, 2vw, 2rem); letter-spacing: -.02em; margin-bottom: 8px; }
.ag-tl__item p { color: var(--muted); }
.ag-tl--flow .ag-tl__track { width: auto; flex-direction: column; gap: 48px; }
.ag-tl--flow .ag-tl__axis { display: none; }
.ag-tl--flow .ag-tl__dot { display: none; }

.ag-cteaser__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 120px); align-items: end; }
.ag-cteaser__side p { color: var(--paper-muted); font-size: var(--fs-lede); margin-bottom: 28px; }
@media (max-width: 860px) { .ag-cteaser__grid { grid-template-columns: 1fr; } }

/* ---------- Process page ---------- */
.ag-prhero__dots { position: absolute; right: var(--gutter); top: 50%; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2.6vw, 40px); transform: translateY(-50%); opacity: .7; }
.ag-prhero__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.ag-prhero__dots i:nth-child(7n) { background: var(--lime); }
.ag-prhero__dots i:nth-child(5n) { background: var(--violet); }
@media (max-width: 760px) { .ag-prhero__dots { display: none; } }

.ag-chapters { position: relative; }
.ag-chnav { position: fixed; left: var(--gutter); top: 50%; z-index: 30; transform: translateY(-50%); display: flex; gap: 14px; mix-blend-mode: difference; color: #fff; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.ag-chnav.is-visible { opacity: 1; pointer-events: auto; }
.ag-chnav ol { display: grid; gap: 10px; }
.ag-chnav a { display: flex; gap: 10px; align-items: baseline; font-family: var(--font-m); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .5; transition: opacity .4s var(--ease); }
.ag-chnav a b { font-weight: 500; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease); }
.ag-chnav a.is-active { opacity: 1; }
.ag-chnav a.is-active b,
.ag-chnav a:hover b { max-width: 160px; }
.ag-chnav__bar { width: 2px; background: rgba(255, 255, 255, .3); }
.ag-chnav__bar i { display: block; width: 100%; height: 100%; background: #fff; transform: scaleY(0); transform-origin: top; }
@media (max-width: 1100px) { .ag-chnav { display: none; } }

.ag-ch { position: relative; overflow: hidden; }
.ag-ch[data-theme="dark"]:nth-of-type(odd) { background: var(--bg); }
.ag-ch[data-theme="dark"] { background: var(--bg2); }
.ag-ch__pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 20px) 40px; }
.ag-ch__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding-left: clamp(16px, 8vw, 180px); }
.ag-ch__num { font-family: var(--font-d); font-weight: 900; font-size: clamp(4rem, 10vw, 11rem); line-height: .8; letter-spacing: -.06em; color: currentColor; opacity: .12; margin-bottom: 20px; }
.ag-ch__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(2.4rem, 6vw, 6.6rem); letter-spacing: -.05em; line-height: .92; margin-bottom: 24px; }
.ag-ch__text { font-size: var(--fs-lede); max-width: 44ch; margin-bottom: 18px; }
.ag-ch__del { font-family: var(--font-m); font-size: .78rem; color: var(--muted); max-width: 50ch; }
.ag-ch__del b { color: inherit; font-weight: 600; margin-right: 6px; text-transform: uppercase; letter-spacing: .1em; }
.ag-ch__visual { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
@media (max-width: 900px) { .ag-ch__grid { grid-template-columns: 1fr; padding-left: 0; } .ag-ch__visual { order: -1; } }

.ag-v-discover { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.ag-v-discover__core { position: relative; z-index: 2; padding: 18px 28px; border-radius: 999px; background: var(--lime); color: var(--bg); font-family: var(--font-d); font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.8rem); }
.ag-v-discover__w { position: absolute; left: 50%; top: 50%; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-m); font-size: .8rem; transform: translate(calc(-50% + var(--x) * 1px), calc(-50% + var(--y) * 1px)); white-space: nowrap; }

.ag-v-strat svg { width: 100%; height: auto; overflow: visible; }
.ag-v-strat line { stroke: var(--paper-ink); stroke-width: 1.5; }
.ag-v-strat circle { fill: var(--blue); }
.ag-v-strat circle:nth-of-type(5n) { fill: var(--violet); }
.ag-v-strat circle:nth-of-type(7n) { fill: var(--paper-ink); }

.ag-v-design { width: 100%; }
.ag-v-design__frame { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg3); overflow: hidden; }
.ag-v-design__b { position: absolute; border-radius: 8px; border: 1.5px dashed rgba(245, 245, 243, .5); }
.ag-v-design__b--nav { left: 5%; right: 5%; top: 5%; height: 7%; }
.ag-v-design__b--h1 { left: 5%; width: 55%; top: 20%; height: 12%; }
.ag-v-design__b--h2 { left: 5%; width: 38%; top: 35%; height: 8%; }
.ag-v-design__b--btn { left: 5%; width: 18%; top: 48%; height: 8%; border-radius: 999px; }
.ag-v-design__b--img { right: 5%; width: 33%; top: 20%; height: 36%; }
.ag-v-design__b--c1 { left: 5%; width: 28%; top: 64%; height: 30%; }
.ag-v-design__b--c2 { left: 36%; width: 28%; top: 64%; height: 30%; }
.ag-v-design__b--c3 { left: 67%; width: 28%; top: 64%; height: 30%; }

.ag-v-dev { position: relative; width: 100%; }
.ag-v-dev__frame { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; background: #F0F0EB; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
[data-theme="dark"] .ag-v-dev__frame { background: var(--bg3); }
.ag-v-dev__c { position: absolute; border-radius: 10px; will-change: transform; }
.ag-v-dev__c--nav { left: 4%; right: 4%; top: 4%; height: 9%; background: var(--ink); display: flex; gap: 6%; align-items: center; justify-content: flex-end; padding-right: 4%; }
.ag-v-dev__c--nav i { width: 10%; height: 24%; border-radius: 4px; background: var(--bg); opacity: .5; }
.ag-v-dev__c--hero { left: 4%; right: 4%; top: 17%; height: 38%; background: linear-gradient(120deg, var(--blue), var(--violet)); }
.ag-v-dev__c--btn { left: 8%; top: 42%; width: 20%; height: 8%; border-radius: 999px; background: var(--lime); }
.ag-v-dev__c--card,
.ag-v-dev__c--card2,
.ag-v-dev__c--card3 { top: 60%; width: 29%; height: 34%; background: #2A2F42; box-shadow: inset 0 0 0 1px rgba(245, 245, 243, .16); }
.ag-v-dev__c--card { left: 4%; }
.ag-v-dev__c--card2 { left: 35.5%; background: #3A3270; }
.ag-v-dev__c--card3 { left: 67%; }
.ag-v-dev__ok { position: absolute; right: 12px; bottom: -40px; font-family: var(--font-m); font-size: .8rem; color: var(--lime); }

.ag-v-launch { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.ag-v-launch__seed { width: 28px; height: 28px; border-radius: 50%; background: var(--paper-ink); }
.ag-v-launch__fill { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); border-radius: var(--radius); clip-path: circle(0% at 50% 50%); }
.ag-v-launch__fill b { font-family: var(--font-d); font-weight: 900; font-size: clamp(3rem, 8vw, 7rem); color: var(--lime); letter-spacing: -.05em; }

.ag-v-grow { width: 100%; }
.ag-v-grow svg { width: 100%; height: auto; overflow: visible; }
.ag-v-grow__grid { fill: none; stroke: var(--line); stroke-width: 1; }
.ag-v-grow rect { fill: var(--blue); transform-box: fill-box; transform-origin: bottom; }
.ag-v-grow rect:nth-of-type(3n) { fill: var(--violet); }
.ag-v-grow__line { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; }

/* ---------- Insights ---------- */
.ag-ifeat { padding-top: 0; }
.ag-ifeat__link { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.ag-ifeat__media { aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; }
.ag-ifeat__media img { width: 100%; height: 100%; object-fit: cover; }
.ag-ifeat__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3.6rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: 18px; }
.ag-ifeat__excerpt { color: var(--muted); font-size: var(--fs-lede); margin-bottom: 24px; }
.ag-ifeat__body .ag-acard__sample { margin: 0 0 24px; display: table; }
@media (max-width: 860px) { .ag-ifeat__link { grid-template-columns: 1fr; } }

.ag-ilist { padding-top: 40px; }
.ag-ilist__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ag-ilist__status { font-family: var(--font-m); font-size: .75rem; color: var(--muted); margin-bottom: 40px; min-height: 1.2em; }
.ag-ilist__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.js .ag-ilist__grid .ag-acard.is-more,
.ag-ilist__grid .ag-acard.is-out { display: none; }
.ag-ilist__empty { color: var(--muted); padding: 40px 0; }
.ag-ilist__more { display: flex; justify-content: center; margin-top: 64px; }
@media (max-width: 960px) { .ag-ilist__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ag-ilist__grid { grid-template-columns: 1fr; } }

.ag-news__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: end; }
.ag-news__form { display: grid; gap: 8px; }
.ag-news__form .ag-btn { justify-self: start; }
.ag-news__fine { font-size: .8125rem; color: var(--paper-muted); margin-top: 12px; }
@media (max-width: 860px) { .ag-news__grid { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.ag-readbar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 960; pointer-events: none; }
.ag-readbar i { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.ag-arthero { position: relative; min-height: 86vh; min-height: 86svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) 0 clamp(48px, 6vw, 96px); overflow: hidden; background: var(--bg); }
.ag-arthero__media { position: absolute; inset: 0; opacity: .5; will-change: transform; }
.ag-arthero__media img { width: 100%; height: 100%; object-fit: cover; }
.ag-arthero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(8, 9, 13, .3)); }
.ag-arthero__inner { position: relative; }
.ag-arthero__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(2rem, 5.2vw, 5.6rem); letter-spacing: -.04em; line-height: 1; max-width: 20ch; margin-bottom: 28px; }
.ag-arthero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-m); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ag-artbody { padding-block: clamp(60px, 8vw, 120px); }
.ag-artbody__grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 720px); gap: clamp(32px, 6vw, 120px); justify-content: center; }
.ag-artbody__side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 40px; }
.ag-toc ol { display: grid; gap: 10px; border-left: 1px solid var(--line); }
.ag-toc a { display: block; padding-left: 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--paper-muted); font-size: .9375rem; line-height: 1.4; transition: color .3s, border-color .3s; }
.ag-toc a.is-active { color: var(--paper-ink); border-left-color: var(--blue); }
.ag-toc .ag-toc__l3 a { padding-left: 30px; font-size: .875rem; }
.ag-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ag-share .ag-label { width: 100%; margin-bottom: 4px; }
.ag-share__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s; }
.ag-share__btn:hover { background: var(--paper-ink); color: var(--paper); }
.ag-share__btn .ag-icon { width: 18px; height: 18px; }
.ag-share__status { font-family: var(--font-m); font-size: .72rem; color: var(--blue); }
@media (max-width: 960px) { .ag-artbody__grid { grid-template-columns: 1fr; } .ag-artbody__side { position: static; } }

.ag-prose { font-size: 1.1875rem; line-height: 1.75; color: var(--paper-ink); }
[data-theme="dark"] .ag-prose { color: var(--ink); }
.ag-prose > * + * { margin-top: 1.25em; }
.ag-prose h2 { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -.025em; line-height: 1.15; margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.ag-prose h3 { font-family: var(--font-d); font-weight: 700; font-size: 1.3rem; margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 24px); }
.ag-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ag-prose ul { list-style: disc; padding-left: 1.3em; }
.ag-prose ol { list-style: decimal; padding-left: 1.3em; }
.ag-prose li + li { margin-top: .4em; }
.ag-prose blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 3px solid var(--blue); font-family: var(--font-d); font-weight: 600; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.015em; }
.ag-prose pre { padding: 24px; border-radius: 16px; background: var(--bg); color: var(--ink); overflow-x: auto; font-size: .9rem; line-height: 1.65; }
.ag-prose code { font-family: var(--font-m); font-size: .88em; }
.ag-prose :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--paper2); }
.ag-prose img { border-radius: 16px; }
.ag-prose figure { margin: 2em 0; }
.ag-prose figcaption { font-size: .875rem; color: var(--paper-muted); margin-top: 8px; }
.ag-prose .ag-lede { font-size: var(--fs-lede); }
.ag-prose table { width: 100%; border-collapse: collapse; }
.ag-prose th, .ag-prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.ag-prose em { font-style: italic; }

.ag-author { display: flex; gap: 24px; align-items: center; max-width: 1040px; margin: clamp(60px, 8vw, 100px) auto 0; padding: 32px; border-radius: var(--radius); background: var(--paper2); }
.ag-author__img { flex: none; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.ag-author__mark { width: 44px; height: 44px; }
.ag-author .ag-label { margin-bottom: 6px; }
.ag-author__name { font-family: var(--font-d); font-weight: 700; font-size: 1.25rem; }
.ag-author__bio { color: var(--paper-muted); }
.ag-related__head { margin-bottom: 56px; }

.ag-commentsbox { max-width: 720px; margin: 0 auto; }
.ag-commentlist { list-style: none; padding: 0; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
.comment-respond .submit { padding: 14px 24px; border-radius: 999px; background: var(--bg); color: var(--ink); border: 0; font-weight: 600; cursor: pointer; }

/* ---------- Contact ---------- */
.ag-chero2 { min-height: 80vh; min-height: 80svh; }
.ag-chero2__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.ag-contact { padding-top: clamp(40px, 6vw, 80px); }
.ag-contact__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 140px); align-items: start; }
.ag-contact__side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; }
.ag-contact__side > p { color: var(--muted); font-size: var(--fs-lede); }
.ag-contact__block .ag-label { margin-bottom: 10px; }
.ag-contact__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; word-break: break-all; }
.ag-contact__mail:hover { color: var(--lime); }
.ag-contact__next { display: grid; gap: 8px; counter-reset: n; }
.ag-contact__next li { counter-increment: n; display: flex; gap: 12px; color: var(--muted); }
.ag-contact__next li::before { content: "0" counter(n); font-family: var(--font-m); font-size: .75rem; color: var(--lime); padding-top: .3em; }
@media (max-width: 960px) { .ag-contact__grid { grid-template-columns: 1fr; } .ag-contact__side { position: static; } }

.ag-form { position: relative; padding: clamp(24px, 4vw, 56px); border-radius: var(--radius); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.ag-form__progress { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.ag-form__bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.ag-form__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--lime)); transform: scaleX(.3333); transform-origin: left; transition: transform .8s var(--ease); }
.ag-form__count { font-family: var(--font-m); font-size: .8rem; color: var(--muted); }
.ag-form__count b { color: var(--ink); font-weight: 600; }
.ag-step + .ag-step { margin-top: 48px; }
.js .ag-form[data-steps] .ag-step { display: none; margin-top: 0; }
.js .ag-form[data-steps] .ag-step.is-active { display: block; }
.ag-step__title { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-d); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 36px; }
.ag-step__title span { font-family: var(--font-m); font-size: .8rem; color: var(--lime); font-weight: 500; letter-spacing: .1em; }
.no-js .ag-form__progress,
.no-js [data-step-next],
.no-js [data-step-prev] { display: none !important; }
.ag-form__nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 40px; }
.js .ag-form[data-steps] [data-step-submit] { display: none; }
.js .ag-form[data-steps].is-last [data-step-submit] { display: inline-flex; }
.js .ag-form[data-steps].is-last [data-step-next] { display: none; }
.ag-form.is-sending { pointer-events: none; }
.ag-form.is-sending [data-step-submit] { opacity: .7; }
.ag-form__role { padding: 12px 16px; border-radius: 12px; background: rgba(214, 255, 56, .1); color: var(--lime); margin-bottom: 24px; font-weight: 500; }

.ag-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-pick--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ag-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ag-pick__card { position: relative; display: grid; gap: 18px; padding: 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .4s var(--ease), background .4s var(--ease), transform .4s var(--ease); --sc: var(--blue); overflow: hidden; }
.ag-pick__card::before { content: ""; position: absolute; inset: 0; background: var(--sc); opacity: 0; transform: scale(.4); border-radius: 50%; transition: opacity .5s var(--ease), transform .7s var(--ease); z-index: 0; }
.ag-pick__card > * { position: relative; z-index: 1; }
.ag-pick__n { font-family: var(--font-m); font-size: .72rem; color: var(--muted); }
.ag-pick__t { font-weight: 600; line-height: 1.25; }
.ag-pick__tick { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--lime); transform: scale(0); transition: transform .5s var(--ease); }
.ag-pick__tick .ag-icon { width: 15px; height: 15px; }
.ag-pick__card:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-3px); }
.ag-pick__card:has(input:checked) { color: var(--bg); box-shadow: none; }
.ag-pick__card:has(input:checked)::before { opacity: 1; transform: scale(3); }
.ag-pick__card:has(input:checked) .ag-pick__n { color: rgba(8, 9, 13, .7); }
.ag-pick__card:has(input:checked) .ag-pick__tick { transform: scale(1); }
.ag-pick__card:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
.ag-pick__pill span { display: inline-block; padding: 12px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease); }
.ag-pick__pill input:checked + span { background: var(--ink); color: var(--bg); }
.ag-pick__pill input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.ag-pick__pill span:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ag-field.is-invalid .ag-pick__card { box-shadow: inset 0 0 0 1px #FF6B6B; }

.ag-success { padding: clamp(32px, 5vw, 72px); border-radius: var(--radius); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.ag-success__mark { width: 120px; height: 120px; margin-bottom: 32px; }
.ag-success__mark circle { fill: none; stroke: var(--lime); stroke-width: 3; stroke-dasharray: 340; stroke-dashoffset: 340; }
.ag-success__mark path { fill: none; stroke: var(--lime); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.ag-success .ag-h2 { margin-bottom: 16px; }
.ag-success p { color: var(--muted); font-size: var(--fs-lede); margin-bottom: 32px; max-width: 46ch; }
.ag-shake { animation: ag-shake .5s var(--ease); }
@keyframes ag-shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }

/* ---------- Careers ---------- */
.ag-perks__head { margin-bottom: 56px; }
.ag-perks__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ag-perks__list li span { font-family: var(--font-m); font-size: .75rem; color: var(--blue); }
.ag-perks__list h3 { font-family: var(--font-d); font-weight: 700; font-size: 1.3rem; margin: 14px 0 8px; padding-top: 14px; border-top: 2px solid var(--paper-ink); }
.ag-perks__list p { color: var(--paper-muted); }
@media (max-width: 860px) { .ag-perks__list { grid-template-columns: 1fr 1fr; } }
.ag-jobs__head { margin-bottom: 56px; }
.ag-jobs__list { display: grid; gap: 12px; }
.ag-job__link { position: relative; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto auto; align-items: center; gap: 24px; padding: 28px 32px; border-radius: var(--radius); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); transition: background .5s var(--ease), color .5s var(--ease); overflow: hidden; }
.ag-job__team { font-family: var(--font-m); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ag-job__title { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.9rem); letter-spacing: -.02em; line-height: 1.1; }
.ag-job__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .875rem; }
.ag-job__arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), background .4s; }
@media (hover: hover) {
	.ag-job__link:hover { background: var(--lime); color: var(--bg); }
	.ag-job__link:hover .ag-job__team,
	.ag-job__link:hover .ag-job__meta { color: rgba(8, 9, 13, .7); }
	.ag-job__link:hover .ag-job__arrow { transform: rotate(45deg); background: var(--bg); color: var(--lime); box-shadow: none; }
}
@media (max-width: 860px) { .ag-job__link { grid-template-columns: 1fr auto; } .ag-job__team, .ag-job__meta { grid-column: 1; } .ag-job__arrow { grid-row: 1 / span 3; grid-column: 2; } }
.ag-jobs__open { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--muted); }

.ag-jobhero__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(2.2rem, 6vw, 6.8rem); letter-spacing: -.045em; line-height: .96; max-width: 16ch; margin-bottom: 28px; }
.ag-jobhero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-m); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ag-jobbody__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 6vw, 120px); align-items: start; }
.ag-jobbody__apply { position: sticky; top: calc(var(--header-h) + 32px); }
.ag-applycard { display: grid; gap: 18px; padding: 32px; border-radius: var(--radius); background: var(--paper2); }
.ag-applycard .ag-label { margin: 0; }
.ag-applycard__t { font-family: var(--font-d); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
@media (max-width: 860px) { .ag-jobbody__grid { grid-template-columns: 1fr; } .ag-jobbody__apply { position: static; } }
.ag-otherjobs .ag-h2 { margin-bottom: 40px; }

/* ---------- FAQ page ---------- */
.ag-faqhero { min-height: 70vh; min-height: 70svh; }
.ag-faqpage__group + .ag-faqpage__group { margin-top: clamp(56px, 7vw, 100px); }
.ag-faqpage__title { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -.02em; margin-bottom: 20px; }
.ag-faqpage__status { font-family: var(--font-m); font-size: .75rem; color: var(--paper-muted); min-height: 1.2em; margin-bottom: 24px; }
.ag-faqpage__empty a { color: var(--blue); text-decoration: underline; }
.ag-acc__item.is-out { display: none; }

/* ---------- Legal ---------- */
.ag-legalhero { min-height: 58vh; min-height: 58svh; }
.ag-legalhero__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(2.4rem, 6vw, 6rem); letter-spacing: -.045em; line-height: .95; margin-bottom: 20px; }
.ag-legalhero__meta { color: var(--muted); max-width: 52ch; }
.ag-legal__grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 260px); gap: clamp(32px, 6vw, 120px); justify-content: center; }
.ag-legal__side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.ag-legal__date { font-family: var(--font-m); font-size: .8rem; color: var(--paper-muted); margin-top: 3em !important; }
@media (max-width: 860px) { .ag-legal__grid { grid-template-columns: 1fr; } .ag-legal__side { position: static; } }

/* ---------- Generic page / archive ---------- */
.ag-pagehero,
.ag-archhero { min-height: 56vh; min-height: 56svh; }
.ag-pagehero__title,
.ag-archhero__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(2.2rem, 6vw, 6.4rem); letter-spacing: -.045em; line-height: .96; max-width: 18ch; margin-bottom: 24px; }
.ag-pagebody .ag-prose { max-width: 760px; margin-inline: auto; }
.ag-ilist__grid--static .ag-acard { margin-top: 0; }
.ag-empty { display: grid; gap: 20px; justify-items: start; padding-block: 40px; }
.ag-empty p { color: var(--muted); }

/* ---------- 404 ---------- */
.ag-404 { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--header-h); }
.ag-404__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.ag-404__digits { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2vw; font-family: var(--font-d); font-weight: 900; font-size: clamp(8rem, 34vw, 40rem); letter-spacing: -.06em; line-height: 1; color: rgba(245, 245, 243, .06); pointer-events: none; user-select: none; }
.ag-404__digits span { display: inline-block; will-change: transform; }
.ag-404__inner { position: relative; z-index: 2; }
.ag-404__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(2rem, 5.4vw, 5.8rem); letter-spacing: -.045em; line-height: .98; max-width: 14ch; margin-bottom: 24px; }
.ag-404__inner > p { color: var(--muted); max-width: 46ch; font-size: var(--fs-lede); margin-bottom: 36px; }
.ag-404__links { display: flex; flex-wrap: wrap; gap: 12px; }
