* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0505;
  --ink: #f4ece9;
  --ink-dim: #a89a97;
  --accent: #c0392b;
  --line: rgba(244,236,233,0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot { display: none; }
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

h1, h2 { font-family: 'Montserrat', sans-serif; font-weight: 300; letter-spacing: -0.02em; }
em { font-style: normal; color: var(--accent); }
strong { font-weight: 500; color: var(--ink); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 9998; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(2) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(-2%,2%)} 100%{transform:translate(2%,-1%)} }

/* ---------- Cursor ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%;
  pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
  background: var(--ink); mix-blend-mode: difference;
  transition: width .25s var(--ease), height .25s var(--ease), background-color .25s var(--ease), opacity .2s, box-shadow .25s var(--ease);
}
.cursor-dot.active { width: 9px; height: 9px; background: var(--accent); mix-blend-mode: normal; box-shadow: 0 0 10px rgba(192,57,43,0.6); }
.cursor-dot.hide { opacity: 0; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.3rem;
  transition: transform 1s var(--ease);
}
.preloader.done { transform: translateY(-100%); }
.preloader-label { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.1rem; letter-spacing: 0.15em; }
.preloader-bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .2s linear; }

/* ---------- Rail nav (side progress) ---------- */
.railnav {
  position: fixed; right: 1.6rem; top: 50%; transform: translateY(-50%);
  z-index: 500; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.rail-home {
  font-size: 1.1rem; margin-bottom: 0.4rem; opacity: 0.7; transition: opacity .3s;
}
.rail-home:hover { opacity: 1; }
.rail-dots { display: flex; flex-direction: column; gap: 0.65rem; }
.rail-dots button {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line); border: none;
  cursor: pointer; padding: 0; transition: background .3s, transform .3s;
}
.rail-dots button.active { background: var(--accent); transform: scale(1.6); }
@media (max-width: 860px) { .railnav { display: none; } }

/* ---------- Top nav ---------- */
.ktopnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.2rem, 4vw, 3rem);
  font-size: 0.8rem; letter-spacing: 0.06em;
  background: linear-gradient(180deg, rgba(10,5,5,0.85) 0%, rgba(10,5,5,0.55) 60%, rgba(10,5,5,0) 100%);
}
.ktopnav-back { transition: color .3s; }
.ktopnav-back:hover { color: var(--accent); }
.ktopnav-title { text-transform: uppercase; opacity: 0.8; }

/* ---------- Shared scene structure ---------- */
.kscene { position: relative; }
.ksection-label {
  display: block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.6rem;
}
.ksection-label.center { text-align: center; }
.kh2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.kh2.center { text-align: center; }
.kbody { color: var(--ink-dim); line-height: 1.75; font-size: 1rem; max-width: 52ch; margin-bottom: 1.2rem; }
.kbody.center { margin-left: auto; margin-right: auto; text-align: center; }
.kaccent { color: var(--ink); font-family: 'Montserrat', sans-serif; font-size: 1.15rem; letter-spacing: 0.03em; }
.kcaption { font-size: 0.78rem; color: var(--ink-dim); letter-spacing: 0.05em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.khero { height: 100svh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.khero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.7); }
.khero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,5,5,0.55) 0%, rgba(10,5,5,0.15) 40%, rgba(10,5,5,0.75) 85%, rgba(10,5,5,0.97) 100%);
}
.khero-content { position: relative; z-index: 2; text-align: center; padding: 0 1.5rem; max-width: 900px; }
.keyebrow { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1.2rem; }
.khero-title { font-size: clamp(3rem, 9vw, 7rem); line-height: 0.98; font-weight: 200; margin-bottom: 1.4rem; }
.khero-sub { color: var(--ink-dim); font-size: clamp(0.95rem, 1.6vw, 1.1rem); line-height: 1.7; max-width: 56ch; margin: 0 auto; }
.kscroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim);
}
.kscroll-cue i { width: 1px; height: 30px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.kscroll-cue i::after { content:''; position:absolute; top:-100%; left:0; width:100%; height:100%; background:var(--ink); animation: kscroll 1.8s ease-in-out infinite; }
@keyframes kscroll { 0%{top:-100%} 60%,100%{top:100%} }

/* ---------- Text + image section ---------- */
.ktext-image { padding: clamp(6rem, 12vw, 9rem) clamp(1.2rem, 6vw, 6rem); }
.ktext-image-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; max-width: 1400px; margin: 0 auto; }
.kimg-col img { width: 100%; display: block; border-radius: 2px; }
@media (max-width: 900px) { .ktext-image-inner { grid-template-columns: 1fr; } .kimg-col { order: -1; } }

