/* Maren Lash & Brow · concept site by Dani Sostisso
   Direction: the split stage. The right half holds the work; the left half reads like the menu. */

:root {
  --cream: #F3ECE3;
  --paper: #FBF8F4;
  --sand: #E4D6C6;
  --rose: #C99A8B;
  --plum: #4A2A2C;
  --ink: #191512;
  --ink-soft: #4E433C;
  --on-dark: #F3ECE3;
  --on-dark-soft: #D9CCBE;
  --sand-2: #EADFD2;
  --rose-2: #D9B3A6;
  --rose-3: #E4C6BB;
  --paper-hover: #F6EFE7;
  --line: #CDBFAF;

  --display: "Boska", "Iowan Old Style", "Times New Roman", serif;
  --text: "General Sans", "Segoe UI", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  --step-head: clamp(2.125rem, 1.3rem + 3vw, 3.875rem);
  --step-display: clamp(2.375rem, 1.2rem + 3.6vw, 4.5rem);

  --m: clamp(16px, 3.4vw, 56px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 11vw, 180px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
fieldset { border: 0; min-width: 0; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

::selection { background: var(--rose); color: var(--ink); }
html { scrollbar-color: var(--rose) var(--cream); accent-color: var(--ink); caret-color: var(--plum); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.find :focus-visible, .ba :focus-visible, .foot :focus-visible, .work :focus-visible, .reviews :focus-visible { outline-color: var(--paper); }
.find :focus-visible { outline-color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 10; }
.skip:focus { top: 16px; }

/* ---------- buttons and links (square, decided once) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 500 var(--step-body)/1 var(--text);
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--plum); }
.btn--rose { background: var(--rose); color: var(--ink); }
.btn--rose:hover { background: var(--paper); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.btn--wide { width: 100%; }

.link {
  font-weight: 500; text-decoration: underline; text-underline-offset: 0.28em;
  text-decoration-thickness: 2px; text-decoration-color: var(--rose);
  transition: text-decoration-color var(--t-hover) ease, text-underline-offset var(--t-hover) ease;
}
.link:hover { text-decoration-color: currentColor; text-underline-offset: 0.18em; }

/* ---------- bar ---------- */
.bar {
  display: flex; align-items: center; gap: 32px;
  padding: 14px 0;
  background: var(--cream);
  position: relative; z-index: 5;
}
.wordmark {
  font: 400 var(--step-lead)/1 var(--display); letter-spacing: -0.02em; text-decoration: none;
}
.bar__links { display: flex; gap: 22px; margin-left: auto; font-size: var(--step-small); font-weight: 500; }
.bar__links a { white-space: nowrap; text-decoration: none; padding: 10px 0; transition: color var(--t-hover) ease; }
.bar__links a:hover { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: var(--rose); text-decoration-thickness: 2px; }

/* ---------- split stage ---------- */
.stage-wrap { position: relative; }
.stage { display: none; }
.panel-img { margin-bottom: 28px; overflow: hidden; }
.panel-img img { aspect-ratio: 1; object-fit: cover; }

.col { padding: 0 var(--m); }

.hero { padding: 8px 0 72px; }
.hero__title { font-size: var(--step-display); line-height: 0.98; max-width: 16ch; }
.hero__lede { margin-top: 24px; max-width: 40ch; font-size: var(--step-body); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.hero__facts { margin-top: 44px; display: grid; gap: 12px; font-size: var(--step-small); color: var(--ink-soft); }
.hero__facts strong { color: var(--ink); font-weight: 600; }

.menu { padding-bottom: 48px; }
.menu__head { padding: 40px 0 24px; }
.menu__head p { margin-top: 18px; max-width: 46ch; }

.set { padding: 56px 0; }
.set__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.set__top h3 { font-size: var(--step-head); line-height: 1; }
.set__price { font: 400 var(--step-head)/1 var(--display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; }
.set__desc { margin-top: 18px; max-width: 46ch; }
.set__facts { margin: 26px 0 28px; display: grid; gap: 4px; }
.set__facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 12px 16px; background: var(--sand); }
.set__facts div:nth-child(2) { background: var(--sand-2); }
.set__facts dt { font-weight: 600; font-size: var(--step-small); padding-top: 2px; }
.set__facts dd { font-size: var(--step-small); line-height: 1.5; }

@media (min-width: 960px) {
  .stage-wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .col { grid-column: 1; grid-row: 1; padding: 0 clamp(40px, 4.5vw, 80px) 0 var(--m); }
  .stage {
    display: block; grid-column: 2; grid-row: 1;
    position: sticky; top: 0;
    height: 100svh; max-height: 1080px; min-height: 560px;
    overflow: hidden; background: var(--sand);
  }
  .stage__frame { position: absolute; inset: 0; }
  .stage__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06);
    transition: opacity 1.2s var(--ease-soft), transform 2.4s var(--ease-soft);
  }
  .stage__img.is-on { opacity: 1; transform: scale(1); }
  .stage__bar {
    position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 0 24px; background: var(--cream); font-size: var(--step-small); font-weight: 500;
  }
  .stage__shown { transition: opacity var(--t-ui) ease; }
  .panel-img { display: none; }

  .hero {
    min-height: min(calc(100svh - 76px), 900px);
    display: flex; flex-direction: column; justify-content: center;
    padding: 24px 0 64px;
  }
  .set { min-height: min(84svh, 820px); display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- the work (full bleed, ink) ---------- */
.work { background: var(--ink); color: var(--on-dark); padding-bottom: var(--section); }
.work__wide { overflow: hidden; }
.work__wide img { aspect-ratio: 16 / 9; max-height: min(82svh, 860px); object-fit: cover; }
.work__head {
  display: grid; gap: 20px; padding: clamp(56px, 7vw, 112px) var(--m) clamp(40px, 5vw, 72px);
}
.work__head p { max-width: 44ch; color: var(--on-dark-soft); font-size: var(--step-lead); line-height: 1.35; font-family: var(--display); }
.steps { display: grid; gap: 48px; padding: 0 var(--m); }
.step img { aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 24px; transition: transform 900ms var(--ease-soft); }
.step { overflow: hidden; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--on-dark-soft); max-width: 36ch; }
@media (min-width: 760px) {
  .work__head { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--gap); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 56px var(--gap); }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps .step:nth-child(even) { margin-top: 96px; }
}

/* ---------- find your set (rose field) ---------- */
.find {
  background: var(--rose); color: var(--ink);
  padding: var(--section) var(--m);
  display: grid; gap: 48px;
}
.find__intro { margin-top: 18px; max-width: 44ch; }
.quiz { margin-top: 40px; display: grid; gap: 28px; }
.quiz legend { font: 500 var(--step-body)/1.3 var(--text); margin-bottom: 12px; }
.quiz fieldset { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz legend { width: 100%; }
.quiz label { position: relative; cursor: pointer; }
.quiz input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.quiz label span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  background: var(--rose-2); color: var(--ink); font-size: var(--step-small); font-weight: 500;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.quiz label:hover span { background: var(--rose-3); }
.quiz input:checked + span { background: var(--ink); color: var(--paper); }
.quiz label:active span { transform: scale(0.97); }
.quiz input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

.result { background: var(--paper); display: grid; align-self: start; }
.result__img { overflow: hidden; }
.result__img img { aspect-ratio: 1; object-fit: cover; transition: opacity 400ms ease, transform 900ms var(--ease-soft); }
.result.is-changing .result__img img { opacity: 0.25; transform: scale(1.04); }
.result__text { padding: 28px clamp(20px, 3vw, 40px) 36px; }
.result__name { font: 400 var(--step-head)/1 var(--display); letter-spacing: -0.02em; }
.result__meta { margin-top: 12px; font-weight: 600; }
.result__why { margin-top: 16px; max-width: 44ch; }
.result__note { margin-top: 10px; color: var(--ink-soft); font-size: var(--step-small); max-width: 46ch; }
.result .btn { margin-top: 24px; }
@media (min-width: 960px) {
  .find { grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
}

/* ---------- before / after (ink) ---------- */
.ba { background: var(--plum); color: var(--on-dark); display: grid; }
.ba__text { padding: var(--section) var(--m) 56px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.ba__text p { max-width: 42ch; color: var(--on-dark-soft); }
.ba__price { font-size: var(--step-lead); font-family: var(--display); color: var(--on-dark) !important; }
.ba__price strong { font-weight: 500; }
.compare { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; aspect-ratio: 1; background: var(--ink); }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--paper);
  pointer-events: none;
}
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: var(--paper);
  transition: transform var(--t-press) var(--ease-out);
}
.compare__arrows { position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%); color: var(--ink); }
.compare:active .compare__handle::after { transform: scale(0.92); }
.compare__tag { position: absolute; bottom: 16px; padding: 8px 14px; background: var(--paper); color: var(--ink); font-size: var(--step-small); font-weight: 600; pointer-events: none; }
.compare__tag--l { left: 16px; }
.compare__tag--r { right: 16px; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 64px; height: 100svh; }
.compare__range:focus-visible ~ .compare__handle { background: var(--rose); }
@media (min-width: 960px) {
  .ba { grid-template-columns: 5fr 6fr; align-items: center; }
  .ba__text { padding: 64px clamp(40px, 5vw, 96px) 64px var(--m); }
  .compare { aspect-ratio: auto; height: min(100svh, 860px); min-height: 560px; }
}

/* ---------- studio ---------- */
.studio { padding-bottom: var(--section); }
.studio__room { overflow: hidden; }
.studio__room img { aspect-ratio: 3 / 2; max-height: min(86svh, 920px); object-fit: cover; }
.studio__letter { display: grid; gap: 40px; padding: clamp(56px, 7vw, 120px) var(--m) 0; }
.studio__portrait { overflow: hidden; }
.studio__portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.letter p { margin-top: 20px; max-width: 48ch; }
.letter h2 { margin-bottom: 12px; max-width: 15ch; }
.letter__sign { font: 400 var(--step-lead)/1.1 var(--display); margin-top: 32px !important; }
.letter__role { font-size: var(--step-small); color: var(--ink-soft); margin-top: 6px !important; }
@media (min-width: 900px) {
  .studio__letter { grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 128px); align-items: center; }
  .studio__portrait { margin-top: calc(-1 * clamp(120px, 14vw, 240px)); position: relative; }
}

/* ---------- guide (sand) ---------- */
.guide { background: var(--sand); padding: var(--section) var(--m); display: grid; gap: 40px; }
.guide__side h2 { max-width: 24ch; }
.guide__lede { margin-top: 20px; max-width: 44ch; font: 400 var(--step-lead)/1.3 var(--display); }
.guide__img { margin-top: 36px; overflow: hidden; }
.guide__img img { aspect-ratio: 4 / 5; object-fit: cover; }
.guide__body { max-width: 64ch; }
.guide__body h3 { margin: 44px 0 14px; }
.guide__body h3:first-child { margin-top: 0; }
.guide__body p { line-height: 1.65; }
.guide__body strong { font-weight: 600; }
@media (min-width: 960px) {
  .guide { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 128px); align-items: start; }
  .guide__img img { max-height: 52svh; aspect-ratio: 3 / 2; object-position: center 30%; }
}

