/* ==========================================================================
   KM Beauty — blush edition
   Palette: blush nude (the page), petal (cards), deep burgundy ink (text and
   buttons) and "lacquer": the shade currently on the 3D bottle, set live by
   js/km-main.js.
   ========================================================================== */

:root {
    --blush: #f4e6e1;
    --blush-2: #ead6cf;
    --blush-3: #e2c7be;
    --petal: #fbf3f0;
    --ink: #3a0e16;
    --ink-2: #5a2a30;
    --ink-soft: rgba(58, 14, 22, 0.78);
    --muted: #7a5a5e;
    --hair: rgba(58, 14, 22, 0.14);
    --lacquer: #ad2440;
    --on-lacquer: #fbf3f0;
    --lacquer-ui: color-mix(in oklab, var(--lacquer) 72%, var(--ink) 28%);

    /* One family, close to the "BEAUTY" lettering in the logo */
    --display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
    --sans: "Jost", "Futura", "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

    --pad: clamp(1.25rem, 4.2vw, 4rem);
    --maxw: 1320px;
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    background: var(--blush);
}

html:not(.lenis) {
    scroll-behavior: smooth;
}

body {
    background: var(--blush);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.01em;
    font-optical-sizing: auto;
}

::selection {
    background: var(--ink);
    color: var(--petal);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 2px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.7rem 1.1rem;
    background: var(--ink);
    color: var(--petal);
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* Lenis */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
    overflow: clip;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* ---------- Intro curtain ---------- */
.intro {
    display: none;
}

.js .intro {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    background: var(--blush);
    transition: opacity 0.9s var(--ease), visibility 0.9s;
    /* Safety net: never block the page if scripts fail */
    animation: intro-out 0.8s 3.2s forwards;
}

.intro img {
    width: 96px;
    height: auto;
    opacity: 0;
    animation: intro-in 1s 0.1s var(--ease-out) forwards;
}

.intro.is-done {
    opacity: 0;
    visibility: hidden;
}

@keyframes intro-in {
    from {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes intro-out {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ---------- 3D stage ---------- */
.stage {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    display: none;
    touch-action: pan-y;
    cursor: grab;
}

.stage.is-dragging {
    cursor: grabbing;
}

.webgl .stage {
    display: block;
}

.grain {
    position: fixed;
    inset: -50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    height: var(--header-h);
    transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(244, 230, 225, 0.78);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--hair);
}

.nav {
    height: 100%;
    max-width: calc(var(--maxw) + 2 * var(--pad));
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: block;
    width: 58px;
    position: relative;
    z-index: 2;
}

.nav__logo img {
    width: 100%;
    height: auto;
}

.nav__links {
    display: flex;
    gap: clamp(1.2rem, 2.4vw, 2.4rem);
}

.nav__links a {
    position: relative;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    padding: 0.4rem 0;
    transition: color 0.3s;
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1rem;
    height: 1px;
    background: var(--lacquer-ui);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
}

.nav__links a:hover,
.nav__links a:focus-visible {
    color: var(--ink);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__toggle {
    display: none;
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.nav__toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}

.nav__toggle span:first-child {
    top: 17px;
}

.nav__toggle span:last-child {
    top: 26px;
}

.nav__toggle[aria-expanded="true"] span:first-child {
    top: 21.5px;
    transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
    top: 21.5px;
    transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease-out);
}

.btn--solid {
    background: var(--ink);
    color: var(--petal);
}

.btn--solid:hover {
    background: var(--ink-2);
    transform: translateY(-2px);
}

.btn--quiet {
    border: 1px solid rgba(58, 14, 22, 0.3);
    color: var(--ink);
}

.btn--quiet:hover {
    border-color: var(--ink);
    background: rgba(58, 14, 22, 0.05);
}

/* ---------- Hero ---------- */
main {
    position: relative;
}

.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 3vh) var(--pad) 4.5rem;
    display: grid;
    grid-template-columns: minmax(0, 40rem) 1fr;
    align-items: center;
    max-width: calc(var(--maxw) + 2 * var(--pad));
    margin: 0 auto;
    pointer-events: none;
}

.hero a,
.hero button {
    pointer-events: auto;
}

.hero__copy {
    position: relative;
}

.hero__title {
    font-size: clamp(2.6rem, 5.8vw, 5.7rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 400;
    text-wrap: balance;
}

.hero__title .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.hero__title .w > span {
    display: inline-block;
}

.hero__lede {
    margin-top: 1.6rem;
    max-width: 30rem;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.25vw, 1.125rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.2rem;
}

.hero__picker {
    position: absolute;
    left: 70%;
    bottom: clamp(1.2rem, 4vh, 2.6rem);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    pointer-events: auto;
}

.hero__picker-label,
.hero__now {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.hero__now span {
    font-family: var(--display);
    font-size: 1rem;
    color: var(--ink);
}

.chips {
    display: flex;
    gap: 0.55rem;
}

.chip {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(58, 14, 22, 0.14), inset 0 -6px 10px rgba(0, 0, 0, 0.18), inset 0 5px 8px rgba(255, 255, 255, 0.35), 0 4px 10px -4px rgba(58, 14, 22, 0.35);
    transition: transform 0.4s var(--ease-out);
}

.chip::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s, transform 0.45s var(--ease-out);
}

.chip:hover {
    transform: translateY(-2px);
}

.chip[aria-pressed="true"]::after {
    opacity: 1;
    transform: none;
}

.hero__hint {
    position: absolute;
    right: var(--pad);
    bottom: clamp(1.2rem, 4vh, 2.6rem);
    font-size: 0.8rem;
    color: var(--muted);
    display: none;
}

.webgl-ready .hero__hint {
    display: block;
}

.hero__fallback {
    position: absolute;
    left: 70%;
    top: 50%;
    height: min(62vh, 560px);
    width: auto;
    transform: translate(-50%, -54%);
    filter: drop-shadow(0 34px 40px rgba(58, 14, 22, 0.28));
    pointer-events: none;
}

.webgl-ready .hero__fallback,
.webgl-pending .hero__fallback {
    visibility: hidden;
}

/* ---------- Story ---------- */
.story {
    position: relative;
    z-index: 2;
    padding: 6rem var(--pad);
    display: grid;
    gap: 4rem;
    max-width: var(--maxw);
    margin: 0 auto;
}

.story__stage {
    display: grid;
    gap: 4rem;
}

.chapter {
    max-width: 30rem;
}

.chapter__title {
    font-size: clamp(2.3rem, 4.6vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.chapter p {
    margin-top: 1.2rem;
    color: var(--ink-soft);
    max-width: 26rem;
}

/* With the 3D scene the story becomes a sticky, scroll-driven stage */
.webgl .story {
    display: block;
    height: 320vh;
    padding: 0;
    max-width: none;
    pointer-events: none;
}

.webgl .story__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: block;
    max-width: calc(var(--maxw) + 2 * var(--pad));
    margin: 0 auto;
}

.webgl .chapter {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 30rem;
}

.webgl .chapter--a {
    right: var(--pad);
}

.webgl .chapter--b {
    left: var(--pad);
}

.motion .chapter {
    opacity: 0;
    visibility: hidden;
}

/* ---------- Section heads ---------- */
.section-head {
    max-width: 44rem;
    margin-bottom: clamp(2.6rem, 6vw, 4.5rem);
}

.section-head h2,
.about__text h2,
.contact h2 {
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-head p {
    margin-top: 1rem;
    color: var(--muted);
    max-width: 34rem;
}

.mask-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.mask-line > span {
    display: block;
}

/* Sections after the story sit on solid blush and cover the 3D stage */
.colors,
.gallery,
.about,
.where,
.contact,
.site-footer {
    position: relative;
    z-index: 3;
    background: var(--blush);
}

/* ---------- Color collection ---------- */
.colors {
    padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}

.webgl .colors::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 36vh;
    background: linear-gradient(to bottom, rgba(244, 230, 225, 0), var(--blush));
    pointer-events: none;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.6rem;
    margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
    border-bottom: 1px solid var(--hair);
}

.filter {
    position: relative;
    padding: 0.85rem 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.3s;
}

.filter span {
    font-family: var(--display);
    font-size: 0.85rem;
    margin-left: 0.25rem;
    opacity: 0.75;
}

.filter::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.filter:hover,
.filter[aria-pressed="true"] {
    color: var(--ink);
}

.filter[aria-pressed="true"]::after {
    transform: scaleX(1);
}

.shade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: clamp(2.2rem, 4vw, 3.4rem) clamp(0.6rem, 1.6vw, 1.4rem);
}

.shade {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.6rem;
}

.shade[hidden] {
    display: none;
}

/* The soft, tinted shadow a lacquered bottle casts on the shelf */
.shade::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(0.6rem + clamp(150px, 15vw, 210px) - 18px);
    width: 120%;
    height: 40px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 65%, #5a2a30 35%), transparent);
    opacity: 0.38;
    filter: blur(5px);
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
}

.shade img {
    position: relative;
    height: clamp(150px, 15vw, 210px);
    width: auto;
    transition: transform 0.7s var(--ease-out);
}

.shade__no {
    margin-top: 0.85rem;
    font-family: var(--display);
    font-size: 1.25rem;
    line-height: 1;
    color: var(--muted);
    transition: color 0.3s;
}

.shade__try {
    margin-top: 0.75rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--hair);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ink);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.35s, transform 0.45s var(--ease-out), border-color 0.3s, background-color 0.3s;
}

