/* Parfum Store
   Layout: a dark emerald stage that holds the 3D bottle while the page scrolls past it,
   then an ivory gallery where bottles arrive from alternating sides, as on a shop shelf.
   One deliberate look for every viewer: the stage is always night, the shelf always ivory. */
:root{
  --night:#04170D;        /* stage ground */
  --emerald:#00341B;      /* brand */
  --emerald-2:#0B4A2B;    /* hover, gradients */
  --mint:#8FE3BC;         /* light leaking through the seams */
  --mint-soft:#B9D9C7;    /* muted text on dark */
  --ivory:#F2F3EE;        /* shelf ground, text on dark */
  --ivory-2:#E5E8DF;      /* plinth under each bottle */
  --ink:#0E1F16;          /* text on ivory */
  --ink-muted:#4F6157;
  --line-dark:rgba(242,243,238,.18);
  --line-light:#D3D8CD;

  --display:"Marcellus","Cormorant Garamond",Georgia,"Times New Roman",serif;
  --body:"Poppins","Segoe UI",system-ui,-apple-system,Helvetica,Arial,sans-serif;
  --numerals:"Bodoni Moda","Bodoni 72","Didot",Georgia,"Times New Roman",serif; /* figures, cut like the wordmark */

  --measure:1240px;
  --gutter:clamp(16px,4vw,48px);
  --hdr:64px;
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:var(--hdr)}
body{margin:0;background:var(--ivory);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:clip}
h1,h2,h3,p,dl,dd{margin:0}
h1,h2,h3{font-weight:400}
a{color:inherit}
img{display:block;max-width:100%}
:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
.collection :focus-visible,.promise-band :focus-visible,.hdr.on-light :focus-visible{outline-color:var(--emerald)}
.wrap{max-width:var(--measure);margin-inline:auto;padding-inline:var(--gutter)}
.display{font-family:var(--display);font-weight:400;line-height:1.02;letter-spacing:-.005em;text-wrap:balance}
.eyebrow{font-size:11px;font-weight:500;letter-spacing:.28em;text-transform:uppercase}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* logo: the shop's own wordmark, tinted with currentColor */
.logo{display:block;aspect-ratio:1626/169;background:currentColor;
  -webkit-mask:url("../img/logo-wordmark.png") center/contain no-repeat;mask:url("../img/logo-wordmark.png") center/contain no-repeat}

/* ---------- header ---------- */
.hdr{position:fixed;top:0;left:0;right:0;z-index:40;padding-top:env(safe-area-inset-top,0px);color:var(--ivory);
  transition:background-color .35s,color .35s,box-shadow .35s}
.hdr-in{display:flex;align-items:center;gap:28px;height:var(--hdr);max-width:var(--measure);margin-inline:auto;padding-inline:var(--gutter)}
.hdr-logo{display:block;width:clamp(136px,16vw,184px);text-decoration:none;margin-right:auto;transition:opacity .4s}
/* on the first screen the big wordmark above the bottle is the logo */
.at-top .hdr-logo{opacity:0;pointer-events:none}
.hdr-nav{display:flex;gap:26px}
.hdr-nav a{font-size:12px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;padding:8px 0;border-bottom:1px solid transparent}
.hdr-nav a:hover{border-bottom-color:currentColor}
.hdr-cta{display:inline-flex;align-items:center;min-height:38px;padding:0 18px;border:1px solid currentColor;border-radius:999px;
  font-size:12px;font-weight:500;letter-spacing:.08em;text-decoration:none;transition:background-color .2s,color .2s}
.hdr-cta:hover{background:var(--ivory);color:var(--night)}
.hdr.on-light{background:color-mix(in srgb,var(--ivory) 88%,transparent);color:var(--ink);box-shadow:0 1px 0 var(--line-light);
  -webkit-backdrop-filter:saturate(1.2) blur(14px);backdrop-filter:saturate(1.2) blur(14px)}
.hdr.on-light .hdr-cta:hover{background:var(--emerald);border-color:var(--emerald);color:var(--ivory)}

