:root {
  --cream: #f5eee6;
  --cream-2: #efe5db;
  --ink: #171311;
  --ink-2: #4a403b;
  --mute: #8a7b73;
  --rose: #c9847a;
  --line: rgba(23, 19, 17, 0.14);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--rose); }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
  margin-bottom: 14px;
}
.lede { font-size: 17px; color: var(--ink-2); max-width: 44ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.01em;
  border: 1px solid var(--ink); transition: transform .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #2a2320; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(23,19,17,.06); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; margin-right: auto; margin-left: 40px; }
.nav nav a { opacity: .75; } .nav nav a:hover { opacity: 1; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.logo span { color: var(--rose); }

/* ---------- scroll stage ---------- */
.stage { height: 640vh; position: relative; }
.stage-viewport {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  background: var(--cream);
}
.portrait {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; /* resized to the full image by layout() */
  will-change: transform, opacity; transform-origin: 50% 40%;
}
.portrait-svg, .portrait-photo { width: 100%; height: 100%; display: block; object-fit: cover; }
.lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.lash-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.leads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.leads .lead { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: 1; }
.leads .dot { fill: var(--ink); }
.leads .ring { fill: none; stroke: var(--ink); stroke-width: 1; }
.callouts { position: absolute; inset: 0; pointer-events: none; }
.callout {
  position: absolute; top: 0; left: 0; width: 250px; visibility: hidden; opacity: 0;
  padding: 14px 16px 15px; border-radius: 14px;
  background: rgba(255, 252, 249, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: 0 12px 40px -18px rgba(23,19,17,.35);
  will-change: transform, opacity;
}
.callout h4 { margin: 0 0 4px; font: 600 13px/1.3 var(--sans); letter-spacing: 0.02em; }
.callout p { font-size: 13px; line-height: 1.45; color: var(--ink-2); }

.hero-copy {
  position: absolute; left: 7vw; top: 50%; transform: translateY(-50%);
  max-width: 460px; will-change: transform, opacity;
}
.hero-copy h1 { font-size: clamp(64px, 8.4vw, 124px); line-height: 0.92; margin: 0 0 22px; }
.scroll-cue {
  position: absolute; left: 7vw; bottom: 30px;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.cue-line { width: 1px; height: 36px; background: var(--ink); opacity: .5; animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.end-copy {
  position: absolute; left: 50%; bottom: 9vh; transform: translateX(-50%);
  text-align: center; opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.end-copy h2 { font-size: clamp(40px, 5vw, 72px); line-height: 0.98; margin-bottom: 12px; }
.end-copy .lede { margin: 0 auto 18px; }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.wrap { width: min(1160px, 100% - 56px); margin: 0 auto; }
.section h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; max-width: 16ch; margin-bottom: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(23,19,17,.5); }
.card.is-featured { background: var(--cream-2); }
.badge { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.lash-art { color: var(--ink); margin: 6px 0 10px; }
.lash-art svg { width: 100%; height: auto; }
.card h3 { font-size: 30px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-family: var(--serif); font-size: 24px; }

.how { background: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; }
.num { font-size: 12px; letter-spacing: .14em; color: var(--mute); display: block; margin-bottom: 14px; }
.steps h3 { font-size: 34px; margin-bottom: 10px; }
.steps p { color: var(--ink-2); }

.quote { margin: 0; padding: 28px 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.quote p { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin-bottom: 18px; }
.quote cite { font-style: normal; font-size: 13px; color: var(--mute); letter-spacing: .04em; }

.closing { background: var(--ink); color: var(--cream); padding: 150px 0; }
.closing-inner { text-align: center; }
.closing h2 { max-width: none; margin: 0 auto 32px; font-size: clamp(44px, 6.4vw, 92px); }
.closing .btn-ink { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.closing .btn-ink:hover { background: #fff; }
.fine { margin-top: 26px; font-size: 13px; opacity: .55; }

.footer { display: flex; align-items: center; justify-content: space-between; padding: 30px 28px; font-size: 13px; color: var(--mute); gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .nav { padding: 14px 16px; }
  .nav nav { display: none; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .wrap { width: calc(100% - 32px); }
  .hero-copy {
    left: 16px; right: 16px; top: auto; bottom: 0; transform: none; max-width: none;
    padding: 120px 0 72px;
    background: linear-gradient(to top, var(--cream) 55%, rgba(245,238,230,0));
  }
  .hero-copy h1 { font-size: clamp(56px, 17vw, 88px); }
  .scroll-cue { left: 16px; bottom: 18px; }
  .callout { width: calc(100% - 32px); }
  .end-copy { bottom: 7vh; width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue-line { animation: none; }
}

/* ---------- real-photo mode ---------- */
.has-photo .portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(245,238,230,0.92) 0%, rgba(245,238,230,0.75) 28%, rgba(245,238,230,0) 55%);
}
@media (max-width: 900px) {
  .has-photo .portrait::after {
    background: linear-gradient(to top, rgba(245,238,230,0.95) 0%, rgba(245,238,230,0.7) 32%, rgba(245,238,230,0) 60%);
  }
}

/* ---------- calibrate panel (?calibrate) ---------- */
.calibrate {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 20px 50px -20px rgba(23,19,17,.4); font-size: 13px;
}
.calibrate b { display: block; margin-bottom: 6px; }
.calibrate pre { background: var(--cream); padding: 10px; border-radius: 8px; font-size: 11px; white-space: pre-wrap; min-height: 20px; margin: 10px 0; }
.calibrate button { margin-right: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 12px var(--sans); cursor: pointer; }
.calibrate button.reset { background: transparent; color: var(--ink); }
body:has(.calibrate) .stage { cursor: crosshair; }