.no-webgl .shade__try {
    display: none;
}

.shade:hover::before,
.shade:focus-within::before {
    opacity: 0.7;
}

.shade:hover img,
.shade:focus-within img {
    transform: translateY(-8px);
}

.shade:hover .shade__no,
.shade:focus-within .shade__no {
    color: var(--ink);
}

.shade:hover .shade__try,
.shade:focus-within .shade__try {
    opacity: 1;
    transform: none;
}

.shade__try:hover {
    border-color: var(--ink);
    background: var(--petal);
}

@media (hover: none) {
    .shade__try {
        opacity: 1;
        transform: none;
    }
}

.shade-count {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.load-more {
    text-align: center;
    margin-top: 1rem;
}

/* ---------- Gallery: a horizontal strip ---------- */
.gallery {
    padding: clamp(5rem, 10vw, 8rem) 0;
    border-top: 1px solid var(--hair);
    overflow: hidden;
}

.gallery__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.gallery__progress {
    position: relative;
    flex: 0 0 clamp(110px, 16vw, 220px);
    height: 1px;
    margin-bottom: clamp(2.6rem, 6vw, 4.5rem);
    background: var(--hair);
}

.gallery__progress span {
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: scaleX(0.06);
    transform-origin: left;
}

.gallery__viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--pad);
    scrollbar-width: none;
    padding: 0 var(--pad) 0.5rem;
}