/* ---------- hero stage ---------- */
.hero{position:relative;background:var(--night);color:var(--ivory)}
.js .hero{height:700vh}
.stage{position:relative;overflow:hidden;min-height:100vh;min-height:100svh;
  background:radial-gradient(120% 90% at 66% 46%,#0F4A2D 0%,#06301B 38%,var(--night) 78%)}
.js .stage{position:sticky;top:0;height:100vh;height:100svh}
.gl{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1.4s ease}
.gl-ready .gl{opacity:1}

/* the photo is the stage when 3D cannot run */
/* centred under the wordmark like the 3D bottle, then it steps aside for the story as the page scrolls */
.still{position:absolute;left:50%;top:54.5%;width:auto;height:min(54vh,660px);display:none;
  transform:translate(calc(-50% + (1 - var(--brand,1)) * min(26vw,380px)),-50%)}
html:not(.js) .still,.no-gl .still{display:block}

.steps{position:absolute;inset:0;z-index:2;pointer-events:none}
.hint,.meter{z-index:3}
/* keeps the story legible when bricks drift behind it */
.steps::before{content:"";position:absolute;inset:0 auto 0 0;width:min(62vw,820px);z-index:-1;opacity:calc(1 - var(--brand,0));
  background:linear-gradient(to right,rgba(4,23,13,.72),rgba(4,23,13,.38) 55%,rgba(4,23,13,0))}
.step{position:absolute;left:max(var(--gutter),calc((100vw - var(--measure))/2 + var(--gutter)));top:50%;
  width:min(30rem,40vw);display:flex;flex-direction:column;gap:18px;opacity:0;transform:translateY(-50%);will-change:opacity,transform}
.step.is-on{pointer-events:auto}
.step-brand{left:50%;top:calc(var(--hdr) + 4vh);width:min(62vw,640px);align-items:center;transform:translateX(-50%)}
.brand-mark{margin:0;width:100%;color:var(--ivory)}
.brand-mark .logo{width:100%}
/* last screen: the collection stands above, the wordmark arrives out of focus and settles, then the two ways to order */
.step-final{left:50%;top:auto;bottom:calc(8vh + env(safe-area-inset-bottom,0px));width:min(92vw,620px);align-items:center;gap:28px;text-align:center;transform:translateX(-50%)}
.final-mark{margin:0;width:min(54vw,500px);color:var(--ivory);--o:1;
  filter:blur(calc((1 - var(--o)) * 16px));transform:scale(calc(1.16 - .16 * var(--o)));transform-origin:50% 50%}
.final-mark .logo{width:100%;background:linear-gradient(100deg,var(--ivory) 0%,var(--ivory) 42%,#FFFFFF 50%,var(--ivory) 58%,var(--ivory) 100%);
  background-size:280% 100%;animation:shine 6s ease-in-out infinite}
@keyframes shine{0%{background-position:100% 0}55%,100%{background-position:0 0}}
.step-final .actions{justify-content:center}
.step .eyebrow{color:var(--mint)}
.step h1.display{font-size:clamp(52px,7.4vw,112px)}
.step h2.display{font-size:clamp(38px,4.8vw,70px)}
.step .sub{font-size:16px;font-weight:300;line-height:1.7;color:var(--mint-soft);max-width:40ch}
.price{font-family:var(--numerals);font-weight:400;font-size:clamp(56px,6.4vw,92px);line-height:1;letter-spacing:-.01em;font-variant-numeric:lining-nums tabular-nums}
.fig{font-family:var(--numerals);font-variant-numeric:lining-nums}

.notes{display:flex;flex-direction:column;border-top:1px solid var(--line-dark);max-width:26rem}
.notes > div{display:grid;grid-template-columns:5.5rem minmax(0,1fr);align-items:baseline;gap:16px;padding:14px 0;border-bottom:1px solid var(--line-dark)}
.notes dt{font-size:11px;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:var(--mint)}
.notes dd{font-family:var(--display);font-size:clamp(20px,1.9vw,26px);line-height:1.25}

.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px;border-radius:999px;border:1px solid transparent;
  font-size:13px;font-weight:500;letter-spacing:.05em;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s}
.btn-light{background:var(--ivory);color:var(--night)}
.btn-light:hover{background:var(--mint)}
.btn-line{border-color:var(--line-dark);color:var(--ivory)}
.btn-line:hover{border-color:var(--ivory)}
.btn-ink{background:var(--emerald);color:var(--ivory)}
.btn-ink:hover{background:var(--emerald-2)}

.hint{position:absolute;left:50%;bottom:calc(34px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:8px;
  font-size:11px;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:var(--mint-soft);transition:opacity .4s}
.hint svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;animation:nudge 1.8s ease-in-out infinite}
.hint.is-off{opacity:0}
@keyframes nudge{0%,100%{transform:none}50%{transform:translateY(4px)}}

.meter{position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--line-dark)}
.meter i{position:absolute;inset:0;background:var(--mint);transform-origin:0 50%;transform:scaleX(0)}
html:not(.js) .meter,html:not(.js) .hint{display:none}

/* without script the stage is a plain, readable section */
html:not(.js) .steps{position:relative;padding:calc(var(--hdr) + 40px) var(--gutter) 64px;display:flex;flex-direction:column;gap:56px}
html:not(.js) .step{position:static;opacity:1;transform:none;width:auto;max-width:34rem}
html:not(.js) .still{position:relative;left:auto;bottom:auto;transform:none;margin:0 var(--gutter) 64px}

/* ---------- collection ---------- */
/* the title words and bottles slide in from the sides; clipping here keeps phones from widening the whole page */
.collection{padding-block:clamp(88px,12vw,160px) clamp(64px,9vw,120px);perspective:1100px;overflow-x:hidden;overflow-x:clip}
.sec-head{display:flex;flex-direction:column;gap:16px;margin-bottom:clamp(48px,7vw,96px);max-width:44rem}
.sec-head .eyebrow{color:var(--emerald-2)}
.sec-head h2{font-size:clamp(44px,6.6vw,96px)}
.sec-head .w{display:inline-block}
.lede{font-size:16px;font-weight:300;color:var(--ink-muted);max-width:46ch}

/* scent families */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:calc(-1 * clamp(20px,4vw,56px)) 0 clamp(40px,6vw,72px)}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 18px;border:1px solid var(--line-light);border-radius:999px;
  background:none;color:var(--ink);font:inherit;font-size:13px;font-weight:500;letter-spacing:.02em;cursor:pointer;white-space:nowrap;
  transition:background-color .2s,border-color .2s,color .2s}
