/* Marlowe Hair Studio — demo site. Direction: the pinned poster (seed 1233754313). Swatches are drawn, archive plates are credited. */
:root {
  --bg: #E2EBE4;        /* the salon's mint walls */
  --paper: #F6F4EF;
  --ink: #1B1A18;
  --muted: #474B46;
  --copper: #A9461F;    /* the action */
  --honey: #E6C68F;
  --espresso: #4A2E22;
  --mint: #CFDFD2;

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-text: "EB Garamond", Georgia, serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.125rem, 1.07rem + 0.25vw, 1.3125rem);
  --step-lead: clamp(1.375rem, 1.15rem + 0.9vw, 2.125rem);
  --step-head: clamp(3rem, 1.6rem + 5vw, 6.5rem);
  --step-display: clamp(4.5rem, 1rem + 13vw, 15rem);

  --margin: clamp(1rem, 2.4vw, 2rem);
  --section: clamp(6rem, 12vw, 12rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
::selection { background: var(--copper); color: #fff; }
p { max-width: 62ch; text-wrap: pretty; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--paper); padding: 0.7rem 1rem; }
.skip:focus { top: 12px; }

h1, h2, .head, .team-h, .verb-word, .foot-name, .ticket-price, .wordmark { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.88; }
.head { font-size: var(--step-head); text-wrap: balance; }
h3 { font-weight: 500; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.01em; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

.button, .bar { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--copper); color: #fff; font-weight: 500; text-decoration: none; border-radius: var(--radius); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover, .bar:hover { background: #8E3816; }
.button:active, .bar:active { transform: scale(0.97); }
.button-sm { min-height: 44px; padding: 0 1.1rem; }

/* ---------- hero: a sentence split by a frame ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1fr minmax(0, 36vw) 1fr; grid-template-rows: auto 1fr auto; column-gap: 2vw; padding: 1rem var(--margin) 2rem; overflow: hidden; }
.nav { grid-column: 1 / -1; grid-row: 1; align-self: start; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--step-small); position: relative; z-index: 2; }
.wordmark { font-size: var(--step-lead); text-decoration: none; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links .link { padding: 0.7rem 0; }
.split { display: contents; }
.split span { grid-row: 2; align-self: center; font-size: var(--step-head); line-height: 0.88; position: relative; z-index: 2; }
.split-a { grid-column: 1; justify-self: start; max-width: 6.2em; }
.split-b { grid-column: 3; justify-self: end; text-align: right; max-width: 6.2em; }
.reel { grid-column: 2; grid-row: 1 / 4; align-self: stretch; position: relative; overflow: hidden; margin-block: -1rem -2rem; }
.reel-track { position: absolute; left: 0; right: 0; top: 50%; display: grid; gap: 24px; transition: transform 1.1s var(--ease-in-out); }
.frame { aspect-ratio: 16 / 11; background: var(--paper); display: grid; grid-template-rows: 1fr auto; }
.frame svg { width: 100%; height: 100%; }
.frame figcaption { padding: 0.5rem 0.9rem 0.7rem; font-size: var(--step-small); }
.frame[data-shade="copper"] { background: #F1E3D6; }
.frame[data-shade="brunette"] { background: #EAE3DA; }
.frame[data-shade="curls"] { background: var(--mint); }
.reel-pause { position: absolute; right: 0; bottom: 2rem; z-index: 3; min-height: 44px; padding: 0 1rem; background: var(--paper); font-size: var(--step-small); transition: transform var(--t-press) var(--ease-out); }
.reel-pause:active { transform: scale(0.95); }
.hero-copy { grid-column: 1; grid-row: 3; align-self: end; max-width: 30ch; font-size: var(--step-body); position: relative; z-index: 2; }

/* ---------- point of view: pinned sentence, plates pass ---------- */
.pov { position: relative; padding-bottom: 20svh; }
.pov-pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.pov-line { width: min(40vw, 36rem); font-size: var(--step-lead); line-height: 1.2; text-align: center; }
.pov-pic { position: relative; z-index: 1; display: grid; gap: 0.5rem; }
.pov-pic figcaption { font-size: var(--step-small); color: var(--muted); }
.pov-1 { width: 22vw; margin: -60svh 0 0 5vw; }
.pov-2 { width: 26vw; margin: 30svh 0 0 auto; margin-right: var(--margin); }
.pov-3 { width: 18vw; margin: -10svh 0 0 8vw; }

/* ---------- week eight ---------- */
.week { background: var(--paper); padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.week-text { grid-column: 1 / 7; display: grid; gap: 1.75rem; }
.week-control { display: grid; gap: 0.75rem; max-width: 34rem; padding: 1.5rem; background: var(--bg); }
.week-control label { font-weight: 500; }
.week-control output { font-weight: 500; color: var(--copper); font-variant-numeric: tabular-nums; }
.week-control input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
.week-control input::-webkit-slider-runnable-track { height: 8px; background: var(--mint); }
.week-control input::-moz-range-track { height: 8px; background: var(--mint); }
.week-control input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--copper); transition: transform var(--t-press) var(--ease-out); }
.week-control input::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--copper); }
.week-control input:active::-webkit-slider-thumb { transform: scale(1.15); }
.week-note { min-height: 4.4em; }
.week-swatches { grid-column: 8 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 2rem); }
.week-swatches figure { display: grid; gap: 0.6rem; }
.week-swatches figcaption { font-size: var(--step-small); text-align: center; }
.tress-single { width: 100%; height: auto; aspect-ratio: 220 / 520; }