.gallery__viewport::-webkit-scrollbar {
    display: none;
}

.gallery__track {
    display: flex;
    gap: clamp(1rem, 2.2vw, 2rem);
    width: max-content;
}

.look {
    flex: none;
    width: clamp(240px, 70vw, 380px);
    scroll-snap-align: start;
}

.look__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: var(--blush-2);
}

.look__frame img {
    position: absolute;
    top: 0;
    left: -6%;
    width: 112%;
    height: 100%;
    object-fit: cover;
    transition: scale 1.2s var(--ease-out);
}

.look:hover .look__frame img {
    scale: 1.035;
}

.look figcaption {
    margin-top: 1rem;
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--ink);
}

/* Desktop: the section pins and the strip travels sideways as you scroll */
.is-hscroll .gallery {
    padding: 0;
}

.is-hscroll .gallery__pin {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-h) * 0.6);
}

.is-hscroll .gallery .section-head,
.is-hscroll .gallery__progress {
    margin-bottom: clamp(1.6rem, 3.5vh, 2.6rem);
}

.is-hscroll .gallery__viewport {
    overflow: visible;
    scroll-snap-type: none;
}

.is-hscroll .look {
    width: auto;
}

.is-hscroll .look__frame {
    height: min(56vh, 580px);
    width: auto;
}

