perf(motion): 营销页入场动效时长收敛至 300ms

对齐 CONTEXT.md 动效四原则:入场 200-300ms、硬上限 700ms。

- 5 个营销页共 45 处 duration 由 0.8 / 1 收敛为 0.3
- 审计基线:P0 硬违规 99 → 54,P1 164 → 163,P2 持平 28
- 改动 100% 为 transition duration,零文案变更
This commit is contained in:
2026-09-20 11:50:58 +08:00
parent b1ac22a8aa
commit 5d187e548b
5 changed files with 45 additions and 45 deletions
+12 -12
View File
@@ -54,7 +54,7 @@ function HeroSection({ data }: { data: AboutData }) {
<motion.div <motion.div
initial={{ opacity: 0, y: 20 }} initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.1, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.1, ease: EASE_OUT }}
className="text-sm font-mono tracking-[0.15em] text-text-muted mb-8" className="text-sm font-mono tracking-[0.15em] text-text-muted mb-8"
> >
{data.heroSubtitle || ''} {data.heroSubtitle || ''}
@@ -63,7 +63,7 @@ function HeroSection({ data }: { data: AboutData }) {
<motion.h1 <motion.h1
initial={{ opacity: 0, y: 40 }} initial={{ opacity: 0, y: 40 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 1, delay: 0.2, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.2, ease: EASE_OUT }}
className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black text-ink leading-[0.88] tracking-tightest mb-10 sm:mb-12 md:mb-16" className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black text-ink leading-[0.88] tracking-tightest mb-10 sm:mb-12 md:mb-16"
> >
{titleLines.map((line, i) => ( {titleLines.map((line, i) => (
@@ -77,7 +77,7 @@ function HeroSection({ data }: { data: AboutData }) {
style={{ transformOrigin: 'left' }} style={{ transformOrigin: 'left' }}
initial={{ scaleX: 0 }} initial={{ scaleX: 0 }}
animate={{ scaleX: 1 }} animate={{ scaleX: 1 }}
transition={{ duration: 0.8, delay: 1.2, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 1.2, ease: EASE_OUT }}
/> />
</span> </span>
</span> </span>
@@ -91,7 +91,7 @@ function HeroSection({ data }: { data: AboutData }) {
<motion.p <motion.p
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.5, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.5, ease: EASE_OUT }}
className="text-lg md:text-xl text-text-secondary max-w-2xl leading-relaxed mb-12 sm:mb-16" className="text-lg md:text-xl text-text-secondary max-w-2xl leading-relaxed mb-12 sm:mb-16"
> >
{data.heroDescription || ''} {data.heroDescription || ''}
@@ -100,7 +100,7 @@ function HeroSection({ data }: { data: AboutData }) {
<motion.div <motion.div
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.7, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.7, ease: EASE_OUT }}
className="flex flex-col sm:flex-row gap-4 sm:gap-6" className="flex flex-col sm:flex-row gap-4 sm:gap-6"
> >
<CTAButton href={data.heroPrimaryCtaHref || '#'} className="min-h-[52px] touch-manipulation"> <CTAButton href={data.heroPrimaryCtaHref || '#'} className="min-h-[52px] touch-manipulation">
@@ -161,7 +161,7 @@ function WhoWeAreSection({ data }: { data: AboutData }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="lg:col-span-5" className="lg:col-span-5"
> >
<div className="flex items-center gap-4 mb-6"> <div className="flex items-center gap-4 mb-6">
@@ -190,7 +190,7 @@ function WhoWeAreSection({ data }: { data: AboutData }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, delay: 0.15, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.15, ease: EASE_OUT }}
className="lg:col-span-7" className="lg:col-span-7"
> >
<div className="flex items-center gap-4 mb-6"> <div className="flex items-center gap-4 mb-6">
@@ -240,7 +240,7 @@ function MilestonesSection({ data }: { data: AboutData }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="max-w-3xl mb-16 sm:mb-20 md:mb-24" className="max-w-3xl mb-16 sm:mb-20 md:mb-24"
> >
<div className="flex items-center gap-4 mb-6"> <div className="flex items-center gap-4 mb-6">
@@ -303,7 +303,7 @@ function CertificationsSection({ data }: { data: AboutData }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="max-w-3xl" className="max-w-3xl"
> >
<div className="text-sm font-mono tracking-[0.2em] text-text-muted uppercase mb-6"> <div className="text-sm font-mono tracking-[0.2em] text-text-muted uppercase mb-6">
@@ -336,7 +336,7 @@ function CertificationsSection({ data }: { data: AboutData }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
> >
<div className="text-sm font-mono tracking-[0.2em] text-text-muted uppercase mb-6"> <div className="text-sm font-mono tracking-[0.2em] text-text-muted uppercase mb-6">
Certifications Certifications
@@ -370,7 +370,7 @@ function CertificationsSection({ data }: { data: AboutData }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, delay: 0.15, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.15, ease: EASE_OUT }}
> >
<div className="text-sm font-mono tracking-[0.2em] text-text-muted uppercase mb-6"> <div className="text-sm font-mono tracking-[0.2em] text-text-muted uppercase mb-6">
Partners Partners
@@ -411,7 +411,7 @@ function CTASection({ data }: { data: AboutData }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="max-w-3xl" className="max-w-3xl"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95] mb-8"> <h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95] mb-8">
@@ -128,7 +128,7 @@ export default function CasesContentV3({
<motion.div <motion.div
initial={{ opacity: 0, y: 20 }} initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.1, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.1, ease: EASE_OUT }}
className="text-sm font-mono tracking-[0.2em] text-text-muted uppercase mb-8" className="text-sm font-mono tracking-[0.2em] text-text-muted uppercase mb-8"
> >
Case Studies Case Studies
@@ -137,7 +137,7 @@ export default function CasesContentV3({
<motion.h1 <motion.h1
initial={{ opacity: 0, y: 40 }} initial={{ opacity: 0, y: 40 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 1, delay: 0.2, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.2, ease: EASE_OUT }}
className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black text-ink leading-[0.88] tracking-tightest mb-10 sm:mb-12 md:mb-16" className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black text-ink leading-[0.88] tracking-tightest mb-10 sm:mb-12 md:mb-16"
> >
<div className="block">{heroTitle1}</div> <div className="block">{heroTitle1}</div>
@@ -150,7 +150,7 @@ export default function CasesContentV3({
style={{ transformOrigin: 'left' }} style={{ transformOrigin: 'left' }}
initial={{ scaleX: 0 }} initial={{ scaleX: 0 }}
animate={{ scaleX: 1 }} animate={{ scaleX: 1 }}
transition={{ duration: 0.8, delay: 1.2, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 1.2, ease: EASE_OUT }}
/> />
</span> </span>
</span> </span>
@@ -160,7 +160,7 @@ export default function CasesContentV3({
<motion.p <motion.p
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.5, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.5, ease: EASE_OUT }}
className="text-lg md:text-xl text-text-secondary max-w-2xl leading-relaxed mb-12" className="text-lg md:text-xl text-text-secondary max-w-2xl leading-relaxed mb-12"
> >
{heroDescriptionLines.map((line, i) => ( {heroDescriptionLines.map((line, i) => (
@@ -174,7 +174,7 @@ export default function CasesContentV3({
<motion.div <motion.div
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.7, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.7, ease: EASE_OUT }}
className="flex flex-wrap gap-3" className="flex flex-wrap gap-3"
> >
<span className="px-4 py-2 text-xs font-bold text-brand border border-brand/20 bg-brand/[0.05]"> <span className="px-4 py-2 text-xs font-bold text-brand border border-brand/20 bg-brand/[0.05]">
@@ -231,7 +231,7 @@ export default function CasesContentV3({
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="lg:max-w-2xl" className="lg:max-w-2xl"
> >
<div className="text-sm font-mono tracking-[0.2em] text-text-muted uppercase mb-6"> <div className="text-sm font-mono tracking-[0.2em] text-text-muted uppercase mb-6">
@@ -249,7 +249,7 @@ export default function CasesContentV3({
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, delay: 0.15, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.15, ease: EASE_OUT }}
> >
<div className="flex items-center gap-2 flex-wrap"> <div className="flex items-center gap-2 flex-wrap">
<Filter className="w-4 h-4 text-text-muted" /> <Filter className="w-4 h-4 text-text-muted" />
@@ -297,7 +297,7 @@ export default function CasesContentV3({
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="max-w-3xl" className="max-w-3xl"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95] mb-8"> <h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95] mb-8">
@@ -21,7 +21,7 @@ function DetailHero({ service }: { service: Service }) {
<motion.h1 <motion.h1
initial={{ opacity: 0, y: 40 }} initial={{ opacity: 0, y: 40 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 1, delay: 0.2, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.2, ease: EASE_OUT }}
className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black text-ink leading-[0.92] tracking-tightest mb-10 sm:mb-12 md:mb-16" className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black text-ink leading-[0.92] tracking-tightest mb-10 sm:mb-12 md:mb-16"
> >
<div className="block">{service.title}</div> <div className="block">{service.title}</div>
@@ -34,7 +34,7 @@ function DetailHero({ service }: { service: Service }) {
style={{ transformOrigin: 'left' }} style={{ transformOrigin: 'left' }}
initial={{ scaleX: 0 }} initial={{ scaleX: 0 }}
animate={{ scaleX: 1 }} animate={{ scaleX: 1 }}
transition={{ duration: 0.8, delay: 1.2, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 1.2, ease: EASE_OUT }}
/> />
</span> </span>
</span> </span>
@@ -44,7 +44,7 @@ function DetailHero({ service }: { service: Service }) {
<motion.p <motion.p
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.5, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.5, ease: EASE_OUT }}
className="text-lg md:text-xl text-text-secondary max-w-2xl leading-relaxed mb-12 sm:mb-16" className="text-lg md:text-xl text-text-secondary max-w-2xl leading-relaxed mb-12 sm:mb-16"
> >
{service.description} {service.description}
@@ -53,7 +53,7 @@ function DetailHero({ service }: { service: Service }) {
<motion.div <motion.div
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.7, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.7, ease: EASE_OUT }}
className="grid grid-cols-3 gap-8 mb-12 sm:mb-16 max-w-xl" className="grid grid-cols-3 gap-8 mb-12 sm:mb-16 max-w-xl"
> >
<div> <div>
@@ -79,7 +79,7 @@ function DetailHero({ service }: { service: Service }) {
<motion.div <motion.div
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.9, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.9, ease: EASE_OUT }}
className="flex flex-col sm:flex-row gap-4 sm:gap-6" className="flex flex-col sm:flex-row gap-4 sm:gap-6"
> >
<CTAButton href="/contact" dataTestId="service-detail-hero-primary" className="min-h-[52px]"> <CTAButton href="/contact" dataTestId="service-detail-hero-primary" className="min-h-[52px]">
@@ -107,7 +107,7 @@ function OverviewSection({ service }: { service: Service }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="lg:col-span-5" className="lg:col-span-5"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]"> <h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]">
@@ -119,7 +119,7 @@ function OverviewSection({ service }: { service: Service }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, delay: 0.15, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.15, ease: EASE_OUT }}
className="lg:col-span-7" className="lg:col-span-7"
> >
<p className="text-text-secondary leading-relaxed text-lg mb-8"> <p className="text-text-secondary leading-relaxed text-lg mb-8">
@@ -151,7 +151,7 @@ function FeaturesSection({ service }: { service: Service }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="max-w-3xl mb-16 sm:mb-20 md:mb-24" className="max-w-3xl mb-16 sm:mb-20 md:mb-24"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]"> <h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]">
@@ -207,7 +207,7 @@ function ProcessSection({ service }: { service: Service }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="max-w-3xl mb-16 sm:mb-20 md:mb-24" className="max-w-3xl mb-16 sm:mb-20 md:mb-24"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]"> <h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]">
@@ -87,7 +87,7 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
<motion.h1 <motion.h1
initial={{ opacity: 0, y: 40 }} initial={{ opacity: 0, y: 40 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 1, delay: 0.2, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.2, ease: EASE_OUT }}
className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black text-ink leading-[0.92] tracking-tightest mb-10 sm:mb-12 md:mb-16" className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black text-ink leading-[0.92] tracking-tightest mb-10 sm:mb-12 md:mb-16"
> >
<div className="block">{heroTitle1}</div> <div className="block">{heroTitle1}</div>
@@ -100,7 +100,7 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
style={{ transformOrigin: 'left' }} style={{ transformOrigin: 'left' }}
initial={{ scaleX: 0 }} initial={{ scaleX: 0 }}
animate={{ scaleX: 1 }} animate={{ scaleX: 1 }}
transition={{ duration: 0.8, delay: 1.2, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 1.2, ease: EASE_OUT }}
/> />
</span> </span>
</span> </span>
@@ -110,7 +110,7 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
<motion.p <motion.p
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.5, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.5, ease: EASE_OUT }}
className="text-lg md:text-xl text-text-secondary max-w-2xl leading-relaxed mb-12 sm:mb-16" className="text-lg md:text-xl text-text-secondary max-w-2xl leading-relaxed mb-12 sm:mb-16"
> >
{heroDescriptionLines.map((line, i) => ( {heroDescriptionLines.map((line, i) => (
@@ -124,7 +124,7 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
<motion.div <motion.div
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.7, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.7, ease: EASE_OUT }}
className="flex flex-col sm:flex-row gap-4 sm:gap-6" className="flex flex-col sm:flex-row gap-4 sm:gap-6"
> >
<CTAButton href="/contact" dataTestId="services-hero-primary" className="min-h-[52px]"> <CTAButton href="/contact" dataTestId="services-hero-primary" className="min-h-[52px]">
@@ -138,7 +138,7 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
<motion.div <motion.div
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.9, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.9, ease: EASE_OUT }}
className="grid grid-cols-3 gap-8 mt-20 pt-12 border-t border-border-primary max-w-xl" className="grid grid-cols-3 gap-8 mt-20 pt-12 border-t border-border-primary max-w-xl"
> >
<div> <div>
@@ -191,7 +191,7 @@ function ServicesGridSection({ services, pageCopy }: { services?: Service[]; pag
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="max-w-3xl mb-16 sm:mb-20 md:mb-24" className="max-w-3xl mb-16 sm:mb-20 md:mb-24"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]"> <h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]">
@@ -266,7 +266,7 @@ function ProcessModesSection() {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="lg:col-span-7" className="lg:col-span-7"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl font-extrabold text-ink tracking-tight leading-[0.95] mb-10 sm:mb-14"> <h2 className="text-3xl sm:text-4xl md:text-5xl font-extrabold text-ink tracking-tight leading-[0.95] mb-10 sm:mb-14">
@@ -299,7 +299,7 @@ function ProcessModesSection() {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, delay: 0.15, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.15, ease: EASE_OUT }}
className="lg:col-span-5" className="lg:col-span-5"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl font-extrabold text-ink tracking-tight leading-[0.95] mb-10 sm:mb-14"> <h2 className="text-3xl sm:text-4xl md:text-5xl font-extrabold text-ink tracking-tight leading-[0.95] mb-10 sm:mb-14">
@@ -343,7 +343,7 @@ function CTASection({ pageCopy }: { pageCopy?: PageCopy | null }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="max-w-3xl" className="max-w-3xl"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95] mb-8"> <h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95] mb-8">
@@ -35,7 +35,7 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
<motion.h1 <motion.h1
initial={{ opacity: 0, y: 40 }} initial={{ opacity: 0, y: 40 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 1, delay: 0.2, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.2, ease: EASE_OUT }}
className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black text-ink leading-[0.92] tracking-tightest mb-10 sm:mb-12 md:mb-16" className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black text-ink leading-[0.92] tracking-tightest mb-10 sm:mb-12 md:mb-16"
> >
<div className="block">{heroTitle1}</div> <div className="block">{heroTitle1}</div>
@@ -48,7 +48,7 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
style={{ transformOrigin: 'left' }} style={{ transformOrigin: 'left' }}
initial={{ scaleX: 0 }} initial={{ scaleX: 0 }}
animate={{ scaleX: 1 }} animate={{ scaleX: 1 }}
transition={{ duration: 0.8, delay: 1.2, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 1.2, ease: EASE_OUT }}
/> />
</span> </span>
</span> </span>
@@ -58,7 +58,7 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
<motion.p <motion.p
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.5, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.5, ease: EASE_OUT }}
className="text-lg md:text-xl text-text-secondary max-w-2xl leading-relaxed mb-12 sm:mb-16" className="text-lg md:text-xl text-text-secondary max-w-2xl leading-relaxed mb-12 sm:mb-16"
> >
{heroDescriptionLines.map((line, i) => ( {heroDescriptionLines.map((line, i) => (
@@ -72,7 +72,7 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
<motion.div <motion.div
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.7, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.7, ease: EASE_OUT }}
className="flex flex-col sm:flex-row gap-4 sm:gap-6" className="flex flex-col sm:flex-row gap-4 sm:gap-6"
> >
<CTAButton href="/contact" dataTestId="solutions-hero-primary" className="min-h-[52px]"> <CTAButton href="/contact" dataTestId="solutions-hero-primary" className="min-h-[52px]">
@@ -86,7 +86,7 @@ function HeroSection({ pageCopy }: { pageCopy?: PageCopy | null }) {
<motion.div <motion.div
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.9, ease: EASE_OUT }} transition={{ duration: 0.3, delay: 0.9, ease: EASE_OUT }}
className="grid grid-cols-3 gap-8 mt-20 pt-12 border-t border-border-primary max-w-xl" className="grid grid-cols-3 gap-8 mt-20 pt-12 border-t border-border-primary max-w-xl"
> >
<div> <div>
@@ -193,7 +193,7 @@ function SolutionsGridSection({ solutions, products, pageCopy }: { solutions: So
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="max-w-3xl mb-16 sm:mb-20 md:mb-24" className="max-w-3xl mb-16 sm:mb-20 md:mb-24"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]"> <h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]">
@@ -224,7 +224,7 @@ function CTASection({ pageCopy }: { pageCopy?: PageCopy | null }) {
initial={{ opacity: 0, y: 30 }} initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }} whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }} viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.8, ease: EASE_OUT }} transition={{ duration: 0.3, ease: EASE_OUT }}
className="max-w-3xl" className="max-w-3xl"
> >
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95] mb-8"> <h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95] mb-8">