/* ---------- prices ---------- */
.prices { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); row-gap: 4rem; }
.prices > .head { grid-column: 1 / 4; }
.price-cols { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; }
.group h3 { margin-bottom: 1.25rem; }
.group ul { display: grid; gap: 0.8rem; }
.group li { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums lining-nums; }
.price-note { margin-top: 1.5rem; font-size: var(--step-small); color: var(--muted); }

/* the consultation ticket */
.ticket { --notch: 28px; grid-column: 3 / 12; position: relative; display: grid; grid-template-columns: 7fr 3fr; background: var(--ink); color: var(--paper); min-height: 300px; }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 70%; width: var(--notch); height: var(--notch); margin-left: calc(var(--notch) / -2); border-radius: 50%; background: var(--bg); }
.ticket::before { top: calc(var(--notch) / -2); }
.ticket::after { bottom: calc(var(--notch) / -2); }
.ticket-main { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='14'%3E%3Ccircle cx='3' cy='7' r='3' fill='%23E2EBE4'/%3E%3C/svg%3E") right center / 6px 14px repeat-y; }
.ticket-title { font-size: var(--step-lead); max-width: 18ch; }
.ticket-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2rem; font-size: var(--step-small); }
.ticket-stub { padding: 40px 28px; display: grid; align-content: center; justify-items: stretch; gap: 1.5rem; text-align: center; }
.ticket-price { font-size: var(--step-head); color: var(--honey); }
.ticket .bar { min-height: 56px; }

/* ---------- team: pinned title, swatches pass ---------- */
.team { position: relative; padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); row-gap: 8svh; }
.team-pin { grid-column: 1 / 7; grid-row: 1 / 3; align-self: start; position: sticky; top: 0; height: 100svh; display: grid; align-items: center; }
.team-h { font-size: var(--step-display); line-height: 0.85; color: var(--ink); letter-spacing: -0.02em; max-width: 4em; }
.chair { position: relative; z-index: 1; width: 100%; display: grid; gap: 0.35rem; align-content: start; }
.chair .tress-portrait { width: 70%; height: auto; aspect-ratio: 220 / 520; background: var(--paper); padding: 8% 10% 4%; margin-bottom: 0.6rem; }
.chair p { font-size: var(--step-small); max-width: 30ch; }
.chair .role { color: var(--muted); }
.chair-1 { grid-column: 7 / 10; grid-row: 1; }
.chair-2 { grid-column: 10 / 13; grid-row: 1; margin-top: 30svh; }
.chair-3 { grid-column: 7 / 10; grid-row: 2; }
.chair-4 { grid-column: 10 / 13; grid-row: 2; margin-top: 30svh; }