/* ---------- About ---------- */
.about {
    padding: clamp(5rem, 10vw, 8rem) 0;
    border-top: 1px solid var(--hair);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(2rem, 4vw, 4rem) clamp(1rem, 3vw, 3rem);
    align-items: center;
}

.about__text {
    grid-column: 1 / span 5;
}

.about__text h3 {
    margin-top: 2.4rem;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-style: italic;
    line-height: 1.2;
}

.about__text p {
    margin-top: 1.1rem;
    color: var(--ink-soft);
    max-width: 34rem;
}

.about__media {
    grid-column: 7 / -1;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 60px -36px rgba(58, 14, 22, 0.35);
}

.about__media img {
    width: 100%;
    height: auto;
}

.features {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: clamp(1rem, 3vw, 2.5rem);
}

.feature {
    padding-top: 1.6rem;
    border-top: 1px solid var(--hair);
}

.feature svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--lacquer-ui);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.8s;
}

.feature h4 {
    margin-top: 1.1rem;
    font-size: 1.5rem;
}

.feature p {
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.98rem;
}

/* ---------- Where to find us: country cards ---------- */
.where {
    padding: clamp(5rem, 10vw, 8rem) 0;
    border-top: 1px solid var(--hair);
}

.places {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.6rem);
}

.place {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: clamp(300px, 30vw, 380px);
    padding: clamp(1.5rem, 2.4vw, 2.2rem);
    border-radius: 20px;
    background: var(--petal);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 1px 0 rgba(58, 14, 22, 0.04), 0 28px 50px -34px rgba(58, 14, 22, 0.32);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

/* Each available country glows in the shade on the bottle */
.place::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -32%;
    bottom: -42%;
    width: 85%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--lacquer), transparent);
    opacity: 0.16;
    transition: opacity 0.6s var(--ease);
}

.place:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 rgba(58, 14, 22, 0.04), 0 36px 60px -34px rgba(58, 14, 22, 0.4);
}

.place:hover::after {
    opacity: 0.28;
}

.place h3 {
    margin-top: auto;
    padding-top: 2rem;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.02;
}

.place p {
    margin-top: 0.8rem;
    color: var(--muted);
    max-width: 22rem;
}

.place__link {
    margin-top: 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(58, 14, 22, 0.3);
    text-underline-offset: 4px;
    transition: text-decoration-color 0.3s;
}

.place__link:hover {
    text-decoration-color: var(--ink);
}

.place--soon {
    background: transparent;
    border: 1px dashed rgba(58, 14, 22, 0.3);
    box-shadow: none;
}

.place--soon::after {
    display: none;
}

.place--soon:hover {
    transform: none;
    box-shadow: none;
}

.place--soon h3 {
    color: var(--ink-2);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(58, 14, 22, 0.06);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.status::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.status--now::before {
    background: var(--ink);
    box-shadow: 0 0 0 3px rgba(58, 14, 22, 0.12);
}

.status--soon {
    background: transparent;
    border: 1px solid rgba(58, 14, 22, 0.2);
    color: var(--muted);
}

.status--soon::before {
    border: 1px solid var(--muted);
}

/* ---------- Newsletter: a card painted in the current shade ---------- */
.contact {
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 7rem);
}

.contact__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    border-radius: 32px;
    background: var(--lacquer);
    color: var(--on-lacquer);
    box-shadow: 0 40px 80px -50px rgba(58, 14, 22, 0.55);
    transition: background-color 1s var(--ease), color 0.6s var(--ease);
}

/* Lacquer gloss: a highlight across the top, depth at the bottom corner */
.contact__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.07) 28%, rgba(255, 255, 255, 0) 46%),
        radial-gradient(90% 70% at 85% 110%, rgba(0, 0, 0, 0.22), transparent 70%);
    pointer-events: none;
}

.contact__card :focus-visible {
    outline-color: var(--on-lacquer);
}

