/* Global Beauty demo. Mobile first: 360px is the design, wider screens get more room. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #fafafa;
  --panel: #f1f0f1;
  --ink: #111111;
  --muted: #575757;
  --line: #dcdadc;
  --line-strong: #8a878a;
  --rose: #a3214f;        /* the one accent: small things only */
  --on-ink: #fafafa;
  --error: #b42318;
  --ok: #1d6b3a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 14px 30px -12px rgb(0 0 0 / 0.22);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0d10;
    --panel: #1a171b;
    --ink: #f2eff1;
    --muted: #b3abb0;
    --line: #2f2a30;
    --line-strong: #6f6870;
    --rose: #f29abd;
    --on-ink: #0f0d10;
    --error: #ff8a80;
    --ok: #7fd6a0;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 18px 40px -14px rgb(0 0 0 / 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: clip;
  padding-bottom: 76px;   /* room for the phone call bar */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0 0 0.5em; }
h2 { font-size: clamp(2.1rem, 8vw, 4rem); letter-spacing: -0.01em; }
h2 em, h1 em { font-style: italic; font-weight: 400; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--on-ink); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 8px; }

.demo-banner {
  margin: 0;
  padding: 7px var(--gutter);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  max-width: 1180px;
  margin: 0 auto;
}
.wordmark { font-family: var(--display); font-size: 1.7rem; line-height: 1; text-decoration: none; display: flex; flex-direction: column; }
.wordmark span { font-style: italic; font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.call-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  transition: background-color 180ms, color 180ms, transform 120ms;
}
.call-pill:hover { background: var(--ink); color: var(--on-ink); }
.call-pill:active { transform: scale(0.96); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 2px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink);
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 120ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--rose); border-color: var(--rose); color: var(--on-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--panel); color: var(--ink); }

/* --- Hero --------------------------------------------------------------- */
.hero { max-width: 1180px; margin: 0 auto; padding: 10px var(--gutter) 40px; overflow-x: clip; }
.hero-title { font-size: clamp(2.45rem, 10.6vw, 4.9rem); line-height: 0.98; letter-spacing: -0.015em; margin-bottom: 18px; }
.hero-title em { display: block; color: var(--rose); }
.hero-lede { font-size: 1.08rem; max-width: 34ch; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hero-meta { font-size: 15px; color: var(--muted); margin: 0; }
.stars { color: var(--rose); letter-spacing: 1px; }
.sep { margin: 0 4px; }
.open-now.is-open::before, .open-now.is-closed::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: 1px; background: var(--ok);
}
.open-now.is-closed::before { background: var(--line-strong); }

.lash-panel { margin-top: -18px; }
.stage { position: relative; aspect-ratio: 3.75 / 1.95; width: 122%; margin: 0 -11%; pointer-events: none; }
.stage .lashes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity 600ms; }
.stage .lid { fill: none; stroke: var(--ink); stroke-width: 0.012; stroke-linecap: round; }
.stage .fibres { fill: var(--ink); }
.stage .hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms; }
.stage.has-3d .hero-3d { opacity: 1; }
.stage.has-3d .lashes { visibility: hidden; animation: none !important; transition: visibility 0s 600ms; }

