/* =============================================================
   KAIRO 回廊 — stone corridor concept salon
   Daikanyama, Tokyo.  WebGL-driven scroll-forward experience.
   ============================================================= */

:root {
  --ink:      #0D1410;
  --ink-2:    #141C17;
  --stone:    #B8B3A8;
  --stone-2:  #8F8B82;
  --moss:     #4A5D4A;
  --moss-2:   #364836;
  --sand:     #E8E4D9;
  --sand-2:   #D7D1C0;
  --copper:   #B87333;
  --copper-2: #8A541F;
  --line:     rgba(232, 228, 217, 0.14);
  --line-2:   rgba(232, 228, 217, 0.28);

  --ff-display: "Shippori Mincho", "Noto Serif JP", serif;
  --ff-sans:    "Inter", "Noto Sans JP", sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, monospace;
  --ff-jp:      "Shippori Mincho", "Noto Serif JP", serif;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --pad-x:    clamp(1.25rem, 4vw, 3rem);

  /* Total corridor scroll length in viewport units */
  --corridor-vh: 700vh;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--copper); color: var(--ink); }

html {
  background: var(--ink);
  color: var(--sand);
  font-family: var(--ff-sans);
  font-feature-settings: "palt" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body {
  background: var(--ink);
  color: var(--sand);
  min-height: 100svh;
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: transparent; border: 0; color: inherit; cursor: pointer; }

/* =========================================
   WEBGL CANVAS — sticky behind everything
   ========================================= */
.gl {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ink);
}
.gl canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Loader */
.gl-pre {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease);
}
.gl-pre__mark {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--sand);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: preFade 1.4s var(--ease) forwards;
}
.gl-pre__mark span { color: var(--copper); }
@keyframes preFade {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 0.8; transform: none; }
}
.gl-pre__bar {
  margin-top: 1.6rem;
  width: min(240px, 60vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.gl-pre__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--copper);
  transition: width 0.3s linear;
}
.gl-pre.is-gone {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* =========================================
   SCROLL CONTAINER (drives WebGL camera)
   ========================================= */
.scroller {
  position: relative;
  z-index: 1;
  height: var(--corridor-vh);
  pointer-events: none;
}

/* =========================================
   HTML OVERLAY — each room's text sits on top of canvas
   ========================================= */
.room {
  position: fixed;
  inset: 0;
  padding: clamp(5rem, 10vh, 8rem) var(--pad-x) clamp(3rem, 6vh, 5rem);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
  z-index: 2;
}
.room.is-current {
  opacity: 1;
  pointer-events: auto;
}
.room__inner {
  max-width: 900px;
  width: 100%;
  text-align: center;
  display: grid;
  gap: 1.2rem;
  pointer-events: auto;
}
.room__inner.room__inner--split {
  max-width: 1180px;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--copper);
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--sand);
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.h1 em {
  font-style: normal;
  color: var(--copper);
}
.h2 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--sand);
}
.h2 em { color: var(--copper); font-style: normal; }
.lede {
  font-family: var(--ff-jp);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 2.1;
  color: var(--sand-2);
  max-width: 42ch;
  justify-self: center;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.lede em.ink-copper,
.ink-copper {
  font-style: normal;
  color: var(--copper);
}

/* =========================================
   ROOM 1 — ENTRANCE (hero)
   2-column split on desktop: text + salon picture panel
   ========================================= */
.room--entrance {}
.room__inner--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1140px;
  width: 100%;
  text-align: left;
  align-items: center;
  padding-left: 0;
}
@media (min-width: 900px) {
  .room__inner--split {
    grid-template-columns: 1fr 0.78fr;
    gap: 3.5rem;
    align-items: center;
    /* reserve space so hero text never collides with the left rail index */
    padding-left: clamp(5.5rem, 9vw, 8rem);
  }
}
.hero-text {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
@media (max-width: 900px) {
  .hero-text { justify-items: center; text-align: center; }
}

.room--entrance .h1 {
  font-size: clamp(3.2rem, 10vw, 9rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
}
.room--entrance .kanji {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0.55em;
  color: var(--copper);
  margin-bottom: 0.4rem;
  text-indent: 0.4em;
  white-space: nowrap;
}
.room--entrance .lede {
  margin-top: 0.3rem;
  justify-self: start;
}
@media (max-width: 900px) {
  .room--entrance .lede { justify-self: center; }
}
.room--entrance .meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--stone);
  text-transform: uppercase;
  width: min(340px, 100%);
}
.room--entrance .meta hr {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* --- HERO PICTURE PANEL (new) --- */
.hero-pic {
  position: relative;
  display: grid;
  gap: 0.7rem;
  justify-items: stretch;
}
.hero-pic__main {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--copper);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(184, 115, 51, 0.2),
    inset 0 0 120px rgba(0, 0, 0, 0.4);
  background: var(--ink-2);
}
.hero-pic__main::before {
  /* Copper frame inset corner marks */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 115, 51, 0.3);
  pointer-events: none;
  z-index: 2;
}
.hero-pic__main img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) brightness(0.92) contrast(1.05);
  transition: filter 0.8s var(--ease), transform 1.4s var(--ease);
  animation: heroFloat 12s var(--ease) infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: scale(1.02) translateY(0); }
  50%      { transform: scale(1.06) translateY(-1.2%); }
}
.hero-pic__main:hover img {
  filter: grayscale(0) brightness(1) contrast(1.05);
}

