/* Aashi Enterprises: the Divine Mantra Box, the Mini Chanting Box and the OM Night Lamp
   Theme: locked dark ("night") - devotional products glowing in a dark room are the brand.
   Shape rule: interactive controls are full pills, surfaces are 20px. */

/* the lamp's light colours, read from the artwork it shows (set by bg.js); registered so they crossfade */
@property --glow { syntax: "<color>"; inherits: true; initial-value: rgb(255 168 77); }
@property --glow-2 { syntax: "<color>"; inherits: true; initial-value: rgb(150 110 220); }
@property --room-glow { syntax: "<color>"; inherits: true; initial-value: rgb(255 168 77); }

:root {
  --bg: #0d0b12;
  --bg-2: #15121d;
  --surface: #1a1622;
  --ink: #f3ede4;
  --muted: #a99f93;
  --accent: #f29a38;
  --accent-ink: #1d1206;
  --accent-hi: #f7a94e;
  /* the light moves: --glow and --glow-2 (set by bg.js) crossfade here, and everything that uses them follows */
  transition: --glow 1.4s var(--ease), --glow-2 1.4s var(--ease);
  --line: rgba(243, 237, 228, 0.1);
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-deva: "Tiro Devanagari Sanskrit", serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
/* buttons and highlights take the hue of the lamp's light, at a fixed strength and lightness so
   they always read: light enough for dark text on them, and for themselves on the dark page */
@supports (color: hsl(from red h s l)) {
  :root {
    --accent: hsl(from var(--glow) h 82% 67%);
    --accent-hi: hsl(from var(--glow) h 88% 74%);
    --accent-ink: hsl(from var(--glow) h 60% 8%);
  }
}

/* z-index scale: night 0, field 0, stage 1, content 3, nav 20 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* the page moves a whole section at a time: it always comes to rest on one section, never between two */
html { scroll-snap-type: y mandatory; }
.hero, .products, .show, .mantras, .spaces-sec, .order, .maker, .faq { scroll-snap-align: start; scroll-snap-stop: always; }

/* each product's own content (data-for="mantra mini") shows only while that product is picked */
html[data-product="mantra"] [data-for]:not([data-for~="mantra"]),
html[data-product="mini"] [data-for]:not([data-for~="mini"]),
html[data-product="lamp"] [data-for]:not([data-for~="lamp"]) { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer { scroll-snap-align: end; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.accent-text { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Fixed layers ---------- */
.night {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 40%, color-mix(in srgb, var(--glow) 18%, transparent), transparent 70%),
    radial-gradient(80% 60% at 10% 100%, color-mix(in srgb, var(--glow-2) 12%, transparent), transparent 70%);
}
/* sized to the large viewport, so the mobile URL bar never resizes it */
#field {
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  pointer-events: none;
}

main, .footer { position: relative; z-index: 3; }

/* ---------- Model slots: each section's own 3D product, scrolling with it ---------- */
.model-slot { position: relative; }
/* the canvas reaches past the slot so the glow can fade out softly instead of being cut off */
.model-slot canvas {
  position: absolute; left: -18%; top: -18%; width: 136%; height: 136%;
  pointer-events: none;
}
.model-slot.is-flat { display: flex; align-items: center; justify-content: center; }
.model-slot.is-flat img { width: min(60%, 260px); border-radius: 18px; border: 10px solid #efe8dc; box-shadow: 0 0 80px 10px color-mix(in srgb, var(--glow) 30%, transparent); }
/* copy that sits beside a product stays above the edge of its glow */
.hero-copy, .show-captions, .show-bar, .order-copy, .mantras-copy { position: relative; z-index: 1; }

/* tap anywhere in the showcase to move it on */
.story { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.story .wrap, .story p, .story h2 { cursor: auto; }
.next-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 28px; border-radius: 999px;
  font: 500 17px var(--font-display); white-space: nowrap; cursor: pointer;
  color: var(--accent-ink); background: var(--accent); border: 0;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.8), 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
  transition: background 0.25s, box-shadow 0.4s var(--ease);
}
.next-btn:hover { background: var(--accent-hi); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8), 0 0 0 10px color-mix(in srgb, var(--accent) 16%, transparent); }
.next-btn .ph { font-size: 18px; animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(3px); } }
.next-btn-sm { height: 48px; padding: 0 18px 0 22px; font-size: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 20;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 2 * 16px));
  height: 64px; padding: 0 10px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(21, 18, 29, 0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { font-family: var(--font-deva); font-size: 26px; color: var(--accent); line-height: 1; transform: translateY(2px); }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.25s; padding: 10px 0; }
