/* ==========================================================
   LUEUR — styles
   ========================================================== */

/* Animatable variables: colors blend smoothly */
@property --light      { syntax: '<color>';  inherits: true; initial-value: #ffbd70; }
@property --light-deep { syntax: '<color>';  inherits: true; initial-value: #e0822b; }
@property --body       { syntax: '<color>';  inherits: true; initial-value: #2b2a2c; }
@property --glow       { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --room       { syntax: '<color>';  inherits: true; initial-value: #ffb46b; }

:root {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .3, 1);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --light: #ffbd70;
  --light-deep: #e0822b;
  --body: #2b2a2c;
  --glow: 1;
}

/* ---------- Dark theme (default) ---------- */
:root, :root[data-theme="dark"] {
  --bg: #0c0b0a;
  --bg-2: #13110f;
  --surface: #181614;
  --surface-2: #1f1c19;
  --stage: #141210;
  --line: rgba(255, 238, 215, .09);
  --line-2: rgba(255, 238, 215, .16);
  --text: #f2ece3;
  --muted: #9b9287;
  --accent: #dcaa62;
  --accent-ink: #1a140c;
  --cordc: #5d554c;
  --glow-blend: screen;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --bg: #f3eee6;
  --bg-2: #ebe4d9;
  --surface: #faf7f2;
  --surface-2: #f1ebe2;
  --stage: #e8e0d3;
  --line: rgba(45, 32, 18, .1);
  --line-2: rgba(45, 32, 18, .18);
  --text: #1c1916;
  --muted: #6d655b;
  --accent: #a3702c;
  --accent-ink: #fffaf2;
  --cordc: #2c2824;
  --glow-blend: multiply;
  --shadow: 0 30px 70px -35px rgba(60, 40, 20, .35);
  color-scheme: light;
}

/* Halo color is computed per element so each card glows in its own temperature */
:root, :root * { --glowc: var(--light); }
:root[data-theme="light"], :root[data-theme="light"] * { --glowc: var(--light-deep); }

/* Site-wide light temperature */
:root[data-temp="warm"]    { --light: #ffbd70; --light-deep: #e0822b; }
:root[data-temp="neutral"] { --light: #fff1db; --light-deep: #d4b78d; }
:root[data-temp="cold"]    { --light: #dbe8ff; --light-deep: #7fa3dd; }
:root { transition: --light .8s var(--ease), --light-deep .8s var(--ease); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; font-family: var(--font-display); font-weight: 400; color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

/* Theme: circular reveal via View Transitions */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
/* Soft "light spill": a feathered radial mask that grows from the click point.
   Only mask-size / mask-position are animated — these work in every browser with View Transitions. */
::view-transition-new(root) {
  z-index: 2;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: themeReveal 1.3s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes themeReveal {
  from { -webkit-mask-size: 0 0; mask-size: 0 0;
         -webkit-mask-position: var(--vt-x) var(--vt-y); mask-position: var(--vt-x) var(--vt-y); }
  to   { -webkit-mask-size: var(--vt-s) var(--vt-s); mask-size: var(--vt-s) var(--vt-s);
         -webkit-mask-position: var(--vt-x2) var(--vt-y2); mask-position: var(--vt-x2) var(--vt-y2); }
}
/* Fallback for browsers without View Transitions: the whole page cross-fades */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color .9s ease, color .9s ease, border-color .9s ease, fill .9s ease, stroke .9s ease, opacity .9s ease, box-shadow .9s ease !important;
}
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: #0a0908;
  display: grid; place-items: center; align-content: center; gap: 22px;
  transition: opacity .9s var(--ease), visibility .9s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__bulb { width: 84px; overflow: visible; }
.pl-glass { fill: none; stroke: #3a332c; stroke-width: 2; }
.pl-cap { fill: #3a332c; }
.pl-fil {
  fill: none; stroke: #ffbd70; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: plDraw 1.1s var(--ease) forwards, plFlick 1s .9s forwards;
}
.preloader__word {
  font-family: var(--font-display); font-size: 28px; letter-spacing: .6em; color: #f2ece3;
  opacity: 0; animation: plWord 1s .6s var(--ease) forwards; padding-left: .6em;
}
.preloader.is-lit .pl-glass { fill: rgba(255, 189, 112, .15); stroke: #ffbd70; filter: drop-shadow(0 0 30px #ffbd70); transition: all .4s; }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plFlick {
  0%, 18%, 22%, 50%, 54% { filter: drop-shadow(0 0 0 #ffbd70); opacity: .4; }
  20%, 52%, 100% { filter: drop-shadow(0 0 12px #ffbd70) drop-shadow(0 0 30px #ffbd70); opacity: 1; }
}
@keyframes plWord { from { opacity: 0; letter-spacing: 1em; } to { opacity: 1; letter-spacing: .6em; } }

@media (hover: none), (pointer: coarse) { .spotlight { display: none !important; } }

/* Spotlight following the pointer (dark theme) */
.spotlight {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--light) 9%, transparent), transparent 70%);
  transition: opacity .6s;
}
[data-theme="light"] .spotlight { opacity: 0; }

/* Film grain */
.grain {
  position: fixed; inset: -50%; z-index: 998; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
[data-theme="light"] .grain { opacity: .07; mix-blend-mode: multiply; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 14px; left: var(--gutter); right: var(--gutter); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), background-color .6s;
}
.header.is-hidden { transform: translateY(-140%); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 50%; position: relative;
  background: var(--text); display: grid; place-items: center; overflow: hidden;
  transition: background-color .6s;
}
.logo__mark::before {
  content: ''; position: absolute; width: 18px; height: 9px; top: 8px;
  background: var(--bg); border-radius: 18px 18px 0 0; transition: background-color .6s;
}
.logo__mark i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; top: 18px;
  background: var(--light); box-shadow: 0 0 12px 3px var(--light);
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 5px 1px var(--light); opacity: .8; } }
.logo__word { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: .32em; }

.nav { display: flex; gap: 4px; }
.nav__link { position: relative; padding: 8px 14px; font-size: 14px; color: var(--muted); transition: color .3s; }
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, background-color .6s, transform .3s var(--ease);
  position: relative;
}
.icon-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Temperature switch */
.temp-switch {
  position: relative; display: flex; padding: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.temp-switch button {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted);
  transition: color .3s;
}
.temp-switch button[aria-checked="true"] { color: var(--text); }
.temp-switch i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.temp-switch__pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: transform .55s var(--ease), width .55s var(--ease);
}

/* Theme icon: sun ↔ moon */
.theme-icon__core { fill: currentColor; transition: transform .6s var(--ease); transform-origin: center; }
.theme-icon__cut { transition: cx .6s var(--ease), cy .6s var(--ease); }
.theme-icon__rays line { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-icon__rays { transform-origin: 12px 12px; transition: transform .6s var(--ease), opacity .4s; }
[data-theme="dark"] .theme-icon__cut { cx: 17; cy: 8; }
[data-theme="dark"] .theme-icon__core { transform: scale(1.5); }
[data-theme="dark"] .theme-icon__rays { opacity: 0; transform: rotate(-90deg) scale(.5); }

.cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .4s var(--ease);
}
.cart-btn__count.has-items { transform: scale(1); }
.cart-btn.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s, color .4s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), var(--light), var(--accent) 70%);
  transform: scale(0); transition: transform .6s var(--ease);
}
.btn--primary:hover { color: #1a140c; box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--light) 60%, transparent); }
.btn--primary:hover::before { transform: scale(1.5); }
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--text); }
.btn--wide { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px var(--gutter) 80px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; width: 90vmax; height: 90vmax; right: -30vmax; top: -35vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--glowc) 22%, transparent), transparent 60%);
  pointer-events: none;
}
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 400; line-height: .98; letter-spacing: -.02em;
  font-size: clamp(52px, 8.2vw, 128px); margin: 0 0 28px;
}
.hero__title em { display: inline-block; }
.hero__lead { max-width: 480px; color: var(--muted); font-size: 18px; margin: 0 0 36px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 520px; }
.hero__stats b { display: block; font-family: var(--font-display); font-size: 44px; font-weight: 500; line-height: 1; }
.hero__stats span { font-size: 13px; color: var(--muted); }