@media (prefers-reduced-motion: no-preference) {
  /* The lashes rise into place once on arrival (under 2 seconds, no pause needed). */
  .stage .lashes { transform-origin: 50% 88%; animation: lash-grow 1.7s var(--ease) 0.15s both; }
  /* Then a slow breath, only once script.js has shown the pause button. */
  .hero.motion-on .stage .lashes { animation: lash-grow 1.7s var(--ease) 0.15s both, lash-breathe 6s ease-in-out 2s infinite; }
  .hero.is-offscreen .stage .lashes { animation-play-state: paused; }
  /* Paused: a still lash line, fully grown. */
  .hero.is-paused .stage .lashes { animation: none; }
}
@keyframes lash-grow {
  from { transform: translateY(6%) scaleY(0.3); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes lash-breathe {
  0%, 100% { transform: none; }
  50% { transform: rotate(-0.8deg) scaleY(1.03); }
}

.sets { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.sets legend { font-family: var(--display); font-style: italic; font-size: 1.45rem; padding: 0; margin-bottom: 10px; }
.sets legend span { display: block; font: 15px/1.4 var(--sans); color: var(--muted); font-style: normal; margin-top: 2px; }
.set-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.set-options label { position: relative; display: block; }
.set-options input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.set-options span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 2px;
  font-size: 15px; line-height: 1.2;
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 120ms var(--ease);
}
.set-options label:hover span { border-color: var(--ink); }
.set-options label:active span { transform: scale(0.96); }
.set-options input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.set-options input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 2px; }
.set-readout { margin-top: 16px; min-height: 7.4em; }
.set-price { font-family: var(--display); font-size: 1.7rem; line-height: 1.15; margin: 0 0 4px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.set-price strong { font-weight: 500; }
.set-infill { margin: 6px 0 4px; font-weight: 600; font-size: 16px; }
.set-about { color: var(--muted); font-size: 16px; margin: 0; }

.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font: 600 14px/1 var(--sans); cursor: pointer;
  transition: border-color 180ms, transform 120ms;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { border-color: var(--ink); }
.motion-toggle:active { transform: scale(0.96); }
.motion-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-icon { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* --- Sections ----------------------------------------------------------- */
.section { padding: 64px 0; border-top: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 800px; }
.example-note { font-size: 14px; color: var(--muted); border-left: 2px solid var(--rose); padding-left: 10px; margin-top: 12px; }
.small { font-size: 14px; color: var(--muted); }

/* Close-up: a small frame that opens out to the full photo (scene 1). */
.closeup { border-top: 0; padding-top: 24px; }
.closeup h2 { max-width: 14ch; }
.closeup-frame { margin: 8px auto 0; max-width: 780px; padding: 0 var(--gutter); }
.closeup-frame img { width: 100%; border-radius: 2px; }
.closeup-frame figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.scenes-on .closeup-frame img { transition: clip-path 1.2s var(--ease), transform 1.4s var(--ease); }
.scenes-on .closeup-frame:not(.is-in) img { clip-path: inset(22% 34% 22% 34% round 999px); transform: scale(1.12); }
/* Where the browser can tie it to the scroll, the frame opens as you scroll
   towards it, so you see it happen (Chrome, Edge, Safari). Others get the
   class-based version above. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .closeup-frame img { animation: open-out linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes open-out {
  from { clip-path: inset(20% 32% 20% 32% round 999px); transform: scale(1.18); }
  to { clip-path: inset(0 0 0 0 round 2px); transform: none; }
}

/* Prices: each line steps in (scene 2). */
.prices-head p { color: var(--muted); max-width: 52ch; }
.price-groups { display: grid; gap: 28px; margin-top: 28px; }
.price-group h3 { margin-top: 26px; }
.price-group h3:first-child { margin-top: 0; }
.price-group h3 span { display: block; font: 15px/1.4 var(--sans); color: var(--muted); margin-top: 4px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list a {
  display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 0;
  text-decoration: none; border-bottom: 1px solid var(--line);
  transition: color 160ms, padding-left 200ms var(--ease);
}
.price-list a:hover, .price-list a:focus-visible { color: var(--rose); padding-left: 6px; }
.p-dots { flex: 1; }
.p-price { font-weight: 600; white-space: nowrap; }
.p-price small { font-weight: 400; color: var(--muted); font-size: 14px; }
.price-foot { color: var(--muted); font-size: 15px; margin-top: 24px; }
.scenes-on [data-scene="steps"] li { transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.scenes-on [data-scene="steps"]:not(.is-in) li { opacity: 0; transform: translateY(12px); }

/* Work photos: cards with real perspective (Tier 1). */
.work-row { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); perspective: 1000px; }
.work-card p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.card-3d {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 260ms var(--ease), box-shadow 260ms;
  transform-style: preserve-3d;
}
.work-card img { border-radius: 2px; box-shadow: var(--shadow); width: 100%; }
.work-card:hover { --lift: 1; }

/* First visit + Ask Jess (pitch fix 3) */
.two-col { display: grid; gap: 40px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -6px; font: italic 400 2.3rem/1 var(--display); color: var(--rose); }
.ask-form, .book-form { background: var(--panel); padding: 22px 18px; border-radius: 2px; }
.ask-form h3 { margin-bottom: 6px; }
.field { margin-bottom: 16px; border: 0; padding: 0; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--paper); color: var(--ink); font: 17px/1.4 var(--sans);
  transition: border-color 160ms, box-shadow 160ms;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 45%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field.is-valid input, .field.is-valid textarea { border-color: var(--ok); }
.field-msg { font-size: 14px; color: var(--error); margin: 6px 0 0; min-height: 0; }
.field-msg:empty { display: none; }
.form-done { margin-top: 16px; border-left: 3px solid var(--rose); padding: 4px 0 4px 12px; }
.form-done p { margin: 0 0 6px; }

/* Reviews: the count runs up and the quotes lift in (scene 3). */
.reviews h2 .count { font-variant-numeric: lining-nums tabular-nums; }
.quotes { display: grid; gap: 22px; margin-top: 26px; perspective: 1200px; }
.quote { margin: 0; padding: 22px 20px; background: var(--panel); border-radius: 2px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 12px; }
.quote blockquote p { margin: 0; }
.quote figcaption { font-size: 15px; color: var(--muted); font-weight: 600; }
.review-source { color: var(--muted); font-size: 15px; margin-top: 22px; }
.scenes-on [data-scene="lift"] .quote { transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
.scenes-on [data-scene="lift"] .quote:nth-child(2) { transition-delay: 90ms; }
.scenes-on [data-scene="lift"] .quote:nth-child(3) { transition-delay: 180ms; }
.scenes-on [data-scene="lift"] .quote:nth-child(4) { transition-delay: 270ms; }
.scenes-on [data-scene="lift"]:not(.is-in) .quote { opacity: 0; transform: perspective(900px) translateY(30px) rotateX(10deg); }

/* Visit */
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: " · today"; color: var(--rose); font-weight: 600; }
.open-now-lg { font-weight: 600; }
address { font-style: normal; font-size: 1.1rem; margin-bottom: 12px; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; }
.site-footer a[href^="tel"] { white-space: nowrap; }
.foot-name { font-family: var(--display); font-size: 1.8rem; margin-bottom: 8px; }
.foot-name span { font-style: italic; font-weight: 400; font-size: 1rem; color: var(--muted); }

/* Phone call bar: steps aside while the hero's own call button is on screen. */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-top: 1px solid var(--line);
  transition: transform 260ms var(--ease);
}
.call-bar.is-tucked { transform: translateY(110%); }

@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .set-options { grid-template-columns: repeat(6, auto); }
  .set-options span { padding: 6px 14px; }
  .quotes { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .hero-title { font-size: clamp(3rem, 5.4vw, 4.6rem); }
  .hero-title em { white-space: nowrap; }
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 34px; padding-bottom: 72px; min-height: min(760px, calc(100vh - 110px)); }
  .lash-panel { margin-top: 0; }
  .stage { width: 118%; margin: -40px -18% -10px 0; }
  .set-options { grid-template-columns: repeat(3, 1fr); }
  .price-groups { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .closeup h2 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
