/* ============================================================
   Hair by Priscillia.k — Nice
   Palette: desaturated 70s photo · faded print
   ============================================================ */

:root {
  --bg: #efe6d0;
  --bg-2: #e6dabe;
  --surface: #f6efdd;
  --ink: #3a2f1a;
  --ink-soft: #6b5c3c;
  --a: #a67c00;
  --b: #6b7a3a;
  --c: #c04e1a;
  --line: rgba(58, 47, 26, 0.22);
  --line-soft: rgba(58, 47, 26, 0.12);
  --shadow: 0 1px 0 rgba(58, 47, 26, 0.10), 0 14px 34px -22px rgba(58, 47, 26, 0.55);
  --grain-opacity: 0.07;
  --spine-w: 4.5rem;
  --radius: 3px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #211c12;
  --bg-2: #2a2317;
  --surface: #2b2418;
  --ink: #f0e6cf;
  --ink-soft: #c0b191;
  --a: #d9a72c;
  --b: #9aa85c;
  --c: #e2703a;
  --line: rgba(240, 230, 207, 0.24);
  --line-soft: rgba(240, 230, 207, 0.12);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 14px 34px -22px rgba(0, 0, 0, 0.9);
  --grain-opacity: 0.10;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #211c12;
    --bg-2: #2a2317;
    --surface: #2b2418;
    --ink: #f0e6cf;
    --ink-soft: #c0b191;
    --a: #d9a72c;
    --b: #9aa85c;
    --c: #e2703a;
    --line: rgba(240, 230, 207, 0.24);
    --line-soft: rgba(240, 230, 207, 0.12);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 14px 34px -22px rgba(0, 0, 0, 0.9);
    --grain-opacity: 0.10;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- grain overlay --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}
html[data-theme="dark"] body::before { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body::before { mix-blend-mode: screen; }
}

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

a { color: var(--c); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--a); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  z-index: 10000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ============================================================
   Progress bar — part of the design, a strip along the top edge
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 60;
  background: var(--line-soft);
}
.progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--b), var(--a) 55%, var(--c));
}
@supports (animation-timeline: scroll()) {
  .progress span {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes fill { to { transform: scaleX(1); } }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem) 0.75rem calc(var(--spine-w) + 0.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: var(--a);
  color: #2a2110;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.topnav { display: flex; align-items: center; gap: 1.25rem; }
.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
}
.topnav a:hover { color: var(--ink); }
.topnav-tel {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem !important;
  font-weight: 600;
  white-space: nowrap;
}
.topnav-tel:hover { background: var(--a); border-color: var(--a); color: #2a2110 !important; }

.theme-toggle {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
.theme-toggle:hover { background: var(--bg-2); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: inline; }
html[data-theme="dark"] .theme-toggle circle { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .sun { display: inline; }
  html:not([data-theme="light"]) .theme-toggle circle { display: none; }
}

/* ============================================================
   Vertical spine headline
   ============================================================ */
.spine {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  margin: 0;
  padding: 0 0 0 0;
  width: var(--spine-w);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 40;
  pointer-events: none;
  user-select: none;
}
.spine::after {
  content: "";
  display: block;
  width: 1px;
  height: 4rem;
  margin: 1rem auto 0;
  background: var(--line);
}

/* ============================================================
   Layout shell
   ============================================================ */
main {
  padding-left: var(--spine-w);
}
section { padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--b);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.section-intro { color: var(--ink-soft); margin: 0; max-width: 42rem; }
p { text-wrap: pretty; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(120% 90% at 8% 0%, color-mix(in srgb, var(--a) 20%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--b) 16%, transparent), transparent 65%);
  border-bottom: 1px solid var(--line-soft);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  font-variation-settings: "opsz" 120, "SOFT" 40;
}
.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--c);
  display: block;
}

.hero-line {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--c); color: #fff8ec; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); transform: translateY(-1px); }

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- audio-visualizer bars --- */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin: 0 0 1.5rem;
  max-width: 22rem;
}
.viz span {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, var(--a), var(--c));
  border-radius: 1px;
  transform-origin: 50% 100%;
  transform: scaleY(0.18);
  animation: pulse 1.5s ease-in-out infinite alternate;
  opacity: 0.85;
}
.viz span:nth-child(3n)  { animation-duration: 1.15s; animation-delay: -0.2s; }
.viz span:nth-child(3n+1){ animation-duration: 1.85s; animation-delay: -0.6s; }
.viz span:nth-child(4n)  { animation-duration: 1.35s; animation-delay: -0.9s; }
.viz span:nth-child(5n)  { animation-duration: 2.05s; animation-delay: -0.35s; }
.viz span:nth-child(7n)  { animation-duration: 0.95s; animation-delay: -1.1s; }
@keyframes pulse {
  from { transform: scaleY(0.14); }
  to   { transform: scaleY(1); }
}

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(0.82) contrast(1.02) sepia(0.12);
}
figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 34rem;
}

