/* ==========================================================================
   sections.css — home page sections + bands
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: var(--hero-min-h); padding-top: calc(var(--header-top) + var(--header-h) + var(--s-8)); padding-bottom: var(--s-6); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); align-items: start; gap: var(--s-4); position: relative; z-index: 2; }
.hero__copy { position: relative; padding-top: 125px; }   /* Figma: kicker top at Y373 */
.hero__kicker { font-size: var(--fs-kicker); line-height: 1.29; margin-bottom: 9px; }   /* Figma: kicker Y373 H41, H1 Y423 */
.hero__title { font-size: var(--fs-hero); line-height: var(--lh-hero); font-weight: 500; max-width: 700px; }  /* Figma: W694 */
.hero__copy .btn { margin-top: var(--s-3); }
.hero__pill {
	position: relative; display: inline-block; margin-top: 184px; margin-left: 177px;   /* Figma: pill at X247 Y857 */
	background: transparent; padding: 1.6rem 3rem; width: 558px; max-width: 100%;
	font-size: var(--fs-body-l); font-weight: 500; line-height: 1.29; text-align: center;
	color: inherit;
}
.hero__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--c-dash); pointer-events: none; }
.hero__frame-rect { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); rx: 36px; ry: 36px; }
.hero__arrow { position: absolute; left: calc(100% + 4px); bottom: calc(100% + 14px); width: 101px; height: 101px; color: var(--c-dash); }
.hero__arrow-path { stroke-dasharray: 260; stroke-dashoffset: 260; }
.hero.is-in .hero__arrow-path { animation: draw 1.1s var(--ease-out) 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__visual { position: relative; }
.hero__mockup { width: 100%; height: auto; margin-left: auto; }
.hero__visual .wz-ph { aspect-ratio: 1178 / 900; }

/* Spider — thread drops from the top edge, spider descends with overshoot, then idles */
.spider {
	position: absolute; top: 0; z-index: 3; pointer-events: none;
	left: var(--spider-x, 66%); width: 130px;
	display: flex; flex-direction: column; align-items: center;
	transform: translateY(var(--spider-scroll, 0px));
	will-change: transform;
}
.spider__thread { display: block; width: 3px; height: var(--thread-h, 0px); background: var(--c-ink); border-radius: 2px; }
.spider__body { width: 130px; transform-origin: 50% -20px; }
.spider__img { width: 100%; height: auto; }
.spider.is-dropped .spider__body { animation: sway 4.5s ease-in-out 1.8s infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

@media (max-width: 1024px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__copy { padding-top: 0; }
	.hero__title { max-width: 16ch; }
	.hero__pill { margin-left: 0; margin-top: var(--s-6); }
	.hero__arrow { display: none; }
	.spider { left: auto; right: 6%; width: 90px; }
	.spider__body { width: 90px; }
}

/* ---------- Stats ---------- */
.stats { padding: 120px 0; }   /* Figma: band H449, card H209 */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.7vw, 47px); }   /* Figma: gap 47 */
@media (max-width: 1024px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats__grid { grid-template-columns: 1fr; } }

