parfum_agsd/parfum-shop/src/pages/LandingPage.css

778 lines
15 KiB
CSS

.page {
position: relative;
min-height: 100vh;
color: var(--theme-text);
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.page main {
padding-bottom: var(--section-y-sm);
}
/* HERO */
.hero {
position: relative;
width: 100%;
min-height: 720px;
min-height: max(720px, 100vh);
min-height: max(720px, 100dvh);
overflow: hidden;
isolation: isolate;
background: var(--theme-bg);
transition: background-color var(--duration-med) var(--ease-out);
}
.hero::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
background: none;
}
.hero-material {
position: absolute;
inset: 0;
z-index: 0;
overflow: hidden;
background: var(--theme-bg);
will-change: transform;
}
.hero-material__texture {
position: absolute;
inset: 0;
z-index: 1;
background: var(--theme-bg);
will-change: transform;
}
.hero-wordmark {
position: absolute;
top: clamp(3.4rem, 6vh, 5.5rem);
left: var(--page-x);
right: var(--page-x);
z-index: 2;
pointer-events: none;
user-select: none;
}
.hero-wordmark__mask {
overflow: hidden;
padding-top: 0.08rem;
}
.hero-wordmark__image {
display: block;
width: 100%;
height: auto;
opacity: 0.96;
will-change: transform, opacity, filter;
}
body.theme-light .hero-wordmark__image {
filter: invert(1);
opacity: 0.86;
}
.hero-product {
position: absolute;
top: clamp(20rem, 52vh, 40rem);
left: 50%;
z-index: 5;
width: clamp(20rem, 31vw, 42rem);
aspect-ratio: 1078 / 1284;
margin: 0;
display: grid;
place-items: center;
transform: translate(-50%, -50%);
will-change: transform;
}
.hero-product__inner {
position: relative;
width: 100%;
height: 100%;
display: grid;
place-items: center;
will-change: transform, opacity;
}
.hero-product__image {
position: relative;
z-index: 1;
width: 100%;
height: 100%;
object-fit: contain;
display: block;
filter: var(--shadow-product);
}
.hero-content {
position: absolute;
left: var(--page-x);
bottom: clamp(7.5rem, 19vh, 17rem);
z-index: 6;
width: min(25rem, calc(50vw - var(--page-x) - 8rem));
color: var(--theme-text);
}
.hero-copy {
max-width: 25rem;
margin: 0;
font-size: clamp(1.65rem, 2.25vw, 2.25rem);
line-height: 1.08;
font-weight: 300;
letter-spacing: 0;
color: var(--theme-text);
}
.hero-copy-line {
display: block;
overflow: hidden;
padding-right: 0.08em;
padding-bottom: 0.03em;
margin-right: -0.08em;
margin-bottom: -0.03em;
}
.hero-copy-line .reveal-line {
display: inline-block;
will-change: transform;
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: clamp(0.75rem, 1.2vw, 1rem);
margin-top: clamp(1.25rem, 3.2vh, 1.75rem);
will-change: transform, opacity;
}
/* Hero CTAs use the global .atmos-btn system (see src/style/buttons.css). */
.hero-scroll {
position: absolute;
right: var(--page-x);
bottom: clamp(7.5rem, 19vh, 17rem);
z-index: 6;
width: min(28vw, 420px);
padding-top: 0.55rem;
border-top: 1px solid var(--theme-border-strong);
color: var(--theme-text-muted);
}
.hero-scroll__line {
display: none;
}
.hero-scroll__label {
display: block;
margin: 0;
font-size: var(--text-xs);
line-height: 1.4;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.intro-overlay {
position: absolute;
inset: 0;
z-index: 999;
background: var(--theme-paper);
display: grid;
place-items: center;
will-change: transform;
}
.intro-overlay__inner {
width: 100%;
height: 100%;
display: grid;
place-items: center;
padding: var(--page-x);
}
.intro-overlay__text-mask {
width: min(96vw, 1200px);
display: flex;
justify-content: center;
overflow: hidden;
}
.intro-overlay__logo {
width: clamp(100px, 20vw, 340px);
max-width: 92vw;
}
.intro-overlay__logo img {
width: 100%;
height: auto;
display: block;
}
/* SECTIONS */
.section {
width: var(--container-wide);
margin: 0 auto;
padding: var(--section-y-sm) 0 var(--section-y-xs);
}
.section-heading {
position: relative;
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
gap: var(--gap-md);
align-items: end;
margin-bottom: clamp(1.6rem, 4vw, 4.8rem);
}
.section-heading::after {
content: "01 / Kollektion";
position: absolute;
top: 0;
right: 0;
width: min(32vw, 420px);
padding-top: 0.55rem;
border-top: 1px solid var(--theme-border);
color: var(--theme-text-muted);
font-size: var(--text-xs);
line-height: 1.4;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.section-heading h2,
.discovery-copy h2 {
margin: 0;
font-size: clamp(2.6rem, 7vw, 7.4rem);
line-height: 0.92;
font-weight: 300;
letter-spacing: 0;
color: var(--theme-text);
text-wrap: balance;
}
.section-heading h2 {
grid-column: 1 / span 8;
}
/* GRID — columns provided by the global Grid12 system (see Grid.jsx).
.product-grid only contributes container queries here. */
.product-grid {
container-type: inline-size;
list-style: none;
margin: 0;
padding: 0;
}
.product-card-item {
min-width: 0;
display: flex;
}
.product-card {
position: relative;
container-type: inline-size;
isolation: isolate;
overflow: hidden;
min-height: clamp(360px, 36vw, 560px);
display: grid;
grid-template-rows: auto minmax(14rem, 1fr) auto;
padding: clamp(1rem, 2vw, 1.55rem);
color: inherit;
text-decoration: none;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
var(--theme-surface);
border: 1px solid var(--theme-border);
border-radius: var(--radius-lg);
cursor: pointer;
transition:
transform var(--duration-med) var(--ease-out),
border-color var(--duration-med) var(--ease-out),
background-color var(--duration-med) var(--ease-out),
box-shadow var(--duration-med) var(--ease-out);
}
.product-card-item .product-card {
width: 100%;
}
.product-card::before {
content: "";
position: absolute;
inset: 0;
z-index: 3;
pointer-events: none;
background:
linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 28%),
linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 42%);
opacity: 0;
transition: opacity var(--duration-med) var(--ease-out);
}
.product-card:hover,
.product-card:focus-visible {
transform: translateY(-4px);
border-color: rgba(var(--theme-accent-rgb) / 0.48);
box-shadow: var(--theme-shadow-soft);
}
.product-card:hover::before,
.product-card:focus-visible::before {
opacity: 1;
}
.product-card:focus-visible {
outline: 2px solid var(--theme-accent);
outline-offset: 4px;
}
.product-hover-fill {
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
}
.product-hover-image,
.product-hover-video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 0;
}
.product-hover-image {
background-size: cover;
background-position: center;
}
.product-hover-video {
display: block;
object-fit: cover;
}
.product-hover-fill::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
background: linear-gradient(
to bottom,
rgba(255, 255, 255, 0.06),
rgba(0, 0, 0, 0.34)
);
}
.product-card:active {
transform: translateY(-1px) scale(0.985);
border-color: var(--theme-accent);
}
.product-top {
position: relative;
z-index: 4;
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: var(--gap-sm);
}
.product-id {
font-size: var(--text-sm);
color: var(--theme-text-muted);
}
.product-top h3 {
max-width: 12ch;
margin: 0;
font-size: var(--text-sm);
line-height: 1.15;
font-weight: 400;
text-align: right;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.product-image-wrap {
position: relative;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
min-height: 0;
padding: clamp(1.2rem, 5vw, 4.8rem) 0;
overflow: hidden;
}
.product-image {
position: relative;
z-index: 1;
width: min(92%, 520px);
height: auto;
object-fit: contain;
border-radius: 0;
filter: var(--shadow-product-card);
transition: transform var(--duration-slow) var(--ease-out);
}
.product-card:hover .product-image {
transform: scale(1.045) rotate(-0.6deg);
}
.product-bottom {
position: relative;
z-index: 4;
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: var(--gap-sm);
}
.product-bottom p {
max-width: 18rem;
margin: 0;
color: var(--theme-text-muted);
font-size: var(--text-sm);
line-height: 1.45;
}
.arrow {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 2rem;
width: 2rem;
height: 2rem;
color: var(--theme-accent);
font-size: 0;
line-height: 0;
}
.arrow::before {
content: "";
display: block;
width: clamp(1.35rem, 2.2vw, 1.75rem);
height: clamp(1.35rem, 2.2vw, 1.75rem);
background: currentColor;
transform: rotate(180deg);
-webkit-mask: url("/icon-arrow-left.svg") center / contain no-repeat;
mask: url("/icon-arrow-left.svg") center / contain no-repeat;
}
.product-id,
.product-top h3,
.product-bottom p,
.arrow {
transition:
color var(--duration-med) var(--ease-out),
transform var(--duration-med) var(--ease-out);
}
.product-card:hover .product-id,
.product-card:hover .product-top h3,
.product-card:hover .product-bottom p,
.product-card:hover .arrow,
.product-card:focus-within .product-id,
.product-card:focus-within .product-top h3,
.product-card:focus-within .product-bottom p,
.product-card:focus-within .arrow {
color: #fff;
}
.product-card:hover .arrow,
.product-card:focus-within .arrow {
transform: translateX(0.35rem);
}
/* DISCOVERY */
.discovery-section {
position: relative;
width: var(--container-wide);
min-height: clamp(520px, 62vw, 780px);
margin: var(--section-y-sm) auto 0;
padding: clamp(1.25rem, 4vw, 4rem);
display: grid;
grid-template-columns: minmax(17rem, 0.85fr) minmax(0, 1.35fr);
gap: var(--gap-lg);
align-items: center;
overflow: hidden;
background:
radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.22), transparent 16rem),
linear-gradient(135deg, var(--theme-accent-fill), var(--theme-accent-fill-strong));
border-radius: var(--radius-lg);
}
.discovery-section::after {
content: "";
position: absolute;
inset: 1px;
border: 1px solid rgba(255, 255, 255, 0.26);
border-radius: inherit;
pointer-events: none;
}
.discovery-copy {
position: relative;
z-index: 2;
max-width: 36rem;
}
.discovery-copy h2 {
color: var(--theme-accent-contrast);
font-size: clamp(2.2rem, 5.8vw, 6rem);
}
.discovery-copy p {
max-width: 29rem;
margin: clamp(1rem, 2vw, 1.4rem) 0 0;
color: var(--theme-accent-contrast);
font-size: var(--text-base);
line-height: 1.62;
}
.discovery-copy .atmos-btn {
margin-top: clamp(1.3rem, 3vw, 2.1rem);
}
.discovery-banner {
position: relative;
z-index: 1;
width: min(100%, 1080px);
aspect-ratio: 16 / 10;
min-height: 320px;
justify-self: end;
overflow: hidden;
border-radius: var(--radius-lg);
box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}
.discovery-banner::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
border: 1px solid rgba(255, 255, 255, 0.24);
border-radius: inherit;
pointer-events: none;
}
.discovery-banner img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
display: block;
will-change: transform;
}
/* RESPONSIVE */
@media (max-width: 1180px) {
.hero-copy {
font-size: clamp(1.45rem, 2.35vw, 1.9rem);
}
.hero-product {
/* Tablet range (≤ 1180 px): viewports are taller relative to width,
so we re-center the product instead of inheriting the desktop 52vh. */
top: clamp(17rem, 44vh, 28rem);
width: clamp(21rem, 45vw, 34rem);
}
.hero-content {
width: min(23rem, calc(50vw - var(--page-x) - 5rem));
}
.hero-scroll {
width: clamp(9rem, 16vw, 12rem);
}
.section-heading {
grid-template-columns: 1fr;
padding-top: clamp(2.4rem, 6vw, 3.4rem);
}
.section-heading h2,
.section-heading::after {
grid-column: 1;
}
.section-heading::after {
max-width: 18rem;
}
/* .product-grid columns handled by Grid12 (md:6 / lg:4) */
.discovery-section {
grid-template-columns: 1fr;
}
.discovery-banner {
justify-self: stretch;
}
}
@media (max-width: 760px) {
.hero {
min-height: 720px;
min-height: max(720px, 100vh);
min-height: max(720px, 100dvh);
}
.hero-material__texture {
inset: 0;
}
.hero-wordmark {
top: clamp(5.8rem, 14svh, 7.5rem);
left: var(--page-x);
right: var(--page-x);
}
.hero-product {
/* Phone: keep the product centered, but narrower than the viewport
so it does not crowd the copy block near the bottom. */
aspect-ratio: auto;
top: clamp(11rem, 24svh, 14rem);
left: 50%;
right: auto;
width: clamp(15rem, 74vw, 21rem);
height: clamp(16rem, 38svh, 21rem);
transform: translateX(-50%);
}
.hero-content {
left: clamp(1rem, 5vw, 1.5rem);
right: clamp(1rem, 5vw, 1.5rem);
bottom: clamp(2rem, 7svh, 4rem);
transform: none;
width: auto;
max-width: 27rem;
}
.hero-copy {
font-size: clamp(1.55rem, 7vw, 2rem);
line-height: 1.08;
}
.hero-actions {
gap: 0.65rem;
margin-top: 1.1rem;
}
.hero-actions .atmos-btn {
min-height: 44px;
padding-inline: 0.95rem;
font-size: 0.78rem;
}
.hero-scroll {
display: none;
}
/* .product-grid mobile: Grid12 base = col-span-12 = single column */
.section-heading::after {
right: auto;
left: 0;
width: min(100%, 24rem);
}
.product-card {
min-height: clamp(340px, 118vw, 520px);
}
.product-top h3 {
max-width: 11ch;
}
.discovery-section {
width: calc(100% - (var(--page-x) * 2));
min-height: 0;
padding: clamp(1rem, 5vw, 1.5rem);
}
.discovery-banner {
min-height: 0;
aspect-ratio: 1 / 1;
}
}
@media (max-width: 430px) {
.hero {
min-height: 700px;
min-height: max(700px, 100vh);
min-height: max(700px, 100dvh);
}
.hero-product {
/* Slightly tighter slot for compact phones. */
top: clamp(10rem, 22svh, 13rem);
width: clamp(14rem, 70vw, 18.5rem);
height: clamp(15rem, 36svh, 19rem);
}
.hero-copy {
font-size: clamp(1.42rem, 7vw, 1.72rem);
}
.section-heading h2,
.discovery-copy h2 {
font-size: clamp(2.25rem, 13vw, 3.45rem);
}
.product-card {
padding: 1rem;
}
.product-bottom {
align-items: flex-start;
}
}
@container (max-width: 360px) {
.product-bottom {
flex-direction: column;
align-items: flex-start;
}
.arrow {
align-self: flex-end;
}
}
@media (prefers-reduced-motion: reduce) {
.hero-material,
.hero-material__texture,
.hero-copy-line,
.hero-wordmark__image,
.hero-product,
.hero-product__inner,
.hero-product__image,
.hero-actions,
.intro-overlay,
.product-card,
.product-image,
.discovery-banner img {
transition: none;
animation: none;
will-change: auto;
}
}