.hero__visual { position: relative; height: min(78vh, 720px); }
.hero__lamp { position: absolute; inset: -120px 0 0; transform-origin: 50% 0; }
.hero__lamp .lamp { width: 100%; height: 100%; overflow: visible; }
.pullcord { position: absolute; top: -120px; right: 6%; width: 40px; height: 420px; touch-action: none; }
.pullcord__svg { width: 40px; height: 400px; overflow: visible; }
.pullcord__svg path { stroke: var(--cordc); stroke-width: 1.6; fill: none; }
.pullcord__svg rect { fill: var(--accent); }
.pullcord__svg .pullcord__shine { fill: url(#none); fill: rgba(255, 255, 255, .25); clip-path: inset(0 55% 0 0 round 7px); pointer-events: none; }
.pullcord__hint {
  position: absolute; top: 400px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse { 50% { opacity: .35; transform: translate(-50%, 4px); } }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-2); border-radius: 20px; z-index: 3; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--text); animation: scrollHint 2s var(--ease) infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* Headline split into letters */
.split .ch { display: inline-block; opacity: 0; transform: translateY(60%) rotate(6deg); filter: blur(8px); }
.is-ready .split .ch {
  animation: chIn 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms + .15s);
}
@keyframes chIn { to { opacity: 1; transform: none; filter: blur(0); } }
.split .word { display: inline-block; white-space: nowrap; }