/* ---------- sample reviews ---------- */
.reviews { background: var(--ink); color: var(--on-dark); padding: clamp(72px, 9vw, 140px) var(--m); display: grid; gap: 56px; }
.review blockquote p { font: 400 var(--step-lead)/1.25 var(--display); letter-spacing: -0.01em; max-width: 30ch; }
.review figcaption { margin-top: 18px; color: var(--rose); font-size: var(--step-small); font-weight: 600; }
@media (min-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; gap: var(--gap); } }

/* ---------- faq ---------- */
.faq { padding: var(--section) var(--m); display: grid; gap: 48px; }
.faq__list { margin-top: 32px; display: grid; gap: 6px; }
.faq details { background: var(--paper); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 18px 20px; min-height: 60px; font-weight: 500; font-size: var(--step-body);
  transition: background-color var(--t-hover) ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--paper-hover); }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  transition: transform var(--t-ui) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq details p { padding: 0 20px 22px; max-width: 60ch; }
.faq__pics { position: relative; padding-bottom: 12%; }
.faq__tall { aspect-ratio: 4 / 5; object-fit: cover; }
.faq__sq { position: absolute; right: 0; bottom: 0; width: 40%; aspect-ratio: 1; object-fit: cover; outline: 10px solid var(--cream); }
@media (min-width: 960px) {
  .faq { grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
  .faq__pics { margin-top: 12px; }
  .faq__tall { aspect-ratio: 3 / 4; max-height: 78svh; }
  .faq__sq { left: -18%; right: auto; width: 46%; }
}

/* ---------- visit ---------- */
.visit { background: var(--paper); }
.visit__front { overflow: hidden; }
.visit__front img { aspect-ratio: 4 / 3; max-height: 72svh; object-fit: cover; }
@media (min-width: 760px) { .visit__front img { aspect-ratio: 21 / 9; } }
.rows { font-style: normal; display: grid; }
.row {
  display: block; padding: 22px var(--m) 14px;
  font: 400 var(--step-display)/1 var(--display); letter-spacing: -0.03em;
  text-decoration: none;
}
.row:nth-child(odd) { background: var(--sand); }
.row:nth-child(even) { background: var(--cream); }
a.row { transition: color var(--t-hover) ease, padding-left var(--t-ui) var(--ease-out); }
a.row:hover { color: var(--plum); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; text-decoration-color: var(--rose); }
.visit__notes { display: grid; gap: 32px; padding: clamp(48px, 6vw, 96px) var(--m) var(--section); }
.visit__notes h3 { margin-bottom: 12px; }
.visit__notes p { max-width: 40ch; }
@media (min-width: 860px) { .visit__notes { grid-template-columns: repeat(3, 1fr); gap: var(--gap); } }

/* ---------- book ---------- */
.book { padding: var(--section) var(--m); display: grid; gap: 48px; background: var(--cream); }
.book__text p { margin-top: 18px; max-width: 44ch; }
.book__honest { color: var(--ink-soft); font-size: var(--step-small); }
.book__form { display: grid; gap: 10px; background: var(--paper); padding: clamp(24px, 3vw, 44px); align-self: start; }
.book__form label { font-weight: 500; font-size: var(--step-small); margin-top: 10px; }
.book__form input[type="text"], .book__form select {
  font: inherit; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 0;
  min-height: 52px; padding: 0 14px; width: 100%;
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.book__form input[type="text"]:focus, .book__form select:focus { border-color: var(--ink); background: var(--paper); outline: none; }
.book__form .check { display: flex; gap: 12px; align-items: center; margin: 14px 0 12px; font-weight: 400; font-size: var(--step-body); }
.book__form .check input { width: 22px; height: 22px; accent-color: var(--ink); }
@media (min-width: 960px) { .book { grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 128px); } }

/* ---------- footer ---------- */
.foot { display: grid; background: var(--ink); color: var(--on-dark); }
.foot__pic { overflow: hidden; }
.foot__pic img { aspect-ratio: 1; object-fit: cover; object-position: 60% 40%; height: 100%; transform: scale(1.35); transform-origin: 62% 42%; }
.foot__side { padding: clamp(48px, 6vw, 96px) var(--m); display: flex; flex-direction: column; gap: 44px; }
.foot__mark { font: 400 clamp(4rem, 2rem + 8vw, 9rem)/0.85 var(--display); letter-spacing: -0.04em; color: var(--rose); }
.foot__nav { display: grid; gap: 6px; }
.foot__nav a {
  font: 400 var(--step-lead)/1.3 var(--display); text-decoration: none; justify-self: start;
  transition: transform var(--t-ui) var(--ease-out), color var(--t-hover) ease;
}
.foot__nav:hover a { color: var(--on-dark-soft); }
.foot__nav a:hover { color: var(--paper); transform: translateX(12px); }
.foot__info { display: grid; gap: 20px; font-size: var(--step-small); color: var(--on-dark-soft); }
.foot__info a { color: var(--on-dark); }
.foot__concept { display: grid; gap: 20px; justify-items: start; }
.foot__concept p { max-width: 52ch; color: var(--on-dark); }
@media (min-width: 900px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__pic img { aspect-ratio: auto; min-height: 100%; }
  .foot__info { grid-template-columns: 1fr 1fr; }
}

/* ---------- motion helpers (only with JS) ---------- */
@media (hover: hover) {
  .step:hover img { transform: scale(1.04); }
}
@media (max-width: 1199px) {
  .bar__links { display: none; }
  .bar__mobile { margin-left: auto; font-size: var(--step-small); padding: 12px 0; }
}
@media (min-width: 1200px) { .bar__mobile { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .stage__img { transform: none !important; transition: opacity 400ms linear; }
  .step img, .foot__nav a, .btn { transition-property: background-color, color, opacity; }
  .step:hover img { transform: none; }
  .foot__nav a:hover { transform: none; }
}

/* result card sits beside its picture on tablets, shorter on phones */
@media (max-width: 959px) {
  .result__img img { aspect-ratio: 4 / 3; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .result { grid-template-columns: 2fr 3fr; }
  .result__img img { aspect-ratio: auto; height: 100%; }
}
