/* ==========================================================================
   emantopnails — "Midnight Lacquer" design system
   Deep plum-black base so the photography glows; one warm signature gradient
   (rose → coral → champagne) for action and emphasis; lilac as the cool
   counter-tone; mint is reserved for "free / success" only.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #0c0811;
  --bg-raise: #130d19;
  --surface: rgba(255, 240, 248, 0.045);
  --surface-2: rgba(255, 240, 248, 0.075);
  --surface-solid: #1a1221;
  --surface-solid-2: #22182a;
  --line: rgba(255, 228, 242, 0.09);
  --line-2: rgba(255, 228, 242, 0.16);

  --ink: #fcf5f9;
  --ink-2: #e6d8e1;
  --muted: #b3a2b0;

  --rose: #ff4f93;
  --rose-soft: #ff8fbb;
  --coral: #ff8466;
  --gold: #f6c978;
  --lilac: #b49bff;
  --mint: #5ee6b8;
  --danger: #ff6b81;

  --on-accent: #1e0a14;

  --grad-angle: 105deg;
  --grad: linear-gradient(var(--grad-angle), var(--rose) 0%, var(--coral) 52%, var(--gold) 100%);
  --grad-cool: linear-gradient(135deg, var(--lilac) 0%, var(--rose) 100%);
  --glow-rose: 0 18px 50px -12px rgba(255, 79, 147, 0.55);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.65);

  --radius-xl: 26px;
  --radius-lg: 19px;
  --radius: 14px;
  --radius-sm: 10px;

  --header: 68px;
  --gutter: clamp(14px, 3.2vw, 38px);
  --maxw: 1240px;
  --section-y: clamp(77px, 8.8vw, 128px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t: 0.32s;

  --font-body: Heebo, system-ui, sans-serif;
  --font-display: "Frank Ruhl Libre", Heebo, Georgia, serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --display-leading: 1.04;
  --kicker-tracking: 0.04em;
}

html[lang="ar"] {
  --font-body: Cairo, Heebo, system-ui, sans-serif;
  --font-display: Amiri, Cairo, Georgia, serif;
  --display-weight: 700;
  --display-tracking: 0;
  --display-leading: 1.32;
  --kicker-tracking: 0;
}

html[lang="en"] {
  --font-body: "Plus Jakarta Sans", Heebo, system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -0.015em;
  --display-leading: 1;
  --kicker-tracking: 0.16em;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  /* Type that uses rem shrinks with the root. vw clamps are scaled separately. */
  font-size: 80%;
}

body {
  /* Direction comes from <html>: Hebrew and Arabic flip the page.
     The header and the ambient background are pinned separately. */
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(255, 79, 147, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--rose-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

.slot-btn:focus-visible {
  outline-offset: -3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--t) var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100svh;
  padding-top: calc(var(--header) + 28px);
  padding-bottom: 36px;
}

section[id] {
  scroll-margin-top: 0;
}

#home {
  scroll-margin-top: 0;
}

/* --------------------------------------------------------------------------
   Ambient background: soft colour fields that drift (transform only)
   -------------------------------------------------------------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Colour fields stay on their physical side in every language. */
  direction: ltr;
  background:
    radial-gradient(120% 70% at 50% -20%, rgba(255, 79, 147, 0.1), transparent 60%),
    linear-gradient(180deg, #0e0913 0%, var(--bg) 40%, #0a0710 100%);
}

.blob {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  opacity: 0.55;
}

.b1 {
  top: -28vmax;
  left: -18vmax;
  background: radial-gradient(circle, rgba(255, 79, 147, 0.32), transparent 62%);
  animation: drift-a 34s var(--ease-in-out) infinite alternate;
}

.b2 {
  top: 18vh;
  right: -26vmax;
  background: radial-gradient(circle, rgba(180, 155, 255, 0.26), transparent 62%);
  animation: drift-b 40s var(--ease-in-out) infinite alternate;
}

.b3 {
  bottom: -34vmax;
  left: 10vw;
  background: radial-gradient(circle, rgba(255, 132, 102, 0.2), transparent 62%);
  animation: drift-c 46s var(--ease-in-out) infinite alternate;
}