.hero-pic__cap {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  background: rgba(13, 20, 16, 0.82);
  backdrop-filter: blur(6px);
  border-left: 2px solid var(--copper);
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sand-2);
  text-transform: uppercase;
}
.hero-pic__cap-dot {
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.25);
  animation: heroDot 2.4s ease-in-out infinite;
}
@keyframes heroDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.85); }
}

.hero-pic__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}
.hero-pic__strip figure {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.hero-pic__strip figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) brightness(0.85);
  transition: filter 0.4s, transform 0.8s var(--ease);
}
.hero-pic__strip figure:hover img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.08);
}

.hero-pic__spec {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--stone);
  text-transform: uppercase;
  padding-top: 0.3rem;
  border-top: 1px solid var(--line);
  gap: 0.8rem;
}
.hero-pic__spec span:nth-child(2) { color: var(--copper); }

@media (max-width: 900px) {
  .hero-pic { max-width: 380px; margin: 0 auto; }
  .hero-pic__main { aspect-ratio: 4 / 4.5; }
  .hero-pic__spec { font-size: 8.5px; letter-spacing: 0.16em; }
}

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 3rem);
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--stone);
  text-transform: uppercase;
  z-index: 10;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.scroll-hint::before {
  content: "";
  width: 1px;
  height: 28px;
  background: var(--copper);
  animation: hintDrop 2.2s var(--ease) infinite;
}
@keyframes hintDrop {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(0.2); transform-origin: top; opacity: 0.2; }
}
.scroll-hint.is-gone { opacity: 0; }

/* =========================================
   ROOM 2 — CONCEPT
   ========================================= */
.room--concept .concept__words {
  margin-top: 1rem;
  display: grid;
  gap: 0.3rem;
  font-family: var(--ff-display);
  font-weight: 300;
}
.room--concept .concept__line {
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--sand);
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.room--concept .concept__line em {
  font-style: normal;
  color: var(--copper);
}

/* =========================================
   ROOM 3 — MENU
   ========================================= */
.room--menu .menu__list {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.room--menu .menu__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-sans);
  color: var(--sand);
  text-align: left;
}
.room--menu .menu__num {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--copper);
  letter-spacing: 0.24em;
}
.room--menu .menu__title {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}
.room--menu .menu__title small {
  font-family: var(--ff-jp);
  font-size: 12px;
  color: var(--stone);
  margin-left: 0.7rem;
  letter-spacing: 0.01em;
}
.room--menu .menu__price {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--sand);
  white-space: nowrap;
}
.room--menu .menu__price span {
  font-size: 0.7em;
  color: var(--stone);
  margin-left: 0.2em;
}

/* =========================================
   ROOM 4 — STYLISTS
   ========================================= */
.room--stylists .sty__grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .room--stylists .sty__grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
}
.room--stylists .sty__card {
  display: grid;
  gap: 0.5rem;
  color: var(--sand);
  text-align: left;
}
.room--stylists .sty__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  position: relative;
}
.room--stylists .sty__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.9);
  transition: filter 0.6s, transform 1s var(--ease);
}
.room--stylists .sty__card:hover .sty__img img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.04);
}
.room--stylists .sty__name {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--sand);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.room--stylists .sty__name em {
  display: block;
  font-style: italic;
  font-size: 0.78em;
  color: var(--stone);
  margin-top: 0.1em;
  letter-spacing: 0.04em;
}
.room--stylists .sty__role {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--copper);
  text-transform: uppercase;
}

/* =========================================
   ROOM 5 — GALLERY
   ========================================= */
.room--gallery .gal__grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.room--gallery .gal__cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.room--gallery .gal__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.18);
  transition: filter 0.6s, transform 1s var(--ease);
}
.room--gallery .gal__cell:hover img {
  filter: grayscale(0);
  transform: scale(1.06);
}