.nav-links a:hover { color: var(--ink); }
/* a fine gold line draws in under the link from the left, and leaves to the right */
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-end { display: flex; align-items: center; gap: 8px; }

/* the product switcher: which product the page is showing */
.switcher { position: relative; }
.switch-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 18px; border-radius: 999px; cursor: pointer;
  font: 500 14px var(--font-display); color: var(--ink); white-space: nowrap;
  background: rgba(13, 11, 18, 0.45); border: 1px solid rgba(243, 237, 228, 0.18);
  transition: border-color 0.25s, background 0.25s;
}
.switch-btn:hover, .switch-btn[aria-expanded="true"] { border-color: var(--accent); }
.switch-btn .ph { color: var(--accent); transition: transform 0.35s var(--ease); }
.switch-btn[aria-expanded="true"] .ph { transform: rotate(180deg); }
.switch-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 240px; padding: 6px;
  display: grid; gap: 2px; border-radius: var(--radius);
  background: rgba(26, 22, 34, 0.97); border: 1px solid var(--line);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
}
.switch-menu[hidden] { display: none; }
.switch-menu button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  text-align: left; color: var(--ink); background: none; border: 0; font: 500 15px var(--font-display);
  transition: background 0.2s;
}
.switch-menu button small { font: 400 12px var(--font-body); color: var(--muted); }
.switch-menu button:hover { background: rgba(243, 237, 228, 0.06); }
.switch-menu button[aria-current="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.switch-menu button[aria-current="true"] span { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s, box-shadow 0.35s var(--ease), border-color 0.25s;
}
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.7); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.75); }
.btn-primary i { transition: transform 0.35s var(--ease); }
.btn-primary:hover i { transform: translateX(4px); }
.btn-ghost { border-color: rgba(243, 237, 228, 0.25); color: var(--ink); background: rgba(13, 11, 18, 0.35); }
.btn-ghost:hover { border-color: var(--ink); }

/* Light on the controls: a soft pool of light follows the pointer across a button, as a lamp's glow
   catches a surface (script.js sets --mx and --my). Lighter on gold buttons, gold on dark ones */
.lit { position: relative; isolation: isolate; --lit: color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary.lit, .next-btn.lit, .store.lit:hover { --lit: rgba(255, 255, 255, 0.5); }
.lit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), var(--lit), transparent 70%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.lit:hover::before { opacity: 1; }
/* a press sends an echo of the control's own outline outward, like the rings of sound */
.press-echo {
  position: fixed; z-index: 40; pointer-events: none;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 16px -2px color-mix(in srgb, var(--accent) 60%, transparent);
}
.pick-go:hover i { transform: translateY(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; }
.hero-title {
  font-size: clamp(40px, 4.6vw, 70px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500;
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; white-space: nowrap; }
.hero-title .line > span { display: inline-block; transform-origin: 0 100%; }
.hero-sub { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 34ch; margin-bottom: 26px; }
.hero-points { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; color: var(--muted); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points .ph { color: var(--accent); font-size: 19px; }
.hero-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 500 13px var(--font-display); color: #9d9184;
}
.hero-hint .ph { font-size: 16px; color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-space { min-height: 60vh; }

/* the best seller: a solid badge, and a lit pedestal for the model */
.best-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 18px 8px 14px; border-radius: 999px;
  font: 600 14px var(--font-display); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent), 0 10px 30px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.best-badge .ph-fill { font-size: 15px; }
.hero-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font: 500 15px var(--font-display); color: var(--muted); transition: color 0.25s;
}
.hero-more:hover { color: var(--ink); }
.hero-more .ph { color: var(--accent); }
.hero-pedestal {
  position: absolute; left: 50%; bottom: 4%; width: 74%; aspect-ratio: 1; pointer-events: none;
  transform: translateX(-50%) translateY(46%) perspective(900px) rotateX(78deg);
}
.hero-pedestal span { position: absolute; inset: 0; border-radius: 50%; }
.hero-pedestal span:first-child { border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent); animation: floor-spin 60s linear infinite; }
.hero-pedestal span:last-child {
  inset: 22%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 50%, transparent), color-mix(in srgb, var(--glow) 10%, transparent) 60%, transparent);
}