.b4 {
  width: 40vmax;
  height: 40vmax;
  top: 48vh;
  left: 34vw;
  background: radial-gradient(circle, rgba(246, 201, 120, 0.1), transparent 62%);
  animation: drift-a 52s var(--ease-in-out) infinite alternate-reverse;
}

@keyframes drift-a {
  to {
    transform: translate3d(8vw, 6vh, 0) scale(1.12);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-10vw, 10vh, 0) scale(0.92);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(6vw, -8vh, 0) scale(1.08);
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   Type primitives
   -------------------------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: var(--kicker-tracking);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--grad);
}

.section-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(29px, 4vw, 51px);
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.3rem, 4.16vw, 4.4rem);
  line-height: var(--display-leading);
  letter-spacing: var(--display-tracking);
  margin-bottom: 18px;
}

.section-lede {
  max-width: 36rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1rem, 1vw, 1.12rem);
}

.grad-text,
.grad-text .wi {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-text .wi {
  background-size: var(--gw, 100%) 100%;
  background-position: var(--gx, 0) 0;
  background-repeat: no-repeat;
}

html[lang="en"] .grad-text {
  font-style: italic;
}

/* Split-text words: masked so they can rise into place. */
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.08em 0.16em;
  margin-block: -0.08em -0.16em;
}

[data-split] .wi {
  display: inline-block;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  padding-inline: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 19px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.96rem;
  white-space: nowrap;
  isolation: isolate;
  translate: var(--mgx, 0) var(--mgy, 0);
  transition:
    translate 0.55s var(--ease-spring),
    transform var(--t) var(--ease-out),
    box-shadow var(--t) ease,
    background-color var(--t) ease,
    border-color var(--t) ease;
}

.btn.is-magnet {
  transition:
    translate 0.18s var(--ease-out),
    transform var(--t) var(--ease-out),
    box-shadow var(--t) ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  min-height: 32px;
  padding: 0 13px;
  font-size: 0.86rem;
}

.btn-lg {
  min-height: 46px;
  padding: 0 24px;
  font-size: 1.02rem;
}

.btn-primary {
  color: var(--on-accent);
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 0% 50%;
  box-shadow: var(--glow-rose), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    translate 0.55s var(--ease-spring),
    transform var(--t) var(--ease-out),
    box-shadow var(--t) ease,
    background-position 0.6s var(--ease-out);
}

.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 22px 60px -12px rgba(255, 79, 147, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-2);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(255, 143, 187, 0.5);
  background: var(--surface-2);
}

.btn-dark {
  color: var(--ink);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}

.btn-dark:hover {
  background: #000;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.45s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

html[dir="rtl"] .btn-arrow {
  scale: -1 1;
}

html[dir="rtl"] .btn:hover .btn-arrow {
  transform: translate(-2px, -2px);
}

/* --------------------------------------------------------------------------
   Header — floating glass bar with sliding nav indicator
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 12px;
  inset-inline: 0;
  z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
  view-transition-name: site-header;
  /* Logo, nav, language switch, and the booking button stay put. */
  direction: ltr;
}

html[dir="rtl"] .site-header .btn-arrow {
  scale: 1;
}

html[dir="rtl"] .site-header .btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  pointer-events: auto;
}

.header-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid var(--line);
  background: rgba(18, 12, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--t) ease, border-color var(--t) ease, box-shadow var(--t) ease;
}

.site-header.is-scrolled .header-bar::before {
  background: rgba(16, 10, 22, 0.82);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  view-transition-name: brand;
}

.logo-mark {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--gold);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1;
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--rose), var(--coral), var(--gold), var(--lilac), var(--rose));
  animation: spin 9s linear infinite;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  font-size: 0.9rem;
}

html[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

.nav a {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--t) ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a.nav-book span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.nav-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
}

.header-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language switch: a thumb slides under the active option (pure CSS via :has). */
.lang-switch {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 38px);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch:has(button:nth-of-type(2).is-active) {
  --i: 1;
}

.lang-switch:has(button:nth-of-type(3).is-active) {
  --i: 2;
}