/* ---------- Map ---------- */
.kmap { padding: clamp(6rem, 12vw, 9rem) clamp(1.2rem, 6vw, 6rem); text-align: center; }
.kmap-intro { margin-bottom: 3rem; }
.kmap-frame { position: relative; max-width: 1100px; margin: 0 auto; }
.kmap-frame img { width: 100%; display: block; border-radius: 2px; }
.khot { position: absolute; transform: translate(-50%, -50%); background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; z-index: 3; }
.khot-dot {
  position: relative;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,4,4,0.6);
  border: 1.5px solid var(--ink);
  box-shadow: 0 0 0 0 rgba(244,236,233,0.45), 0 2px 12px rgba(0,0,0,0.55);
  animation: khotpulse 2.4s ease-out infinite;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.khot-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  transition: background .3s var(--ease);
}
.khot-dot::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px dashed rgba(244,236,233,0.55);
  animation: khotspin 7s linear infinite;
  pointer-events: none;
}
@keyframes khotpulse {
  0% { box-shadow: 0 0 0 0 rgba(244,236,233,0.4), 0 2px 12px rgba(0,0,0,0.55); }
  70% { box-shadow: 0 0 0 16px rgba(244,236,233,0), 0 2px 12px rgba(0,0,0,0.55); }
  100% { box-shadow: 0 0 0 0 rgba(244,236,233,0), 0 2px 12px rgba(0,0,0,0.55); }
}
@keyframes khotspin { to { transform: rotate(360deg); } }
.khot-label {
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  background: rgba(10,5,5,0.9); padding: 0.3rem 0.6rem; border: 1px solid var(--line);
  opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.khot:hover .khot-label { opacity: 1; transform: translateY(0); }
.khot:hover .khot-dot { background: var(--accent); border-color: var(--ink); transform: scale(1.18); box-shadow: 0 0 0 0 rgba(244,236,233,0.6), 0 4px 16px rgba(0,0,0,0.6); }
.khot:hover .khot-dot::before { background: var(--ink); }
.khot:hover .khot-dot::after { border-color: rgba(244,236,233,0.8); }
.kmap-note { margin-top: 1.6rem; opacity: 0.6; }

/* Floating preview thumbnail that follows the hovered hotspot */
.khot-preview {
  position: fixed;
  z-index: 600;
  width: 200px;
  aspect-ratio: 4/3;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  overflow: hidden;
}
.khot-preview.active { opacity: 1; transform: scale(1); }
.khot-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .khot-preview { display: none; } }

/* ---------- Full-bleed image scene ---------- */
.kfull { min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.kfull-img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: saturate(0.95) brightness(0.82); will-change: transform; transition: opacity .45s ease; }
.kfull-img.kfit-contain { inset: 0; height: 100%; object-fit: contain; background: #0a0505; }
.kfull-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,5,5,0.92) 0%, rgba(10,5,5,0.35) 45%, rgba(10,5,5,0.15) 100%); }
.kfull-caption { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 6vw, 6rem); max-width: 780px; }