/* ---------- Brands ---------- */
.brands { padding: 75px 0 127px; }   /* Figma: heading Y75, tiles bottom 531, section H658 */
.brands .sec-head { margin-bottom: 114px; }
.brands__track { overflow: hidden; }
.brands__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2.9vw, 42px); }   /* Figma: tile W284, gap 42 */
.brands__track.is-marquee .brands__row { display: flex; width: max-content; gap: 3rem; animation: marquee 40s linear infinite; }
.brands__track.is-marquee .brand-tile { width: 284px; }
.brands__track.is-marquee:hover .brands__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 1024px) { .brands__row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .brands__row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Services (bento) ---------- */
/* Figma values expressed as vw so the whole band shrinks with the viewport
   instead of keeping its 1728-wide spacing on a 1400 screen. */
.services { background: var(--c-white); padding: clamp(2.5rem, 5.2vw, 90px) 0; }
.services .sec-head { margin-bottom: clamp(1.5rem, 3.6vw, 62px); }
.services .sec-title__sub { font-size: 2.5rem; line-height: 1.75; }   /* Figma: '(And Do Damn Well)' 40px, title block H132 */
.services__bento {
	display: grid; grid-template-columns: 427.5fr 427.5fr 693fr; grid-template-rows: repeat(2, 1fr);
	gap: clamp(1rem, 1.4vw, 24px) clamp(1rem, 1.2vw, 20px);
	/* Height is led by the window, not by the Figma frame, so the band stays
	   roughly one screen. The art inside is fitted rather than cropped. */
	height: clamp(420px, min(62vh, 42vw), 700px);
}
.service-card--tall { grid-row: span 2; }
.service-card--wide { grid-column: 3; }
@media (max-width: 1024px) {
	.services__bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
	.service-card--tall, .service-card--wide { grid-row: auto; grid-column: auto; }
	.service-card--tall { aspect-ratio: 428 / 620; }
	.service-card--wide { grid-column: span 2; aspect-ratio: 693 / 340; }
}
@media (max-width: 640px) {
	.services__bento { grid-template-columns: 1fr; }
	/* One column: a full-height tall card would run off the screen, so cap it. */
	.service-card--tall { aspect-ratio: auto; min-height: 460px; }
	.service-card--wide { grid-column: auto; }
}

/* ---------- Approach ---------- */
.approach { padding: 145px 0 99px; }   /* Figma: heading Y145, last numeral bottom 1876, H1975 */
.approach__list { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.approach__step + .approach__step { margin-top: -74px; }   /* Figma: consecutive webs overlap */
.approach__step { display: grid; grid-template-columns: minmax(280px, 446px) minmax(0, 669px); align-items: center; justify-content: space-between; gap: var(--s-6); }   /* Figma: web 446 sq, text col 669 */
.approach__step:nth-child(even) { direction: rtl; }
.approach__step:nth-child(even) > * { direction: ltr; }
.approach__num { position: relative; aspect-ratio: 1; display: grid; place-items: center; color: var(--c-line); }
.approach__art { width: 100%; height: 100%; object-fit: contain; }
.approach__num .wz-ph { width: 100%; height: 100%; min-height: 0; }
.web { position: absolute; inset: 0; width: 100%; height: 100%; }
.web path { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.approach__step.is-in .web path { animation: draw-web 2.4s var(--ease-out) forwards; }
.approach__step.is-in .web__rings path:nth-child(2) { animation-delay: .15s; }
.approach__step.is-in .web__rings path:nth-child(3) { animation-delay: .3s; }
.approach__step.is-in .web__rings path:nth-child(4) { animation-delay: .45s; }
@keyframes draw-web { to { stroke-dashoffset: 0; } }
.approach__digit { position: relative; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-digit); line-height: 1; letter-spacing: .01em; }
/* Auto cycle follows the design order: 01 yellow, 02 green, 03 pink, 04 orange. */
.approach__step:nth-child(4n+1) .approach__digit { color: var(--c-yellow); }
.approach__step:nth-child(4n+2) .approach__digit { color: var(--c-green); }
.approach__step:nth-child(4n+3) .approach__digit { color: var(--c-pink); }
.approach__step:nth-child(4n+4) .approach__digit { color: var(--c-orange); }
/* Explicit per-step override from the "Numeral colour" field. */
.approach__step--yellow .approach__digit { color: var(--c-yellow); }
.approach__step--green .approach__digit  { color: var(--c-green); }
.approach__step--pink .approach__digit   { color: var(--c-pink); }
.approach__step--orange .approach__digit { color: var(--c-orange); }
.approach__step--brand .approach__digit  { color: var(--c-brand); }
.approach__title { font-size: var(--fs-h3); line-height: 1; }
.approach__rule { display: block; width: min(100%, 598px); height: 2px; background: var(--c-line); margin: 1.75rem 0; }
.approach__text { font-size: var(--fs-body); line-height: 1.45; max-width: 700px; }
@media (max-width: 900px) {
	.approach__step, .approach__step:nth-child(even) { grid-template-columns: 1fr; direction: ltr; gap: var(--s-2); justify-items: start; }
	.approach__num { width: min(60vw, 300px); }
}

/* ---------- Bands (CTA + guide) ---------- */
.band { color: #fff; overflow: hidden; }
.band--forest { background: var(--c-forest); }
.band--ink { background: var(--c-ink); }
.band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: var(--s-5); min-height: 410px; }
.band__inner--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.band__copy { padding: var(--s-6) 0; }
.band__copy--right { text-align: right; justify-self: end; }
.band__kicker { font-family: var(--f-display); font-size: var(--fs-body-l); margin-bottom: .5rem; }
.band__title { font-size: var(--fs-band); line-height: 1.3; letter-spacing: .003em; max-width: 24ch; }
/* The closing CTA headline is written as two lines and has to stay two lines:
   sized off the viewport so the longer line always clears its column. */
.band--forest .band__title { max-width: none; font-size: clamp(1.1rem, 2.02vw, 2rem); }
.band__title--lg { font-size: var(--fs-h3); line-height: 1.15; max-width: none; }
.band__copy .btn { margin-top: var(--s-4); }
.band__visual { align-self: stretch; display: flex; align-items: flex-end; }
.band__visual--right { justify-content: flex-end; }
.band__visual--left { justify-content: flex-start; }
.band__media { width: min(100%, 560px); height: auto; max-height: 420px; object-fit: contain; object-position: bottom; }
.band__visual .wz-ph { min-height: 260px; width: min(100%, 500px); border-radius: var(--r-md); background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
@media (max-width: 900px) {
	.band__inner, .band__inner--reverse { grid-template-columns: 1fr; min-height: 0; }
	.band__copy--right { text-align: left; justify-self: start; }
	.band__visual { order: 2; justify-content: center; }
	.band__copy { padding-bottom: var(--s-3); }
}

/* ---------- Case studies ---------- */
.cases { padding: var(--section-pad) 0; }
/* The next control sits outside the scroller so it is not dragged with the row. */
.cases__viewport { position: relative; }
.cases__next {
	position: absolute; right: clamp(.75rem, 2vw, 2.5rem); top: 50%; transform: translateY(-50%); z-index: 3;
	width: clamp(40px, 3vw, 52px); aspect-ratio: 1; display: grid; place-items: center;
	border: 1px solid var(--c-ink); border-radius: 50%; background: var(--c-white); color: var(--c-ink);
	cursor: pointer; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.cases__next .icon { width: 1.25rem; height: 1.25rem; }
.cases__next:hover { background: var(--c-ink); color: #fff; }
.cases__next[hidden] { display: none; }
/* scroll-padding so the snap point respects the page gutter — without it the
   row parks its first card flush against the left edge of the viewport. */
.cases__scroller { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter); scrollbar-width: none; cursor: grab; }
.cases__scroller::-webkit-scrollbar { display: none; }
.cases__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cases__row { display: flex; gap: clamp(1.5rem, 4.2vw, 4.5rem); width: max-content; padding-right: var(--gutter); }
.cases__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-4); }
.cases__grid .case-card { width: auto; flex: none; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--c-white); padding: var(--section-pad) 0; overflow: hidden; }
.testimonials__row { overflow: hidden; margin-bottom: 1.75rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.testimonials__track { display: flex; gap: 1.75rem; width: max-content; animation: marquee 60s linear infinite; }
.testimonials__row--reverse .testimonials__track { animation-direction: reverse; }
.testimonials__row:hover .testimonials__track { animation-play-state: paused; }

/* ---------- Blog teaser ---------- */
.blog-teaser { padding: 123px 0 158px; }   /* Figma: heading Y123, cards bottom 819, H977 */
.blog-teaser .sec-head { margin-bottom: 40px; }
.blog-teaser .sec-title__sub { font-size: 2.5rem; line-height: 1.75; }   /* Figma: sub-line 40px, title block H131 */

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.brands__track.is-marquee .brands__row, .testimonials__track { animation: none; flex-wrap: wrap; width: auto; }
	.spider.is-dropped .spider__body, .hero.is-in .hero__arrow-path, .approach__step.is-in .web path { animation: none; }
	.hero__arrow-path, .web path { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Case study — SEO layout (template-parts/case-study/layout-seo.php)
   ========================================================================== */

.cs { background: var(--c-white); }   /* design: case study body is white, cards are grey */
.cs .hl { color: var(--c-brand); }

/* ---------- Hero ---------- */
.cs-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 700px; padding: calc(var(--header-top) + var(--header-h) + var(--s-6)) 0 var(--s-6); color: #fff; overflow: hidden; }
.cs-hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--c-ink); }
.cs-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,20,20,.88) 0%, rgba(20,20,20,.72) 45%, rgba(20,20,20,.35) 100%); }
.cs-hero__inner { position: relative; }
.cs-hero__eyebrow { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-body-l); margin-bottom: 1.25rem; }
.cs-hero__eyebrow-icon { width: 1.6rem; height: 1.6rem; color: #fff; }
.cs-hero__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.5rem, 4.4vw, 4.75rem); line-height: 1.08; letter-spacing: .01em; text-transform: uppercase; max-width: 20ch; }
/* Long client headlines get a smaller size so the hero keeps its two-to-three line shape. */
.cs-hero__title--long { font-size: clamp(2.2rem, 3.5vw, 3.6rem); max-width: 24ch; }
.cs-hero__title--xlong { font-size: clamp(2rem, 3vw, 3.05rem); max-width: 26ch; }
.cs-hero__intro { margin-top: 1.5rem; max-width: 640px; font-size: var(--fs-body-l); line-height: 1.5; }
.cs-hero__stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--s-4); }
.cs-stat { flex: 0 1 200px; background: var(--c-white); color: var(--c-ink); border-radius: 18px; padding: 1.25rem 1.5rem; }
.cs-stat__value { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.75rem, 2.4vw, 2.6rem); line-height: 1.1; color: var(--c-brand); white-space: nowrap; }
.cs-stat--wide { flex: 0 1 268px; }
.cs-stat--wide .cs-stat__value { font-size: clamp(1.5rem, 1.95vw, 2.1rem); }
.cs-stat__label { display: block; margin-top: .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink); }