.lang-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: calc(3px + var(--i) * 38px);
  width: 38px;
  border-radius: 999px;
  background: var(--ink);
  transition: left 0.5s var(--ease-spring);
}

.lang-switch button {
  position: relative;
  z-index: 1;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--t) ease;
}

.lang-switch button[lang="ar"] {
  font-family: Cairo, sans-serif;
  font-size: 0.95rem;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button.is-active {
  color: var(--bg);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out);
}

.nav-toggle span:first-child {
  top: 17px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header) + 32px);
  padding-bottom: 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-chip {
  margin-bottom: 28px;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-chip.is-live .live-dot {
  background: var(--mint);
}

.hero-chip.is-live .live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--mint);
  animation: ping 2.2s var(--ease-out) infinite;
}

@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(3.1rem, 6.08vw, 7rem);
  line-height: var(--display-leading);
  letter-spacing: var(--display-tracking);
  margin-bottom: 28px;
}

html[lang="ar"] .hero-title {
  font-size: clamp(2.8rem, 5.12vw, 5.8rem);
}

.hero-title .line {
  display: block;
}

.hero-lede {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 32rem;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1rem, 1.04vw, 1.15rem);
}

.hero-lede strong {
  color: var(--ink-2);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.stat dd {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.24vw, 2.6rem);
  font-weight: var(--display-weight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: start;
}

html[lang="ar"] .stat dd,
html[lang="he"] .stat dd {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 2.4vw, 2.8rem);
}

.stat dt {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Hero visual: three depth layers + 3D gel + floating UI. */

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.02;
  max-height: 74vh;
  width: 100%;
  margin-inline: auto;
  --px: 0;
  --py: 0;
}

.hero-visual .layer {
  width: 100%;
  height: 100%;
  translate: calc(var(--px) * var(--d, 0) * 22px) calc(var(--py) * var(--d, 0) * 16px);
}

.hero-visual [data-depth] {
  position: absolute;
}

.hero-orb {
  inset: 2% 4%;
  --d: 0.25;
}

@media (min-width: 981px) {
  .hero-orb {
    inset: -5% -6% -7% -4%;
  }
}

.orb-fallback {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 210, 230, 0.4) 6%, transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(246, 201, 120, 0.7), transparent 40%),
    radial-gradient(circle at 40% 40%, #ff6aa6 0%, #e23a86 30%, #6c2bd9 70%, #24103a 100%);
  box-shadow: 0 0 120px 10px rgba(255, 79, 147, 0.35), inset -30px -40px 80px rgba(20, 6, 30, 0.6);
  filter: saturate(1.1);
  transition: opacity 1.2s var(--ease-out);
}

.hero-3d {
  position: absolute;
  inset: -6%;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}

.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-3d.is-ready {
  opacity: 1;
}

.hero-3d.is-ready ~ .orb-fallback,
.hero-orb:has(.hero-3d.is-ready) .orb-fallback {
  opacity: 0;
}

.float-card {
  margin: 0;
  border-radius: var(--radius-lg);
}

.float-card .layer {
  overflow: hidden;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
  background: var(--surface-solid);
}

.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-main {
  --d: 0.9;
  width: 50%;
  aspect-ratio: 3 / 4;
  top: 13%;
  left: 25%;
  rotate: -5deg;
  z-index: 3;
}

.fc-back {
  --d: 0.5;
  width: 36%;
  aspect-ratio: 4 / 5;
  top: 2%;
  right: 0;
  rotate: 8deg;
  z-index: 2;
}

.fc-back .layer {
  filter: saturate(0.9) brightness(0.85);
}

.fc-low {
  --d: 0.7;
  width: 34%;
  aspect-ratio: 1;
  bottom: 4%;
  left: 2%;
  rotate: -10deg;
  z-index: 4;
}

.float-chip {
  z-index: 5;
}

.float-chip .layer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(22, 14, 30, 0.9);
  box-shadow: var(--shadow-md);
  animation: bob 7s var(--ease-in-out) infinite alternate;
}

.chip-sig {
  --d: 1.3;
  bottom: 14%;
  right: -2%;
  min-width: 190px;
}

.chip-proof {
  --d: 1.1;
  top: 8%;
  left: 0;
}

