/* Scent Vault Albania. Mobile-first. */
:root {
  --bg: #0f1214;
  --raised: #161a1d;
  --line: #2a3034;
  --ink: #ede9e3;
  --muted: #9aa3a6;
  --accent: #a9c2b7;
  --accent-ink: #0f1214;
  --lilac: #b7a6b9;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: max(1.25rem, env(safe-area-inset-left));
  --hdr: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 100; top: 0.5rem; left: 0.5rem; padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink); border-radius: 10px; transform: translateY(-150%); text-decoration: none; }
.skip:focus { transform: none; }

/* ---------- header ---------- */
.hdr {
  position: fixed; z-index: 50; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: calc(var(--hdr) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  background: linear-gradient(to bottom, rgba(15,18,20,0.8), rgba(15,18,20,0));
  transition: background-color 250ms ease, border-color 250ms ease;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(15,18,20,0.92); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hdr__brand { display: flex; align-items: center; gap: 0.6rem; min-height: 48px; text-decoration: none; }
.hdr__brand img { width: 36px; height: 36px; }
.hdr__brand span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.hdr__order {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 44px; padding: 0 1.05rem;
  border: 1px solid rgba(169,194,183,0.55); border-radius: 999px;
  color: var(--accent); font-weight: 500; font-size: 0.95rem; text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.hdr__order:hover, .hdr__order:active { background: var(--accent); color: var(--accent-ink); }
.hdr__order:active { transform: scale(0.97); }
@media (max-width: 360px) { .hdr__brand span { display: none; } }

/* ---------- vault (scroll film) ---------- */
.vault { position: relative; height: 100svh; height: 100dvh; }
.js-scrub .vault { height: 280svh; }
.vault__stage { position: sticky; top: 0; height: 100svh; height: 100dvh; overflow: hidden; background: var(--bg); }
.vault__poster, .vault__end, .vault__video,
.vault__poster img, .vault__end img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vault__poster { z-index: 0; }
.vault__end { z-index: 0; opacity: 0; }
.vault__video { z-index: 1; opacity: 0; transition: opacity 200ms ease; }
.vault.is-painted .vault__video { opacity: 1; }
/* static mode (reduced motion / data saver): show the beauty shot */
.js-static .vault__end { opacity: 1; z-index: 1; }

.vault__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to top, rgba(15,18,20,0.92) 0%, rgba(15,18,20,0.55) 30%, rgba(15,18,20,0) 58%),
    linear-gradient(to bottom, rgba(15,18,20,0.55) 0%, rgba(15,18,20,0) 22%);
}
.vault__copy {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad);
  bottom: calc(2.25rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 0.9rem;
  will-change: transform, opacity;
}
.vault__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 15vw, 6.5rem); line-height: 0.92; letter-spacing: -0.01em;
  text-wrap: balance;
}
.vault__title--sm { font-size: clamp(2.4rem, 11vw, 4.5rem); }
.vault__sub { max-width: 30ch; color: #c9cdcf; font-size: 1.05rem; }
.vault__skip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding-right: 0.25rem;
  font-weight: 500; font-size: 1.05rem; text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 80% / 32% 1px no-repeat;
  transition: background-size 300ms ease;
}
.vault__skip:hover, .vault__skip:focus-visible { background-size: 100% 1px; }
.vault__skip svg { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(4px); } }

.vault__copy--end { opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 400ms ease, transform 400ms ease; }
.vault.is-end .vault__copy--end { opacity: 1; transform: none; pointer-events: auto; }
.vault__enter {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px;
  background: var(--ink); color: var(--accent-ink); font-weight: 600; text-decoration: none;
  transition: transform 150ms ease;
}
.vault__enter:active { transform: scale(0.97); }

.vault__progress { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 2px; background: rgba(237,233,227,0.12); }
.vault__progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.js-static .vault__progress, .no-js .vault__progress { display: none; }