.contact__text > p {
    margin-top: 1.1rem;
    max-width: 30rem;
    color: color-mix(in oklab, var(--on-lacquer) 86%, var(--lacquer));
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2rem;
    max-width: 30rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: var(--petal);
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.3s;
}

.newsletter-form:focus-within {
    box-shadow: 0 0 0 2px var(--on-lacquer), 0 14px 30px -18px rgba(0, 0, 0, 0.45);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    padding: 0.7rem 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(58, 14, 22, 0.5);
}

.newsletter-form button {
    flex-shrink: 0;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--petal);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background: var(--ink-2);
}

.newsletter-message {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    background: var(--petal);
    color: var(--ink);
    font-size: 0.9rem;
}

.newsletter-message[hidden] {
    display: none;
}

.newsletter-error {
    color: #9c1230;
}

.contact__bottles {
    position: relative;
    height: clamp(260px, 28vw, 380px);
}

.contact__bottle {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: auto;
    filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.3));
    transform-origin: 50% 100%;
    transition: transform 0.9s var(--ease-out);
}

.contact__bottle--c {
    z-index: 2;
    height: 100%;
    transform: translateX(-50%);
}

.contact__bottle--l {
    height: 74%;
    transform: translateX(-118%) rotate(-8deg);
}

.contact__bottle--r {
    height: 74%;
    transform: translateX(18%) rotate(8deg);
}

.contact__card:hover .contact__bottle--l {
    transform: translateX(-126%) rotate(-11deg);
}

.contact__card:hover .contact__bottle--r {
    transform: translateX(26%) rotate(11deg);
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 0 0 2rem;
    background: var(--ink);
    color: var(--petal);
}

.site-footer :focus-visible {
    outline-color: var(--petal);
}

/* All 45 shades in a row */
.spectrum {
    display: flex;
    height: 12px;
}

.spectrum i {
    flex: 1;
    background: var(--c);
}

.footer-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    border-bottom: 1px solid rgba(251, 243, 240, 0.16);
}

.footer-mark {
    display: block;
    width: clamp(84px, 9vw, 104px);
}

.footer-mark img {
    width: 100%;
    height: auto;
}

.footer-statement {
    max-width: 34ch;
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    line-height: 1.2;
    color: var(--petal);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.footer-col h3 {
    margin-bottom: 1.1rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(251, 243, 240, 0.6);
}

.footer-links li,
.contact-info li {
    margin-bottom: 0.6rem;
    color: rgba(251, 243, 240, 0.78);
}

.footer-links a,
.contact-info a {
    color: rgba(251, 243, 240, 0.88);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.contact-info a:hover {
    color: var(--petal);
}

.contact-info .footer-email {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-family: var(--display);
    font-size: 1.3rem;
    color: var(--petal);
    text-decoration: underline;
    text-decoration-color: rgba(251, 243, 240, 0.3);
    text-underline-offset: 6px;
}

.contact-info .footer-email:hover {
    text-decoration-color: var(--petal);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--petal);
    text-decoration: none;
}

.social-link__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(251, 243, 240, 0.25);
    transition: background-color 0.3s, border-color 0.3s;
}

.social-link:hover .social-link__icon {
    background: rgba(251, 243, 240, 0.1);
    border-color: var(--petal);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--petal);
    stroke-width: 1.5;
}

.social-link svg .fill {
    fill: var(--petal);
    stroke: none;
}

.social-link__handle {
    display: block;
    font-size: 0.85rem;
    color: rgba(251, 243, 240, 0.65);
}

.copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(251, 243, 240, 0.16);
    font-size: 0.85rem;
    color: rgba(251, 243, 240, 0.6);
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: clamp(1rem, 2.4vw, 2rem);
    bottom: clamp(1rem, 2.4vw, 2rem);
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(251, 243, 240, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--hair);
    box-shadow: 0 10px 24px -14px rgba(58, 14, 22, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.5s var(--ease-out), border-color 0.3s;
}