.chip:hover{border-color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--emerald);border-color:var(--emerald);color:var(--ivory)}
.chip .c{font-size:11.5px;font-weight:400;opacity:.7;font-variant-numeric:tabular-nums}

.shelf{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(48px,6vw,72px) clamp(24px,4vw,64px)}
.item{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:clamp(18px,3vw,36px)}
.item:nth-child(even){grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.item:nth-child(even) .item-media{order:2}
.item-media{position:relative;display:block;aspect-ratio:1/1;max-width:100%;background:var(--ivory);isolation:isolate}
.item-media::before{content:"";position:absolute;inset:6%;border-radius:50%;background:var(--ivory-2)}
.item-media img{position:relative;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;padding:4%}
.item-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.item:nth-child(even) .item-body{text-align:right;align-items:flex-end}
.item-body .eyebrow{color:var(--ink-muted);letter-spacing:.2em}
.item-body h3{font-family:var(--display);font-size:clamp(24px,2.4vw,32px);line-height:1.1;overflow-wrap:anywhere}
.item-body .type{font-size:13px;color:var(--ink-muted)}
.item-body .notes-line{font-size:13.5px;color:var(--ink-muted);max-width:30ch}
.item-body .sizes{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 22px}
.item-body .sizes li{display:flex;align-items:baseline;gap:8px}
.item-body .sizes .ml{font-size:12px;letter-spacing:.06em;color:var(--ink-muted)}
.item-body .sizes .tl{font-family:var(--numerals);font-size:24px;line-height:1.2;color:var(--ink);font-variant-numeric:lining-nums}
/* every card: buy on Shopier (filled) or order on WhatsApp (outline) */
.item-body .acts{margin-top:12px;display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;max-width:230px}
.item-body .buy,.item-body .ask{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:999px;
  border:1px solid var(--emerald);font-size:13px;font-weight:500;letter-spacing:.04em;text-decoration:none;white-space:nowrap;
  transition:background-color .2s,color .2s,border-color .2s}
.item-body .buy{background:var(--emerald);color:var(--ivory)}
.item-body .buy:hover{background:var(--emerald-2);border-color:var(--emerald-2)}
.item-body .ask{color:var(--emerald)}
.item-body .ask:hover{background:var(--emerald);color:var(--ivory)}

/* "Devam et": opens the next page of the shelf */
.more{display:flex;justify-content:center;margin-top:clamp(48px,7vw,72px)}
.more[hidden]{display:none}
.more button{display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px 20px;background:none;border:0;cursor:pointer;
  font:inherit;color:var(--emerald)}
.more .t{font-size:12.5px;font-weight:500;letter-spacing:.22em;text-transform:uppercase}
.more .ring{display:grid;place-items:center;width:56px;height:56px;border:1px solid currentColor;border-radius:50%;
  transition:background-color .2s,color .2s}
.more .ring svg{animation:more-nudge 1.8s ease-in-out infinite}
.more .n{font-size:12.5px;color:var(--ink-muted)}
.more button:hover .ring{background:var(--emerald);color:var(--ivory)}
.more button:focus-visible{outline:2px solid var(--emerald);outline-offset:4px;border-radius:12px}
@keyframes more-nudge{0%,100%{transform:translateY(-2px)}50%{transform:translateY(3px)}}
@media (prefers-reduced-motion:reduce){.more .ring svg{animation:none}}

@media (min-width:820px){
  .shelf{grid-template-columns:repeat(2,minmax(0,1fr))}
  .more{margin-top:calc(clamp(48px,7vw,72px) + 120px)}
  /* the right column rides lower so the shelf reads as a wave */
  .item:nth-child(even){position:relative;top:120px}
  .collection{padding-bottom:calc(clamp(64px,9vw,120px) + 120px)}
}

/* ---------- instagram figures ---------- */
.social{background:var(--emerald);color:var(--ivory);padding-block:clamp(72px,10vw,128px)}
.social-in{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(40px,6vw,96px);align-items:end}
.social-copy{display:flex;flex-direction:column;align-items:flex-start;gap:24px;min-width:0}
.social-copy .eyebrow{color:var(--mint)}
.social-copy h2{font-size:clamp(36px,4.6vw,64px);max-width:16ch}
.stats{display:flex;flex-direction:column;border-top:1px solid var(--line-dark)}
.stats > div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line-dark)}
.stats dt{font-size:12px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--mint-soft)}
.stats dd{font-family:var(--numerals);font-size:clamp(28px,3vw,40px);line-height:1.1;font-variant-numeric:lining-nums tabular-nums;white-space:nowrap}
.stats-note{margin-top:14px;font-size:12px;color:var(--mint-soft)}