/* =========================================
   ROOM — INTERIOR (新 · 店内)
   ========================================= */
.room--interior .int__grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 10;
}
@media (max-width: 720px) {
  .room--interior .int__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    aspect-ratio: auto;
  }
}
.room--interior .int__cell {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.room--interior .int__cell--big {
  grid-row: span 2;
  grid-column: 1;
}
@media (max-width: 720px) {
  .room--interior .int__cell--big {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .room--interior .int__cell:not(.int__cell--big) {
    aspect-ratio: 16 / 10;
  }
}
.room--interior .int__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) brightness(0.92);
  transition: transform 1.1s var(--ease), filter 0.6s;
}
.room--interior .int__cell:hover img {
  transform: scale(1.04);
  filter: grayscale(0) brightness(1);
}
.room--interior .int__cell figcaption {
  position: absolute;
  bottom: 0.7rem; left: 0.8rem;
  padding: 0.25rem 0.55rem;
  background: rgba(13, 20, 16, 0.82);
  backdrop-filter: blur(6px);
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--sand-2);
  text-transform: uppercase;
  border-left: 2px solid var(--copper);
}

/* =========================================
   ROOM — PROCESS (新 · 施術の流れ)
   ========================================= */
.room--process .pro__grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .room--process .pro__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
}
.room--process .pro__step {
  padding: 0.9rem 0.8rem;
  text-align: left;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.room--process .pro__step:last-child { border-right: 0; }
.room--process .pro__no {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--copper);
}
.room--process .pro__ttl {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--sand);
  letter-spacing: 0.02em;
}
.room--process .pro__txt {
  font-family: var(--ff-jp);
  font-size: 11px;
  line-height: 1.7;
  color: var(--stone);
  margin: 0;
}
.room--process .pro__shot {
  margin-top: 1.4rem;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.room--process .pro__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) brightness(0.92);
}

/* =========================================
   MENU — note + tools shot
   ========================================= */
.room--menu .menu__note {
  margin-top: 1.2rem;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--stone);
  text-transform: uppercase;
}
.room--menu .menu__shot {
  margin-top: 1.6rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--line);
}
.room--menu .menu__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) brightness(0.92);
}

/* Stylist tags in artisans room */
.room--stylists .sty__tags {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--stone);
  text-transform: uppercase;
  margin-top: 0.15rem;
  line-height: 1.5;
}

/* =========================================
   ROOM 6 — RESERVE (final)
   ========================================= */
/* Reserve room — 2-column on desktop to fit viewport cleanly */
.room--reserve .room__inner {
  max-width: 1120px;
  gap: 1.3rem;
  padding-left: 0;
}
@media (min-width: 900px) {
  .room--reserve .room__inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    grid-template-rows: auto auto 1fr auto auto;
    column-gap: 3rem;
    row-gap: 1rem;
    text-align: left;
    align-items: start;
    padding-left: clamp(5.5rem, 9vw, 8rem);
    grid-template-areas:
      "eyebrow eyebrow"
      "title   shot"
      "info    shot"
      "signoff shot"
      "copy    copy";
  }
  .room--reserve .eyebrow { grid-area: eyebrow; justify-self: start; }
  .room--reserve .h2       { grid-area: title; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.1; }
  .room--reserve .reserve__shot { grid-area: shot; margin: 0; max-width: none; width: 100%; }
  .room--reserve .reserve__info { grid-area: info; display: grid; gap: 0.9rem; }
  .room--reserve .reserve__signoff { grid-area: signoff; }
  .room--reserve .reserve__copyright { grid-area: copy; }
}

.room--reserve .reserve__shot {
  margin: 0.6rem auto 0.3rem;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
}
.room--reserve .reserve__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) brightness(0.92);
}
.room--reserve .addr {
  font-family: var(--ff-jp);
  font-size: 13.5px;
  color: var(--sand-2);
  line-height: 1.9;
  max-width: 42ch;
  margin: 0 auto;
}
@media (min-width: 900px) { .room--reserve .addr { margin: 0; } }
.room--reserve .addr span { color: var(--copper); }
.room--reserve .addr__note {
  font-family: var(--ff-jp);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--stone);
  max-width: 42ch;
  margin: 0.6rem auto 0;
}
@media (min-width: 900px) { .room--reserve .addr__note { margin: 0.6rem 0 0; } }
.room--reserve .btns {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (min-width: 900px) { .room--reserve .btns { justify-content: flex-start; } }
.room--reserve .reserve__signoff {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--ff-jp);
  font-size: 12px;
  line-height: 1.85;
  color: var(--sand-2);
  max-width: 42ch;
  margin: 0.3rem auto 0;
}
@media (min-width: 900px) { .room--reserve .reserve__signoff { margin: 0.3rem 0 0; } }
.room--reserve .reserve__signoff span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--copper);
  text-transform: uppercase;
}
.room--reserve .reserve__copyright {
  grid-column: 1 / -1;
  margin-top: 1.2rem;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--stone);
  text-transform: uppercase;
  text-align: center;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--copper {
  background: var(--copper);
  color: var(--ink);
  border-color: var(--copper);
}
.btn--copper:hover { background: var(--copper-2); border-color: var(--copper-2); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--sand);
}
.btn--ghost:hover { border-color: var(--sand); }