.chip-proof .layer {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  animation-delay: -3s;
}

.chip-stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 0.78rem;
}

.chip-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--kicker-tracking);
  text-transform: uppercase;
}

.float-chip strong {
  font-size: 1.02rem;
}

.chip-price {
  font-weight: 700;
  font-size: 0.86rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

@keyframes bob {
  to {
    transform: translateY(-10px);
  }
}

/* --------------------------------------------------------------------------
   Atelier (services + 3D wheel)
   -------------------------------------------------------------------------- */

.atelier {
  /* Wheel box is 10% taller than the treatments, split evenly above and below them. */
  --treatments-h: clamp(340px, calc(100svh - 420px), 520px);
}

.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}

.atelier-stage {
  container-type: size;
  position: sticky;
  top: calc(var(--header) + 20px);
  height: calc(var(--treatments-h) * 1.2);
  margin-top: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255, 79, 147, 0.16), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(180, 155, 255, 0.14), transparent 70%),
    var(--bg-raise);
  overflow: hidden;
  isolation: isolate;
}

.stage-floor {
  position: absolute;
  inset: auto 10% 6% 10%;
  height: 40px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 79, 147, 0.35), transparent);
  filter: blur(14px);
  pointer-events: none;
}

.atelier-panel {
  min-width: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: var(--treatments-h);
  transition: grid-template-columns 0.4s var(--ease-out);
}

/* Selected card's column is 20% wider; the other column is 20% narrower.
   1.2 + 0.8 = 2, same total width as 1 + 1. */
.service-grid.is-picking[data-pick-col="1"] {
  grid-template-columns: 1.2fr 0.8fr;
}

.service-grid.is-picking[data-pick-col="2"] {
  grid-template-columns: 0.8fr 1.2fr;
}

.service-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

/* Interactive card base (tilt + cursor light). */
[data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.7s var(--ease-out);
}

[data-tilt].is-tilting {
  transition: transform 0.12s linear;
}

.service-card,
.course-card,
.shop-card,
.bento-card {
  position: relative;
  isolation: isolate;
}

.service-card::after,
.course-card::after,
.shop-card::after,
.bento-card[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.is-tilting::after {
  opacity: 1 !important;
}

.service-card {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  flex: 1 1 0;
  min-height: 0;
  padding-block: 8px;
  padding-inline: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition:
    flex-grow 0.4s var(--ease-out),
    transform 0.7s var(--ease-out),
    border-color var(--t) ease,
    background-color var(--t) ease,
    opacity var(--t) ease,
    box-shadow var(--t) ease;
}

/* Picked card is 20% taller than an even share. The other three in its
   column shrink so the column height stays the same (1.2 + 0.933×3 = 4). */
.service-grid.is-picking .service-col:has(.is-picked) .service-card {
  flex-grow: 0.9333;
}

.service-grid.is-picking .service-col:has(.is-picked) .service-card.is-picked {
  flex-grow: 1.2;
}

.service-card:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.service-card img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  object-fit: cover;
  transition: scale 0.5s var(--ease-out);
}

.service-card:hover img {
  scale: 1.06;
}

.service-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.service-copy,
.service-book {
  display: none;
}