/* ---------- Duo: two portrait photos side by side, full-bleed ---------- */
.kduo-media { position: absolute; inset: -8% 0; width: 100%; height: 116%; display: flex; will-change: transform; }
.kduo-img { width: 50%; height: 100%; object-fit: cover; filter: saturate(0.95) brightness(0.82); }
.kduo-img:first-child { border-right: 1px solid rgba(255,255,255,0.08); }
.kduo-media.kduo-contain {
  align-items: center; justify-content: center; gap: 2.5vw; background: #0a0505;
}
.kduo-media.kduo-contain .kduo-img {
  position: static; width: auto; height: 72%; flex: 0 0 auto;
  object-fit: contain; background: none; border-right: none;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
@media (max-width: 700px) {
  /* Two photos side by side, matched to the same height so they line up evenly —
     object-fit:contain guarantees neither one is ever cropped, just letterboxed
     if its aspect ratio doesn't perfectly fill its half. */
  .kduo-media {
    position: static !important; inset: auto !important; width: 100% !important;
    height: 56vw !important;
    display: flex !important; flex-direction: row !important; align-items: center !important;
    justify-content: center; gap: 4px; background: #0a0505 !important; transform: none !important;
  }
  .kduo-img {
    position: static !important; width: auto !important; height: 100% !important;
    max-width: calc(50% - 4px) !important; flex: 0 1 auto !important;
    object-fit: contain !important; box-shadow: none !important; border-right: none !important;
  }
}

/* ---------- Cabinet: extra-angle thumbnail switcher ---------- */
.kangle-switcher { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.kangle-btn {
  width: 62px; height: 62px; border: 1px solid var(--line); background-color: #111;
  background-size: cover; background-position: center; padding: 0; cursor: pointer;
  opacity: 0.5; filter: saturate(0.8); transition: opacity .3s ease, border-color .3s ease;
}
.kangle-btn:hover, .kangle-btn.active { opacity: 1; border-color: var(--accent); }
@media (max-width: 700px) { .kangle-btn { width: 46px; height: 46px; } }

/* ---------- Video background scene ---------- */
.kvideo-scene { min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.kvideo-bg { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: saturate(0.95) brightness(0.82); background: #000; will-change: transform; }

/* ---------- Scenario (media + panel) scenes ---------- */
.kscenario { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 100svh; }
.kscenario-media { position: relative; overflow: hidden; background: #000; }
.kscenario-media img, .kscenario-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.kscenario-media img.kvisible, .kscenario-media video.kvisible { opacity: 1; }
.kscenario-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 5vw, 4.5rem); }
@media (max-width: 900px) {
  .kscenario { grid-template-columns: 1fr; }
  .kscenario-media { height: 60vh; }
}

/* ---------- Fragrance zone: full-bleed, uncropped image/video with overlay caption ---------- */
.kfragrance-scene { position: relative; min-height: 100svh; overflow: hidden; background: #000; }
.kfragrance-scene .kscenario-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.kfragrance-scene .kscenario-media img,
.kfragrance-scene .kscenario-media video { object-fit: contain; background: #000; }
.kfragrance-scene .kfragrance-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(270deg,
    rgba(10,5,5,0.92) 0%,
    rgba(10,5,5,0.82) 20%,
    rgba(10,5,5,0.55) 40%,
    rgba(10,5,5,0.22) 60%,
    rgba(10,5,5,0.04) 78%,
    rgba(10,5,5,0) 92%);
}
.kfragrance-scene .kscenario-panel {
  position: absolute; top: 0; right: 0; z-index: 2;
  height: 100%; width: min(560px, 46vw);
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: none;
}
.kfragrance-scene .kscenario-panel .ksection-label,
.kfragrance-scene .kscenario-panel .kh2,
.kfragrance-scene .kscenario-panel .kbody,
.kfragrance-scene .kscenario-panel .kplay-toggle {
  text-shadow: 0 2px 18px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.9);
}
@media (max-width: 900px) {
  .kfragrance-scene .kfragrance-overlay {
    background: linear-gradient(0deg,
      rgba(10,5,5,0.95) 0%,
      rgba(10,5,5,0.8) 35%,
      rgba(10,5,5,0.45) 60%,
      rgba(10,5,5,0.15) 80%,
      rgba(10,5,5,0) 95%);
  }
  .kfragrance-scene .kscenario-panel {
    top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: auto;
    justify-content: flex-end;
    padding: 2.5rem 1.2rem 2.5rem;
  }
}

/* ---------- Levitating table: drag-to-spin ---------- */
.ktable-media { cursor: grab; user-select: none; }
.ktable-media.kdragging { cursor: grabbing; }
.ktable-hint {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 3; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); background: rgba(10,5,5,0.55); padding: 0.5rem 0.9rem;
  border: 1px solid var(--line); pointer-events: none;
  opacity: 1; transition: opacity .4s var(--ease);
}
.ktable-media.kdragging .ktable-hint,
.ktable-media.kplayed .ktable-hint { opacity: 0; }
.ktable-product { width: 150px; display: block; margin-bottom: 1.4rem; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.55)); }

