|
192 | 192 | } |
193 | 193 |
|
194 | 194 | .hero-content { |
195 | | - min-height: 44rem; |
196 | 195 | align-items: flex-start; |
197 | 196 | padding-top: 3.5rem; |
198 | | - padding-bottom: 20rem; |
| 197 | + padding-bottom: 0; |
199 | 198 | } |
200 | 199 |
|
201 | 200 | .hero-copy { |
|
204 | 203 | } |
205 | 204 |
|
206 | 205 | .hero-science-field { |
207 | | - position: absolute; |
208 | | - bottom: -2rem; |
209 | | - left: 50%; |
| 206 | + position: relative; |
210 | 207 | z-index: 1; |
211 | | - width: min(135vw, 44rem); |
| 208 | + width: min(118vw, 34rem); |
| 209 | + margin-top: 1rem; |
| 210 | + margin-right: -8vw; |
| 211 | + margin-bottom: -2.5rem; |
| 212 | + margin-left: auto; |
212 | 213 | pointer-events: none; |
213 | 214 | opacity: 0.78; |
214 | | - transform: translateX(-50%); |
215 | | - -webkit-mask-image: radial-gradient( |
216 | | - ellipse 78% 76% at 60% 48%, |
217 | | - #000 0 54%, |
218 | | - rgb(0 0 0 / 92%) 72%, |
219 | | - transparent 100% |
220 | | - ); |
221 | | - mask-image: radial-gradient( |
222 | | - ellipse 78% 76% at 60% 48%, |
223 | | - #000 0 54%, |
224 | | - rgb(0 0 0 / 92%) 72%, |
225 | | - transparent 100% |
226 | | - ); |
227 | 215 | } |
228 | 216 |
|
229 | 217 | .dark .hero-science-field { |
|
305 | 293 | } |
306 | 294 | } |
307 | 295 |
|
| 296 | +@media (min-width: 480px) { |
| 297 | + .hero-science-field { |
| 298 | + width: min(108vw, 40rem); |
| 299 | + margin-top: 1.5rem; |
| 300 | + margin-right: -7vw; |
| 301 | + } |
| 302 | +} |
| 303 | + |
308 | 304 | @media (min-width: 640px) { |
309 | 305 | .hero-content { |
310 | | - min-height: 54rem; |
311 | 306 | padding-top: 4rem; |
312 | | - padding-bottom: 27rem; |
313 | 307 | } |
314 | 308 |
|
315 | 309 | .hero-science-field { |
316 | | - bottom: -3rem; |
317 | | - width: min(110vw, 52rem); |
| 310 | + width: min(100vw, 46rem); |
| 311 | + margin-top: 2rem; |
| 312 | + margin-right: -6vw; |
318 | 313 | } |
319 | 314 | } |
320 | 315 |
|
321 | 316 | @media (min-width: 1024px) { |
322 | 317 | .hero-content { |
323 | | - min-height: 40rem; |
| 318 | + min-height: 42rem; |
324 | 319 | align-items: center; |
325 | 320 | padding-top: 6rem; |
326 | 321 | padding-bottom: 6rem; |
327 | 322 | } |
328 | 323 |
|
329 | 324 | .hero-science-field { |
| 325 | + position: absolute; |
330 | 326 | top: 50%; |
331 | | - bottom: auto; |
332 | | - left: calc(50% - 5rem); |
333 | | - width: min(72vw, 76rem); |
| 327 | + right: clamp(-4rem, -3vw, -2rem); |
| 328 | + width: min(60vw, 64rem); |
| 329 | + margin: 0; |
334 | 330 | opacity: 0.9; |
335 | 331 | transform: translateY(-50%); |
| 332 | + -webkit-mask-image: linear-gradient( |
| 333 | + 90deg, |
| 334 | + transparent 0, |
| 335 | + #000 10%, |
| 336 | + #000 100% |
| 337 | + ); |
| 338 | + mask-image: linear-gradient( |
| 339 | + 90deg, |
| 340 | + transparent 0, |
| 341 | + #000 10%, |
| 342 | + #000 100% |
| 343 | + ); |
336 | 344 | } |
337 | 345 |
|
338 | 346 | .dark .hero-science-field { |
|
0 commit comments