@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Italiana&display=swap');

:root {
  color-scheme: dark;
  --ink: #fff1ec;
  --muted: #dec7d2;
  --paper: #21121e;
  --plum: #ebbdce;
  --line: #694556;
  --serif: Italiana, Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse 85% 640px at 84% 8%, #543044 0%, transparent 82%), var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #ffd2df; outline-offset: 4px; }
button:active, .pill:active { transform: scale(.97); }
button, .pill { transition: background .2s, color .2s, transform .2s; }
[hidden] { display: none !important; }
.wrap { width: min(91%, 1330px); margin-inline: auto; }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; width: max-content; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; }
.brand > span { font: 48px/.78 var(--serif); letter-spacing: -.105em; padding-right: .1em; }
.brand-dot { color: #a260aa; }
.brand small { margin-top: 9px; font-size: 9px; font-weight: 700; letter-spacing: .27em; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-weight: 600; font-size: 14px; }
.site-header nav a { text-decoration: none; }
.site-header nav button, .text-link { border: 0; background: none; padding: 0; }
.site-header nav a:hover, .site-header nav button:hover { text-decoration: underline; }
.bag-link { display: flex; align-items: center; gap: 8px; justify-self: end; padding: 8px 12px; border: 1px solid var(--line); background: transparent; border-radius: 100px; font-size: 14px; font-weight: 700; }
#bag-count { display: grid; place-items: center; background: #683b52; border-radius: 50%; min-width: 23px; height: 23px; }
.bag-icon { width: 13px; height: 12px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.bag-icon::before { content: ""; position: absolute; left: 3px; top: -5px; width: 5px; height: 6px; border: 1px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; padding-block: 26px; }
.hero-copy { position: relative; z-index: 1; padding: 26px 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .15em; margin: 0; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 9px; color: #eac1cf; }
.hero-copy .eyebrow span { width: 20px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: .99; font-weight: 400; }
h1 { margin: 23px 0 20px; font-size: clamp(62px, 7.12vw, 120px); letter-spacing: -.055em; width: max-content; max-width: calc(100% + 36px); }
h1 em, h2 em { font-style: normal; color: #efaec9; }
.intro { color: var(--muted); margin: 0; max-width: 36ch; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; column-gap: 22px; row-gap: 10px; }
.pill { border: 1px solid transparent; border-radius: 40px; padding: 12px 21px; font-weight: 700; min-height: 47px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary { background: var(--plum); color: #301426; }
.primary:hover { background: #ffcfdf; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; text-underline-offset: 5px; text-decoration: underline; }
.hero-scene { margin: 0; height: clamp(520px, 46vw, 680px); position: relative; isolation: isolate; overflow: hidden; border-radius: 48% 48% 8px 8px / 34% 34% 8px 8px; background: radial-gradient(ellipse at 64% 39%, #9c6bac, #40213f 55%, #28122e); perspective: 900px; }
.hero-depth { inset: -2%; position: absolute; transform: rotateY(var(--look-x, 0deg)) rotateX(var(--look-y, 0deg)); transform-style: preserve-3d; transition: transform .45s ease-out; }
.hero-photograph { position: absolute; inset: -3%; background: url('assets/vane-editorial.jpg') center 52% / cover no-repeat; transform: translateZ(14px); }
.hero-light { position: absolute; inset: 0; opacity: .45; background: radial-gradient(ellipse at 30% 43%, #fcd8ff65, transparent 53%); mix-blend-mode: screen; transform: translateZ(32px); animation: sheen 12s ease-in-out infinite alternate; animation-play-state: paused; }
.motion-running .hero-light { animation-play-state: running; }
@keyframes sheen { from { opacity: .25; translate: -7% 0; } to { opacity: .72; translate: 18% 5%; } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, #241025cb, transparent 25%); display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: clamp(23px, 4vw, 63px) 18px 13px; color: #fff7ff; pointer-events: none; }
.plate { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 7px 13px; border: 1px solid #f5d9ff73; background: #321a3b83; border-radius: 30px; }
.scene-controls { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 12px; gap: 5px; }
.motion { border: 1px solid #ffefff66; border-radius: 30px; color: inherit; padding: 7px 10px; min-height: 36px; font-size: 12px; background: #27152aa6; pointer-events: auto; }
.collection { margin-top: 30px; background: radial-gradient(ellipse at 7% 0%, #5b324a, transparent 53%), linear-gradient(150deg, #382032, #291824); border-block: 1px solid var(--line); }
.collection-inner { padding-block: 70px 78px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.section-title h2 { font-size: clamp(49px, 6vw, 87px); letter-spacing: -.04em; }
.section-title p { color: var(--muted); margin: 0; max-width: 32ch; }
[data-profile="floral"] { --glass: #d996b7; --dark: #7e4166; --halo: #e19bc2; --wash: #f1d5e3; --filter: 0deg; }
[data-profile="citrico"] { --glass: #e7bf7c; --dark: #86531e; --halo: #ecca8f; --wash: #f7e5ca; --filter: 85deg; }
[data-profile="amadeirado"] { --glass: #ad8cbb; --dark: #583860; --halo: #b296c6; --wash: #dfd0ed; --filter: -30deg; }
.scent-stage { display: grid; grid-template-columns: 1fr .85fr; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #362132; }
.glass-display { min-height: 404px; position: relative; display: grid; place-items: center; perspective: 700px; background: radial-gradient(ellipse at 52% 41%, var(--dark), #352035 78%); isolation: isolate; overflow: hidden; touch-action: pan-y; }
.bloom { position: absolute; inset: 0; background: radial-gradient(ellipse at 35% 25%, #fff7fab3, transparent 50%), conic-gradient(from 140deg at 70% 48%, #0000, var(--halo), #0000 35%); opacity: .58; }
.orbit { position: absolute; width: 58%; max-width: 350px; aspect-ratio: 1; border: 1px solid #fff8; border-radius: 50%; transform: rotateX(62deg) rotateY(-16deg) translateY(70px); box-shadow: 0 0 40px #fff5, inset 0 0 28px #fff3; }
.plinth { position: absolute; bottom: 13%; width: 55%; height: 20%; background: radial-gradient(ellipse, #33172f62, transparent 68%); border-radius: 50%; transform: rotateX(56deg); }
.bottle-float { transform-style: preserve-3d; animation: hover 5s ease-in-out infinite alternate; animation-play-state: paused; }
.motion-running .bottle-float { animation-play-state: running; }
@keyframes hover { from { transform: translateY(-6px); } to { transform: translateY(7px); } }
.bottle { width: 122px; height: 143px; position: relative; transform-style: preserve-3d; transform: rotateX(-11deg) rotateY(var(--turn, -24deg)); transition: transform .65s cubic-bezier(.2,.75,.2,1); }
.bottle-face { position: absolute; border: 1px solid #fff7; background: linear-gradient(115deg, #fff8, transparent 22%, var(--glass) 40%, var(--dark) 90%); box-shadow: inset 0 -13px 20px #2d0b385e, inset 0 3px 8px #fff8; }
.front, .back { inset: 0; border-radius: 11px; display: grid; place-items: center; }
.front { transform: translateZ(26px); }
.front span { padding: 9px 14px 12px; color: #362038; font: 27px var(--serif); background: #fff7f1db; border: 1px solid #fff; line-height: 1; }
.back { transform: rotateY(180deg) translateZ(26px); }
.left, .right { width: 52px; height: 100%; left: 35px; border-radius: 8px; }
.left { transform: rotateY(-90deg) translateZ(61px); }
.right { transform: rotateY(90deg) translateZ(61px); }
.top, .bottom { width: 100%; height: 52px; top: 45.5px; border-radius: 8px; }
.top { transform: rotateX(90deg) translateZ(71.5px); }
.bottom { transform: rotateX(-90deg) translateZ(71.5px); }
.cap { position: absolute; width: 56px; height: 38px; top: -34px; left: 33px; border-radius: 5px; background: linear-gradient(90deg,#251527,#5f465f 28%,#2d1632); transform: translateZ(10px); box-shadow: 0 -4px 0 #725d76, 0 4px 12px #36173b55; }
.rotate { position: absolute; bottom: 14px; right: 14px; border: 1px solid #fff7; border-radius: 30px; background: #321735bc; color: white; padding: 9px 13px; min-height: 44px; font-weight: 700; font-size: 14px; }
.scent-copy { padding: clamp(25px, 4vw, 55px); align-self: center; }
.choice-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.choice { min-height: 44px; border: 1px solid #c9b2d0; border-radius: 40px; background: #492f42; padding: 7px 11px; font-size: 14px; font-weight: 700; }
.choice[aria-pressed="true"] { color: #301426; background: var(--plum); border-color: var(--plum); }
.scent-copy .eyebrow, .recommendation .eyebrow { color: #edc0cf; }
.scent-copy h3 { font-size: clamp(44px, 5vw, 72px); margin-top: 7px; letter-spacing: -.035em; }
#stage-description { color: var(--muted); max-width: 36ch; }
.product-action { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.product-action strong { font-size: 21px; }
.footer { background: #2e1935; color: #f4e7f8; }
.footer-inner { min-height: 142px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner p { color: #e2cbe9; }
.footer-inner .brand-dot { color: #d397e4; }

dialog { width: min(92%, 470px); max-width: 100%; padding: 0; border: 1px solid #fff8; border-radius: 23px; background: #35212f; color: var(--ink); box-shadow: 0 24px 100px #20102566; }
dialog::backdrop { background: #22102685; backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
.sheet { padding: clamp(17px, 4vw, 28px); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.sheet-head h2 { font-size: clamp(37px, 9vw, 49px); margin-top: 5px; letter-spacing: -.043em; }
.sheet-head .eyebrow { color: #efbbd0; }
.close { font-size: 26px; line-height: 1; background: #543849; border: 1px solid #e2cfe8; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.guide-text { margin: 0 0 13px; color: var(--muted); }
.sheet .choice-row { margin-bottom: 13px; }
.recommendation { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding: 12px 14px; border-radius: 11px; background: linear-gradient(115deg,var(--dark),#382233 84%); min-height: 106px; }
.recommendation h3 { font-size: clamp(28px, 7vw, 35px); margin: 3px 0; }
.mini-bottle { position: relative; display: grid; place-items: center; width: 49px; height: 55px; flex: none; margin: 12px 3px 0; border-radius: 6px; border: 1px solid #fff9; background: linear-gradient(110deg,#ffffffde,var(--glass) 33%,var(--dark) 95%); box-shadow: 6px 7px 12px #2f183741, inset 0 -5px 9px #4a1e5660; }
.mini-bottle::before { content: ""; position: absolute; width: 24px; height: 14px; top: -13px; border-radius: 4px 4px 1px 1px; background: linear-gradient(90deg,#251527,#765378,#37203b); }
.mini-bottle span { font: 15px var(--serif); color: #392134; background: #fff8efcf; padding: 1px 5px; }
.full { width: 100%; }
.fineprint { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.bag-items { margin: 0; padding: 0; list-style: none; }
.bag-items li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bag-items li strong, .bag-items li small { display: block; }
.bag-items li small { color: var(--muted); }
.quantity { display: flex; align-items: center; gap: 9px; }
.quantity button { min-width: 44px; min-height: 44px; font-size: 19px; border: 1px solid #d9c6df; border-radius: 50%; background: #513546; }
.total { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; }
.sheet-back { margin-top: 4px; }
.conversation { padding: 12px; border: 1px solid #c9d7cc; border-radius: 12px; background: #2c4039; color: #ecf6ee; }
.conversation-head { display: grid; gap: 0; padding: 0 0 10px; }
.conversation-head small { color: #bad6c8; }
.message { margin: 0 0 0 auto; max-width: 94%; border-radius: 10px 3px 10px 10px; padding: 10px 12px; background: #364e44; white-space: pre-wrap; font-size: 14px; overflow-wrap: anywhere; }
.draft-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 15px; }

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero-scene { height: 520px; }
  h1 { font-size: clamp(53px, 8vw, 74px); }
}
@media (max-width: 650px) {
  .wrap { width: min(91%, 520px); }
  .site-header { grid-template-columns: 1fr 1fr; min-height: 65px; }
  .site-header nav { display: none; }
  .brand > span { font-size: 41px; }
  .brand small { margin-top: 7px; }
  .hero { grid-template-columns: 1fr; padding-block: 0; }
  .hero-copy { padding: 22px 0 13px; }
  h1 { font-size: clamp(52px, 12.5vw, 69px); margin-block: 10px; max-width: 100%; }
  .intro { font-size: 15px; max-width: 38ch; }
  .hero-actions { margin-top: 13px; column-gap: 12px; row-gap: 0; }
  .hero-actions .pill { min-height: 45px; padding-inline: 14px; font-size: 14px; }
  .hero-actions .text-link { font-size: 13px; }
  .hero-scene { height: clamp(280px, 82vw, 366px); border-radius: 48% 48% 7px 7px / 30% 30% 7px 7px; }
  .hero-photograph { background-position: center 54%; }
  .hero-overlay { padding: 16px 11px 8px; }
  .collection { margin-top: 27px; }
  .collection-inner { padding-block: 39px 45px; }
  .section-title { display: grid; gap: 8px; margin-bottom: 17px; }
  .section-title h2 { font-size: clamp(44px, 11vw, 60px); }
  .section-title p { font-size: 15px; }
  .scent-stage { grid-template-columns: 1fr; }
  .glass-display { min-height: 268px; }
  .scent-copy { padding: 18px 15px 22px; }
  .scent-copy .choice-row { margin-bottom: 18px; }
  .footer-inner { padding-block: 23px; flex-wrap: wrap; gap: 4px 12px; }
  .footer-inner p { font-size: 13px; }
  dialog { width: 100%; max-height: 90dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .sheet { padding-bottom: max(19px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

.bag-items li{grid-template-columns:56px minmax(0,1fr);gap:6px 14px}.bag-items .mini-bottle{grid-row:span 2;align-self:start}.bag-items .quantity{grid-column:2}.quantity button{min-width:44px;min-height:44px}.bag-items strong{font-size:1.12rem}#draft-text{white-space:pre-wrap;overflow-wrap:anywhere}