/* ============================================================
   Menu / services
   ============================================================ */
.services { background: var(--bg); }

.menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.menu-block { break-inside: avoid; }
.menu-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.menu-block h3::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-right: 0.6rem;
  background: var(--a);
  transform: rotate(45deg) translateY(-1px);
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line-soft);
}
.item:last-child { border-bottom: 0; }
.item-name {
  font-weight: 600;
  font-size: 0.98rem;
  display: block;
}
.item-desc {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 0.15rem;
}
.item-price {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1rem;
  color: var(--c);
  white-space: nowrap;
}
.menu-foot {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 46rem;
}

/* ============================================================
   Galerie
   ============================================================ */
.galerie { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.galerie-grid figure { margin: 0; }
.galerie-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.8) contrast(1.03) sepia(0.14);
  transition: filter 0.35s ease, transform 0.35s ease;
}
.galerie-grid figure:hover img { filter: saturate(1) contrast(1.02) sepia(0.02); transform: translateY(-3px); }

/* ============================================================
   Maison
   ============================================================ */
.maison {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.maison-text p { color: var(--ink-soft); max-width: 40rem; }
.maison-text p:first-of-type { color: var(--ink); }
.maison-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
}
.maison-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.maison-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.6rem; height: 1px;
  background: var(--c);
}
.maison-list strong { color: var(--ink); }
.maison-figure { margin: 0; position: sticky; top: 5.5rem; }
.maison-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(0.82) contrast(1.02) sepia(0.12);
}

/* ============================================================
   Infos cards
   ============================================================ */
.infos { background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.footer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 0.9rem; }
.card-strong {
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  font-weight: 600;
  color: var(--ink) !important;
  line-height: 1.35;
}
.card-note { font-size: 0.82rem !important; }
.card-link { font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.hours { margin: 0 0 1rem; font-size: 0.92rem; }
.hours > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line-soft);
}
.hours > div:last-child { border-bottom: 0; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours .closed dt, .hours .closed dd { color: var(--c); }

.tel-big {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  margin: 0.5rem 0 1rem;
  font-variant-numeric: tabular-nums;
}
.tel-big:hover { color: var(--c); }

/* ============================================================
   Quote
   ============================================================ */
.quote { background: var(--bg); text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 44rem; }
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.quote footer {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  padding: 2rem clamp(1.25rem, 5vw, 4rem) 2.5rem calc(var(--spine-w) + clamp(1.25rem, 5vw, 4rem));
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--a) 14%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.claim-banner:hover { color: var(--ink); background: color-mix(in srgb, var(--a) 26%, transparent); }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.foot-brand { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.foot-brand a { color: var(--ink-soft); }
.attribution { margin: 0; font-size: 0.8rem; }
.attribution a { color: var(--ink-soft); text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .maison { grid-template-columns: 1fr; }
  .maison-figure { position: static; }
  .footer-cards { grid-template-columns: 1fr 1fr; }
  .card-tel { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --spine-w: 0rem; }
  .spine {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    width: auto;
    text-align: left;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    padding: 0.9rem clamp(1.25rem, 5vw, 4rem) 0;
    pointer-events: auto;
  }
  .spine::after { display: none; }
  .topbar { padding-left: clamp(1rem, 4vw, 2.5rem); }
  .topnav { gap: 0.9rem; }
  .topnav a:not(.topnav-tel) { display: none; }
  .menu { grid-template-columns: 1fr; }
  .footer-cards { grid-template-columns: 1fr; }
  .site-foot { padding-left: clamp(1.25rem, 5vw, 4rem); }
  .viz { height: 34px; max-width: 16rem; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viz span { animation: none; transform: scaleY(0.55); }
  .viz span:nth-child(2n) { transform: scaleY(0.85); }
  .viz span:nth-child(3n) { transform: scaleY(0.35); }
  .progress span { animation: none; transform: scaleX(1); }
  .btn, .galerie-grid img { transition: none; }
  .galerie-grid figure:hover img { transform: none; }
}
