/* Sno — concept site for a small hair salon. Made by Nexus Digital. */
@font-face { font-family: "Bodoni Moda"; src: url("fonts/BodoniModa-var-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("fonts/BodoniModa-italic-var-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-var-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --plaster: #f4ece0;  /* the salon wall: page ground */
  --espresso: #2a1a14; /* text */
  --copper: #9c4a26;   /* the leather chairs: links, what is chosen */
  --brass: #b08a4e;    /* the mirror frame */
  --stone: #e6d8c6;    /* travertine: lines and quiet panels */
  --soft: #6a5448;     /* secondary text */
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --mirror-w: min(38vw, 34rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--plaster); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--espresso); font: 400 1.0625rem/1.55 "Instrument Sans", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, table { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.skip { position: fixed; left: -999rem; top: 0.75rem; z-index: 50; background: var(--espresso); color: var(--plaster); padding: 0.7rem 1rem; }
.skip:focus { left: var(--pad); }

/* ── Top bar ──────────────────────────────────────────────────── */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: baseline; gap: 1.25rem; padding: 1rem var(--pad); background: linear-gradient(var(--plaster) 55%, rgb(244 236 224 / 0)); }
.mark { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.9rem; line-height: 1; text-decoration: none; }
.status { display: none; font-size: 0.875rem; color: var(--soft); }
.status[data-open] { color: var(--copper); }
.top-nav { margin-left: auto; display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); font-size: 0.9375rem; font-weight: 500; }
.top-nav a { text-decoration: none; padding: 0.4rem 0; border-bottom: 1px solid transparent; }
.top-nav a:hover { border-bottom-color: currentColor; }
@media (min-width: 800px) { .status { display: block; } }