.reveal-up { opacity: 0; transform: translateY(26px); }
.is-ready .reveal-up { animation: upIn 1s var(--ease) forwards; animation-delay: var(--d, .6s); }
@keyframes upIn { to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; position: relative; z-index: 2; background: var(--bg-2); transition: background-color .6s; }
.marquee__track { display: flex; gap: 36px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-style: italic; }
.marquee__track i { color: var(--accent); font-style: normal; font-size: .6em; align-self: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 2; padding: clamp(80px, 12vw, 150px) var(--gutter); max-width: 1480px; margin: 0 auto; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -.02em; margin: 0; }
.section__note { max-width: 380px; color: var(--muted); margin: 0; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Filter bar ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.filters { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filters::-webkit-scrollbar { display: none; }
.filters button { position: relative; z-index: 1; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .35s; white-space: nowrap; }
.filters button.is-active { color: var(--bg); }
.filters sup { font-size: 10px; opacity: .7; }
.filters__pill { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--text); transition: transform .6s var(--ease), width .6s var(--ease); }
.sort { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.sort select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9287' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 42px 11px 18px;
}

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card {
  position: relative; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
  transition: background-color .6s, border-color .4s, box-shadow .5s var(--ease), opacity .5s;
  opacity: 0; transform: translateY(50px);
}
.card.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease), background-color .6s, border-color .4s, box-shadow .5s; transition-delay: var(--d, 0s); }
.card.is-gone { display: none; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }

.card__stage {
  position: relative; aspect-ratio: 4 / 4.3; overflow: hidden; cursor: pointer;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--glowc) calc(var(--glow) * 10%), transparent), transparent 60%),
    var(--stage);
  transition: --body .6s var(--ease), --light .8s var(--ease), --light-deep .8s var(--ease), background-color .6s;
  transform-style: preserve-3d;
}
.card__lamp { position: absolute; inset: 6% 8% 2%; transition: transform .8s var(--ease); }
.card__lamp .lamp { width: 100%; height: 100%; overflow: visible; }
.card:hover .card__lamp { transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.05); transition: transform .25s ease-out; }
.card__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .12), transparent 45%);
}
.card:hover .card__glare { opacity: 1; }

.badge {
  position: absolute; top: 16px; left: 16px; z-index: 2; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
}
.badge--new { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.fav {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); transition: transform .3s var(--ease);
}
.fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: fill .3s, stroke .3s; }
.fav:hover { transform: scale(1.1); }
.fav.is-on svg { fill: #e05a4f; stroke: #e05a4f; animation: heart .5s var(--ease); }
@keyframes heart { 40% { transform: scale(1.35); } }
.card__look {
  position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translate(-50%, 16px); opacity: 0;
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: transform .5s var(--ease), opacity .4s;
}
.card__look svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.card:hover .card__look { transform: translate(-50%, 0); opacity: 1; }

.card__info { padding: 20px 22px 22px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card__name { font-family: var(--font-display); font-size: 30px; font-weight: 500; margin: 0; line-height: 1.1; }
.card__price { font-weight: 600; font-size: 16px; white-space: nowrap; }
.card__cat { margin: 2px 0 16px; font-size: 13px; color: var(--muted); }
.card__opts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }

.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c); position: relative;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .3), inset 0 2px 3px rgba(255, 255, 255, .3), 0 0 0 1px var(--line-2);
  transition: transform .3s var(--ease);
}
.swatch::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--text); opacity: 0; transform: scale(.7); transition: all .35s var(--ease); }
.swatch:hover { transform: scale(1.12); }
.swatch.is-active::after { opacity: 1; transform: none; }
.swatches--lg .swatch { width: 34px; height: 34px; }
.swatches--lg { gap: 14px; }