/* =========================================
   FIXED UI — top bar + side index + mute button
   ========================================= */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 3vw, 2.5rem);
  padding-top: calc(1rem + env(safe-area-inset-top, 0));
  background: linear-gradient(180deg, rgba(13,20,16,0.88) 0%, rgba(13,20,16,0) 100%);
  pointer-events: none;
}
.top-bar > * { pointer-events: auto; }
.top-bar__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-weight: 400;
  color: var(--sand);
  font-size: 22px;
  letter-spacing: 0.08em;
}
.top-bar__brand sup {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--copper);
  letter-spacing: 0.25em;
  vertical-align: 0.5em;
}
.top-bar__kanji {
  justify-self: center;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 1em;
  text-indent: 1em;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .top-bar__kanji { display: none; }
  .top-bar { grid-template-columns: auto 1fr auto; gap: 0.75rem; }
  .top-bar__brand { font-size: 18px; }
}
@media (max-width: 420px) {
  .top-bar__cta {
    padding: 0.45rem 0.85rem;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}
.top-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--sand);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.top-bar__cta:hover { background: var(--copper); transform: translateY(-2px); }

/* Room index (left side vertical) */
.room-index {
  position: fixed;
  top: 50%;
  left: clamp(0.75rem, 2vw, 1.5rem);
  transform: translateY(-50%);
  z-index: 30;
  display: grid;
  gap: 0.65rem;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--stone);
  text-transform: uppercase;
  pointer-events: none;
}
.room-index li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: color 0.35s, transform 0.35s;
  list-style: none;
}
.room-index li::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transition: width 0.35s var(--ease), background 0.35s;
}
.room-index li.is-active {
  color: var(--copper);
  transform: translateX(4px);
}
.room-index li.is-active::before {
  width: 36px;
  background: var(--copper);
  opacity: 1;
}
@media (max-width: 760px) { .room-index { display: none; } }

/* Progress bar bottom */
.progress {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.progress__fill {
  height: 100%;
  background: var(--copper);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.12s linear;
}

/* Sample tag */
.sample-tag {
  position: fixed;
  bottom: 1.1rem; left: 1.1rem;
  z-index: 40;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--copper);
  color: var(--copper);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: rgba(13,20,16,0.6);
  backdrop-filter: blur(6px);
}
@media (max-width: 760px) { .sample-tag { left: auto; right: 1rem; } }

/* =========================================
   MOBILE 2D FALLBACK
   ========================================= */
.no-webgl .gl,
.no-webgl .scroller,
.no-webgl .room-index,
.no-webgl .scroll-hint {
  display: none;
}
.no-webgl .room {
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  min-height: 80vh;
  padding: clamp(4rem, 10vh, 6rem) var(--pad-x);
}
.no-webgl .room--entrance {
  min-height: 100svh;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.no-webgl .room--concept { background: var(--ink-2); }
.no-webgl .room--menu { background: var(--ink); }
.no-webgl .room--stylists { background: var(--ink-2); }
.no-webgl .room--gallery { background: var(--ink); }
.no-webgl .room--reserve {
  background:
    radial-gradient(circle at 50% 0%, rgba(184,115,51,0.18) 0%, transparent 50%),
    var(--ink-2);
}
.no-webgl .top-bar { position: sticky; background: rgba(13,20,16,0.92); backdrop-filter: blur(12px); }

/* Give 2D cards/images visible size in fallback mode */
.no-webgl .room__inner { max-width: 100%; }

/* =========================================
   FOG VIGNETTE (extra mood over canvas)
   ========================================= */
.fog {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(13,20,16,0.5) 85%);
  mix-blend-mode: multiply;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-2%,-1%); }
  50% { transform: translate(2%,1%); }
  75% { transform: translate(-1%,2%); }
}