/* ---------- Shared type ---------- */
.cs-h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.1; }
.cs-h2--brand { color: var(--c-brand); }
.cs-lead { margin-top: 1rem; font-size: var(--fs-body); line-height: 1.6; max-width: 780px; }
.cs-prose { margin-top: 1.25rem; font-size: var(--fs-body); line-height: 1.7; max-width: 780px; }
.cs-prose p + p { margin-top: 1.1rem; }
.cs-prose strong { font-weight: 700; }

/* ---------- Overview + project info ---------- */
.cs-overview { padding: var(--section-pad) 0 var(--s-6); }
/* The starting-point block sits in the same column as the overview copy so the
   info card on the right has enough height to stay pinned to the Process section. */
.cs-goals__main { margin-top: var(--s-6); }
.cs-overview__grid { display: grid; grid-template-columns: minmax(0, 1fr) 405px; gap: clamp(2rem, 4.4vw, 76px); align-items: start; }   /* design: info card 405 wide, 76 gap */
.cs-info { background: var(--c-ink); border-radius: 20px; overflow: hidden; color: #fff; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.cs-info__title { font-size: 1.75rem; }
.cs-info__title { background: var(--c-brand); padding: 1.35rem 1.5rem; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; }
.cs-info__list { padding: .5rem 1.5rem 1.25rem; }
.cs-info__row { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.cs-info__row:last-child { border-bottom: 0; }
.cs-info__row dt { font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cs-info__row dd { margin: .3rem 0 0; font-size: .95rem; color: rgba(255,255,255,.85); }
.cs-info__cta { display: inline-flex; margin: 0 1.5rem 1.5rem; font-size: .9rem; padding: .7rem 1.25rem; letter-spacing: .04em; }

/* ---------- Goals ---------- */
.cs-goals__cards { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: var(--s-4); }
@media (min-width: 1280px) { .cs-goals__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* design: cards ~500 wide, 26 gap */
.cs-goal { background: var(--c-surface); border: 2px solid transparent; border-radius: 18px; padding: 1.75rem; transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out); }
.cs-goal:hover { border-color: var(--c-ink); transform: translateY(-3px); }
.cs-goal__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-brand); color: #fff; margin-bottom: 1.5rem; }
.cs-goal__icon .icon { width: 1.35rem; height: 1.35rem; }
.cs-goal__title { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; line-height: 1.2; }
.cs-goal__text { margin-top: .6rem; font-size: 1rem; line-height: 1.5; color: #4a4a4a; }

/* ---------- Process: sticky card deck (scroll behaviour mirrors the EV7 approach section) ---------- */
.cs-process { background: var(--c-surface); padding: var(--section-pad) 0; }
.cs-process__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }

.cs-process__intro { position: sticky; top: calc(var(--header-h) + 5.5rem); align-self: start; }
.cs-eyebrow { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 700; }
.cs-eyebrow__mark { position: relative; width: 22px; height: 14px; flex: none; }
.cs-eyebrow__mark::before, .cs-eyebrow__mark::after { content: ""; position: absolute; top: 0; width: 10px; height: 14px; border-radius: 0 999px 999px 0; }
.cs-eyebrow__mark::before { left: 0; background: var(--c-ink); }
.cs-eyebrow__mark::after { left: 12px; background: var(--c-brand); }
.cs-process__title { margin-top: 1.25rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 2.9vw, 3rem); line-height: 1.16; text-transform: uppercase; }
.cs-process__blurb { margin-top: 1.25rem; max-width: 460px; font-size: 1rem; line-height: 1.6; }
.cs-process__visual { margin-top: var(--s-5); max-width: 280px; }
.cs-process__visual img { width: 100%; height: auto; }

.cs-process { overflow-x: clip; overflow-y: visible; }
.cs-process__steps { position: relative; padding-left: 92px; }
.cs-process__list { list-style: none; margin: 0; padding: 0; }
.cs-process__rail { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--c-line); border-radius: 2px; overflow: hidden; }
.cs-process__rail-fill { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--c-brand); transition: height .15s linear; }

