/* ==========================================================================
   SEVEN PERFUME — home sections
   ========================================================================== */

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; color: var(--on-dark); overflow: hidden; background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%;
  transform:
    scale(calc(1.06 + var(--hero-p, 0) * .1))
    translate3d(var(--tx, 0px), calc(var(--ty, 0px) - var(--hero-p, 0) * 6%), 0);
  will-change: transform;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 11, 7, .55) 0%, rgba(15, 11, 7, .12) 34%, rgba(15, 11, 7, .55) 72%, rgba(15, 11, 7, .9) 100%),
    linear-gradient(90deg, rgba(15, 11, 7, .78) 0%, rgba(15, 11, 7, .28) 46%, rgba(15, 11, 7, 0) 74%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(30px, 6vh, 70px); transform: translate3d(0, calc(var(--hero-p, 0) * 40px), 0); opacity: calc(1 - var(--hero-p, 0) * .95); }
.hero-title { font-family: var(--display); font-size: clamp(52px, 9.4vw, 148px); line-height: .96; letter-spacing: -.02em; margin: 18px 0 0; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; transform: translateY(115%); transition: transform 1.1s var(--ease-out); }
.hero.is-ready .hero-title .line > span { transform: none; }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-sub { margin-top: 26px; max-width: 34ch; font-size: clamp(15px, 1.2vw, 18px); color: rgba(244, 237, 225, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-foot {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 18px; padding-bottom: clamp(22px, 3vh, 34px);
}
.hero-meta, .hero-caption, .hero-scroll { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(244, 237, 225, .72); }
.hero-foot { opacity: calc(1 - var(--hero-p, 0) * 1.35); }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero-scroll i { display: block; width: 54px; height: 1px; background: rgba(244, 237, 225, .5); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ivory); transform: translateX(-100%); animation: sweep 2.6s var(--ease) infinite; }
@keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.hero-caption { text-align: right; }
.hero-caption b { display: block; font-weight: 500; letter-spacing: .28em; }

/* Marquee ------------------------------------------------------------------ */
.marquee { overflow: hidden; background: var(--ink); color: var(--on-dark); border-top: 1px solid rgba(244, 237, 225, .12); padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; will-change: transform; }
.marquee-track.js-marquee { animation: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 34px; padding-right: 34px;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244, 237, 225, .82); white-space: nowrap;
}
.marquee-track span::after { content: "◦"; color: var(--tan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Manifesto ---------------------------------------------------------------- */
.manifesto { background: var(--paper); }
.manifesto-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.manifesto-lead h2 { font-size: clamp(34px, 5vw, 68px); margin-top: 20px; }
.manifesto-body { display: grid; gap: 20px; padding-top: clamp(0px, 4vw, 70px); }
.manifesto-body .lede { max-width: 46ch; }
.manifesto-facts { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 46px); margin-top: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.manifesto-facts div { display: grid; gap: 4px; }
.manifesto-facts b { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); line-height: 1; font-weight: 400; }
.manifesto-facts span { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Product grid + cards ----------------------------------------------------- */
.grid-products {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 40px) clamp(14px, 2vw, 32px);
}
.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(170deg, #f6f2ea, #ebe2d3);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), clip-path 1.05s cubic-bezier(.16, 1, .3, 1);
}
.card.is-tilting .card-media { transition: transform .12s linear, clip-path 1.05s cubic-bezier(.16, 1, .3, 1); }
.card-media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 58%);
  mix-blend-mode: soft-light; transition: opacity .5s var(--ease);
}
.card:hover .card-media::before { opacity: 1; }
.card-media-link { position: absolute; inset: 0; z-index: 1; display: block; }
.card-media-link picture { display: block; width: 100%; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s var(--ease); }
.card:hover .card-media img { --ims: 1.045; }
.card-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(22, 17, 12, .05), rgba(22, 17, 12, 0) 30%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.card:hover .card-media::after { opacity: 1; }
.card-index, .card-gender {
  position: absolute; top: 14px; z-index: 3; pointer-events: none; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
}
.card-index { left: 14px; }
.card-gender { right: 14px; }
.card-flag {
  position: absolute; left: 14px; bottom: 14px; z-index: 3; pointer-events: none;
  background: var(--ink); color: var(--ivory); font-size: 9.5px; letter-spacing: .22em;
  text-transform: uppercase; padding: 7px 11px;
}
.card-body { display: grid; gap: 10px; padding-top: 16px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.card-head h3 { font-family: var(--display); font-size: clamp(21px, 1.7vw, 27px); line-height: 1.1; }
.card-head h3 a::after { content: ""; position: absolute; }
.card-price { font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.card-notes { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.size-chips { display: inline-flex; border: 1px solid var(--line); }
.size-chips button {
  min-width: 40px; height: 34px; padding: 0 8px; font-size: 11px; letter-spacing: .08em; color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.size-chips button + button { border-left: 1px solid var(--line); }
.size-chips button:hover { color: var(--ink); }
.size-chips button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.add-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.add-btn::after { content: ""; position: absolute; inset: -12px -10px; }
.add-btn:hover { border-color: var(--ink); }
.add-btn[disabled] { color: var(--muted); cursor: not-allowed; opacity: .6; }
.card--soldout .card-media img { filter: saturate(.55) brightness(1.03); }

/* Signature — scroll-scrubbed story ---------------------------------------- */
.film-story { position: relative; height: 320vh; background: var(--ink); color: var(--on-dark); }
.film-story-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.fs-images { position: absolute; inset: 0; z-index: 0; }
.fs-image { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.fs-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.12); transition: transform 6s linear; }
.fs-image.is-active { opacity: 1; }
.fs-image.is-active img { transform: scale(1); }
.fs-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 9, 6, .9) 0%, rgba(12, 9, 6, .55) 42%, rgba(12, 9, 6, .12) 78%),
    linear-gradient(180deg, rgba(12, 9, 6, .5), rgba(12, 9, 6, .72));
}
.fs-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(60px, 12vh, 130px); }
.fs-content h2 { font-family: var(--display); font-size: clamp(44px, 8vw, 118px); line-height: .95; margin: 14px 0 22px; }
.fs-lines { position: relative; min-height: 5.2em; max-width: 44ch; }
.fs-line { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease-out); }
.fs-line.is-active { opacity: 1; transform: none; }
.fs-line p { color: rgba(244, 237, 225, .84); }
.fs-notes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(244, 237, 225, .66); }
.fs-notes li { transition: color .5s var(--ease), opacity .5s var(--ease); opacity: .5; }
.fs-notes li.is-on { opacity: 1; color: var(--on-dark); }
.fs-cta { margin-top: 34px; }
.fs-progress { position: absolute; right: var(--gutter); bottom: clamp(60px, 12vh, 130px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .2em; color: rgba(244, 237, 225, .6); }
.fs-progress i { width: 1px; height: 120px; background: rgba(244, 237, 225, .24); position: relative; }
.fs-progress i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--p, 0%); background: var(--ivory); transition: height .2s linear; }