/* ---------- Meditation pod: full-screen, letterboxed video ---------- */
.kpod-scene { background: #000; }
.kpod-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------- Wall: pinned, full-bleed, scroll cycles 3 themes ---------- */
.kwallpin-track { position: relative; height: 300vh; }
.kwallpin-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.kwallpin-media { position: absolute; inset: 0; background: #000; }
.kwallpin-media img, .kwallpin-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: saturate(0.95) brightness(0.8);
  transition: opacity 1s ease;
}
.kwallpin-media img.kvisible, .kwallpin-media video.kvisible { opacity: 1; }
.kwallpin-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,5,5,0.94) 0%, rgba(10,5,5,0.3) 42%, rgba(10,5,5,0.15) 70%, rgba(10,5,5,0.5) 100%);
}
.kwallpin-caption {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 6vw, 6rem);
  max-width: 780px;
}
.kwallpin-dots { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.kwallpin-dots button {
  background: none; border: 1px solid var(--line); color: var(--ink-dim);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.76rem; letter-spacing: 0.04em;
  padding: 0.5rem 0.95rem; cursor: default;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.kwallpin-dots button.active { color: var(--ink); border-color: var(--accent); }

/* ---------- Full walkthrough teaser: full-bleed poster + centered play button ---------- */
.kvideo-teaser { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #000; }
.kvideo-teaser-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(10,5,5,0.35) 0%, rgba(10,5,5,0.72) 62%, rgba(10,5,5,0.92) 100%);
}
.kvideo-teaser-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  background: none; border: none; cursor: pointer; padding: 2rem 3rem;
}
.kwatch-play {
  position: relative; flex-shrink: 0;
  width: 104px; height: 104px; border-radius: 50%;
  background: rgba(10,5,5,0.55); backdrop-filter: blur(3px);
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(244,236,233,0.4), 0 10px 40px rgba(0,0,0,0.5);
  animation: kwatchpulse 2.8s ease-out infinite;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.kwatch-play::before {
  content: ''; width: 0; height: 0; margin-left: 6px;
  border-style: solid; border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--ink);
  transition: border-color .4s var(--ease);
}
@keyframes kwatchpulse {
  0% { box-shadow: 0 0 0 0 rgba(244,236,233,0.38), 0 10px 40px rgba(0,0,0,0.5); }
  70% { box-shadow: 0 0 0 26px rgba(244,236,233,0), 0 10px 40px rgba(0,0,0,0.5); }
  100% { box-shadow: 0 0 0 0 rgba(244,236,233,0), 0 10px 40px rgba(0,0,0,0.5); }
}
.kwatch-eyebrow {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-dim); margin-top: 0.6rem;
}
.kwatch-title {
  font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--ink); letter-spacing: 0.01em;
}
.kvideo-teaser-content:hover .kwatch-play {
  background: var(--accent); border-color: var(--ink); transform: scale(1.08);
}
.kvideo-teaser-content:hover .kwatch-play::before { border-left-color: var(--ink); }
.kvideo-teaser-content:hover .kwatch-title { color: var(--accent); }
@media (max-width: 700px) {
  .kwatch-play { width: 76px; height: 76px; }
  .kwatch-play::before { border-width: 10px 0 10px 16px; margin-left: 4px; }
}