.service-card.is-picked .service-copy {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.service-card.is-picked .service-book {
  display: inline-flex;
  margin-top: 4px;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}

.service-card .tag {
  position: absolute;
  top: 6px;
  inset-inline-end: 10px;
  z-index: 3;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.service-grid.is-picking .service-card {
  opacity: 0.55;
}

.service-grid.is-picking .service-card:hover {
  opacity: 0.9;
}

.service-grid .service-card.is-picked {
  opacity: 1;
  border-color: transparent;
  background:
    linear-gradient(var(--surface-solid-2), var(--surface-solid-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 16px 40px -18px rgba(255, 79, 147, 0.6);
}

/* Wheel — 3D cylinder. Faces billboard so the centre photo stays straight;
   opacity fades toward the edges. Fade is CSS so the spin loop stays one write. */

.wheel {
  --spin: 0deg;
  --card-w: min(186px, 36cqw, 52cqh);
  --card-h: calc(var(--card-w) * 1.36);
  --r: calc(var(--card-w) * 1.42);
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  perspective: 1600px;
  perspective-origin: 50% 46%;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.wheel.is-grabbed {
  cursor: grabbing;
}

.wheel-hub {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--spin));
  /* Photo swap: the ring grows back from a point. `scale` is separate from
     `transform`, so it animates while the spin updates every frame.
     Durations must match SHRINK_MS in app.js. */
  scale: 1;
  transition: scale 0.25s cubic-bezier(0, 0, 0.58, 1);
}

.wheel.is-shrunk .wheel-hub {
  scale: 0;
  transition-timing-function: cubic-bezier(0.42, 0, 1, 1);
}

.wheel-card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--card-w);
  height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  transform-style: preserve-3d;
  transform: rotateY(var(--slot)) translateZ(var(--r));
  opacity: clamp(0, calc((cos(var(--spin) + var(--slot)) + 1) * 1.2 - 0.2), 1);
  pointer-events: none;
}

.wheel-face {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface-solid);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Safari drops overflow:hidden on 3D faces; clip-path keeps the round corners. */
  clip-path: inset(0 round 22px);
  -webkit-clip-path: inset(0 round 22px);
  transform: rotateY(calc(-1 * (var(--spin) + var(--slot))));
}

.wheel-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* --------------------------------------------------------------------------
   Booking calendar
   -------------------------------------------------------------------------- */

.booking-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  text-align: center;
}

.booking-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
}

.booking-head .section-title {
  margin-bottom: 0;
}

.week-label {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calendar-legend {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.calendar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
}

.dot.free {
  background: rgba(94, 230, 184, 0.45);
  border-color: rgba(94, 230, 184, 0.6);
}

.dot.booked {
  background: rgba(255, 255, 255, 0.12);
}

.dot.closed {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0 2px, transparent 2px 4px);
}

.panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(19, 13, 25, 0.78);
  box-shadow: var(--shadow-lg);
}

.calendar-panel {
  padding: 10px;
}

.calendar-scroll {
  overflow: auto;
  max-height: none;
  border-radius: calc(var(--radius-xl) - 10px);
  overscroll-behavior: contain;
}

.week-calendar {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
}

.week-calendar thead th:first-child {
  width: 70px;
}

.week-calendar th,
.week-calendar td {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.week-calendar thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 12px 6px;
  border-radius: 14px;
  background: var(--surface-solid);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.week-calendar thead th:first-child {
  z-index: 4;
  inset-inline-start: 0;
}

.week-calendar .day-name {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.week-calendar .day-num {
  display: block;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.week-calendar thead th.is-today {
  background:
    linear-gradient(var(--surface-solid-2), var(--surface-solid-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}

.week-calendar thead th.is-today .day-name {
  color: var(--rose-soft);
}

.week-calendar .time-label {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  width: 70px;
  border-radius: 12px;
  background: var(--surface-solid);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.slot-btn {
  width: 100%;
  min-height: clamp(46px, 6.6vh, 64px);
  padding: 5px 3px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.4s var(--ease-spring),
    box-shadow 0.25s ease;
}

.slot-btn.is-free {
  background: rgba(94, 230, 184, 0.08);
  border-color: rgba(94, 230, 184, 0.18);
  color: #8cf2cf;
}

.slot-btn.is-free:hover {
  background: rgba(255, 79, 147, 0.16);
  border-color: rgba(255, 79, 147, 0.55);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(255, 79, 147, 0.7);
}

.slot-btn.is-selected {
  background: var(--grad);
  color: var(--on-accent);
  font-weight: 800;
}

.slot-btn.is-booked,
.slot-btn.is-past,
.slot-btn:disabled {
  background: rgba(255, 255, 255, 0.025);
  color: rgba(252, 245, 249, 0.32);
  cursor: not-allowed;
  font-weight: 400;
}

.slot-btn.is-closed {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 6px, transparent 6px 12px),
    rgba(255, 255, 255, 0.015);
  color: rgba(252, 245, 249, 0.26);
}

.week-calendar td.is-today-col .slot-btn.is-free {
  border-color: rgba(94, 230, 184, 0.36);
}

/* --------------------------------------------------------------------------
   Academy bento
   -------------------------------------------------------------------------- */

.academy-bento {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.course-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.course-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(188px, 22vh, 248px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-solid);
  text-align: start;
  cursor: pointer;
  transition: transform 0.7s var(--ease-out), border-color var(--t) ease, box-shadow var(--t) ease;
}

.course-card:first-child {
  grid-row: span 2;
}

.course-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.course-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease-out);
}

.course-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 8, 17, 0.05) 0%, rgba(12, 8, 17, 0.55) 45%, rgba(12, 8, 17, 0.94) 100%);
}