/* Campaign film ------------------------------------------------------------ */
.campaign { position: relative; background: var(--ink); color: var(--on-dark); padding: 0; overflow: hidden; }
.campaign-media { position: relative; aspect-ratio: 21 / 9; min-height: 320px; background: #0b0906; }
.campaign-media video, .campaign-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 9, 6, .1), rgba(12, 9, 6, .55) 65%, rgba(12, 9, 6, .92));
}
.campaign-copy { position: absolute; inset: auto 0 clamp(26px, 6vh, 74px); z-index: 3; display: grid; gap: 18px; }
.campaign-copy h2 { font-family: var(--display); font-size: clamp(38px, 6.4vw, 96px); line-height: .98; max-width: 16ch; }
.campaign-copy p { max-width: 44ch; color: rgba(244, 237, 225, .82); }
.campaign-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.film-toggle {
  display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.film-toggle span.dot {
  display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(244, 237, 225, .45); border-radius: 999px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.film-toggle:hover span.dot { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.film-toggle svg { width: 12px; height: 12px; }

/* Object study ------------------------------------------------------------- */
.object { background: var(--bone); }
.object-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 6vw, 96px); align-items: center; }
.object-media { position: relative; }
.lens { position: relative; overflow: hidden; background: linear-gradient(160deg, #f7f3ec, #e3d8c6); aspect-ratio: 4 / 5; cursor: crosshair; touch-action: pan-y; }
.lens > picture, .lens > img { display: block; width: 100%; height: 100%; }
.lens img { width: 100%; height: 100%; object-fit: cover; }
.lens-glass {
  position: absolute; top: 0; left: 0; width: 34%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 20px 50px rgba(22, 17, 12, .25);
  background-repeat: no-repeat; background-size: 300% 300%; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.lens.is-zooming .lens-glass { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 999px; background: rgba(250, 246, 239, .82); color: var(--ink);
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(22, 17, 12, .22); transition: transform .3s var(--ease), background .3s var(--ease);
}
.hotspot::after { content: ""; position: absolute; inset: -8px; border-radius: 999px; border: 1px solid rgba(250, 246, 239, .5); animation: pulse 3.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.hotspot:hover, .hotspot[aria-pressed="true"] { background: var(--ink); color: var(--ivory); transform: scale(1.12); }
.object-caption { margin-top: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.object-copy h2 { font-size: clamp(34px, 4.6vw, 62px); margin: 18px 0 26px; }
.object-details { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.object-row { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.object-row h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.object-row p { font-size: 14.5px; color: var(--muted); max-width: 48ch; }
.object-row.is-on { padding-left: 16px; }
.object-row.is-on h3 { color: var(--tan); }

/* Finder teaser ------------------------------------------------------------ */
.finder-teaser { background: var(--paper); }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.finder-grid h2 { font-size: clamp(32px, 4.4vw, 58px); margin: 18px 0 18px; }
.mood-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mood-chip {
  display: grid; gap: 4px; text-align: left; padding: 20px 22px; border: 1px solid var(--line);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.mood-chip b { font-family: var(--display); font-size: 22px; font-weight: 400; }
.mood-chip span { font-size: 12px; color: var(--muted); transition: color .4s var(--ease); }
.mood-chip:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.mood-chip:hover span { color: rgba(244, 237, 225, .7); }

/* Categories --------------------------------------------------------------- */
.categories { background: var(--paper); }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.cat-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; color: var(--on-dark); background: var(--ink);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), clip-path 1.05s cubic-bezier(.16, 1, .3, 1);
}
.cat-card.is-tilting { transition: transform .12s linear, clip-path 1.05s cubic-bezier(.16, 1, .3, 1); }
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 58%);
  transition: opacity .5s var(--ease);
}
.cat-card:hover::before { opacity: 1; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 9, 6, .05), rgba(12, 9, 6, .82)); }
.cat-card:hover img { --ims: 1.05; }
.cat-copy { position: relative; z-index: 2; position: absolute; inset: auto 0 0; padding: clamp(22px, 3vw, 42px); display: grid; gap: 10px; }
.cat-copy h2 { font-family: var(--display); font-size: clamp(34px, 4.6vw, 66px); line-height: 1; }
.cat-copy .eyebrow { color: rgba(244, 237, 225, .68); }
.cat-copy .link-arrow { color: var(--on-dark); border-color: rgba(244, 237, 225, .35); width: fit-content; }

/* Brand strip -------------------------------------------------------------- */
.brandstrip { background: var(--ivory); }
.strip-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.strip-copy h2 { font-size: clamp(32px, 4.4vw, 58px); margin: 18px 0 22px; }
.strip-copy .lede { max-width: 42ch; }
.strip-quote { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--display); font-style: italic; font-size: clamp(19px, 2vw, 26px); line-height: 1.35; }
.strip-quote cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.strip-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); }
.strip-media figure { overflow: hidden; background: var(--bone); }
.strip-media figure:first-child { aspect-ratio: 3 / 4; }
.strip-media figure:last-child { aspect-ratio: 3 / 4; margin-top: clamp(24px, 4vw, 60px); }
.strip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.strip-media figure:hover img { --ims: 1.05; }