.temps { display: flex; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.temps button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; transition: background-color .3s; }
.temps button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); transition: box-shadow .3s, transform .3s; box-shadow: 0 0 0 1px var(--line-2); }
.temps button.is-active { background: var(--surface-2); }
.temps button.is-active i { box-shadow: 0 0 10px 2px var(--c); transform: scale(1.15); }

.btn-add {
  width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600;
  position: relative; overflow: hidden; transition: color .4s, border-color .4s;
}
.btn-add::before { content: ''; position: absolute; inset: 0; background: var(--text); transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit; }
.btn-add:hover { color: var(--bg); border-color: var(--text); }
.btn-add:hover::before { transform: none; }
.btn-add span, .btn-add svg { position: relative; }
.btn-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-add.is-added { color: var(--accent-ink); border-color: var(--accent); }
.btn-add.is-added::before { background: var(--accent); transform: none; }

/* ---------- Lamp: shared styles ---------- */
.lamp .cord { stroke: var(--cordc); }
.lamp .glow { opacity: calc(var(--glow) * .95); mix-blend-mode: var(--glow-blend); transition: opacity .5s; }
.lamp .cone { opacity: calc(var(--glow) * .8); mix-blend-mode: var(--glow-blend); transition: opacity .5s; }
[data-theme="light"] .lamp .glow { opacity: calc(var(--glow) * .55); }
[data-theme="light"] .lamp .cone { opacity: calc(var(--glow) * .35); }
.lamp .lit { filter: brightness(calc(.35 + var(--glow) * .65)); }
.lamp .shadow { opacity: .9; }
[data-theme="dark"] .lamp .shadow { opacity: .6; }
.lamp .filament { filter: drop-shadow(0 0 3px var(--light)) brightness(calc(.4 + var(--glow) * .6)); }
.lamp__sway { transform-box: view-box; transform-origin: 200px 0; }
.card:hover .lamp--hang .lamp__sway { animation: sway 3.2s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(2.2deg); } 75% { transform: rotate(-2.2deg); } }
.card:hover .lamp .glow { animation: flickerIn .7s ease-out; }
@keyframes flickerIn { 0% { opacity: .2; } 15% { opacity: .9; } 25% { opacity: .4; } 45%, 100% { opacity: calc(var(--glow) * .95); } }