.course-card:hover .course-media img {
  scale: 1.06;
}

.course-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
}

.course-index {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
}

.course-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.35rem, 1.6vw, 1.75rem);
  line-height: 1.12;
}

.course-card:first-child .course-title {
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
}

.course-blurb {
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.85;
}

.course-tag {
  width: fit-content;
  margin-top: 8px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(12, 8, 17, 0.5);
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 600;
}

.course-check {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-accent);
  font-weight: 900;
  font-size: 0.9rem;
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.3s ease, scale 0.5s var(--ease-spring);
}

.course-card.is-picked {
  border-color: transparent;
  box-shadow: 0 0 0 1.5px var(--rose), 0 24px 60px -20px rgba(255, 79, 147, 0.55);
}

.course-card.is-picked .course-check {
  opacity: 1;
  scale: 1;
}

.form.academy-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
}

.academy-form h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 8px;
}

.academy-form .btn {
  margin-top: auto;
}

/* Marquee — direction pinned to LTR so the -50% loop works in every language. */
.academy-marquee {
  --tile-w: 200px;
  --tile-h: 250px;
  --gap: 14px;
  position: relative;
  margin-top: 32px;
  overflow: hidden;
  direction: ltr;
  padding-block: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: marquee 70s linear infinite;
}

.academy-marquee.is-offscreen .marquee-track,
.academy-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-tile {
  flex: 0 0 auto;
  width: var(--tile-w);
  height: var(--tile-h);
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
}

.marquee-tile:nth-child(odd) {
  translate: 0 14px;
}

.marquee-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
  transition: scale 0.8s var(--ease-out), filter 0.5s ease;
}

.marquee-tile:hover img {
  scale: 1.06;
  filter: none;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - var(--gap) / 2));
  }
}

/* --------------------------------------------------------------------------
   Visit bento
   -------------------------------------------------------------------------- */

.visit-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "g g h i"
    "g g c c";
  gap: 14px;
}

.bento-card {
  overflow: hidden;
  min-height: 176px;
  padding: 21px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.bento-gallery {
  grid-area: g;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  min-height: clamp(440px, 52vh, 600px);
}

.bento-gallery figure:nth-child(4) {
  grid-column: span 2;
}

.bento-gallery figure {
  position: relative;
  overflow: hidden;
  min-height: 0;
  margin: 0;
  border-radius: calc(var(--radius-lg) - 8px);
}

.bento-gallery figure:first-child {
  grid-row: span 2;
}

.bento-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1s var(--ease-out);
}

.bento-gallery figure:hover img {
  scale: 1.06;
}

.bento-hours {
  grid-area: h;
  display: flex;
  flex-direction: column;
}

.bento-hours .kicker {
  margin-bottom: 10px;
}

.bento-hours h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.7rem;
  margin-bottom: auto;
}

.hours-table {
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hours-table td {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.hours-table td:first-child {
  color: var(--muted);
  padding-inline-end: 14px;
}

.hours-table td:last-child {
  text-align: end;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bento-ig {
  grid-area: i;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(180, 155, 255, 0.24), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, rgba(255, 79, 147, 0.26), transparent 60%),
    var(--surface);
  transition: transform 0.7s var(--ease-out), border-color var(--t) ease;
}

.bento-ig:hover {
  border-color: var(--line-2);
}

.ig-count {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.8rem, 3.52vw, 3.8rem);
  line-height: 1;
  margin-bottom: 10px;
  text-align: start;
}

.ig-copy {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.ig-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--rose-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.bento-cta {
  grid-area: c;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: var(--grad);
  color: var(--on-accent);
}

.bento-cta h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2rem, 2.72vw, 3rem);
  line-height: 1.05;
  margin-bottom: 8px;
}