/* ── The mirror: the film in an arched brass frame ───────────── */
.mirror { position: fixed; z-index: 5; right: max(var(--pad), 6vw); top: 50%; width: var(--mirror-w); aspect-ratio: 3 / 4.3; max-height: 82vh; transform: translateY(-46%); padding: 0.55rem; border-radius: 999px 999px 0.4rem 0.4rem;
  background: linear-gradient(135deg, #d8b878, var(--brass) 38%, #7d5f2e 70%, #caa968); box-shadow: 0 40px 70px -40px rgb(42 26 20 / 0.6), 0 2px 0 rgb(255 255 255 / 0.35) inset; }
.stage { position: relative; width: 100%; height: 100%; border-radius: 999px 999px 0.2rem 0.2rem; overflow: hidden; background: var(--stone) center / cover no-repeat; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
/* a line of light crosses the glass once when the page opens */
.stage::after { content: ""; position: absolute; inset: -20% -60%; z-index: 20; background: linear-gradient(105deg, transparent 44%, rgb(255 255 255 / 0.5) 50%, transparent 56%); transform: translateX(-70%); pointer-events: none; }
.js .stage::after { animation: glint 2.4s var(--ease) 0.7s 1 both; }
@keyframes glint { to { transform: translateX(70%); } }

/* ── Chapter rail ─────────────────────────────────────────────── */
.chapters { display: none; }
@media (min-width: 1000px) {
  .chapters { display: block; position: fixed; z-index: 20; left: var(--pad); bottom: 1.4rem; }
  .chapters ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; font-size: 0.8125rem; }
  .chapters a { text-decoration: none; color: var(--soft); padding-bottom: 0.3rem; border-bottom: 1.5px solid transparent; }
  .chapters a:hover { color: var(--espresso); }
  .chapters a[aria-current="true"] { color: var(--espresso); border-bottom-color: var(--copper); }
}

/* ── Chapters: text on the left, the mirror stays on the right ─ */
main { position: relative; z-index: 10; }
.ch { position: relative; min-height: 190vh; padding-right: calc(var(--mirror-w) + max(var(--pad), 6vw) + 3rem); }
.ch--hero { min-height: 170vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; justify-items: start; gap: 1.5rem; padding: 6rem 0 5rem var(--pad); }

.name { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(7rem, 24vw, 23rem); line-height: 0.78; letter-spacing: -0.04em; margin-left: -0.05em; padding-bottom: 0.08em; }
.name span { display: inline-block; }
.js .name span { opacity: 0; transform: translateY(0.25em) rotate(6deg); animation: comb 1.2s var(--ease) forwards; animation-delay: calc(0.2s + var(--i) * 0.12s); }
@keyframes comb { to { opacity: 1; transform: none; } }

.say { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 5vw, 5rem); line-height: 1; letter-spacing: -0.025em; max-width: 14ch; text-wrap: balance; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.3rem); max-width: 34ch; color: var(--soft); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.8rem; background: var(--espresso); color: var(--plaster); border: 1.5px solid var(--espresso); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.btn:hover { background: var(--copper); border-color: var(--copper); }
.btn--line { background: transparent; color: var(--espresso); }
.btn--line:hover { color: var(--plaster); }

/* ── Quick booking: two taps ──────────────────────────────────── */
.quick { display: grid; gap: 0.8rem; width: min(100%, 36rem); }
.quick-label { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { min-height: 2.75rem; padding: 0 1.05rem; border: 1.5px solid rgb(42 26 20 / 0.3); background: transparent; color: var(--espresso); font: inherit; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--espresso); }
.chip[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: #fff; }
.quick-sum { margin-top: 0.6rem; padding: 0.9rem 0 0; border-top: 1px solid rgb(42 26 20 / 0.2); font-family: var(--display); font-style: italic; font-size: 1.35rem; line-height: 1.25; min-height: 3.2em; }
.quick .btn { justify-self: start; }
.quick[data-done="false"] .btn { background: transparent; color: var(--espresso); }

/* ── Price list, set like a page in a magazine ────────────────── */
.ch--list { min-height: 0; padding-top: 30vh; padding-bottom: 40vh; padding-left: var(--pad); }
.sheet { width: min(100%, 40rem); }
.group { margin-top: 2.6rem; }
.group h3 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.7rem; padding-bottom: 0.5rem; border-bottom: 1.5px solid var(--espresso); }
.group ul { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid rgb(42 26 20 / 0.16); }
.item-name { font-weight: 600; }
.item-price { font-family: var(--display); font-size: 1.25rem; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.item-desc { grid-column: 1 / -1; color: var(--soft); font-size: 0.9375rem; }
.note { margin-top: 1.6rem; color: var(--soft); font-size: 0.9375rem; max-width: 44ch; }

/* ── Hours ────────────────────────────────────────────────────── */
.hours { width: min(100%, 24rem); }
.hours h3 { font-size: 0.875rem; font-weight: 600; color: var(--soft); }
.hours table { width: 100%; margin-top: 0.4rem; border-collapse: collapse; font-variant-numeric: tabular-nums; border-top: 1.5px solid var(--espresso); }
.hours td { padding: 0.6rem 0; border-bottom: 1px solid rgb(42 26 20 / 0.16); }
.hours td:last-child { text-align: right; }
.hours tr[data-today] td { font-weight: 700; }

/* ── Booking ──────────────────────────────────────────────────── */
.ch--book { min-height: 0; padding-top: 28vh; padding-left: var(--pad); display: flex; flex-direction: column; }
.book { display: grid; gap: 1.2rem; width: min(100%, 38rem); padding-bottom: 5rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 0.8rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.875rem; font-weight: 600; min-width: 0; }
.form input, .form select { width: 100%; min-height: 3rem; padding: 0 0.85rem; border: 1.5px solid rgb(42 26 20 / 0.38); border-radius: 0; background: #fffaf2; color: var(--espresso); font: inherit; font-weight: 400; }
.form input:focus, .form select:focus { outline: 3px solid rgb(156 74 38 / 0.3); border-color: var(--copper); }
.form [aria-invalid="true"] { border-color: #b3261e; }
.wide { grid-column: 1 / -1; }
.form-note { padding: 0.9rem 1rem; background: var(--stone); font-size: 0.9375rem; }
.find { margin-top: 1rem; font-style: normal; line-height: 1.8; }
.find h3 { font-size: 0.875rem; font-weight: 600; color: var(--soft); }
.find a { margin-right: 1rem; }
.foot { margin: auto calc((var(--mirror-w) + max(var(--pad), 6vw) + 3rem) * -1) 0 calc(var(--pad) * -1); position: relative; z-index: 12; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding: 1.4rem var(--pad) 3.6rem; background: var(--plaster); border-top: 1px solid rgb(42 26 20 / 0.18); font-size: 0.875rem; color: var(--soft); }

/* ── Phones and narrow screens: the mirror hangs at the top, the text scrolls under it ── */
@media (max-width: 899px) {
  :root { --mirror-w: min(58vw, 15rem); }
  .mirror { right: auto; left: 50%; top: 3.6rem; transform: translateX(-50%); aspect-ratio: 3 / 3.7; max-height: 40svh; width: auto; height: 40svh; }
  .ch { padding-right: 0; min-height: 170vh; }
  /* content starts just below the mirror, so a tall section grows downwards instead of up behind it */
  .pin { align-content: start; padding: calc(3.6rem + 40svh + 1.6rem) var(--pad) 2.2rem; gap: 1rem; }
  .name { font-size: clamp(5.5rem, 34vw, 11rem); }
  .ch--list, .ch--book { padding-right: var(--pad); padding-top: calc(40svh + 7rem); }
  .ch--list::before, .ch--book::before { content: ""; position: sticky; display: block; top: 0; height: calc(40svh + 4.6rem); margin: calc((40svh + 7rem) * -1) calc(var(--pad) * -1) 2.4rem; background: var(--plaster); z-index: 4; }
  .foot { margin-right: calc(var(--pad) * -1); padding-bottom: 1.4rem; }
  .form { grid-template-columns: 1fr; }
  .top-nav a:first-child { display: none; }
}
@media (max-width: 899px) { .mirror { z-index: 6; } main { z-index: 5; } .ch--list .sheet, .ch--book .book { position: relative; z-index: 3; } .top { z-index: 30; } }

/* ── No film: reduced motion, or no script. The mirror shows a still per section. ── */
.static .stage video, .no-js .stage video { display: none; }
.static .stage, .no-js .stage { background-image: url("films/n1-mirror-poster-p.webp"); }
.static .ch, .no-js .ch { min-height: 0; }
.static .pin, .no-js .pin { position: relative; height: auto; min-height: 80vh; }
.static .ch--list, .no-js .ch--list { padding-top: 6rem; padding-bottom: 6rem; }
.static .ch--book, .no-js .ch--book { padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .name span { animation: none !important; opacity: 1; transform: none; }
  .stage::after { display: none; }
  .btn, .chip { transition: none; }
}

/* Phones: the text scrolls in normal flow below the mirror, and a band of wall colour behind the mirror
   keeps anything scrolling up from showing around or through it. */
@media (max-width: 899px) {
  body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: calc(3.6rem + 40svh + 0.9rem); background: var(--plaster); z-index: 6; pointer-events: none; }
  .mirror { z-index: 7; }
  .ch .pin { position: relative; height: auto; min-height: 100svh; }
  .ch { min-height: 125svh; }
  .ch--list::before, .ch--book::before { display: none; }
}