/* ---------- Light lab ---------- */
.light-lab { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.light-lab__text > p { color: var(--muted); max-width: 460px; }
.kelvin { margin: 36px 0 28px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: background-color .6s; }
.kelvin__value { display: flex; align-items: baseline; gap: 6px; }
.kelvin__value b { font-family: var(--font-display); font-size: 64px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.kelvin__value span { font-size: 22px; color: var(--muted); }
.kelvin__label { margin: 6px 0 22px; color: var(--muted); font-size: 14px; min-height: 1.6em; }
.kelvin input[type="range"] { width: 100%; }
.kelvin__marks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 10px; letter-spacing: .05em; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 8px; border-radius: 99px; outline: none;
  background: linear-gradient(90deg, #ff9a3c, #ffc98a 30%, #fff4e4 50%, #e8f0ff 75%, #b6ceff);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--text); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .2s;
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text); }
.dimmer { width: 100%; background: linear-gradient(90deg, #2a2520, var(--light)) !important; }

.temp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.temp-cards button {
  text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, transform .4s var(--ease), background-color .6s;
}
.temp-cards button:hover { transform: translateY(-3px); border-color: var(--line-2); }
.temp-cards i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px 2px var(--c); margin-bottom: 14px; }
.temp-cards b { display: block; font-size: 15px; }
.temp-cards span { font-size: 12px; color: var(--muted); }

.room { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.room__svg { width: 100%; height: auto; transition: --room .3s; }
.room__tag {
  position: absolute; left: 20px; bottom: 20px; padding: 10px 18px; border-radius: 999px;
  background: rgba(10, 9, 8, .55); backdrop-filter: blur(10px); color: #f2ece3; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .12);
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: background-color .6s, border-color .4s, transform .6s var(--ease);
}
.feature::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(300px circle at var(--fx, 50%) var(--fy, 0%), color-mix(in srgb, var(--light) 16%, transparent), transparent 60%);
}
.feature:hover::before { opacity: 1; }
.feature:hover { border-color: var(--line-2); }
.feature > * { position: relative; }
.feature { display: flex; flex-direction: column; }
.feature__num { margin-top: auto; }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-2); margin-bottom: 26px; }
.feature__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature__icon .fill { fill: var(--accent); }
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.feature p { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.feature__num { display: block; font-family: var(--font-display); font-size: 48px; font-weight: 500; line-height: 1; }
.feature small { color: var(--muted); font-size: 12px; }

/* ---------- CTA ---------- */
.cta__box {
  position: relative; overflow: hidden; text-align: center; padding: clamp(50px, 8vw, 110px) var(--gutter);
  border-radius: calc(var(--radius) + 10px); background: var(--surface); border: 1px solid var(--line);
  transition: background-color .6s;
}
.cta__box > * { position: relative; }
.cta__box .eyebrow { justify-content: center; }
.cta__box > p { color: var(--muted); margin: 22px auto 34px; max-width: 460px; }
.cta__glow {
  position: absolute; left: 50%; top: -60%; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--glowc) 28%, transparent), transparent 60%);
  animation: ctaGlow 7s ease-in-out infinite; pointer-events: none;
}
@keyframes ctaGlow { 50% { transform: scale(1.15) translateY(30px); opacity: .7; } }
.subscribe { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); transition: background-color .6s; }
.subscribe input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; padding: 0 20px; }
.subscribe input::placeholder { color: var(--muted); }
.subscribe .btn { height: 48px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; padding: 70px var(--gutter) 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; max-width: 1480px; margin: 0 auto; }
.footer__cols { display: flex; gap: clamp(40px, 7vw, 110px); flex-wrap: wrap; }
.footer h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 600; }
.footer__cols a { display: block; font-size: 14px; padding: 4px 0; transition: color .3s, transform .3s var(--ease); }
.footer__cols a:hover { color: var(--accent); transform: translateX(4px); }
.footer__bottom { max-width: 1480px; margin: 60px auto 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 13px; }
.footer__big {
  font-family: var(--font-display); font-size: clamp(80px, 22vw, 340px); line-height: .8; letter-spacing: .08em;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); text-align: center; user-select: none;
  background: radial-gradient(circle at var(--fbx, 50%) 50%, var(--light), transparent 22%) no-repeat;
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, .6); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(1180px, 100%); max-height: calc(100svh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1.15fr .85fr; border-radius: 28px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .7);
  clip-path: inset(12% 12% 12% 12% round 28px); opacity: 0; transform: translateY(30px);
  transition: clip-path .8s var(--ease-io), opacity .5s, transform .8s var(--ease);
}
.modal.is-open .modal__panel { clip-path: inset(0 0 0 0 round 28px); opacity: 1; transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 5; }
.modal__stage {
  position: relative; min-height: 560px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 20%, color-mix(in srgb, var(--glowc) calc(var(--glow) * 14%), transparent), transparent 70%), var(--stage);
  transition: --body .6s var(--ease), --light .8s var(--ease), --light-deep .8s var(--ease), --glow .3s;
}
.modal__lamp { position: absolute; inset: 6% 8%; }
.modal__lamp .lamp { width: 100%; height: 100%; overflow: visible; }
.modal__lamp.swap { animation: lampSwap .7s var(--ease); }
@keyframes lampSwap { from { opacity: 0; transform: translateY(20px) scale(.96); filter: blur(6px); } }
.modal__hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line);
  transition: opacity .4s;
}
.modal__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.modal__stage.is-zooming .modal__hint { opacity: 0; }
.modal__nav { position: absolute; top: 50%; margin-top: -21px; z-index: 4; }
.modal__nav--prev { left: 16px; } .modal__nav--next { right: 16px; }

/* Magnifier */
.lens {
  --size: 220px;
  position: absolute; top: 0; left: 0; width: var(--size); height: var(--size); border-radius: 50%; z-index: 3;
  pointer-events: none; overflow: hidden; opacity: 0; transform: scale(.4);
  transition: opacity .35s, transform .45s var(--ease), width .3s var(--ease), height .3s var(--ease);
  background: var(--stage);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--text) 85%, transparent),
    0 0 0 9px color-mix(in srgb, var(--surface) 55%, transparent),
    0 0 0 10px var(--line-2),
    0 30px 60px -10px rgba(0, 0, 0, .6),
    inset 0 0 40px rgba(0, 0, 0, .35);
}
.lens::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .28), transparent 35%), radial-gradient(circle at 70% 80%, rgba(255, 255, 255, .06), transparent 40%);
}
.modal__stage.is-zooming .lens { opacity: 1; transform: scale(1); }
.lens__inner { position: absolute; top: 0; left: 0; will-change: transform; }
.lens__inner > div { position: absolute; }
.lens__inner .lamp { width: 100%; height: 100%; overflow: visible; }
.lens__zoom {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2;
  font-size: 11px; font-weight: 700; color: #fff; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .45);
}