.to-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    border-color: var(--ink);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: minmax(0, 32rem) 1fr;
    }

    .about__text {
        grid-column: 1 / span 6;
    }

    .about__media {
        grid-column: 7 / -1;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .nav__toggle {
        display: block;
    }

    /* backdrop-filter would trap the fixed menu inside the header box */
    .site-header.is-scrolled {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(244, 230, 225, 0.94);
    }

    .nav__links {
        position: fixed;
        inset: 0;
        z-index: 1;
        flex-direction: column;
        justify-content: center;
        gap: 0.4rem;
        padding: 0 var(--pad);
        background: rgba(244, 230, 225, 0.98);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.45s var(--ease), visibility 0.45s;
    }

    .nav__links.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav__links a {
        font-family: var(--display);
        font-size: clamp(2rem, 8vw, 2.8rem);
        font-weight: 400;
        color: var(--ink);
        display: inline-block;
        padding: 0.3rem 0;
    }

    .nav__links a::after {
        bottom: 0.2rem;
    }

    /* Hero: bottle above, words below */
    .hero {
        grid-template-columns: 1fr;
        align-items: end;
        padding-bottom: 7.2rem;
        padding-top: calc(var(--header-h) + 46vh);
    }

    .webgl .hero {
        padding-top: calc(var(--header-h) + 42vh);
    }

    .hero__title {
        font-size: clamp(2.3rem, 9.4vw, 3.6rem);
    }

    .hero__lede {
        margin-top: 1rem;
        font-size: 0.98rem;
    }

    .hero__actions {
        margin-top: 1.4rem;
        gap: 0.6rem;
    }

    .hero__actions .btn {
        min-height: 44px;
        padding: 0.65rem 1.15rem;
        font-size: 0.88rem;
    }

    .hero__picker {
        left: var(--pad);
        right: var(--pad);
        transform: none;
        bottom: 1.6rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.6rem 1rem;
    }

    .hero__picker-label {
        display: none;
    }

    .hero__now {
        order: -1;
        width: 100%;
    }

    .chips {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .chip {
        width: 32px;
        height: 32px;
    }

    .hero__hint {
        display: none !important;
    }

    .hero__fallback {
        left: 50%;
        top: calc(var(--header-h) + 2vh);
        height: 40vh;
        transform: translateX(-50%);
    }

    .webgl .chapter,
    .webgl .chapter--a,
    .webgl .chapter--b {
        left: var(--pad);
        right: var(--pad);
        justify-content: flex-end;
        padding-bottom: 9vh;
        max-width: none;
    }

    .webgl .story__stage::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 55%;
        background: linear-gradient(to top, rgba(244, 230, 225, 0.94) 25%, rgba(244, 230, 225, 0));
        z-index: -1;
    }

    .gallery__head {
        display: block;
    }

    .gallery__progress {
        width: 120px;
        margin: -1.6rem 0 1.6rem;
    }

    .about__text,
    .about__media {
        grid-column: 1 / -1;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .feature {
        display: grid;
        grid-template-columns: 26px 1fr;
        gap: 0 1rem;
        padding: 1.3rem 0;
    }

    .feature svg {
        grid-row: span 2;
        margin-top: 0.2rem;
    }

    .feature h4 {
        margin-top: 0;
        font-size: 1.35rem;
    }

    .places {
        grid-template-columns: 1fr;
    }

    .place {
        min-height: 230px;
    }

    .contact__card {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 24px;
    }

    .contact__bottles {
        height: 230px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .shade-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 0.4rem;
    }

    .shade img {
        height: 132px;
    }

    .shade::before {
        top: calc(0.6rem + 132px - 16px);
    }

    .shade__no {
        font-size: 1.05rem;
    }

    .shade__try {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }

    .filters {
        gap: 0 1.1rem;
    }

    .filter {
        font-size: 0.85rem;
        padding: 0.7rem 0;
    }

    .newsletter-form button {
        padding: 0.75rem 1.1rem;
    }

    .newsletter-form input {
        padding: 0.7rem 0.75rem;
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .spectrum {
        height: 8px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        scroll-behavior: auto !important;
    }
}