/* ---------- verbs ---------- */
.verb { position: relative; min-height: 60svh; padding: clamp(2rem, 5vw, 4rem) var(--margin) 2rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); align-items: end; }
.verb-word { grid-column: 1 / 9; align-self: start; max-width: none; font-size: var(--step-display); line-height: 0.9; padding-top: 0.06em; letter-spacing: -0.02em; }
.verb:nth-child(even) .verb-word { grid-column: 5 / 13; text-align: right; }
.verb-line { grid-column: 1 / 6; }
.verb:nth-child(odd) .verb-line { grid-column: 7 / 13; justify-self: end; }
.verb-line { max-width: 40ch; margin-top: 3rem; font-size: var(--step-lead); line-height: 1.25; }
.verb-line strong { font-weight: 500; }
.v-talk { background: var(--mint); color: var(--ink); }
.v-mix { background: var(--honey); color: var(--ink); }
.v-cut { background: var(--copper); color: #fff; }
.v-show { background: var(--espresso); color: var(--paper); }

/* ---------- faq: reading text ---------- */
.faq { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); background: var(--paper); }
.faq-side { grid-column: 1 / 4; display: grid; gap: 2rem; align-content: start; }
.faq-h { font-size: var(--step-head); }
.faq-pic { display: grid; gap: 0.5rem; }
.faq-pic figcaption { font-size: var(--step-small); color: var(--muted); }
.faq-text { grid-column: 5 / 13; columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin-bottom: 1.25rem; font-size: var(--step-body); line-height: 1.5; }
.faq-text strong { font-weight: 500; }