/* ---------- Features showcase (plays on its own) ---------- */
.show-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: 92px; }
.show-grid { position: relative; flex: 1; display: flex; align-items: center; gap: 40px; }
.show-captions { position: relative; width: min(460px, 44%); height: 280px; flex: none; }
.show-visual { flex: 1; align-self: stretch; min-height: 60vh; }
.cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px;
  opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: blur(6px); pointer-events: none;
}
.cap.is-active { opacity: 1; transform: none; filter: none; }
.cap.is-past { transform: translateY(-30px); }
.cap h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.05; }
.cap p { color: var(--muted); font-size: 18px; max-width: 34ch; }
.show-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 5vh; }
.show-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.step {
  position: relative; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 14px var(--font-display); color: var(--muted);
  background: rgba(13, 11, 18, 0.45); border: 1px solid rgba(243, 237, 228, 0.14);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.step:hover { color: var(--ink); border-color: rgba(243, 237, 228, 0.4); }
.step.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
/* how long until the showcase moves on */
.step { overflow: hidden; }
.step::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(29, 18, 6, 0.4); transform: scaleX(0); transform-origin: 0 50%;
}
.is-playing .step.is-active::after { animation: step-fill var(--slide-time, 3.5s) linear forwards; }
@keyframes step-fill { to { transform: scaleX(1); } }

/* ---------- Rooms: the line names a room, the photo shows the lamp there ---------- */
.spaces-sec { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 60px; }
.spaces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.spaces {
  font-size: clamp(40px, 5vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500;
}
.spaces-lead { display: block; color: var(--muted); }
/* every room name shares one grid cell, so the heading never changes size as they swap */
.spaces-word { display: grid; padding-bottom: 0.08em; }
.spaces-word > span {
  grid-area: 1 / 1; color: var(--accent);
  opacity: 0; filter: blur(10px); transform: translateY(0.45em);
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.9s var(--ease);
}
.spaces-word > span.is-on { opacity: 1; filter: none; transform: none; }
.spaces-word > span.is-off { transform: translateY(-0.45em); transition-duration: 0.45s; }

.room-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }

/* the frame takes the photos' own shape (1430 x 1100), so each room shows whole */
.room-frame {
  position: relative; justify-self: end;
  width: min(100%, calc(70vh * 1.3)); aspect-ratio: 1430 / 1100;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
}
.room { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.room.is-on { opacity: 1; }
.room-scene {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.06); transition: opacity 0.6s var(--ease), transform 4.5s var(--ease);
}
.room.has-photo .room-scene { opacity: 1; }
.room.is-on .room-scene { transform: none; } /* a slow settle while each photo is on screen */
/* the photo and everything on it, in the photo's own pixels, scaled to the frame (--s, set by rooms.js) */
.room-stage { position: absolute; left: 0; top: 0; width: 1430px; height: 1100px; transform-origin: 0 0; transform: scale(var(--s, 0.4)); }
.room-shot { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the light around the lamp takes the chosen design's colour: hue only, so the photo's own
   brightness and falloff stay */
.room-tint {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--room-glow) 0%, color-mix(in srgb, var(--room-glow) 55%, transparent) 45%, transparent 100%);
  mix-blend-mode: color; opacity: 0.7;
  transition: --room-glow 0.9s var(--ease);
}
/* the chosen design on the lamp's printed panel; rooms.js maps it onto the panel's corners */
.room-art {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  overflow: hidden; /* square corners, like the print */
  transition: opacity 0.26s var(--ease);
}
.room-art.is-swapping { opacity: 0; }
.room-art img { width: 100%; height: 100%; object-fit: cover; }
.room-art img:not([src]) { visibility: hidden; }
/* backlit: the edges of the print glow softly into the lamp's frame */
.room-art::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 5px 1px rgba(255, 246, 228, 0.28);
}