.cta-phone {
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1.5px solid currentColor;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.site-footer a:not(.logo) {
  color: var(--rose-soft);
  font-weight: 600;
}

.site-footer .logo {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 14px;
}

.form-step {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  text-align: start;
  transition: border-color var(--t) ease, background-color var(--t) ease, box-shadow var(--t) ease;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(179, 162, 176, 0.7);
}

.form select option {
  background: var(--surface-solid);
  color: var(--ink);
}

.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: rgba(255, 228, 242, 0.26);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 0;
  border-color: var(--rose);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 79, 147, 0.18);
}

.form-hint {
  color: var(--muted);
  font-size: 0.84rem;
}

.invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.16) !important;
}

#otpInput {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Modal + toast
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 3, 9, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-overlay.is-hidden {
  display: none;
}

.modal-overlay:not([data-open]) {
  pointer-events: none;
}

.modal {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  padding: 30px 26px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(255, 79, 147, 0.14), transparent 70%),
    var(--surface-solid);
  box-shadow: var(--shadow-lg);
}

.modal .kicker {
  margin-bottom: 10px;
}

.modal h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.modal-slot {
  width: fit-content;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 79, 147, 0.14);
  color: var(--rose-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.modal-slot:empty {
  display: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--t) ease, rotate 0.4s var(--ease-out);
}

.modal-close:hover {
  background: var(--surface-2);
  rotate: 90deg;
}

.modal .btn {
  width: 100%;
}

.modal .is-hidden {
  display: none;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(30, 20, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  translate: -50% 140%;
  pointer-events: none;
  transition: translate 0.55s var(--ease-spring), opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
  translate: -50% 0;
}

.shop-page .toast {
  bottom: 96px;
}

/* --------------------------------------------------------------------------
   Shop
   -------------------------------------------------------------------------- */

.shop-head .section-title {
  font-size: clamp(2.6rem, 4.8vw, 5rem);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.7s var(--ease-out), border-color var(--t) ease;
}

.shop-card:hover {
  border-color: var(--line-2);
}

.shop-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.shop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1s var(--ease-out);
}

.shop-card:hover .shop-media img {
  scale: 1.06;
}

.shop-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 16px;
}

.shop-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.shop-card p {
  flex: 1;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.shop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.shop-card .price {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.shop-cart {
  position: fixed;
  bottom: 22px;
  inset-inline-end: var(--gutter);
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding-block: 8px;
  padding-inline: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(22, 14, 30, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--t) ease, background-color var(--t) ease;
}

.shop-cart:hover {
  border-color: rgba(255, 143, 187, 0.5);
}

.cart-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
}

.shop-cart.has-items .cart-icon {
  background: var(--grad);
  color: var(--on-accent);
}

.cart-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.cart-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  border: 2px solid var(--bg);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 800;
}

.fly-ghost {
  position: fixed;
  z-index: 85;
  margin: 0;
  object-fit: cover;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.cart-modal {
  width: min(460px, 100%);
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 40vh;
  margin: 14px 0 16px;
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface);
}

.cart-line img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-line h4 {
  font-size: 0.92rem;
  line-height: 1.25;
}

.cart-line p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-line button {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rose-soft);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-line button:hover {
  background: rgba(255, 79, 147, 0.12);
}

.cart-total {
  color: var(--muted);
  font-weight: 600;
}