.video-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.video-modal.open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease), visibility 0s linear 0s; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(6,6,7,0.94); }
.video-modal-inner { position: relative; width: min(92vw, 1100px); transform: scale(0.97); transition: transform 0.4s var(--ease); }
.video-modal.open .video-modal-inner { transform: scale(1); }
.video-modal-inner video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.video-modal-close {
  position: absolute; top: -3rem; right: 0; background: none; border: none;
  color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: color 0.3s;
}
.video-modal-close:hover { color: var(--accent); }
@media (max-width: 700px) { .video-modal-close { top: -2.6rem; } }
body.modal-open { overflow: hidden; }

/* ---------- Mood switcher ---------- */
.kmood-switcher { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 1rem; }
.kmood-btn {
  --c: #c0392b;
  background: none; border: 1px solid var(--line); color: var(--ink-dim);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 0.55rem 1rem; cursor: pointer; position: relative;
  transition: color .3s, border-color .3s, background .3s;
}
.kmood-btn::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c); margin-right: 0.55rem; vertical-align: middle;
}
.kmood-btn:hover { color: var(--ink); border-color: var(--c); }
.kmood-btn.active { color: var(--ink); border-color: var(--c); background: rgba(255,255,255,0.04); }

.kplay-toggle {
  align-self: flex-start; margin-top: 0.6rem; background: none; border: none; color: var(--ink);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; letter-spacing: 0.04em; cursor: pointer;
  padding-bottom: 0.3rem; border-bottom: 1px solid var(--ink); transition: color .3s, border-color .3s;
}
.kplay-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Philosophy ---------- */
.kphilosophy { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.kphilosophy-bg { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 62% 30%; filter: saturate(0.85) brightness(0.6); will-change: transform; }
.kphilosophy-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,5,5,0.98) 0%, rgba(10,5,5,0.75) 38%, rgba(10,5,5,0.15) 62%, rgba(10,5,5,0.35) 100%); }
.kphilosophy-content { position: relative; z-index: 2; padding: clamp(2rem, 6vw, 5rem) clamp(1.2rem, 6vw, 6rem); max-width: 760px; }
.kphilosophy-text { max-width: 62ch; }

/* ---------- Closing ---------- */
.kclosing { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; }
.kclosing-content { padding: 0 1.5rem; }
.kclosing-line { font-size: 0.85rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--ink-dim); }
.kclosing-sub { margin-top: 0.4rem; margin-bottom: 2rem; color: var(--accent); }
.kclosing-title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 200; margin-bottom: 2.6rem; }
.kclosing-back { font-size: 0.9rem; letter-spacing: 0.04em; padding-bottom: 0.4rem; border-bottom: 1px solid var(--ink); transition: color .3s, border-color .3s; }
.kclosing-back:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 700px) {
  .ktopnav-title { display: none; }
}

/* ---------- Mobile: show full photos instead of cropping them ---------- */
/* Desktop uses a 100svh-tall box with object-fit:cover for a cinematic full-bleed
   look. On a tall narrow phone that crops a landscape photo down to a thin sliver —
   most of the room is invisible. On phones we drop the forced height and let each
   image sit at its natural width-100% aspect ratio instead, with the caption placed
   below it rather than overlaid, so nothing is ever cut off. */
