/* SAKINA — atmosphere, light and movement.
   The purchase controls and stock switches remain in index.html. */
:root {
  --scent-color: #d5b578;
  --scent-rgb: 213, 181, 120;
  --scent-ink: #80613b;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
body { overflow-x: clip; }
.wrap { position: relative; z-index: 3; }
.atmosphere-canvas { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; opacity: 1; transition: opacity 1.5s; }
.film-grain { position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: .022; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.7'/%3E%3C/svg%3E"); }
.nav { transition: background-color 1s, color 1s, border-color 1s; }
.nav.is-day { background: rgba(245, 240, 230, .92); color: var(--ink); border-bottom-color: var(--line-light); }
.nav.is-day .nav-links a { color: #6d685b; }
.nav.is-day .nav-links a:hover { color: var(--ink); }
.nav.is-day .nav-cta { border-color: var(--scent-ink); color: var(--scent-ink); }
.nav.is-day .nav-cta:hover { color: var(--ivory); background: var(--scent-ink); }
.nav-links a { position: relative; padding-block: 9px; transition: color .5s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { transition: color .6s, border-color .6s, background-color .6s; }
.brand-name { letter-spacing: .32em; transition: letter-spacing 1s var(--ease-out); }
.brand:hover .brand-name { letter-spacing: .37em; }
.reading-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--scent-color); transform: scaleX(0); transform-origin: left; transition: background-color 1.4s; pointer-events: none; }
.hero { min-height: min(850px, calc(100svh - 110px)); background: radial-gradient(ellipse at 72% 35%, rgba(var(--scent-rgb), .075), transparent 65%), var(--night); }
.hero-grid { padding-block: clamp(70px, 8vh, 112px) 80px; }
.hero-aura { position: absolute; width: min(850px, 100vw); height: 550px; top: 1%; right: -12%; border-radius: 50%; background: var(--scent-color); opacity: .11; filter: blur(100px); pointer-events: none; transition: background-color 2s; }
.hero-aura-secondary { top: 38%; left: -22%; right: auto; width: 600px; height: 330px; opacity: .035; }
.hero-watermark { position: absolute; left: -2%; top: 7%; margin: 0; font: 400 clamp(180px, 28vw, 460px)/1 'Amiri', serif; color: var(--scent-color); opacity: .045; pointer-events: none; user-select: none; transition: color 2s; }
.hero-text { transform: translate3d(0, var(--hero-text-y, 0px), 0); }
.hero-title { letter-spacing: -.06em; }
.hero-title-line { display: block; overflow: clip; padding-bottom: .13em; margin-bottom: -.13em; }
.hero-title-line > span { display: block; }
.hero-title em { margin-top: .025em; color: var(--scent-color); transition: color 1.8s; }
.hero-description { font-weight: 300; }
.hero-footnote::before { content: ""; width: 23px; height: 1px; background: var(--scent-color); transition: background-color 1.8s; }
.hero-visual { transform: translate3d(0, var(--hero-visual-y, 0px), 0); }
.hero-visual::before { content: ""; position: absolute; inset: -6% -13% 12%; border: 1px solid rgba(var(--scent-rgb), .14); border-radius: 50%; transform: rotate(-18deg); pointer-events: none; }
.hero-visual::after { content: ""; position: absolute; inset: 2% -19% 10%; border: 1px solid rgba(var(--scent-rgb), .07); border-radius: 50%; transform: rotate(18deg); pointer-events: none; }
.hero-image { outline-color: rgba(var(--scent-rgb), .36); box-shadow: 0 40px 95px -40px rgba(0, 0, 0, .8); isolation: isolate; }
.hero-image img { position: relative; z-index: 0; transform: scale(1.035) translateY(.5%); user-select: none; -webkit-user-drag: none; }
.hero-image::after { content: none; }
.hero-image figcaption { z-index: 2; }
.hero-image figcaption strong { display: inline-block; }
.scent-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: auto; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; cursor: grab; user-select: none; -webkit-overflow-scrolling: touch; }
.scent-track::-webkit-scrollbar { display: none; }
.scent-track:focus-visible { outline: 2px solid var(--scent-color); outline-offset: -3px; }
.scent-track.is-moving, .scent-track.is-mouse-dragging { scroll-snap-type: none; }
.scent-track.is-mouse-dragging { cursor: grabbing; }
.scent-scene { position: relative; flex: 0 0 100%; min-width: 0; height: 100%; margin: 0; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; }
.scent-scene img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.scent-scene::after { content: ""; position: absolute; inset: 55% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(14, 15, 12, .72)); pointer-events: none; }
.hero-controls .circle-button { width: 44px; height: 44px; }
.hero-controls .auto-button { min-height: 44px; }
.hero-edition { position: absolute; z-index: 4; right: -27px; top: 43%; writing-mode: vertical-rl; font-size: 8px; letter-spacing: .24em; color: var(--muted); }
.hero-scent-notes { margin: 9px 0 0; font-size: 10px; letter-spacing: .09em; color: #efe4cd; opacity: .85; }
.hero-scroll { display: flex; align-items: center; gap: 13px; margin-top: 38px; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: #929486; }
.scroll-thread { position: relative; width: 1px; height: 35px; overflow: hidden; background: rgba(245, 240, 230, .16); }
.scroll-thread::after { content: ""; position: absolute; top: -45%; left: 0; width: 100%; height: 45%; background: var(--scent-color); }
.house-strip { border-top-color: rgba(var(--scent-rgb), .19); }
.house-strip .strip-divider { width: 28px; height: 1px; background: rgba(var(--scent-rgb), .4); }
.theme-fade { position: relative; overflow: hidden; }
.theme-fade::after { content: ""; position: absolute; inset: -20% -25%; background: radial-gradient(ellipse at 65% 50%, rgba(var(--scent-rgb), .2), transparent 60%); filter: blur(25px); }
.daylight { position: relative; background: radial-gradient(ellipse at 82% 8%, rgba(var(--scent-rgb), .09), transparent 45%), var(--ivory); }
.story { position: relative; overflow: hidden; }
.story::before { content: ""; position: absolute; width: 530px; height: 530px; top: -320px; left: -220px; border: 1px solid rgba(var(--scent-rgb), .22); border-radius: 50%; pointer-events: none; }
.arabic { color: var(--scent-ink); transition: color 1.8s; }
.section-heading .display { font-size: clamp(42px, 5.4vw, 72px); }
.scent-tab { transition: color .5s, border-color .8s, background-color .5s; position: relative; }
.scent-tab[aria-selected="true"] { color: var(--scent-ink); border-bottom-color: var(--scent-ink); }
.scent-tab span { transition: transform .7s var(--ease-out), opacity .7s; }
.scent-tab:hover span, .scent-tab[aria-selected="true"] span { transform: translateY(-2px); opacity: 1; }
.fragrance-panel { animation: none; }
.collection-image { overflow: hidden; transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 1s var(--ease-out), box-shadow 1s; }
.collection-image img { transform: scale(1.025); transition: transform 1.5s var(--ease-out); }
.collection-image::after, .pocket-visual::after, .ritual-image::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 30%), rgba(255, 248, 229, .22), transparent 56%); opacity: 0; transition: opacity 1.1s; pointer-events: none; }
.collection-image:hover::after, .pocket-visual:hover::after, .ritual-image:hover::after { opacity: .55; }
.collection-image:hover img { transform: scale(1.065); }
.image-caption { z-index: 2; }
.product-number { color: var(--scent-ink); transition: color 1.5s; }
.product-number::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.note-list span { transition: border-color 1.3s, background-color 1.3s; border-color: rgba(var(--scent-rgb), .4); background: rgba(var(--scent-rgb), .05); }
.size-button { transition: background-color .55s, color .55s, border-color .55s, transform .6s var(--ease-out); }
.size-button:hover { transform: translateY(-2px); }
.purchase-option { animation: purchase-arrive .65s var(--ease-out); }
.button { position: relative; isolation: isolate; overflow: hidden; transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0); transition: transform .8s var(--ease-out), background-color .5s, color .5s, box-shadow .7s; }
.button:hover { transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, -2px), 0); }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, .16) 48%, transparent 85%); transform: translateX(-130%); transition: transform 1.2s var(--ease-out); pointer-events: none; }
.button:hover::before { transform: translateX(130%); }
.button .arrow { transition: transform .8s var(--ease-out); }
.button:hover .arrow { transform: translateX(4px); }
.button-gold { box-shadow: 0 0 35px -18px rgba(var(--scent-rgb), .3); }
.button-gold:hover { box-shadow: 0 0 45px -18px rgba(var(--scent-rgb), .55); }
/* The final checkout invitation: polished gold, with light moving over the surface. */
.purchase[data-out-of-stock="false"] {
  min-height: 64px; padding: 11px 14px 11px 25px; gap: 18px; border-radius: 7px;
  border-color: #ab8348; color: #282419;
  background: linear-gradient(115deg, #c6a05f 0%, #edcf92 42%, #f6dfad 57%, #c8a263 100%);
  box-shadow: inset 0 1px 0 rgba(255, 250, 232, .7), 0 7px 18px -9px rgba(104, 70, 20, .4);
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s;
}
.purchase[data-out-of-stock="false"]::before {
  z-index: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 252, 233, .6) 47%, rgba(255, 255, 255, .8) 50%, rgba(235, 217, 255, .22) 53%, transparent 70%);
  transform: translate3d(-130%, 0, 0); opacity: 0; transition: none;
}
.purchase[data-out-of-stock="false"]::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255, 249, 227, .32);
  border-radius: 3px; pointer-events: none;
}
.purchase[data-out-of-stock="false"] .purchase-label { position: relative; z-index: 1; font-size: 13px; font-weight: 600; letter-spacing: .065em; }
.purchase[data-out-of-stock="false"] .arrow {
  position: relative; z-index: 1; width: 40px; height: 40px; padding: 10px; border-radius: 50%;
  background: #29281f; color: #f6dfad; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.purchase[data-out-of-stock="false"]:hover,
.purchase[data-out-of-stock="false"]:focus-visible {
  border-color: #85612e;
  box-shadow: inset 0 1px 0 rgba(255, 250, 232, .8), 0 12px 28px -10px rgba(104, 70, 20, .45);
}
.purchase[data-out-of-stock="false"]:focus-visible { outline: 2px solid #80613b; outline-offset: 4px; }
.purchase[data-out-of-stock="false"]:active {
  transform: translate3d(0, 1px, 0);
  box-shadow: inset 0 2px 5px rgba(104, 70, 20, .2), 0 3px 9px -6px rgba(104, 70, 20, .3);
  transition-duration: .12s;
}
.motion-enabled .purchase[data-out-of-stock="false"]::before { animation: preorder-sheen 5.2s .7s ease-in-out infinite; }
.motion-enabled .purchase[data-out-of-stock="false"] .arrow use { animation: preorder-invitation 5.2s .7s ease-in-out infinite; }
.motion-paused .purchase[data-out-of-stock="false"]::before,
.motion-paused .purchase[data-out-of-stock="false"] .arrow use { animation: none !important; }
.text-link { position: relative; border-bottom-color: transparent; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.28); transform-origin: left; transition: transform .85s var(--ease-out); opacity: .45; }
.text-link:hover::after { transform: scaleX(1); }
.pocket-grid { background: linear-gradient(120deg, rgba(var(--scent-rgb), .06), transparent 75%), var(--paper); }
.pocket-visual { overflow: hidden; }
.pocket-visual img { transform: translateY(var(--image-offset, 0px)) scale(1.055); }
.pocket-visual figcaption { z-index: 2; }
.discovery-photo { --float-base: 0px; }
.ritual-image { overflow: clip; }
.ritual-image img { transform: translateY(var(--image-offset, 0px)) scale(1.035); }
.ritual-image::after { bottom: 42px; border-radius: 50% 50% 0 0; }
.night-content { position: relative; background: radial-gradient(ellipse at 16% 30%, rgba(var(--scent-rgb), .075), transparent 60%), var(--night); }
.ritual .display em { color: var(--scent-color); transition: color 1.8s; }
.ritual-image figcaption::before, .contact .eyebrow::before { content: ""; height: 1px; width: 23px; background: var(--scent-color); }
.faq summary::after { transition: transform .6s var(--ease-out); }
.faq summary:hover::after { transform: rotate(90deg); }
.faq details[open] p { animation: purchase-arrive .6s var(--ease-out); }
.contact { position: relative; }
.footer-word { color: #36372c; }
.motion-control { display: inline-flex; gap: 7px; align-items: center; border: 0; padding: 0; background: transparent; color: #b9b7aa; font-size: 9px; letter-spacing: .04em; }
.motion-control::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--scent-color); }
.motion-control[aria-pressed="false"]::before { background: transparent; outline: 1px solid #929487; }
.motion-control:hover { color: var(--cream); }
.stock-content::before { content: ""; display: block; width: 30px; height: 1px; margin: 0 auto 24px; background: #907244; }

/* Entrance and continuous motion only start after successful JS enhancement. */
.motion-enabled .hero-aura { animation: aura-breathe 16s ease-in-out infinite alternate; }
.motion-enabled .hero-aura-secondary { animation: aura-breathe 20s -8s ease-in-out infinite alternate-reverse; }
.motion-enabled .hero-watermark { animation: watermark-drift 22s ease-in-out infinite alternate; }
.motion-enabled .hero-title-line > span { animation: line-arrive 1.65s var(--ease-out) both; }
.motion-enabled .hero-title-line:nth-child(2) > span { animation-delay: .18s; }
.motion-enabled .hero-text > .eyebrow { animation: caption-arrive 1.2s .08s var(--ease-out) both; }
.motion-enabled .hero-description { animation: caption-arrive 1.5s .35s var(--ease-out) both; }
.motion-enabled .hero-actions { animation: caption-arrive 1.5s .5s var(--ease-out) both; }
.motion-enabled .hero-footnote, .motion-enabled .hero-scroll { animation: caption-arrive 1.5s .7s var(--ease-out) both; }
.motion-enabled .hero-image { animation: portal-arrive 1.8s .1s var(--ease-out) both; }
.motion-enabled .hero-image .scent-scene.is-current img { animation: photograph-breathe 20s ease-in-out infinite alternate; }
.motion-enabled .hero-visual::before { animation: orbit-breathe 24s ease-in-out infinite alternate; }
.motion-enabled .hero-visual::after { animation: orbit-breathe 28s -10s ease-in-out infinite alternate-reverse; }
.motion-enabled .scroll-thread::after { animation: scroll-invitation 2.8s 1s ease-in-out infinite; }
.motion-enabled .theme-fade::after { animation: aura-breathe 20s ease-in-out infinite alternate; }
.motion-enabled .arabic { animation: calligraphy-breathe 12s ease-in-out infinite alternate; }
.motion-enabled .fragrance-panel:not([hidden]) .collection-image { animation: image-unveil 1.2s var(--ease-out) both; }
.motion-enabled .fragrance-panel:not([hidden]) .product-title { animation: caption-arrive .95s var(--ease-out) both; }
.motion-enabled .fragrance-panel:not([hidden]) .product-description { animation: caption-arrive 1.1s .08s var(--ease-out) both; }
.motion-enabled .fragrance-panel:not([hidden]) .note-list { animation: caption-arrive 1.1s .14s var(--ease-out) both; }
.motion-enabled .discovery-photo { animation: discovery-breathe 10s ease-in-out infinite; }
.motion-enabled .live-dot { animation: dot-breathe 4s ease-in-out infinite; }
.motion-enabled .reveal { opacity: 0; transform: translate3d(0, 25px, 0); transition: opacity 1.25s var(--ease-out), transform 1.25s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.motion-enabled .reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.motion-enabled .reveal.is-visible .display { animation: heading-arrive 1.4s var(--ease-out) both; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused .reveal, .motion-paused .hero-title-line > span, .motion-paused .hero-description, .motion-paused .hero-actions, .motion-paused .hero-footnote, .motion-paused .hero-scroll, .motion-paused .hero-text > .eyebrow, .motion-paused .hero-image { opacity: 1 !important; transform: none !important; animation: none !important; }
.motion-paused .reveal .display, .motion-paused .fragrance-panel .collection-image, .motion-paused .fragrance-panel .product-title, .motion-paused .fragrance-panel .product-description, .motion-paused .fragrance-panel .note-list, .motion-paused .purchase-option, .motion-paused .faq details p, .motion-paused .hero-image figcaption strong, .motion-paused .stock-dialog { animation: none !important; }
.motion-paused .hero-text, .motion-paused .hero-visual, .motion-paused .collection-image, .motion-paused .pocket-visual img, .motion-paused .ritual-image img { transform: none; }
.motion-paused .atmosphere-canvas { opacity: .4; }

@keyframes line-arrive { from { transform: translateY(112%) rotate(2deg); opacity: 0; } to { transform: translateY(0) rotate(0); opacity: 1; } }
@keyframes caption-arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes portal-arrive { from { opacity: 0; clip-path: inset(12% 0 0); transform: translateY(28px) scale(.98); } to { opacity: 1; clip-path: inset(0); transform: translateY(0) scale(1); } }
@keyframes photograph-breathe { from { transform: scale(1.035) translateY(.5%); } to { transform: scale(1.105) translateY(-.5%); } }
@keyframes aura-breathe { from { transform: translate3d(-4%, 2%, 0) scale(.95); } to { transform: translate3d(7%, -5%, 0) scale(1.16); } }
@keyframes orbit-breathe { from { transform: rotate(-18deg) scale(.97); } to { transform: rotate(3deg) scale(1.045); } }
@keyframes watermark-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(20px, -17px, 0); } }
@keyframes scroll-invitation { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(115px); opacity: 0; } }
@keyframes calligraphy-breathe { from { transform: translateY(2px); } to { transform: translateY(-7px); } }
@keyframes image-unveil { from { opacity: .4; clip-path: inset(5% 0 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes purchase-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes discovery-breathe { 0%, 100% { transform: translateY(var(--float-base)); } 50% { transform: translateY(calc(var(--float-base) - 8px)); } }
@keyframes dot-breathe { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes heading-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes preorder-sheen {
  0%, 12% { transform: translate3d(-130%, 0, 0); opacity: 0; }
  16% { opacity: 1; }
  42% { transform: translate3d(130%, 0, 0); opacity: 1; }
  44%, 100% { transform: translate3d(130%, 0, 0); opacity: 0; }
}
@keyframes preorder-invitation {
  0%, 20%, 36%, 100% { transform: translateX(0); }
  28% { transform: translateX(3px); }
}

@media (hover: hover) and (pointer: fine) {
  .collection-image:hover { box-shadow: 0 28px 50px -35px rgba(var(--scent-rgb), .55); }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-grid { padding-block: 55px 50px; }
  .hero-aura { height: 440px; right: -35%; top: 26%; filter: blur(75px); }
  .hero-aura-secondary { width: 300px; left: -40%; top: 0; }
  .hero-watermark { top: 0; left: -4%; font-size: 220px; opacity: .04; }
  .hero-scroll { margin-top: 26px; }
  .hero-visual::before { inset: -3% -6% 14%; }
  .hero-visual::after { inset: 4% -9% 12%; }
  .hero-edition { right: -5px; font-size: 7px; }
  .hero-image figcaption { bottom: 23px; }
  .hero-scent-notes { font-size: 9px; }
  .section-heading .display { font-size: 43px; }
  .scent-tab { transition: color .35s, border-color .35s, background-color .35s, box-shadow .35s; }
  .scent-tab[aria-selected="true"] { border-color: var(--scent-ink); }
  .scent-tab:hover { border-color: var(--scent-ink); background-color: #fffaf0; }
  .house-strip .strip-divider { width: 14px; }
  .story::before { width: 350px; height: 350px; top: -185px; left: -190px; }
  .footer-bottom { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .atmosphere-canvas { display: none; }
  .hero-title-line > span, .reveal, .hero-description, .hero-actions, .hero-footnote, .hero-scroll, .hero-text > .eyebrow, .hero-image { opacity: 1 !important; transform: none !important; }
  .hero-text, .hero-visual, .collection-image, .pocket-visual img, .ritual-image img { transform: none !important; }
  .button, .button:hover, .size-button:hover { transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