.cs-process-step { position: relative; }
.cs-process-step + .cs-process-step { margin-top: clamp(1.5rem, 3.4vw, 3rem); }
.cs-process-step__num {
	position: absolute; left: -92px; top: 0; z-index: 2;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--c-white); border: 2px solid var(--c-brand); color: var(--c-brand);
	font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
	transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.cs-process-step.is-active .cs-process-step__num { background: var(--c-brand); color: #fff; }
.cs-process-step__card {
	position: relative; background: var(--c-ink); color: #fff; border-radius: 16px;
	padding: 1.75rem 2rem; transform-origin: top center; will-change: transform, opacity;
}
.cs-process-step__ghost {
	position: absolute; top: 1.5rem; right: 1.75rem;
	font-family: var(--f-display); font-weight: 700; font-size: clamp(1.75rem, 2.2vw, 2.4rem); line-height: 1;
	color: rgba(255,255,255,.16); letter-spacing: .02em;
}
.cs-process-step__title { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; padding-right: 3.5rem; }
.cs-process-step__time {
	margin-top: .45rem; display: inline-block; padding: .2rem .6rem; border-radius: 999px;
	background: rgba(255,255,255,.1); color: rgba(255,255,255,.78);
	font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.cs-process-step__text { margin-top: .65rem; font-size: 1rem; line-height: 1.55; color: rgba(255,255,255,.72); max-width: 42ch; }

/* Sticky deck: the whole STEP pins, so it stays put while later steps scroll up and
   land on top of it. Sticky must sit on the step, not the card — a sticky card is
   bounded by its own <li> and would unpin immediately instead of being covered.
   Later steps paint above earlier ones, so each new card falls onto the deck.
   Scoped to .is-deck, which the JS adds — no JS, no hidden cards. */
.cs-process__steps.is-deck .cs-process-step { position: sticky; top: calc(var(--header-h) + 4.25rem + var(--i, 0) * 18px); z-index: calc(var(--i, 0) + 1); }
/* The deck needs the LIST to outrun the viewport, not the steps: tall steps would space
   the cards so far apart that the last never reaches its pin before the container ends.
   This must be min-height, not padding — a sticky child is bounded by its parent's
   CONTENT box, so padding-bottom adds no sticky range at all. */
.cs-process__steps.is-deck .cs-process__list { min-height: calc(100vh + var(--steps, 3) * 15vh); }
.cs-process__steps.is-deck .cs-process-step__card { opacity: 0; transform: translateX(70px); box-shadow: 0 -18px 40px -24px rgba(20,20,20,.55); }

@media (max-width: 1024px) {
	.cs-process__grid { grid-template-columns: 1fr; }
	.cs-process__intro { position: static; }
	.cs-process__visual { display: none; }
	.cs-process__steps.is-deck .cs-process-step { position: relative; }
	.cs-process__steps.is-deck .cs-process__list { min-height: 0; }
	.cs-process__steps.is-deck .cs-process-step__card { opacity: 1; transform: none; box-shadow: none; }
}
@media (max-width: 640px) {
	.cs-process__steps { padding-left: 62px; }
	.cs-process-step__num { left: -62px; width: 36px; height: 36px; font-size: .95rem; }
	.cs-process__rail { left: 17px; }
	.cs-process-step__title { padding-right: 0; }
	.cs-process-step__ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.cs-process__steps.is-deck .cs-process-step { position: relative; }
	.cs-process__steps.is-deck .cs-process__list { min-height: 0; }
	.cs-process__steps.is-deck .cs-process-step__card { opacity: 1; transform: none; box-shadow: none; }
}

/* ---------- Before / After ---------- */
.cs-compare { padding: var(--s-6) 0; }
.cs-compare__block + .cs-compare__block { margin-top: var(--s-7); }
.cs-compare__shot { margin: var(--s-3) 0 0; border-radius: 12px; overflow: hidden; background: var(--c-tint); }
.cs-compare__shot img, .cs-compare__shot .wz-ph { width: 100%; height: auto; display: block; }

/* ---------- Results ---------- */
.cs-results { padding: var(--s-6) 0 var(--section-pad); }
.cs-results__card { margin-top: var(--s-4); background: var(--c-ink); color: #fff; border-radius: 20px; padding: clamp(2rem, 4vw, 3.5rem); }
.cs-results__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 0; }
.cs-result { padding: 0 2rem; border-left: 1px solid rgba(255,255,255,.25); }
.cs-result:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.cs-result__value { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.75rem, 2.6vw, 2.75rem); line-height: 1.1; }
.cs-result__label { display: block; margin-top: .4rem; font-size: 1rem; color: rgba(255,255,255,.85); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cs-overview__grid { grid-template-columns: 1fr; }
	.cs-info { position: static; max-width: 420px; }
	.cs-results__grid { grid-template-columns: repeat(2, 1fr); }
	.cs-result:nth-child(3n+1) { border-left: 1px solid rgba(255,255,255,.25); padding-left: 2rem; }
	.cs-result:nth-child(2n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
	.cs-hero { min-height: 560px; }
	.cs-hero::after { background: rgba(20,20,20,.8); }
	.cs-stat { flex: 1 1 140px; }
	.cs-results__grid { grid-template-columns: 1fr; gap: 1.75rem; }
	.cs-result, .cs-result:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
	/* Hero: one column that can actually shrink — the grid track was keeping its
	   intrinsic width, so the headline and the pill ran under the right edge. */
	.hero { padding-bottom: var(--s-4); }
	.hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
	.hero__copy { padding-top: clamp(100px, 30vw, 160px); }
	/* The designed line break belongs to the wide layout; let it wrap naturally
	   here instead of orphaning a word. */
	.hero__title { max-width: none; }
	.hero__title br { display: none; }
	.hero__pill { width: 100%; margin: var(--s-4) 0 0; padding: 1.1rem 1.35rem; }
	.hero__visual { margin-top: var(--s-3); }
	.hero__mockup { max-width: 100%; }
	/* The spider drop is sized off the viewport in JS; scaling the whole rig keeps
	   it hanging clear of the headline instead of landing on it. */
	.spider { left: auto; right: 7%; transform: translateY(var(--spider-scroll, 0px)) scale(.5); transform-origin: 50% 0; }

	/* Stacked steps: the overlap exists to tuck consecutive webs together side by
	   side, which only happens in the two-column layout. */
	.approach__step + .approach__step { margin-top: var(--s-5); }
	.approach__num { width: min(52vw, 230px); }
}

/* ---------- FAQs ---------- */
.faq { padding: var(--section-pad) 0; background: var(--c-surface); }
.faq__grid {
	display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	gap: clamp(1.5rem, 3.4vw, 60px); align-items: start;
}
.faq__visual {
	margin: 0; border-radius: var(--r-md); overflow: hidden;
	background: var(--c-cream, #FAF2E7); position: sticky; top: calc(var(--header-h) + 2rem);
}
.faq__visual img, .faq__visual .wz-ph { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.faq__visual .wz-ph { min-height: 0; }

.faq__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(.6rem, .9vw, 1rem); }

.faq__item {
	background: var(--c-white);
	border: 1px solid #e6e6ea;
	border-radius: clamp(14px, 1.2vw, 20px);
	transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.faq__item:hover { border-color: #d6d2ea; }
.faq__item.is-open {
	background: #F4F1FE;
	border-color: rgba(116, 88, 215, .34);
	box-shadow: 0 18px 38px -26px rgba(116, 88, 215, .75);
}

.faq__q { margin: 0; font: inherit; }
.faq__btn {
	width: 100%; display: flex; align-items: center; gap: clamp(.8rem, 1.2vw, 1.15rem);
	padding: clamp(1rem, 1.5vw, 1.4rem) clamp(1.1rem, 1.7vw, 1.6rem);
	background: none; border: 0; border-radius: inherit; text-align: left; cursor: pointer;
	font-family: var(--f-display); font-weight: 500; font-size: clamp(1rem, 1.2vw, 1.25rem);
	line-height: 1.35; color: var(--c-ink);
}
.faq__btn:focus { outline: none; }
.faq__btn:focus-visible { outline: 2px solid var(--c-brand); outline-offset: -3px; }
.faq__text { flex: 1 1 auto; min-width: 0; }

/* Plus that loses its upright stroke on open - reads as + then minus */
.faq__mark {
	position: relative; flex: none;
	width: clamp(26px, 2.2vw, 32px); aspect-ratio: 1; border-radius: 50%;
	background: #ECECEF;
	transition: background-color var(--dur-fast) ease;
}
.faq__mark::before, .faq__mark::after {
	content: ''; position: absolute; top: 50%; left: 50%;
	width: 42%; height: 2px; border-radius: 2px; background: var(--c-ink);
	transform: translate(-50%, -50%);
	transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease;
}
.faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__mark { background: var(--c-brand); }
.faq__item.is-open .faq__mark::before { background: #fff; }
.faq__item.is-open .faq__mark::after { background: #fff; transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }

/* Height animation without measuring: 0fr to 1fr on a grid row. */
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-clip { overflow: hidden; }
.faq__a-inner {
	visibility: hidden;
	padding: 0 clamp(1.1rem, 1.7vw, 1.6rem) clamp(1rem, 1.5vw, 1.35rem) calc(clamp(26px, 2.2vw, 32px) + clamp(1.9rem, 2.9vw, 2.75rem));
	transition: visibility 0s var(--dur);
}
.faq__item.is-open .faq__a-inner { visibility: visible; transition-delay: 0s; }
.faq__a-inner p { margin: 0; font-size: var(--fs-body); line-height: 1.6; color: #4a4a4a; }

@media (max-width: 900px) {
	.faq__grid { grid-template-columns: 1fr; }
	.faq__visual { position: static; order: 2; max-width: 420px; }
	.faq__list { order: 1; }
}
@media (max-width: 640px) {
	.faq__a-inner { padding-left: clamp(1.1rem, 1.7vw, 1.6rem); }
}
@media (prefers-reduced-motion: reduce) {
	.faq__a { transition: none; }
	.faq__mark::before, .faq__mark::after { transition: none; }
}