.cart-breakdown {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-due {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.cart-pay {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 600;
}

.cart-form {
  gap: 10px;
}

.cart-form textarea {
  min-height: 72px;
  resize: vertical;
}

.cart-form.is-hidden,
.cart-pay.is-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Motion states
   -------------------------------------------------------------------------- */

/* Hidden only between first paint and motion.js taking over (max 3s). */
.motion-pending [data-reveal],
.motion-pending [data-split],
.motion-pending [data-hero-fade],
.motion-pending .hero-chip,
.motion-pending .hero-visual,
.motion-pending .shop-card,
.motion-pending .course-card {
  opacity: 0;
}

/* Cross-document page transitions (index ↔ shop). */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-out 0.28s var(--ease-in-out) both;
}

::view-transition-new(root) {
  animation: vt-in 0.5s var(--ease-out) both;
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .logo-text em {
    display: none;
  }

  .nav a {
    padding: 9px 11px;
  }
}

@media (max-width: 980px) {
  :root {
    --header: 61px;
  }

  .header-bar {
    padding: 6px 6px 6px 14px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: calc(var(--header) + 4px);
    inset-inline: var(--gutter);
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-2);
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(255, 79, 147, 0.08), transparent 70%),
      var(--surface-solid);
    box-shadow: var(--shadow-lg);
    font-size: 1.05rem;
    pointer-events: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.25s ease,
      transform 0.4s var(--ease-out),
      visibility 0s linear 0.4s;
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.25s ease,
      transform 0.45s var(--ease-out),
      visibility 0s;
  }

  .nav a {
    padding: 14px 16px;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.45s var(--ease-out), background-color var(--t) ease, color var(--t) ease;
  }

  .nav.open a {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 45ms + 60ms);
  }

  .nav a.is-active {
    background: var(--surface-2);
  }

  .nav-indicator {
    display: none;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: block;
    border: 0;
    background: rgba(6, 3, 9, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header) + 36px);
    padding-bottom: 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 460px;
    max-height: none;
  }

  .hero-ctas {
    margin-bottom: 36px;
  }

  .atelier-grid {
    grid-template-columns: 1fr;
  }

  .atelier {
    --treatments-h: clamp(240px, 38vh, 320px);
  }

  .section {
    min-height: auto;
    display: block;
    padding-block: var(--section-y);
  }

  .atelier-stage {
    position: relative;
    top: auto;
    height: calc(var(--treatments-h) * 1.2);
    margin-top: 0;
  }

  .wheel {
    --card-w: min(152px, 50cqw, 70cqh);
  }

  /* Phone: one rotating ring; nothing per-card changes each frame. */
  .wheel-hub {
    will-change: transform;
  }

  .wheel-card {
    opacity: 1;
    z-index: auto;
    transform-style: flat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .wheel-face {
    transform: none;
    box-shadow: none;
    clip-path: none;
    -webkit-clip-path: none;
  }

  .wheel-face img {
    filter: none;
  }

  .week-calendar {
    min-width: 760px;
    border-spacing: 3px;
  }

  .week-calendar thead th:first-child,
  .week-calendar .time-label {
    width: 52px;
    font-size: 0.74rem;
  }

  .slot-btn {
    min-height: 37px;
    font-size: 0.78rem;
  }

  .academy-bento {
    grid-template-columns: 1fr;
  }

  .academy-marquee {
    --tile-w: 140px;
    --tile-h: 178px;
    --gap: 10px;
  }

  .visit-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "g g"
      "h i"
      "c c";
  }

  .bento-gallery {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .logo-text {
    display: none;
  }

  .hero-stats {
    gap: 14px 26px;
  }

  .chip-sig {
    min-width: 0;
    right: 0;
  }

  .chip-sig .layer {
    padding: 10px 14px;
  }

  .float-chip strong {
    font-size: 0.9rem;
  }

  .service-grid {
    gap: 8px;
    height: var(--treatments-h);
  }

  .service-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 6px;
  }

  .service-card img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .service-card h3 {
    font-size: 0.82rem;
  }

  .course-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .course-card:first-child,
  .course-card:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }

  .course-card:first-child {
    min-height: 256px;
  }

  .visit-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "g"
      "h"
      "i"
      "c";
  }

  .bento-gallery {
    min-height: 300px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-card p {
    display: none;
  }

  .shop-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-cart .cart-text {
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Touch devices: no hover-driven depth. */
@media (hover: none) {
  [data-tilt] {
    transform: none;
  }

  .float-chip .layer {
    animation: none;
  }
}

/* Background drift is a desktop nicety. */
@media (max-width: 980px), (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none;
  }

  [data-tilt] {
    transform: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  /* The wheel is rAF-driven; app.js drops its drift to zero here, so it
     stays a still, readable arc that can still be dragged. */
}
