/* ============================================================
   White Sand Salon — cinematic mobile experience
   Standalone demo · SwellStack. Not affiliated with the live site.
   ============================================================ */

:root {
  --ink: #181614;
  --ink-soft: #4a4540;
  --muted: #938a7e;
  --line: #e9e3da;
  --paper: #ffffff;
  --sand: #f6f1ea;
  --sand-2: #efe7db;
  --gold: #b08d57;
  --gold-deep: #8f6f3e;
  --sage: #cbd6cf;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- LOADER (white splash) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: grid;
  place-items: center;
  transition: opacity 0.8s var(--ease);
}
.loader.hide { opacity: 0; pointer-events: none; }
.loader-dots { display: flex; gap: 11px; }
.loader-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  animation: ldot 1.25s infinite ease-in-out both;
}
.loader-dots i:nth-child(2) { animation-delay: 0.18s; }
.loader-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes ldot {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ---------- HERO (fixed full-bleed video layer) ---------- */
#hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #fff;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}
#hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0) scale(1.14);   /* zoom for full-bleed + own GPU layer (smoother) */
  transform-origin: center;
  backface-visibility: hidden;
}
/* (no overlay — the video reads truly edge-to-edge, no white band at the bottom) */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  z-index: 3;
}
.scroll-cue.show { opacity: 1; }
.scroll-cue span {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue .chev {
  width: 18px; height: 18px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob { 0%,100%{ transform: rotate(45deg) translate(0,0);} 50%{ transform: rotate(45deg) translate(3px,3px);} }

/* ---------- HEADER (revealed after hero) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transform: translateY(-110%);
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease);
}
.site-header.show { transform: translateY(0); border-color: var(--line); }
.site-header img { height: 34px; width: auto; }
.btn-book {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn-book:hover, .btn-book:active { background: var(--ink); color: #fff; }

/* ---------- SITE BODY (scrolls over hero) ---------- */
#site {
  position: relative;
  z-index: 10;
  margin-top: 100svh;
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -30px 60px rgba(0,0,0,0.07);
}

/* section rhythm */
.section { padding: 76px 0; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 9vw, 4.4rem);
}
.display em { font-style: italic; color: var(--gold-deep); }
.lede {
  font-size: clamp(1rem, 4.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 22px;
}

/* Intro */
.intro { padding-top: 96px; }
.intro .pull-logo { height: 56px; width: auto; margin-bottom: 30px; opacity: 0.92; }

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- TEAM ---------- */
.team-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.artist {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
}
.artist .photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.artist .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.7s var(--ease), transform 1.2s var(--ease);
}
.artist.lit .photo img,
.artist:hover .photo img { filter: grayscale(0); transform: scale(1.04); }
.artist .tag {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(24,22,20,0.55);
  backdrop-filter: blur(6px);
  padding: 5px 9px;
  border-radius: 999px;
}
.artist .meta { padding: 14px 14px 16px; }
.artist .meta h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; line-height: 1; }
.artist .meta .role { font-size: 11px; letter-spacing: 0.04em; color: var(--muted); margin-top: 6px; min-height: 28px; }
.artist .book {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
}
.artist .book::after { content: "→"; transition: transform 0.4s var(--ease); }
.artist:hover .book::after { transform: translateX(4px); }
.artist.support .book { color: var(--muted); }

/* ---------- SERVICES ---------- */
.services { background: var(--sand); border-radius: 26px; margin: 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  font-size: 12px; letter-spacing: 0.08em;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- VISIT ---------- */
.visit-grid { display: grid; gap: 36px; margin-top: 30px; }
.hours-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hours-row span:last-child { color: var(--muted); }
.addr { font-size: 15px; color: var(--ink-soft); line-height: 1.8; }
.addr a { color: var(--gold-deep); }

/* ---------- FOOTER ---------- */
.foot { padding: 54px 0 130px; text-align: center; border-top: 1px solid var(--line); }
.foot img { height: 48px; width: auto; margin: 0 auto 18px; opacity: 0.9; }
.foot .social { display: flex; gap: 22px; justify-content: center; margin: 18px 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.foot small { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }

/* ---------- CHAT LAUNCHER (the chat is the interface) ---------- */
.chat-fab {
  position: fixed;
  right: 16px; bottom: 18px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 8px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(24,22,20,0.18);
  transform: translateY(170%);
  transition: transform 0.55s var(--ease), opacity 0.35s var(--ease);
}
.chat-fab.show { transform: translateY(0); }
.chat-fab.away { opacity: 0; pointer-events: none; transform: translateY(40%); }
.chat-fab .fab-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sand-2), var(--gold));
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.2rem; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.chat-fab .fab-tx {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}

/* ---------- SAND CHAT ---------- */
.sand-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(24,22,20,0.32);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.sand-scrim.open { opacity: 1; pointer-events: auto; }
.sand {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 61;
  height: min(42svh, 380px);
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  border-radius: 26px 26px 0 0;
  border-top: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 -20px 60px rgba(24,22,20,0.22);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column;
}
.sand.open { transform: translateY(0); }
.sand-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.sand-av {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sand-2), var(--gold));
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.3rem; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.sand-id h4 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; line-height: 1; }
.sand-id .status { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.sand-id .dot { width: 7px; height: 7px; border-radius: 50%; background: #5fae7a; box-shadow: 0 0 0 0 rgba(95,174,122,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(95,174,122,0.5);} 70%{box-shadow:0 0 0 8px rgba(95,174,122,0);} 100%{box-shadow:0 0 0 0 rgba(95,174,122,0);} }
.sand-close { margin-left: auto; font-size: 22px; color: var(--muted); padding: 4px 8px; line-height: 1; }

.sand-body { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot strong { color: var(--gold-deep); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing i:nth-child(2){ animation-delay: .2s; } .typing i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{opacity:.25;transform:translateY(0);} 40%{opacity:1;transform:translateY(-3px);} }

.sand-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 18px 12px; }
.sand-chips button {
  font-size: 12px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.7); color: var(--ink-soft);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.sand-chips button:hover { border-color: var(--gold); color: var(--ink); }
.sand-foot { display: flex; gap: 8px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sand-foot input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 13px 16px; font-family: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.sand-foot input:focus { outline: none; border-color: var(--gold); }
.sand-foot .send { width: 46px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; display: grid; place-items: center; }

/* ---------- responsive up ---------- */
@media (min-width: 720px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .sand { left: auto; right: 22px; bottom: 22px; width: 400px; height: min(72svh, 660px); border-radius: 24px; }
  .chat-fab { right: 22px; bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