/* placeholder until a photo is added: the room's own night tint and a glowing lamp on the wall */
.room-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px;
  background:
    radial-gradient(48% 38% at 50% 42%, rgba(255, 170, 80, 0.32), transparent 70%),
    linear-gradient(180deg, rgb(var(--tint)) 0%, #0d0b12 100%);
}
.room.has-photo .room-fallback { display: none; }
.room-lamp {
  width: 78px; height: 94px; border-radius: 14px; border: 6px solid #efe8dc;
  background: radial-gradient(circle at 50% 42%, #fff4cf 0%, #ffc560 22%, #f08a2a 55%, #a3361b 100%);
  box-shadow: 0 0 60px 20px rgba(255, 170, 80, 0.4), 0 0 160px 60px rgba(242, 120, 40, 0.18);
}
.room-name { font: 500 15px var(--font-display); letter-spacing: 0.02em; color: rgba(243, 237, 228, 0.6); }

/* ---------- Designs (in the buy section): the 3D lamp wears the chosen artwork ---------- */
.design-picks { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.design-pick {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 5px 18px 5px 5px; border-radius: 999px; cursor: pointer;
  font: 500 15px var(--font-display); color: var(--muted);
  background: rgba(13, 11, 18, 0.45); border: 1px solid rgba(243, 237, 228, 0.14);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.design-pick:hover { color: var(--ink); border-color: rgba(243, 237, 228, 0.4); }
/* the little print lifts and glows, as if lit from behind */
.design-thumb { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.design-pick:hover .design-thumb, .design-pick.is-active .design-thumb {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 0 2px #efe8dc, 0 6px 18px -4px color-mix(in srgb, var(--glow) 80%, transparent);
}
.design-pick.is-active { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.design-thumb {
  flex: none; width: 34px; height: 42px; border-radius: 8px; overflow: hidden;
  background: var(--surface); box-shadow: 0 0 0 2px #efe8dc;
}
.design-thumb canvas, .design-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.design-note { min-height: 1.6em; margin: 18px 0 40px; color: var(--muted); font-size: 16px; max-width: 42ch; }

/* ---------- Order ---------- */
.order { padding: 110px 0 80px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.order-space { min-height: 60vh; }
.section-title { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.order-text { color: var(--muted); font-size: 18px; margin: 20px 0 28px; max-width: 36ch; }

.buy-label { font: 500 15px var(--font-display); color: var(--muted); margin-bottom: 14px; }
.stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.store {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 58px; padding: 0 20px 0 24px; border-radius: 999px;
  background: var(--surface); border: 1px solid rgba(243, 237, 228, 0.16); color: var(--ink);
  font: 500 17px var(--font-display); white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.store .ph { color: var(--accent); font-size: 18px; transition: transform 0.35s var(--ease), color 0.25s; }
.store:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.store:hover .ph { color: var(--accent-ink); transform: translate(2px, -2px); }
.buy-note { min-height: 1.6em; margin-top: 16px; font-size: 15px; color: #ffc98a; }


/* ---------- Maker: who makes the lamp, and the line for bulk orders ---------- */
.maker { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; }
.maker > .wrap { width: 100%; }
.maker-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.maker-text { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; max-width: 46ch; text-wrap: pretty; }
.bulk { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.bulk h3 { font: 500 24px/1.2 var(--font-display); letter-spacing: -0.01em; }
.bulk p { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 12px 0 24px; }
/* the number is the one thing to remember here, so it is set large */
.bulk-number {
  display: inline-block; margin-bottom: 28px;
  font: 500 clamp(32px, 3.4vw, 48px)/1 var(--font-display); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--accent); transition: color 0.25s;
}
.bulk-number:hover { color: var(--accent-hi); }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bulk-actions .btn-primary:hover i { transform: none; }
/* links inside running text */
details p a, .footer-copy a {
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
}
details p a:hover, .footer-copy a:hover { text-decoration-color: var(--accent); }
/* ---------- FAQ ---------- */
.faq { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; }
.faq > .wrap { width: 100%; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.faq-list { display: grid; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font: 400 clamp(20px, 1.8vw, 26px) var(--font-display); letter-spacing: -0.015em;
  transition: color 0.3s var(--ease);
}
summary:hover, details[open] summary { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary .ph { color: var(--accent); font-size: 20px; transition: transform 0.4s var(--ease); flex-shrink: 0; }
details[open] summary .ph { transform: rotate(45deg); }
details p { padding: 0 0 30px; color: var(--muted); max-width: 56ch; font-size: 17px; }

/* ---------- Footer ---------- */
.footer { padding: 120px 0 56px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 5%, transparent)); }
.footer-line { font-family: var(--font-display); font-size: clamp(40px, 6.5vw, 96px); line-height: 1.02; letter-spacing: -0.04em; max-width: 14ch; margin-bottom: 96px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; color: var(--muted); font-size: 14px; }
.footer-links a { padding: 10px 0; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--muted); font-size: 13px; }
/* ---------- Products: the picker's turning stage ---------- */
.products { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 104px 0 36px; overflow: hidden; }
.products-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.products-head .section-title { max-width: 18ch; font-size: clamp(32px, 3.6vw, 52px); }
.stage { position: relative; flex: 1; min-height: 40vh; margin-top: 8px; cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.stage:active { cursor: grabbing; }
.stage-models { position: absolute; inset: 0; }
.stage-models canvas { left: 0; width: 100%; top: -4%; height: 108%; }
/* a beam of light from above, onto the product in front */
.stage-beam {
  position: absolute; left: 50%; top: -30%; width: min(640px, 90vw); height: 140%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 75%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(18px); opacity: 0.5;
}
/* the floor it stands on: a pool of light, seen from the side */
.stage-floor {
  position: absolute; left: 50%; bottom: 4%; width: min(620px, 92vw); aspect-ratio: 1; pointer-events: none;
  transform: translateX(-50%) translateY(46%) perspective(900px) rotateX(78deg);
}
.stage-floor span {
  position: absolute; inset: 28%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, transparent), color-mix(in srgb, var(--glow) 12%, transparent) 60%, transparent);
}
@keyframes floor-spin { to { transform: rotate(360deg); } }
.is-turning .stage-floor span { animation: floor-flash 1.1s var(--ease); }
@keyframes floor-flash { 0% { transform: scale(0.7); opacity: 0.4; } 35% { transform: scale(1.25); opacity: 1; } 100% { transform: none; opacity: 1; } }

.pick { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.pick-copy { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pick-name { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; min-height: 1.1em; }
.pick-name .word { display: inline-block; white-space: nowrap; }
.pick-name .ch { display: inline-block; }
.pick-tag { margin: 10px 0 24px; color: var(--muted); font-size: 17px; max-width: 46ch; min-height: 1.6em; }
/* the dots: each button is a full touch target; the dot drawn inside it stretches into a pill in front */
.pick-tabs { display: flex; gap: 2px; margin-top: 16px; }
.pick-tab { position: relative; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: none; }
.pick-tab::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 999px;
  transform: translate(-50%, -50%); background: rgba(243, 237, 228, 0.28);
  transition: width 0.5s var(--ease), background 0.3s var(--ease);
}
.pick-tab:hover::after { background: rgba(243, 237, 228, 0.6); }
.pick-tab[aria-selected="true"]::after { width: 26px; background: var(--accent); }
.pick-arrow {
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  font-size: 20px; color: var(--ink); background: rgba(13, 11, 18, 0.5); border: 1px solid rgba(243, 237, 228, 0.2);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.pick-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Mantras (the chanting devices): the 35 mantras around the OM ---------- */
.mantras { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; }
.mantras > .wrap { width: 100%; }
.mantras-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.mantras-text { color: var(--muted); font-size: 18px; margin: 20px 0 28px; max-width: 44ch; }
.mantra-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 600px; }
.mantra-list button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 14px var(--font-display); color: var(--muted);
  background: rgba(13, 11, 18, 0.45); border: 1px solid rgba(243, 237, 228, 0.14);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.mantra-list button:hover { color: var(--ink); border-color: rgba(243, 237, 228, 0.4); }
.mantra-list button.is-on { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.mantra-more { display: flex; align-items: center; padding: 0 8px; font: 500 14px var(--font-display); color: var(--accent); }
.ideal-label { font: 500 15px var(--font-display); color: var(--muted); margin-bottom: 12px; }
.ideal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 16px var(--font-display); }
.ideal li { display: flex; align-items: center; gap: 8px; }
.ideal .ph { color: var(--accent); font-size: 20px; }

.dial { position: relative; justify-self: center; width: min(100%, 64vh, 540px); aspect-ratio: 1; container-type: inline-size; }
.dial::before, .dial::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.dial::before { inset: 0; border: 1px solid var(--line); }
.dial::after { inset: 15%; border: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent); animation: floor-spin 80s linear infinite; }
.dial-ring { position: absolute; inset: 0; transform: rotate(var(--turn, 0deg)); transition: transform 1.4s var(--ease); }
.dial-dot {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: rotate(var(--a)) translateY(-42cqw);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), scale 0.5s var(--ease);
}
.dial-dot.is-on { background: var(--accent-hi); scale: 2.2; box-shadow: 0 0 14px 3px color-mix(in srgb, var(--accent) 70%, transparent); }
.dial-halo {
  position: absolute; inset: 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 34%, transparent), transparent);
  animation: dial-breathe 2.6s var(--ease) infinite;
}
@keyframes dial-breathe { 0%, 100% { transform: scale(0.92); opacity: 0.7; } 40% { transform: scale(1.08); opacity: 1; } }
.dial-core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
/* the chanting device in the middle of the ring */
.dial-model { width: 44cqw; height: 46cqw; margin-bottom: 1cqw; }
.dial-deva { font: 400 clamp(22px, 6cqw, 32px)/1.3 var(--font-deva); color: var(--ink); }
.dial-name { font: 500 15px var(--font-display); color: var(--muted); margin-top: 4px; letter-spacing: 0.02em; }

/* ---------- Perks (in the buy section) ---------- */
.perks { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font: 500 15px var(--font-display); }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks .ph { color: var(--accent); font-size: 18px; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
}
@media (max-width: 767px) {
  .brand-name { display: none; }
  .switch-btn { height: 40px; padding: 0 12px 0 14px; font-size: 13px; }
  .nav-buy { height: 40px; padding: 0 16px; font-size: 14px; }
  .best-badge { margin-bottom: 12px; font-size: 12.5px; padding: 7px 14px 7px 12px; }
  .hero-more { margin-top: 16px; font-size: 14px; }
  .hero-points { grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13.5px; margin-bottom: 24px; }
  .hero-points li { gap: 7px; }

  .products { padding: 84px 0 28px; }
  .stage { min-height: 34vh; }
  .stage-floor { width: 120vw; }
  .pick { grid-template-columns: 1fr; }
  .pick-arrow { display: none; }
  .pick-name { font-size: clamp(30px, 9vw, 40px); }
  .pick-tag { font-size: 15px; margin: 6px 0 16px; }
  .pick-go { width: 100%; }

  .mantras { padding: 84px 0 64px; }
  .mantras-grid { grid-template-columns: 1fr; gap: 24px; }
  .dial { order: -1; width: min(100%, 38svh); }
  .mantras-text { font-size: 16px; margin: 14px 0 20px; }
  .mantra-list { gap: 6px; margin-bottom: 24px; }
  .mantra-list button { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .perks { margin-bottom: 22px; gap: 6px 16px; font-size: 14px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nav-links { gap: 22px; }
}

/* ---------- Mobile: single column, lamp sits above the copy ---------- */
@media (max-width: 767px) {
  .nav { height: 56px; padding: 0 6px 0 16px; top: 10px; }
  .nav-links { display: none; }
  .brand-name { font-size: 16px; }

  .hero { padding: 76px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-space { order: -1; min-height: 38vh; }
  .hero-title { font-size: clamp(40px, 12vw, 56px); margin-bottom: 18px; }
  .hero-sub { margin-bottom: 26px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-hint { bottom: 22px; }

  .show-pin { padding-top: 72px; }
  .show-grid { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 20px; }
  .show-visual { order: -1; flex: 1; min-height: 36vh; }
  .show-captions { width: 100%; height: 170px; }
  .cap { justify-content: flex-end; gap: 10px; }
  .cap h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .cap p { font-size: 16px; }
  .show-bar { padding-bottom: 3vh; }
  .show-steps { gap: 0; flex-wrap: nowrap; }
  /* on phones the steps become dots; each keeps a full 44px touch target */
  .show-steps .step { width: 34px; padding: 0; background: none; border: 0; }
  .show-steps .step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .show-steps .step::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: rgba(243, 237, 228, 0.3); transition: transform 0.3s var(--ease), background 0.3s; }
  .show-steps .step.is-active { background: none; }
  .show-steps .step::after { display: none; }
  .show-steps .step.is-active::before { background: var(--accent); transform: scale(1.5); }

  .spaces-sec { padding: 96px 0 56px; }
  .spaces-grid { grid-template-columns: 1fr; gap: 28px; }
  .spaces { font-size: clamp(36px, 10.5vw, 52px); }
  .room-steps { margin-top: 24px; }
  .room-step { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .room-frame { justify-self: center; width: min(100%, calc(46svh * 1.3)); }

  .order-text { font-size: 16px; margin: 14px 0 22px; }
  .design-note { margin-bottom: 28px; }
  .design-picks { gap: 8px; }
  .design-pick { min-height: 46px; font-size: 14px; padding-right: 14px; }
  .design-thumb { width: 28px; height: 35px; }

  .order { padding: 76px 0 100px; }
  .order-grid { grid-template-columns: 1fr; gap: 8px; }
  .order-space { min-height: 36vh; }
  .stores { grid-template-columns: 1fr; max-width: none; }

  .faq { padding: 80px 0 110px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .maker { padding: 80px 0 110px; }
  .maker-grid { grid-template-columns: 1fr; gap: 24px; }
  .bulk { margin-top: 36px; padding-top: 32px; }
  .bulk-actions .btn { flex: 1 1 auto; }
  summary { padding: 18px 0; font-size: 18px; }
  details p { padding: 0 0 20px; }

  .footer { padding: 80px 0 40px; }
  .footer-line { margin-bottom: 64px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  /* keep fades and colour changes, drop spatial movement and loops */
  *, *::before, *::after { animation: none !important; }
  .spaces-word > span, .cap, .room-scene, .dial-ring, .design-thumb { transform: none !important; filter: none !important; }
  .nav-links a::after { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Browser surfaces ---------- */
::selection { background: color-mix(in srgb, var(--accent) 38%, transparent); color: #fff8ec; }
html { scrollbar-color: #3b3144 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3b3144; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #5a4a5e; }
a { text-underline-offset: 0.2em; }

/* ---------- Low-end devices (set by perf.js): skip the costliest compositing effects ---------- */
.lite .nav { background: rgba(21, 18, 29, 0.95); backdrop-filter: none; -webkit-backdrop-filter: none; }
.lite .cap, .lite .spaces-word > span { filter: none !important; }
