5151 --home-image-silhouette-brightness : 1.24 ;
5252 --home-image-silhouette-contrast : 1.08 ;
5353 --home-next-layer-opacity : 0 ;
54- --home-next-layer-shift : 24px ;
55- --home-next-layer-overlap : clamp (31rem , 62vh , 42rem );
56- --site-html-warm-alpha : 0.08 ;
57- --site-html-cool-alpha : 0.08 ;
58- --site-body-warm-alpha : 0.11 ;
59- --site-body-cool-alpha : 0.10 ;
60- --site-body-bottom-alpha : 0.012 ;
54+ --home-next-layer-shift : 18px ;
55+ --home-next-layer-overlap : clamp (34rem , 68vh , 46rem );
56+ --site-atmosphere-opacity : 1 ;
6157}
6258
6359* {
6763html {
6864 scroll-behavior : smooth;
6965 -webkit-text-size-adjust : 100% ;
70- background :
71- radial-gradient (72% 58% at 22% 26% , rgba (255 , 157 , 77 , var (--site-html-warm-alpha )), rgba (255 , 157 , 77 , 0 ) 70% ),
72- radial-gradient (64% 54% at 78% 34% , rgba (82 , 104 , 255 , var (--site-html-cool-alpha )), rgba (82 , 104 , 255 , 0 ) 72% ),
73- linear-gradient (180deg , var (--bg ) 0% , var (--bg-soft ) 100% );
66+ background : linear-gradient (180deg , var (--bg ) 0% , var (--bg-soft ) 100% );
7467 color-scheme : dark;
7568}
7669
@@ -82,21 +75,29 @@ body {
8275 position : relative;
8376 font-family : var (--body-font );
8477 color : var (--text );
85- background :
86- radial-gradient (72% 58% at 22% 26% , rgba (255 , 157 , 77 , var (--site-body-warm-alpha )), rgba (255 , 157 , 77 , 0 ) 70% ),
87- radial-gradient (64% 54% at 78% 34% , rgba (82 , 104 , 255 , var (--site-body-cool-alpha )), rgba (82 , 104 , 255 , 0 ) 72% ),
88- radial-gradient (78% 66% at 56% 100% , rgba (255 , 255 , 255 , var (--site-body-bottom-alpha )), rgba (255 , 255 , 255 , 0 ) 72% ),
89- linear-gradient (180deg , var (--bg ) 0% , var (--bg-soft ) 100% );
78+ background : linear-gradient (180deg , var (--bg ) 0% , var (--bg-soft ) 100% );
9079 overflow-x : hidden;
9180 background-color : var (--bg );
9281}
9382
83+ body ::before {
84+ content : "" ;
85+ position : fixed;
86+ inset : 0 ;
87+ z-index : 0 ;
88+ pointer-events : none;
89+ background :
90+ radial-gradient (72% 58% at 22% 26% , rgba (255 , 157 , 77 , 0.19 ), rgba (255 , 157 , 77 , 0 ) 70% ),
91+ radial-gradient (64% 54% at 78% 34% , rgba (82 , 104 , 255 , 0.18 ), rgba (82 , 104 , 255 , 0 ) 72% ),
92+ radial-gradient (78% 66% at 56% 100% , rgba (255 , 255 , 255 , 0.012 ), rgba (255 , 255 , 255 , 0 ) 72% );
93+ opacity : var (--site-atmosphere-opacity );
94+ will-change : opacity;
95+ transform : translateZ (0 );
96+ backface-visibility : hidden;
97+ }
98+
9499body .page-home {
95- --site-html-warm-alpha : 0 ;
96- --site-html-cool-alpha : 0 ;
97- --site-body-warm-alpha : 0 ;
98- --site-body-cool-alpha : 0 ;
99- --site-body-bottom-alpha : 0 ;
100+ --site-atmosphere-opacity : 0 ;
100101}
101102
102103body .no-scroll {
@@ -1025,14 +1026,15 @@ a {
10251026.hero {
10261027 --hero-stage-offset : var (--page-top-offset );
10271028 --hero-top-pad : clamp (1.3rem , 1.9vw , 2rem );
1028- --hero-content-bottom-gap : clamp (1.55rem , 2.35vw , 2.25rem );
1029+ --hero-stage-bottom-pad : clamp (1.55rem , 2.35vw , 2.25rem );
1030+ --hero-copy-bottom-offset : clamp (2.1rem , 3vw , 2.9rem );
10291031 --hero-stage-min : 0px ;
10301032 --home-transition-span : clamp (9rem , 16vh , 13rem );
10311033 --home-transition-distance : var (--home-transition-span );
1032- --hero-image-anchor-y : 48.9 % ;
1033- --hero-stage-height : calc (var (--hero-initial-viewport-height , 100svh ) - var (--hero-stage-offset ) - var (--hero-top-pad ) - var (--hero-content -bottom-gap ));
1034+ --hero-image-anchor-y : 47.7 % ;
1035+ --hero-stage-height : calc (var (--hero-initial-viewport-height , 100svh ) - var (--hero-stage-offset ) - var (--hero-top-pad ) - var (--hero-stage -bottom-pad ));
10341036 --hero-stage-reference : max (var (--hero-stage-height ), var (--hero-stage-min ));
1035- --hero-visual-height : calc (var (--hero-top-pad ) + var (--hero-stage-reference ) + var (--hero-content -bottom-gap ));
1037+ --hero-visual-height : calc (var (--hero-top-pad ) + var (--hero-stage-reference ) + var (--hero-stage -bottom-pad ));
10361038 --hero-image-size : clamp (30rem , calc (var (--hero-stage-reference ) * 1.06 ), 60rem );
10371039 --hero-image-max-inline : 100% ;
10381040 --hero-tagline-base-size : clamp (2.75rem , min (calc (var (--hero-stage-reference ) * 0.106 ), 12.6cqi ), 4.45rem );
@@ -1060,14 +1062,14 @@ a {
10601062 inset : 0 0 auto;
10611063 height : var (--hero-visual-height );
10621064 padding-top : var (--hero-top-pad );
1063- padding-bottom : var (--hero-content -bottom-gap );
1065+ padding-bottom : var (--hero-stage -bottom-pad );
10641066 z-index : 3 ;
10651067 isolation : isolate;
10661068}
10671069
10681070.hero-visual {
10691071 position : sticky;
1070- top : 0 ;
1072+ top : var ( --page-top-offset ) ;
10711073 height : var (--hero-visual-height );
10721074 z-index : 1 ;
10731075 pointer-events : none;
@@ -1429,7 +1431,7 @@ a {
14291431
14301432.hero-copy {
14311433 position : absolute;
1432- inset : auto 0 var (--hero-content -bottom-gap );
1434+ inset : auto 0 var (--hero-copy -bottom-offset );
14331435 z-index : 3 ;
14341436 display : flex;
14351437 align-items : flex-end;
@@ -2398,7 +2400,8 @@ body.page-home #about {
23982400
23992401 .hero {
24002402 --hero-top-pad : clamp (1rem , 1.7vw , 1.4rem );
2401- --hero-content-bottom-gap : clamp (1.45rem , 2.25vw , 2rem );
2403+ --hero-stage-bottom-pad : clamp (1.4rem , 2.15vw , 1.95rem );
2404+ --hero-copy-bottom-offset : clamp (1.8rem , 2.9vw , 2.35rem );
24022405 }
24032406
24042407 .hero-copy {
@@ -2463,11 +2466,12 @@ body.page-home #about {
24632466
24642467 .hero {
24652468 --hero-top-pad : 1.05rem ;
2466- --hero-content-bottom-gap : 1.25rem ;
2469+ --hero-stage-bottom-pad : 1.1rem ;
2470+ --hero-copy-bottom-offset : 1.72rem ;
24672471 --home-transition-span : clamp (8.5rem , 15vh , 11.5rem );
24682472 --hero-image-size : clamp (29rem , calc (var (--hero-stage-reference ) * 0.96 ), 52rem );
24692473 --hero-image-max-inline : 110vw ;
2470- --hero-image-anchor-y : 45.4 % ;
2474+ --hero-image-anchor-y : 43.95 % ;
24712475 --hero-tagline-base-size : clamp (2.25rem , min (calc (var (--hero-stage-reference ) * 0.1 ), 11.2cqi ), 3.35rem );
24722476 }
24732477
0 commit comments