/* ---------- promises ---------- */
.promise-band{padding-block:clamp(56px,8vw,96px);border-top:1px solid var(--line-light)}
.promises{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px clamp(20px,3vw,40px)}
.promise{display:flex;flex-direction:column;gap:10px;padding-top:20px;border-top:1px solid var(--ink);min-width:0}
.promise h3{font-family:var(--display);font-size:22px;line-height:1.2}
.promise p{font-size:14px;color:var(--ink-muted)}

/* ---------- footer ---------- */
.ftr{background:var(--night);color:var(--ivory);padding-block:64px 36px}
.ftr-grid{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));gap:36px clamp(20px,3vw,40px)}
.ftr-brand{display:flex;flex-direction:column;gap:14px}
.ftr-brand .logo{width:200px}
.ftr-brand p{color:var(--mint-soft);font-family:var(--display);font-size:20px}
.ftr-col{display:flex;flex-direction:column;gap:10px;min-width:0;font-size:14px}
.ftr-col h3{font-size:11px;font-weight:500;letter-spacing:.24em;color:var(--mint);margin-bottom:4px}
.ftr-col a{text-decoration:none;align-self:flex-start}
.ftr-col a:hover{color:var(--mint)}
.ftr-col span{color:var(--mint-soft)}
.ftr-col .num{font-variant-numeric:tabular-nums;user-select:all;color:var(--ivory)}
.ftr-note{margin-top:48px;padding-top:20px;border-top:1px solid var(--line-dark);display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 24px;
  font-size:12px;color:var(--mint-soft)}

/* ---------- narrow screens ---------- */
@media (max-width:900px){
  .promises{grid-template-columns:repeat(2,minmax(0,1fr))}
  .social-in{grid-template-columns:minmax(0,1fr);align-items:start}
  .ftr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  :root{--hdr:56px}
  .hdr-nav{display:none}
  .stage{background:radial-gradient(130% 70% at 50% 34%,#0F4A2D 0%,#06301B 40%,var(--night) 80%)}
  /* bottle sits high, the words sit low on a soft scrim */
  .steps::before{display:none}
  .steps::after{content:"";position:absolute;left:0;right:0;bottom:0;height:52%;
    background:linear-gradient(to bottom,rgba(4,23,13,0),rgba(4,23,13,.82) 42%,var(--night));z-index:-1}
  .step{left:var(--gutter);right:var(--gutter);top:auto;bottom:calc(60px + env(safe-area-inset-bottom,0px));width:auto;transform:none;gap:12px}
  .step.step-brand{left:50%;right:auto;top:calc(var(--hdr) + 4vh);bottom:auto;width:82vw}
  .step.step-final{left:50%;right:auto;top:auto;bottom:calc(52px + env(safe-area-inset-bottom,0px));width:calc(100vw - 2 * var(--gutter));gap:20px}
  .final-mark{width:76vw}
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter)}
  .chips::-webkit-scrollbar{display:none}
  .step h2.display{font-size:clamp(32px,9.5vw,44px)}
  .step .sub{font-size:14.5px}
  .notes > div{padding:10px 0;grid-template-columns:4.5rem minmax(0,1fr)}
  .price{font-size:52px}
  .actions .btn{flex:1 1 100%}
  .hint{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  .still{top:55%;height:min(44vh,420px);transform:translate(-50%,-50%);opacity:calc(.3 + .7 * var(--brand,1))}
  .item,.item:nth-child(even){grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
  .item:nth-child(even){grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
}
@media (max-width:480px){
  .promises,.ftr-grid{grid-template-columns:minmax(0,1fr)}
  .item-body h3{font-size:22px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
  .final-mark{filter:none;transform:none}
}
.item-media img.cut{padding:12%} /* cut-out bottles sit tighter in their frame than the studio shots */