/* ---------- book ---------- */
.book { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); row-gap: 3rem; }
.book-info { grid-column: 1 / 6; display: grid; gap: 1.5rem; align-content: start; }
.hours { display: grid; gap: 0.4rem; max-width: 26rem; }
.book-pic { width: min(16rem, 60%); display: grid; gap: 0.5rem; margin-top: 1rem; }
.book-pic img { aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; }
.book-pic figcaption { font-size: var(--step-small); color: var(--muted); }
.hours div { display: flex; justify-content: space-between; gap: 1rem; }
.hours dd { font-variant-numeric: lining-nums; }
.book-form { grid-column: 7 / 13; display: grid; gap: 1.25rem; align-content: start; background: var(--paper); padding: clamp(1.25rem, 3vw, 2.5rem); }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { font-weight: 500; }
.opt, .hint { color: var(--muted); font-weight: 400; font-size: var(--step-small); }
.field input, .field select, .field textarea { width: 100%; min-height: 3.25rem; padding: 0.7rem 0.9rem; background-color: var(--bg); color: var(--ink); border: 0; border-radius: var(--radius); font-size: max(1rem, var(--step-body)); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231B1A18' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { outline: 2px solid #9B2C12; outline-offset: 0; }
.err { color: #8E2A10; font-size: var(--step-small); font-weight: 500; }
.book-form .button { justify-self: start; }
.form-status { min-height: 1.5em; font-weight: 500; }

/* ---------- footer: name first ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 0 var(--margin) 2rem; overflow: hidden; }
.foot-name { font-size: 26.5vw; line-height: 0.74; letter-spacing: -0.03em; margin: 0 -0.02em; color: var(--copper); max-width: none; }
.foot-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); margin-top: 72px; }
.places { grid-column: 1 / 7; display: grid; gap: 0.5rem; font-size: var(--step-lead); line-height: 1.15; }
.places a { color: var(--honey); text-decoration: none; transition: color var(--t-hover) ease; overflow-wrap: anywhere; }
.places a:hover { color: #fff; }
.foot-cols { grid-column: 8 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; font-size: var(--step-small); }
.foot-cols ul { display: grid; gap: 0.4rem; align-content: start; }
.foot-cols a { display: inline-block; padding: 0.3rem 0; }
.credits { margin-top: 4rem; font-size: var(--step-small); max-width: 90ch; }
.legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; font-size: var(--step-small); }
.legal a { padding: 0.3rem 0; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto; row-gap: 1rem; min-height: 0; padding-bottom: 3rem; }
  .nav-links .link:not(:last-of-type) { display: none; }
  .split span { grid-column: 1; font-size: 15vw; max-width: none; }
  .split .split-a { grid-row: 2; }
  .split .split-b { grid-row: 4; }
  .reel { grid-column: 1; grid-row: 3; height: calc((100vw - 2 * var(--margin)) * 11 / 16 + 56px + 3rem); margin: 0; }
  .hero-copy { grid-row: 5; max-width: none; }
  .pov { padding-bottom: 10svh; }
  .pov-line { width: auto; padding: 0 var(--margin); font-size: 1.5rem; }
  .pov { padding: var(--section) 0 0; display: grid; gap: 3rem; }
  .pov-pin { position: static; height: auto; display: block; }
  .pov-1, .pov-2, .pov-3 { margin: 0 var(--margin); }
  .pov-1 { width: 64%; }
  .pov-2 { width: 70%; justify-self: end; }
  .pov-3 { width: 52%; }
  .week-text, .week-swatches { grid-column: 1 / -1; }
  .week-swatches { margin-top: 3rem; }
  .prices > .head, .price-cols, .ticket { grid-column: 1 / -1; }
  .price-cols { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { left: auto; top: auto; bottom: auto; margin: 0; }
  .ticket::before { left: calc(var(--notch) / -2); top: calc(var(--ticket-split, 62%) - var(--notch) / 2); }
  .ticket::after { right: calc(var(--notch) / -2); top: calc(var(--ticket-split, 62%) - var(--notch) / 2); }
  .ticket-main { padding: 28px 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6'%3E%3Ccircle cx='7' cy='3' r='3' fill='%23E2EBE4'/%3E%3C/svg%3E") center bottom / 14px 6px repeat-x; }
  .ticket-lines { grid-template-columns: 1fr; }
  .ticket-stub { padding: 24px; }
  .ticket-price { display: none; }
  .team { row-gap: 3rem; }
  .team-pin { grid-column: 1 / -1; grid-row: auto; position: static; height: auto; }
  .team-h { font-size: 17vw; max-width: none; }
  .chair-1, .chair-2, .chair-3, .chair-4 { grid-column: 1 / -1; grid-row: auto; width: 72%; margin-top: 0; }
  .chair-2, .chair-4 { justify-self: end; }
  .verb { min-height: 60svh; }
  .verb-word, .verb:nth-child(even) .verb-word { grid-column: 1 / -1; font-size: 30vw; }
  .verb-line, .verb:nth-child(even) .verb-line, .verb:nth-child(odd) .verb-line { grid-column: 1 / -1; justify-self: start; font-size: var(--step-body); }
  .verb-line { font-size: 1rem; }
  .faq-side, .faq-text { grid-column: 1 / -1; }
  .faq-pic { width: 60%; }
  .faq-text { columns: 1; margin-top: 2.5rem; }
  .book-info, .book-form { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
  .places, .foot-cols { grid-column: 1 / -1; }
  .foot-cols { margin-top: 2rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(24px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .pov-pic img { transform: scale(1.06); transition: transform 1.6s var(--ease-soft); }
  .js .pov-pic.is-in img { transform: none; }
  .js .chair .tress-portrait { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-in-out); }
  .js .chair.is-in .tress-portrait { clip-path: inset(0); }
  .strand { transition: d 600ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) { .reel-track { transition: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

button, a, summary, input, select, label { touch-action: manipulation; }
:target { scroll-margin-top: 5rem; }