/* phones: give the vault room to breathe */
@media (max-width: 860px) {
  .vault__stage { --film-top: calc(var(--hdr) + env(safe-area-inset-top) + 0.5rem); --film-h: min(62svh, 150vw); --film-w: min(80vw, 30rem); }
  .vault__poster, .vault__end, .vault__video {
    inset: auto; top: var(--film-top); left: 50%;
    height: var(--film-h); width: var(--film-w);
    max-width: none; transform: translateX(-50%);
    -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 48%, #000 70%, transparent 100%);
            mask-image: radial-gradient(ellipse 58% 56% at 50% 48%, #000 70%, transparent 100%);
  }
  .vault__poster img, .vault__end img { position: static; width: 100%; height: 100%; object-fit: cover; }
  .vault__poster img, .vault__end img, .vault__video { object-fit: cover; object-position: 50% 45%; }
  .vault__shade { background: radial-gradient(120% 60% at 50% 40%, rgba(15,18,20,0) 40%, rgba(15,18,20,0.6) 100%); }
  .vault__copy { bottom: calc(1.75rem + env(safe-area-inset-bottom)); gap: 0.7rem; }
  .vault__title { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .vault__title--sm { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .vault__sub { font-size: 1rem; }
}
@media (max-width: 860px) and (max-height: 640px) {
  .vault__stage { --film-h: 52svh; --film-w: 74vw; }
  .vault__title { font-size: 2.4rem; }
  .vault__sub { display: none; }
}

@media (min-width: 861px) {
  .vault__copy { left: max(4rem, 6vw); right: auto; bottom: auto; top: 50%; transform: translateY(-50%); max-width: 36rem; }
  .vault__copy--end { transform: translateY(calc(-50% + 24px)); }
  .vault.is-end .vault__copy--end { transform: translateY(-50%); }
  .vault__shade { background: linear-gradient(to right, rgba(15,18,20,0.85) 0%, rgba(15,18,20,0.35) 45%, rgba(15,18,20,0) 70%); }
  .vault__title { font-size: clamp(4rem, 7vw, 7rem); }
  .vault__copy--end { max-width: 24rem; left: max(3rem, 5vw); }
  .vault__title--sm { font-size: clamp(2.8rem, 4.2vw, 4.4rem); }
}

/* ---------- sections ---------- */
.sec { max-width: 72rem; margin: 0 auto; padding: 4.5rem var(--pad); }
.sec__head { display: flex; flex-direction: column; gap: 0.9rem; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 10vw, 4rem); line-height: 1; letter-spacing: -0.01em; }
.lede { color: var(--muted); max-width: 44ch; }

/* ---------- shop rail ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 0.9rem; margin: 2rem calc(-1 * var(--pad)) 0;
  padding: 0 var(--pad) 0.25rem; scroll-padding: 0 var(--pad);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  contain: paint; /* stops the snap rail from widening the phone layout */
}
.rail::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--raised); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #d9a3ad; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }

.card__for { position: absolute; z-index: 1; left: 0.75rem; top: 0.75rem; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(15,18,20,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 0.85rem; }
.card__for::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); }
.card[data-tone="lilac"] .card__for::before { background: var(--lilac); }
.card__body { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.1rem; flex: 1; }
.card__brand { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.14em; }
.card__name { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.05; margin-top: -0.5rem; }
.card__name em { font-style: italic; color: #d9d4cc; }
.card__meta { color: var(--muted); font-size: 0.92rem; }
.notes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.notes li { padding: 0.32rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; }
.price { display: flex; align-items: baseline; gap: 0.6rem; margin-top: auto; padding-top: 0.25rem; }
.price strong { font-size: 1.65rem; font-weight: 600; color: var(--accent); }
.price s { color: var(--muted); }
.card__order {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 54px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1.02rem; text-decoration: none;
  box-shadow: 0 2px 0 rgba(0,0,0,0.4);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 160ms ease;
}
.card__order:hover { filter: brightness(1.06); }
.card__order:active { transform: translateY(2px); box-shadow: none; }

.card--ask { justify-content: flex-end; background: radial-gradient(120% 70% at 50% 0%, #1d2427 0%, var(--raised) 60%); border-style: dashed; }
.card--ask .card__body { justify-content: flex-end; padding: 1.4rem 1.2rem; gap: 1rem; }
.card--ask .card__name { margin-top: 0; font-size: 2rem; }
.card__ask {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  min-height: 48px; color: var(--accent); font-weight: 600; text-decoration: none;
}
.card__ask svg { transition: transform 200ms ease; }
.card__ask:hover svg, .card__ask:active svg { transform: translateX(4px); }

.dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.1rem; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background-color 200ms ease, width 200ms ease; }
.dots span.is-on { width: 20px; border-radius: 4px; background: var(--accent); }

@media (min-width: 760px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 2.5rem 0 0; padding: 0; overflow: visible; }
  .dots { display: none; }
  .card:hover .card__media img { transform: scale(1.04); }
}

/* ---------- steps ---------- */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1rem; padding-bottom: 1.8rem; }
.step:not(:last-child)::before { content: ""; position: absolute; left: calc(1.375rem - 0.5px); top: 2.9rem; bottom: 0.3rem; width: 1px; background: var(--line); }
.step__n { width: 2.75rem; height: 2.75rem; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.35rem; color: var(--accent); }
.step h3 { margin: 0.45rem 0 0.3rem; font-size: 1.1rem; font-weight: 600; }
.step p { color: var(--muted); }
@media (min-width: 760px) {
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .step { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .step h3 { margin-top: 1rem; }
}

/* ---------- authenticity ---------- */
.truth { border-top: 1px solid var(--line); }
.statement { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 9vw, 3.8rem); line-height: 1.04; max-width: 16ch; }
.statement em { color: var(--accent); }
.proof { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.proof li { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.proof b { font-weight: 600; }
.proof span { color: var(--muted); }
@media (min-width: 760px) { .proof li { display: grid; grid-template-columns: 18rem 1fr; gap: 2rem; } }

/* ---------- faq ---------- */
.faq { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; padding: 0.75rem 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--accent); transition: transform 220ms ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 0 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- close + footer ---------- */
.close { text-align: center; padding-top: 5rem; padding-bottom: 5rem; }
.close__link { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; min-height: 48px; font-family: var(--serif); font-size: clamp(1.7rem, 7vw, 2.4rem); color: var(--accent); text-decoration: none; transition: letter-spacing 300ms ease; }
.close__link:hover { letter-spacing: 0.04em; }
.ftr { border-top: 1px solid var(--line); padding: 2.5rem var(--pad) calc(6.75rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--muted); font-size: 0.88rem; text-align: center; }
.ftr img { width: 200px; height: auto; opacity: 0.9; }
.ftr a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 760px) { .ftr { padding-bottom: 2.5rem; } }

/* ---------- sticky WhatsApp bar (phones) ---------- */
.sticky {
  position: fixed; z-index: 60; left: 0.75rem; right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 56px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  transform: translateY(160%); visibility: hidden;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 420ms;
}
.sticky.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.sticky.is-on.is-tucked { transform: translateY(160%); visibility: hidden; transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 420ms; }
.no-js .sticky { transform: none; visibility: visible; }
.sticky:active { transform: scale(0.98); }
@media (min-width: 760px) { .sticky { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* short phones (iPhone SE, mini) */
@media (max-width: 759px) and (max-height: 720px) {
  .shop { padding-top: 3rem; }
  .shop .h2 { font-size: 2.3rem; }
  .shop .lede { font-size: 0.92rem; }
  .rail { margin-top: 1.25rem; }
  .card__media { aspect-ratio: 4 / 3; }
  .card__body { gap: 0.65rem; }
  .card__name { font-size: 1.55rem; }
}