/* Service ------------------------------------------------------------------ */
.service { background: var(--paper); border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.service-col { display: grid; gap: 12px; align-content: start; }
.service-col h3 { font-family: var(--display); font-size: 26px; }
.service-col p { font-size: 14.5px; color: var(--muted); max-width: 34ch; }
.service-col .eyebrow { margin-bottom: 4px; }
.service-list { display: grid; gap: 8px; font-size: 14px; color: var(--ink-3); }
.service-list li { display: flex; gap: 10px; }
.service-list li::before { content: "—"; color: var(--tan); }

/* Chapter rail -------------------------------------------------------------- */
.chapter-rail {
  position: fixed; left: clamp(10px, 1.3vw, 22px); top: 50%; z-index: 70;
  display: none; flex-direction: column; align-items: flex-start; gap: 2px;
  transform: translateY(-50%) translateX(-12px); opacity: 0; pointer-events: none;
  color: var(--muted);
  transition: opacity .5s var(--ease), transform .55s var(--ease-out), color .5s var(--ease);
}
.chapter-rail:not([hidden]) { display: flex; }
.chapter-rail[data-show="true"] { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.chapter-rail[data-theme="dark"] { color: var(--on-dark-muted); }
.chapter-rail button {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 6px 0; color: inherit; text-align: left;
}
.chapter-rail .cr-index { font-size: 9px; letter-spacing: .18em; opacity: .5; transition: opacity .35s var(--ease); }
.chapter-rail i { display: block; width: 13px; height: 1px; background: currentColor; opacity: .4; transition: width .45s var(--ease-out), opacity .35s var(--ease); }
.chapter-rail .cr-label {
  position: absolute; left: calc(100% + 10px); top: 50%; z-index: 1;
  padding: 5px 9px; white-space: nowrap;
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); background: rgba(250, 246, 239, .94);
  opacity: 0; transform: translate(-4px, -50%); pointer-events: none;
  transition: opacity .35s var(--ease), transform .4s var(--ease-out);
}
.chapter-rail[data-theme="dark"] .cr-label { color: var(--on-dark); background: rgba(22, 17, 12, .92); }
.chapter-rail button:hover i { width: 18px; opacity: .9; }
.chapter-rail button:hover .cr-label { opacity: 1; transform: translate(0, -50%); }
.chapter-rail button:hover .cr-index { opacity: 1; }
.chapter-rail button:focus-visible i { width: 18px; opacity: .9; }
.chapter-rail button:focus-visible .cr-label { opacity: 1; transform: translate(0, -50%); }
.chapter-rail button:focus-visible .cr-index { opacity: 1; }
.chapter-rail button.is-current { color: var(--ink); }
.chapter-rail[data-theme="dark"] button.is-current { color: var(--on-dark); }
.chapter-rail button.is-current i { width: 18px; opacity: 1; }
.chapter-rail button.is-current .cr-index { opacity: 1; }

@media (max-width: 1279px) { .chapter-rail { display: none !important; } }