.modal__info { padding: 44px 40px 36px; display: flex; flex-direction: column; }
.modal__title { font-family: var(--font-display); font-size: clamp(44px, 5vw, 68px); font-weight: 500; line-height: 1; margin: 0; }
.modal__price { font-size: 22px; font-weight: 600; margin: 12px 0 14px; }
.modal__desc { color: var(--muted); margin: 0 0 26px; }
.opt { padding: 18px 0; border-top: 1px solid var(--line); }
.opt__head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.opt__head b { color: var(--text); font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); position: relative; transition: background-color .6s; }
.seg button { position: relative; z-index: 1; padding: 10px 6px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: color .3s; }
.seg button i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.seg button small { font-size: 11px; font-weight: 500; opacity: .8; }
.seg button.is-active { color: var(--text); }
.seg__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); transition: transform .5s var(--ease); }
.modal__buy { display: flex; gap: 12px; margin: 22px 0 26px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 54px; }
.qty button { width: 44px; height: 100%; font-size: 20px; color: var(--muted); transition: color .3s; }
.qty button:hover { color: var(--text); }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: 13px; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; text-align: right; }

/* ---------- Cart ---------- */
.drawer { position: fixed; inset: 0; z-index: 210; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100% - 24px));
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 26px;
  display: flex; flex-direction: column; transform: translateX(110%); transition: transform .7s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 500; }
.drawer__list { flex: 1; overflow: auto; padding: 10px 22px; }
.drawer__empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.drawer__empty .lamp { width: 120px; height: 150px; margin: 0 auto 14px; --glow: .25; }
.citem { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: citemIn .6s var(--ease); }
@keyframes citemIn { from { opacity: 0; transform: translateX(30px); } }
.citem.is-removing { animation: citemOut .45s var(--ease) forwards; }
@keyframes citemOut { to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; } }
.citem__img { width: 76px; height: 86px; border-radius: 14px; background: var(--stage); overflow: hidden; }
.citem__img .lamp { width: 100%; height: 100%; }
.citem h4 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.1; }
.citem p { margin: 2px 0 8px; font-size: 12px; color: var(--muted); }
.citem .qty { height: 32px; display: inline-flex; } .citem .qty button { width: 30px; font-size: 16px; }
.citem__right { text-align: right; display: flex; flex-direction: column; align-items: end; gap: 10px; }
.citem__right b { font-weight: 600; white-space: nowrap; }
.citem__rm { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.citem__rm:hover { color: var(--text); }
.drawer__foot { padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.drawer__total b { font-family: var(--font-display); font-size: 34px; font-weight: 500; }

/* Lamp flying into the cart */
.flyer { position: fixed; z-index: 300; pointer-events: none; width: 120px; height: 150px; }
.flyer .lamp { width: 100%; height: 100%; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5);
  animation: toastIn .6s var(--ease), toastOut .5s var(--ease) 2.6s forwards;
}
.toast i { width: 10px; height: 10px; border-radius: 50%; background: var(--light); box-shadow: 0 0 10px var(--light); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .temp-switch span { display: none; }
  .temp-switch button { padding: 8px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 46vh; order: -1; margin-top: -40px; }
  .hero__lamp { inset: -100px 10% 0; }
  .hero { padding-top: 110px; }
  .light-lab { grid-template-columns: 1fr; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__stage { min-height: 380px; }
  .modal__info { padding: 28px 24px; }
}
@media (max-width: 560px) {
  .hero__visual { height: 40vh; }
  .header { padding: 8px 8px 8px 14px; top: 10px; }
  .logo__word { font-size: 18px; letter-spacing: .22em; }
  .icon-btn { width: 38px; height: 38px; }
  .hero__stats { gap: 22px; }
  .hero__stats b { font-size: 34px; }
  .features { grid-template-columns: 1fr; }
  .temp-cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__info { padding: 14px; }
  .card__name { font-size: 22px; }
  .card__price { font-size: 13px; }
  .card__row { flex-direction: column; gap: 0; }
  .card__opts { flex-direction: column; align-items: flex-start; }
  .swatch { width: 18px; height: 18px; }
  .subscribe { flex-direction: column; border-radius: 22px; }
  .subscribe input { padding: 14px 16px; }
  .modal { padding: 0; }
  .modal__panel { max-height: 100svh; border-radius: 0; }
  .modal__buy { flex-direction: column; }
  .qty { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
