/* Tru-Cuts: classy and playful. Theme tokens first, then the page's own markup.
   scrollcraft.css is the engine's floor; nothing here restyles its [data-sc-*] mechanism. */

:root {
  --sc-canvas:     #FBF6EE;
  --sc-surface:    #F3EADB;
  --sc-ink:        #2A1A10;
  --sc-ink-soft:   #6B4F3A;
  --sc-accent:     #B5452A;
  --sc-accent-ink: #FFF8F0;
  --sc-font-display: "Fraunces", Georgia, serif;
  --sc-font-text:    "Outfit", system-ui, sans-serif;
  --sc-shadow-color: 24 45% 22%;

  --pole-red:  #B23A2E;
  --pole-blue: #24324F;
  --pole-white:#FBF6EE;
  --chrome: linear-gradient(90deg, #8E8A84, #F1EEE9 35%, #B9B4AD 60%, #6F6A63);
  --bar-h: 64px;
  --pole-shift: 0px;
}

body { background: var(--sc-canvas); }
.sc-display { font-weight: 500; font-variation-settings: "opsz" 120; }
h3 { font-family: var(--sc-font-display); font-weight: 500; margin: 0; font-size: var(--sc-t-lg); }
a { color: var(--sc-accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eyebrow {
  margin: 0 0 var(--sc-4);
  font-size: var(--sc-t-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--sc-accent);
}

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border-radius: var(--sc-r-pill);
  border: 1.5px solid var(--sc-accent);
  background: var(--sc-accent);
  color: var(--sc-accent-ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sc-e1);
  transition: background-color var(--sc-d-base) var(--sc-ease-out), transform var(--sc-d-fast) var(--sc-ease-out);
}
.btn:hover { background: #943620; border-color: #943620; }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--sc-accent); box-shadow: none; }
.btn--ghost:hover { background: color-mix(in oklab, var(--sc-accent) 10%, transparent); color: #943620; }
.btn--small { min-height: 40px; padding: 0.45em 1.1em; font-size: var(--sc-t-sm); }
.btn--big { font-size: var(--sc-t-lg); padding: 0.8em 1.6em; }

/* ----------------------------------------------------------------- bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--bar-h);
  display: flex; align-items: center; gap: var(--sc-6);
  padding-inline: var(--sc-gutter);
  background: rgb(251 246 238 / 0.95);
  border-bottom: 1px solid rgb(42 26 16 / 0.12);
}
/* Fixed cream so the bar stays readable while the page drifts dark in the shampoo scene */
.bar__mark {
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1.45rem;
  letter-spacing: -0.02em; color: var(--sc-ink); text-decoration: none;
}
.bar__nav { display: flex; gap: var(--sc-5); margin-left: auto; }
.bar__nav a { color: var(--sc-ink-soft); text-decoration: none; font-weight: 500; }
.bar__nav a:hover { color: var(--sc-ink); }

/* -------------------------------------------- signature: barber pole -- */
.pole, .close__pole { display: flex; flex-direction: column; align-items: center; }
.pole {
  position: fixed; z-index: calc(var(--sc-z-chrome) - 1);
  right: clamp(10px, 1.6vw, 26px); top: 50%;
  height: 34vh; width: 18px;
  translate: 0 -50%;
  transition: opacity var(--sc-d-slow) var(--sc-ease-out), scale var(--sc-d-slow) var(--sc-ease-out);
}
.pole__cap { width: 140%; height: 10px; border-radius: 6px; background: var(--chrome); box-shadow: var(--sc-e1); }
.pole__glass {
  flex: 1; width: 100%;
  border-radius: 3px;
  background: repeating-linear-gradient(-45deg,
    var(--pole-red) 0 10px, var(--pole-white) 10px 20px,
    var(--pole-blue) 20px 30px, var(--pole-white) 30px 40px);
  background-position: 0 var(--pole-shift);
  box-shadow: inset -4px 0 6px rgb(0 0 0 / 0.18), inset 4px 0 6px rgb(255 255 255 / 0.35);
}
.at-close .pole { opacity: 0; scale: 0.6; }

/* ---------------------------------------------------- 1 · welcome hero -- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 600px;
  overflow: clip;
  background:
    radial-gradient(60% 70% at 78% 30%, #F6DDB5 0%, transparent 70%),
    radial-gradient(50% 60% at 20% 90%, #EFD8C0 0%, transparent 70%),
    var(--sc-canvas);
}
.hero__plane { position: absolute; inset: 0; pointer-events: none; }
.hero__plane--back img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero__plane--back picture { display: contents; }
.hero__chair {
  position: absolute; right: 6vw; bottom: 4svh;
  height: 74svh; width: auto; max-width: none;
  filter: drop-shadow(0 30px 40px rgb(60 30 10 / 0.25));
}
.hero__plane--front { z-index: 12; }
.hero__tools {
  position: absolute; right: -3vw; bottom: -5svh;
  width: min(64vw, 980px); max-width: none; height: auto;
  filter: drop-shadow(0 -6px 18px rgb(60 30 10 / 0.18));
}
.hero .sc-scrim { z-index: 10; }
.hero__copy {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); bottom: clamp(5rem, 17vh, 10rem);
  max-width: 40rem;
}
.hero__title { font-size: var(--sc-t-4xl); max-width: 11ch; }
.hero__sub { margin: var(--sc-5) 0 var(--sc-6); font-size: var(--sc-t-lg); color: var(--sc-ink-soft); max-width: 34ch; }
.hero__sub strong { color: var(--sc-ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sc-3); }
.hero__floor {
  position: absolute; inset: auto 0 0 0; height: 140px; z-index: 14;
  background: linear-gradient(to bottom, transparent, var(--sc-canvas));
}

/* --------------------------------------------------------- 2 · julie -- */
.julie {
  background: var(--sc-surface);
  display: grid; align-content: center;
  padding-inline: var(--sc-gutter);
}
.julie__lines { position: relative; min-height: 4.2em; font-size: var(--sc-t-3xl); max-width: 18ch; }
.julie__line {
  position: absolute; inset: 0 auto auto 0;
  margin: 0;
  font-family: var(--sc-font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: var(--sc-track-snug);
  text-wrap: balance;
}
.julie__line em { color: var(--sc-accent); font-style: italic; }
.julie { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.julie__photo {
  margin: 0; justify-self: end;
  width: min(100%, 30rem); aspect-ratio: 4 / 5;
  border-radius: var(--sc-r-lg); overflow: clip; box-shadow: var(--sc-e3);
  rotate: 1.5deg;
}
.julie__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.julie__name {
  position: absolute; left: var(--sc-gutter); bottom: clamp(2rem, 7vh, 4rem);
  margin: 0;
  font-family: var(--sc-font-text); font-weight: 500;
  font-size: var(--sc-t-sm); letter-spacing: 0.06em; color: var(--sc-ink-soft);
}

/* -------------------------------------------------------- 3 · prices -- */
.prices {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: var(--sc-section) var(--sc-gutter);
  max-width: var(--sc-maxw); margin-inline: auto;
}
.prices__photo { margin: 0; border-radius: var(--sc-r-lg); overflow: clip; aspect-ratio: 4 / 3.4; box-shadow: var(--sc-e2); }
.prices__photo img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.prices__photo.is-empty {
  background:
    repeating-linear-gradient(-45deg, transparent 0 22px, rgb(178 58 46 / 0.06) 22px 44px),
    linear-gradient(135deg, #E9CFA8, #D9B387);
}
.menu { list-style: none; margin: var(--sc-6) 0; padding: 0; }
.menu li {
  display: flex; align-items: baseline; gap: var(--sc-3);
  padding: 0.55rem 0;
  font-size: var(--sc-t-lg);
}
.menu li::after { content: none; }
.menu li span:first-child { flex: 1; display: flex; align-items: baseline; gap: var(--sc-3); }
.menu li span:first-child::after { content: ""; flex: 1; border-bottom: 2px dotted color-mix(in oklab, var(--sc-ink) 25%, transparent); translate: 0 -0.3em; }
.menu li span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }

/* ---------------------------------------------------- 4 · the shampoo -- */
.suds { --sc-ink: #FBF0E2; --sc-ink-soft: #DCC6B0; color: var(--sc-ink); }
.suds__stage { background: #2A1A10; }
.suds__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.suds__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgb(30 18 10 / 0.7) 0%, transparent 45%),
    linear-gradient(90deg, rgb(30 18 10 / 0.92) 0%, rgb(30 18 10 / 0.66) 42%, transparent 72%);
}
.bubbles { position: absolute; inset: 0; z-index: 3; overflow: clip; pointer-events: none; }
.bubble {
  position: absolute; top: 0; left: var(--x);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgb(255 255 255 / 0.95) 0 8%, rgb(255 255 255 / 0.28) 22%, rgb(255 255 255 / 0.06) 62%, rgb(255 255 255 / 0.35) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45);
  translate:
    calc(var(--w) * var(--sc-p, 0) * 3)
    calc(115svh - (var(--sc-p, 0) * 1.7 - var(--d)) * var(--v) * 140svh);
  opacity: clamp(0, calc((0.92 - var(--sc-p, 0)) * 6), 0.95);
}
.suds__kicker {
  position: absolute; z-index: 4;
  left: var(--sc-gutter); top: 30%;
  margin: 0;
  font-family: var(--sc-font-display); font-style: italic;
  font-size: var(--sc-t-2xl); max-width: 16ch; line-height: 1.1;
}
.suds__copy {
  position: absolute; z-index: 4;
  left: var(--sc-gutter); bottom: clamp(4rem, 16vh, 9rem);
  max-width: 34rem;
}
.suds__copy p { margin: var(--sc-4) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); max-width: 32ch; }

/* -------------------------------------------------------- 5 · voices -- */
.voices { display: flex; align-items: center; background: #FBF6EE; }
.rail { align-items: center; gap: clamp(1.25rem, 3vw, 3rem); padding-inline: var(--sc-gutter); }
.rail__lead { flex: 0 0 min(26rem, 80vw); }
.rail__lead .sc-display { margin-bottom: var(--sc-4); }
.rating { margin: 0 0 var(--sc-3); color: var(--sc-ink-soft); font-weight: 500; }
.stars { color: #C98A1E; letter-spacing: 0.1em; }
.link { font-weight: 600; }
.voice {
  flex: 0 0 auto; margin: 0;
  border-radius: var(--sc-r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--sc-e2);
}
.voice h3 { font-size: var(--sc-t-xl); margin-bottom: var(--sc-3); }
.voice p { margin: 0; font-size: var(--sc-t-lg); line-height: 1.45; }
.voice--a { width: min(22rem, 78vw); background: #FFFFFF; rotate: -2deg; }
.voice--b { width: min(25rem, 80vw); background: var(--sc-accent); color: var(--sc-accent-ink); rotate: 1.5deg; translate: 0 2.5rem; }
.voice--c { width: min(23rem, 78vw); background: var(--pole-blue); color: #F4ECE0; rotate: -1deg; }
.voice--photo { width: min(20rem, 70vw); aspect-ratio: 3 / 4; padding: 0; overflow: clip; rotate: 2.5deg; translate: 0 -2rem; }
.voice--photo img { width: 100%; height: 100%; object-fit: cover; }
.voice--photo.is-empty {
  background: repeating-linear-gradient(-45deg, var(--pole-red) 0 18px, var(--pole-white) 18px 36px, var(--pole-blue) 36px 54px, var(--pole-white) 54px 72px);
  opacity: 0.85;
}

/* --------------------------------------------------------- 6 · visit -- */
.visit { padding: var(--sc-section) var(--sc-gutter); background: var(--sc-surface); }
.visit__grid {
  max-width: var(--sc-maxw); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.visit__addr { font-size: var(--sc-t-lg); font-weight: 500; margin: var(--sc-5) 0; }
.hours { border-collapse: collapse; width: 100%; max-width: 26rem; }
.hours th { text-align: left; font-weight: 500; padding: 0.35rem 1rem 0.35rem 0; }
.hours td { padding: 0.35rem 0; color: var(--sc-ink-soft); }
.hours tr + tr > * { border-top: 1px solid var(--sc-hairline); }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--sc-r-lg); margin-top: var(--sc-6); box-shadow: var(--sc-e1); }

.note {
  background: var(--sc-canvas);
  border-radius: var(--sc-r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--sc-e2), var(--sc-edge);
  display: flex; flex-direction: column; gap: var(--sc-4);
}
.note h3 { font-size: var(--sc-t-xl); }
.note label { display: flex; flex-direction: column; gap: var(--sc-2); font-weight: 500; }
.note input, .note textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--sc-hairline-strong);
  border-radius: var(--sc-r-md);
  background: #FFFFFF;
}
.note .btn { align-self: flex-start; }
.note__status { margin: 0; font-weight: 500; color: var(--sc-accent); }

/* --------------------------------------------------------- 7 · close -- */
.close {
  background:
    radial-gradient(50% 60% at 15% 50%, #F6DDB5 0%, transparent 70%),
    #FBF6EE;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 6vw, 6rem);
  padding: var(--bar-h) var(--sc-gutter) 6rem;
}
.close__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: 0; }
.close:has(.close__photo) { grid-template-columns: minmax(0, 1fr); }
.close:has(.close__photo) .close__pole { display: none; }
.close:has(.close__photo)::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(251 246 238 / 0.96) 0%, rgb(251 246 238 / 0.9) 40%, rgb(251 246 238 / 0) 64%);
}
.close__pole { position: relative; z-index: 1; width: 64px; height: 58svh; }
.close__pole .pole__glass { border-radius: 8px; animation: spin 2.4s linear infinite; background-size: 100% 80px; }
.close__pole .pole__cap { height: 22px; border-radius: 12px; }
@keyframes spin { to { background-position: 0 80px; } }
.close__copy { position: relative; z-index: 2; max-width: 34rem; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sc-5); }
.close__meta { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); }
.foot {
  position: absolute; z-index: 2; inset: auto var(--sc-gutter) 1.5rem;
  display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-5);
  justify-content: space-between; align-items: center;
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
  border-top: 1px solid var(--sc-hairline); padding-top: var(--sc-4);
}
.foot__mark { font-family: var(--sc-font-display); font-weight: 600; color: var(--sc-ink); font-size: 1.1rem; }