@media (max-width: 700px) {
  .kfull, .kvideo-scene {
    min-height: 0; display: block;
  }
  .kfull .kfull-img, .kvideo-scene .kvideo-bg {
    position: static !important; inset: auto !important;
    width: 100% !important; height: auto !important;
    object-fit: unset !important; object-position: center !important;
    transform: none !important;
  }
  .kfull .kfull-overlay, .kvideo-scene .kfull-overlay { display: none; }
  .kfull .kfull-caption, .kvideo-scene .kfull-caption { position: static; padding: 1.8rem 1.2rem 3rem; max-width: none; }

  .kphilosophy { min-height: 0; display: block; }
  .kphilosophy-bg {
    position: static !important; inset: auto !important;
    width: 100% !important; height: auto !important;
    object-fit: unset !important; object-position: center !important;
    transform: none !important;
  }
  .kphilosophy-overlay { display: none; }
  .kphilosophy-content { position: static; padding: 1.8rem 1.2rem 3rem; max-width: none; }

  /* Ritual zone: the mood buttons control the photo above them, but the long
     description sat between the two — move the switcher right under the image
     (via flex order, no markup change) so tapping a mood and seeing it change
     don't require scrolling back and forth. */
  #s-ritual .ksection-label { order: 0; }
  #s-ritual .kh2 { order: 1; }
  #s-ritual .kmood-switcher { order: 2; margin-top: 1rem; }
  #s-ritual .kscenario-panel > .kcaption { order: 3; margin-bottom: 1.2rem; }
  #s-ritual .kbody { order: 4; }

  .kscenario .kscenario-media { height: auto; }
  .kscenario .kscenario-media img,
  .kscenario .kscenario-media video {
    display: none; position: static; width: 100%; height: auto; object-fit: unset; opacity: 1;
  }
  .kscenario .kscenario-media img.kvisible,
  .kscenario .kscenario-media video.kvisible { display: block; }

  .kvideo-teaser { min-height: 52svh; }

  /* Pod: the video used its own class (kpod-video), not kvideo-bg, so it slipped
     past the fix above and stayed absolutely positioned — with the section's height
     collapsed, the caption ended up floating on top of it. Same natural-size fix. */
  .kpod-video {
    position: static !important; inset: auto !important;
    width: 100% !important; height: auto !important; object-fit: unset !important;
  }

  /* Fragrance zone: drop the absolute bottom-overlay panel (bled into the photo on
     real screens) in favour of the same stacked photo-then-text layout. */
  .kfragrance-scene { min-height: 0; }
  .kfragrance-scene .kscenario-media {
    position: static; width: 100%; height: auto;
  }
  .kfragrance-scene .kscenario-media img,
  .kfragrance-scene .kscenario-media video {
    display: none; position: static; width: 100%; height: auto; object-fit: unset; opacity: 1;
  }
  .kfragrance-scene .kscenario-media img.kvisible,
  .kfragrance-scene .kscenario-media video.kvisible { display: block; }
  .kfragrance-scene .kscenario-panel {
    position: static; top: auto; bottom: auto; left: auto; right: auto;
    width: 100%; height: auto; background: none; padding: 1.8rem 1.2rem 3rem;
  }
  .kfragrance-scene .kfragrance-overlay { display: none; }
  .kfragrance-scene .kscenario-panel .ksection-label,
  .kfragrance-scene .kscenario-panel .kh2,
  .kfragrance-scene .kscenario-panel .kbody,
  .kfragrance-scene .kscenario-panel .kplay-toggle { text-shadow: none; }

  /* The Wall: keep the pinned scroll-cycle interaction (it's the point of the
     section) but stop cropping. A near-full-screen box behind a landscape photo
     always leaves a lot of empty letterbox space, no matter how it's aligned —
     so instead of a tall box, size the pinned frame to the photo's own aspect
     ratio (no leftover space at all) and let the caption sit normally below it. */
  .kwallpin-track { height: 190vh; }
  .kwallpin-sticky { top: 12vh; height: auto; overflow: visible; }
  .kwallpin-media { position: relative; aspect-ratio: 16 / 9; height: auto; background: #0a0505; }
  .kwallpin-media img, .kwallpin-media video { object-fit: contain; }
  .kwallpin-overlay { display: none; }
  .kwallpin-caption {
    position: static; height: auto; justify-content: flex-start;
    padding: 1.6rem 1.2rem 2rem;
  }
}
