/* Parallax: a hair salon page where photos move in layers at different speeds and every section
   arrives with its own scroll effect (wipe, rise, zoom, curtain, sideways reel, stacking cards).
   Effects run only under html.fx (set in <head> unless reduced motion is asked for); without it
   every section is simply shown, the reel scrolls sideways by itself. app.js drives the numbers. */

:root {
  --ink: #1b1410;
  --ink-2: #261c16;
  --cream: #f5ede4;
  --sand: #efe4d8;
  --muted-dark: rgba(245, 237, 228, 0.74);
  --muted-light: #67564a;
  --copper: #e2ad84;
  --copper-deep: #8a4b26;
  --line-dark: rgba(245, 237, 228, 0.18);
  --line-light: rgba(27, 20, 16, 0.14);
  --display: 'Playfair Display', 'Georgia', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  --lv-surface: #241a14;
  --lv-text: var(--cream);
  --lv-muted: var(--muted-dark);
  --lv-line: var(--line-dark);
  --lv-accent: var(--copper);
  --lv-radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--ink); overflow-x: clip; }
body {
  margin: 0; color: var(--cream); background: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
em { font-style: italic; color: var(--copper); }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper); }
.fine { font-size: 0.88rem; color: var(--muted-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px;
  border: 1.5px solid var(--copper); border-radius: 999px; background: var(--copper); color: var(--ink);
  font: 700 0.95rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.btn:hover { background: transparent; color: var(--cream); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(245, 237, 228, 0.55); }
.btn-ghost:hover { border-color: var(--copper); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 0.85rem; flex-shrink: 0; }

/* ---------- header ---------- */
.top { position: fixed; top: 48px; left: 0; right: 0; z-index: 40; transition: background 0.3s ease, top 0.3s ease; }
.top.is-solid { top: 0; background: rgba(27, 20, 16, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font: 500 1.2rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.nav { display: none; gap: 26px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; color: var(--muted-dark); }
.nav a:hover { color: var(--cream); }
.progress { height: 2px; background: transparent; }
.progress i { display: block; height: 100%; width: 100%; background: var(--copper); transform-origin: left; transform: scaleX(0); }

/* ---------- 1. hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 160px 0 110px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27, 20, 16, 0.55) 0%, rgba(27, 20, 16, 0.25) 40%, rgba(27, 20, 16, 0.92) 100%);
}
.hero-word {
  position: absolute; left: 50%; top: 20%; z-index: 0; margin: 0; translate: -50% 0;
  font: italic 500 clamp(6rem, 24vw, 22rem)/0.8 var(--display); letter-spacing: -0.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 2px rgba(226, 173, 132, 0.75); pointer-events: none; will-change: transform;
}
.hero-card { position: absolute; z-index: 1; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); pointer-events: none; will-change: transform; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hc-1 { width: 26vw; max-width: 240px; aspect-ratio: 36 / 46; right: 6%; top: 24%; rotate: 4deg; }
.hc-2 { width: 20vw; max-width: 180px; aspect-ratio: 1; right: 26%; top: 52%; rotate: -6deg; }
.hero-text { position: relative; z-index: 2; will-change: transform, opacity; }
.hero h1 { font-size: clamp(3.2rem, 11vw, 7.5rem); line-height: 0.98; max-width: 9ch; }
.lead { max-width: 34rem; margin: 18px 0 0; font-size: 1.12rem; color: var(--muted-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 0.92rem; color: var(--muted-dark); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c98b6a; }
.status.is-open::before { background: #7ed9a2; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 2; translate: -50% 0;
  display: grid; justify-items: center; gap: 6px; min-width: 44px; min-height: 44px;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--muted-dark);
}
.scroll-hint i { width: 1.5px; height: 34px; background: linear-gradient(var(--copper), transparent); }
.fx .scroll-hint i { animation: hint 2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2. statement ---------- */
.intro { background: var(--sand); color: var(--ink); padding: clamp(90px, 16vw, 180px) 0; }
.statement { margin: 0 auto; max-width: 22ch; font: 500 clamp(1.9rem, 5.4vw, 4rem)/1.18 var(--display); letter-spacing: -0.015em; text-align: center; }
/* Unlit words stay at 3.2:1 on the sand (large text), so they are readable before they light up. */
.statement .w { transition: color 0.25s linear; }
.fx .statement .w { color: #8f7a6b; }
.fx .statement .w.is-lit { color: var(--ink); }
.statement .w.is-accent { font-style: italic; }
.fx .statement .w.is-accent.is-lit { color: var(--copper-deep); }

/* ---------- 3. services ---------- */
.services { background: var(--sand); color: var(--ink); padding: 0 0 clamp(80px, 12vw, 140px); }
.services .eyebrow { color: var(--copper-deep); }
.services .fine { color: var(--muted-light); }
.services-grid { display: grid; gap: 40px; }
.frame { position: relative; margin: 0; overflow: hidden; border-radius: 22px; }
.frame-tall { aspect-ratio: 4 / 5; max-height: 72vh; }
.frame img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.menu { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line-light); }
.menu li { border-bottom: 1px solid var(--line-light); }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; width: 100%; padding: 18px 4px; min-height: 44px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: padding 0.3s var(--ease), background 0.3s ease;
}
.menu-item:hover { padding-left: 14px; background: rgba(138, 75, 38, 0.06); }
.m-name { font: 500 1.3rem/1.25 var(--display); }
.m-price { font-weight: 700; font-size: 1.05rem; align-self: center; }
.m-meta { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted-light); }
.m-meta strong { margin-left: 8px; color: var(--copper-deep); }

/* ---------- 4. sideways reel ---------- */
.reel { position: relative; background: var(--ink); }
.reel-pin { padding: clamp(80px, 12vw, 120px) 0 60px; }
.reel-head { margin-bottom: 34px; }
.reel-track {
  list-style: none; margin: 0; padding: 0 20px 18px; display: flex; gap: clamp(16px, 2.4vw, 32px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.reel-track li { flex: 0 0 auto; width: clamp(240px, 32vw, 420px); scroll-snap-align: start; }
.reel-track figure { margin: 0; }
.reel-track img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 18px; }
.reel-track figcaption { margin-top: 12px; font: italic 500 1.15rem/1.2 var(--display); color: var(--muted-dark); }
.reel-note { margin-top: 18px; }
/* With effects: the section is as tall as the sideways trip; its inside stays pinned. */
.fx .reel { height: var(--reel-h, 300vh); }
.fx .reel-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 80px 0 40px; }
.fx .reel-track { overflow: visible; scroll-snap-type: none; padding-left: max(20px, calc((100vw - 1180px) / 2)); will-change: transform; }
.fx .reel-track li { transition: rotate 0.4s var(--ease); }
.fx .reel-track li:nth-child(odd) { margin-top: 40px; }
.fx .reel-track img { height: min(52vh, 520px); width: auto; aspect-ratio: 4 / 5; }
.fx .reel-track li { width: auto; }

/* ---------- 5. stacking steps ---------- */
.steps { background: var(--sand); color: var(--ink); padding: clamp(90px, 13vw, 150px) 0; }
.steps .eyebrow { color: var(--copper-deep); }
.stack { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; }
.card {
  position: relative; padding: clamp(28px, 4vw, 48px); border-radius: 26px; background: var(--cream);
  border: 1px solid var(--line-light); box-shadow: 0 24px 50px rgba(27, 20, 16, 0.1); transform-origin: top center;
}
.card:nth-child(2) { background: #f0d9c6; }
.card:nth-child(3) { background: #3a2a20; color: var(--cream); }
.card:nth-child(4) { background: var(--ink); color: var(--cream); }
.card .num { display: block; font: italic 500 3.4rem/1 var(--display); color: var(--copper-deep); }
.card:nth-child(n+3) .num { color: var(--copper); }
.card h3 { margin: 18px 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.card p { margin: 0; max-width: 40ch; font-size: 1.05rem; }
.fx .card { position: sticky; top: calc(130px + var(--i, 0) * 18px); min-height: 280px; will-change: transform; }
.fx .stack { gap: 28vh; padding-bottom: 6vh; }

/* ---------- 6. reviews ---------- */
.word { position: relative; padding: clamp(110px, 16vw, 190px) 0; overflow: hidden; isolation: isolate; }
.word-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.word-bg img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.word-bg::after { content: ''; position: absolute; inset: 0; background: rgba(27, 20, 16, 0.72); }
.word-inner { display: grid; justify-items: center; text-align: center; }
.quote { margin: 0; max-width: 46rem; transition: opacity 0.35s ease, transform 0.35s ease; }
.quote.is-fading { opacity: 0; transform: translateY(10px); }
.quote blockquote { margin: 0; font: italic 500 clamp(1.7rem, 4.2vw, 3rem)/1.22 var(--display); }
.quote blockquote::before { content: '“'; display: block; font-size: 1.8em; line-height: 0.6; color: var(--copper); }
.quote figcaption { margin-top: 22px; color: var(--muted-dark); }
.tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 0.78rem; }
.dots { display: flex; gap: 4px; margin-top: 30px; }
.dots button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(245, 237, 228, 0.4); transition: width 0.3s var(--ease), background 0.3s; }
.dots button[aria-current="true"]::before { width: 26px; border-radius: 6px; background: var(--copper); }

/* ---------- 7. visit ---------- */
.visit { position: relative; padding: clamp(100px, 14vw, 170px) 0; overflow: hidden; isolation: isolate; }
.visit-bg { position: absolute; inset: -18% 0; z-index: -1; will-change: transform; }
.visit-bg img { width: 100%; height: 100%; object-fit: cover; }
.visit::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(27, 20, 16, 0.6); }
.visit-grid { display: grid; gap: 22px; }
.panel { padding: clamp(26px, 4vw, 42px); border-radius: 24px; background: rgba(27, 20, 16, 0.86); border: 1px solid var(--line-dark); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.panel h2 { margin-bottom: 14px; }
.panel p { color: var(--muted-dark); }
.panel .btn { margin-top: 18px; }
.big-time { margin: 0 0 18px; font: 500 clamp(2.2rem, 6vw, 3.6rem)/1 var(--display); color: var(--cream); }
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.week li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-dark); color: var(--muted-dark); }
.week li b { color: var(--cream); font-weight: 700; }
.week li.is-today { color: var(--copper); }
.week li.is-today b { color: var(--copper); }
.map { display: grid; place-items: center; min-height: 160px; margin-top: 16px; border: 1px dashed var(--line-dark); border-radius: 16px; color: var(--muted-dark); font-size: 0.9rem; text-align: center; padding: 16px; }

/* ---------- CTA + footer ---------- */
.cta { background: var(--copper); color: var(--ink); padding: clamp(80px, 12vw, 130px) 0; text-align: center; }
.cta p { max-width: 36rem; margin: 16px auto 26px; font-size: 1.08rem; }
.cta .btn { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cta .btn:hover { background: transparent; color: var(--ink); }
.cta .link { display: block; width: fit-content; margin: 18px auto 0; padding: 10px 6px; font-weight: 700; text-underline-offset: 4px; }
.foot { padding: 30px 0; background: var(--ink); color: var(--muted-dark); font-size: 0.86rem; }
.foot-inner { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.foot p { margin: 0; }
.foot a { text-underline-offset: 3px; }

.sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
  display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px;
  background: var(--copper); color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* ---------- reveal effects (only with html.fx) ---------- */
.fx [data-reveal] { transition: opacity 0.9s var(--ease), transform 1s var(--ease), clip-path 1.2s var(--ease); }
.fx [data-reveal="rise"] { opacity: 0; transform: translateY(40px); }
.fx [data-reveal="left"] { opacity: 0; transform: translateX(-60px); }
.fx [data-reveal="right"] { opacity: 0; transform: translateX(60px); }
.fx [data-reveal="zoom"] { opacity: 0; transform: scale(0.88); }
.fx [data-reveal="wipe"] { clip-path: inset(100% 0 0 0 round 22px); }
.fx [data-reveal="curtain"] { clip-path: inset(18% 22% round 28px); }
.fx [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 22px); }
.fx [data-reveal="curtain"].is-in { clip-path: inset(0 0 round 0); }
.fx .menu li { opacity: 0; transform: translateX(40px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.fx .menu.is-in li { opacity: 1; transform: none; }
.fx .services h2[data-reveal] { transition-delay: 0.08s; }
.fx .visit [data-reveal="right"] { transition-delay: 0.12s; }

@media (min-width: 720px) {
  .nav { display: flex; }
  .visit-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .services-grid { grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
  .foot-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (max-width: 719px) {
  .hc-1 { width: 34vw; right: 4%; top: 18%; }
  .hc-2 { width: 26vw; right: 32%; top: 36%; }
  .hero { padding-bottom: 96px; }
}
/* Phone landscape: keep fixed bars small. */
@media (max-height: 500px) and (orientation: landscape) {
  .top-inner { height: 56px; }
  .sticky { min-height: 44px; bottom: 8px; left: auto; width: 220px; }
  .hero-card { display: none; }
  .fx .reel-track img { height: 52vh; }
  .fx .card { top: 70px; min-height: 0; }
}