/* ------------------------------------------------------------- phones -- */
@media (max-width: 860px) {
  .bar__nav { display: none; }
  .bar .btn--small { margin-left: auto; }
  .pole {
    top: var(--bar-h); left: 0; right: 0; translate: none;
    height: 5px; width: auto; flex-direction: row;
  }
  .pole .pole__cap { display: none; }
  .pole__glass { height: 100%; border-radius: 0; background-position: var(--pole-shift) 0; }

  .hero__chair { height: 46svh; right: -8vw; bottom: auto; top: calc(var(--bar-h) + 4svh); opacity: 0.95; }
  .hero__title { font-size: var(--sc-t-2xl); }
  .hero__copy { right: var(--sc-gutter); bottom: 2.5rem; }
  .hero__sub { font-size: var(--sc-t-base); }

  .julie__lines { font-size: var(--sc-t-xl); }
  .julie { grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: calc(var(--bar-h) + 2rem); }
  .julie__photo { order: -1; justify-self: start; width: 62vw; aspect-ratio: 1; margin-bottom: 1.5rem; }
  .hero__tools { width: 120vw; right: -30vw; bottom: -3svh; }
  .close:has(.close__photo)::before { background: linear-gradient(0deg, rgb(251 246 238 / 0.96) 0%, rgb(251 246 238 / 0.85) 45%, rgb(251 246 238 / 0.1) 75%); }
  .close:has(.close__photo) { align-content: end; padding-bottom: 10rem; }
  .hero .sc-scrim { background: linear-gradient(to top, rgb(251 246 238 / 0.97) 0%, rgb(251 246 238 / 0.9) 48%, rgb(251 246 238 / 0) 78%); }

  .prices { grid-template-columns: minmax(0, 1fr); }
  .menu li { font-size: var(--sc-t-base); }

  .suds__shade { background: linear-gradient(0deg, rgb(30 18 10 / 0.9) 0%, rgb(30 18 10 / 0.5) 50%, rgb(30 18 10 / 0.25) 100%); }
  .suds__kicker { top: calc(var(--bar-h) + 3rem); font-size: var(--sc-t-xl); }

  .visit__grid { grid-template-columns: minmax(0, 1fr); }

  .close { grid-template-columns: minmax(0, 1fr); align-content: center; gap: var(--sc-6); }
  .close__pole { width: 34px; height: 22svh; }
  .close__pole .pole__cap { height: 14px; }
  .btn--big { font-size: var(--sc-t-base); }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles { display: none; }
  .close__pole .pole__glass { animation: none; }
}
