/* ============================================================================
   STUDIO YOU — shared stylesheet (multipage site)
   ----------------------------------------------------------------------------
   HOW TO EDIT THE COMMON THINGS
   • Phone number: search this file for 6264345029 (tel:/sms: links) and
     "(626) 434-5029" (display text) — those live in the HTML, not here.
   • Instagram: search for thestudioyou in the HTML.
   • Hours/location copy: plain text in the HTML (Book page).
   • Services shown in the Services section and in the booking/house-call
     forms are fetched live from /api/booking/services and
     /api/house-call/services — edit prices/names in Supabase, not here.
   ============================================================================ */

:root{
  /* Palette — near-black ink, warm off-white, neutral grays, a single muted
     warm-stone accent used sparingly for active/selected states only. No
     gold, no bright accent color. */
  --paper:#F7F5F1;
  --paper-2:#EFECE6;
  --ink:#14130F;
  --ink-70:#524E45;
  --ink-50:#86816F;
  --line:rgba(20,19,15,.13);
  --noir:#14130F;
  --noir-2:#1C1A15;
  --on-noir:#F3F1EA;
  --on-noir-60:rgba(243,241,234,.6);
  --line-dark:rgba(243,241,234,.15);
  --accent:#9C9480;

  --font-display:"Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --font-body:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --font-ui:"Inter Tight",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;

  --ease:cubic-bezier(.2,.7,.2,1);
  --maxw:1180px;
  --gutter:clamp(1.25rem,5vw,3.75rem);
  --section:clamp(5rem,13vh,10rem);

  /* Elegant SVG photo placeholder (reused everywhere) */
  --ph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='1000'%3E%3Crect width='800' height='1000' fill='%231c1a15'/%3E%3Crect x='22' y='22' width='756' height='956' fill='none' stroke='%233a362c'/%3E%3Ctext x='400' y='486' text-anchor='middle' font-family='Arial,sans-serif' font-weight='600' font-size='38' letter-spacing='6' fill='%239c9480'%3ESTUDIO YOU%3C/text%3E%3Ctext x='400' y='524' text-anchor='middle' font-family='Arial,sans-serif' font-size='15' letter-spacing='4' fill='%23756f5e'%3EPHOTO PLACEHOLDER%3C/text%3E%3C/svg%3E");

  /* Subtle film grain for dark sections */
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Reset */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0}
input,textarea,select{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px}
.on-dark :focus-visible{outline-color:var(--on-noir)}

body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  font-weight:400;
  line-height:1.65;
  font-size:clamp(1rem,.97rem + .2vw,1.075rem);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

/* Typography */
h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.08;letter-spacing:-.01em;margin:0}
h1{font-size:clamp(2.3rem,1.6rem + 3vw,3.8rem)}
h2{font-size:clamp(2rem,1.5rem + 2.2vw,3.1rem)}
h3{font-size:clamp(1.3rem,1.1rem + .9vw,1.7rem)}
p{margin:0 0 1em}
.eyebrow{
  font-family:var(--font-body);
  font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;
  color:var(--ink-50);margin:0 0 1.1rem;
  display:inline-flex;align-items:center;gap:.65rem;
}
.eyebrow::before{content:"";width:22px;height:1px;background:currentColor;opacity:.7}
.on-dark .eyebrow{color:var(--on-noir-60)}
.lead{font-size:clamp(1.05rem,1rem + .4vw,1.25rem);color:var(--ink-70);max-width:46ch;line-height:1.6}
.muted{color:var(--ink-70)}
.on-dark{color:var(--on-noir)}
.on-dark .muted,.on-dark .lead{color:var(--on-noir-60)}

/* Layout */
.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:var(--section)}
.rule{height:1px;background:var(--line);border:0;margin:0}
.on-dark .rule{background:var(--line-dark)}
.section__head{max-width:62ch;margin-bottom:clamp(2.5rem,5vw,4rem)}
.section__head.center{max-width:50ch;margin-inline:auto;text-align:center}
.section__head .eyebrow.center,.section__head.center .eyebrow{justify-content:center}

/* Buttons — sharp rectangular corners, not pills; light-on-dark / dark-on-light pairs */
.btn{
  --pad-y:1rem;--pad-x:1.9rem;
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  padding:var(--pad-y) var(--pad-x);
  font-family:var(--font-ui);font-weight:400;font-size:.86rem;
  letter-spacing:.01em;
  border:1px solid transparent;border-radius:0;
  transition:transform .3s var(--ease),background-color .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease),opacity .3s var(--ease);
  will-change:transform;
}
.btn svg{width:17px;height:17px;flex:none}
.btn--solid{background:var(--ink);color:var(--paper)}
.btn--solid:hover{background:#000;transform:translateY(-1px)}
.btn--ghost{border-color:var(--line);color:var(--ink)}
.btn--ghost:hover{border-color:var(--ink);transform:translateY(-1px)}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none!important}
.on-dark .btn--solid{background:var(--paper);color:var(--ink)}
.on-dark .btn--solid:hover{background:#fff;transform:translateY(-1px)}
.on-dark .btn--ghost{border-color:var(--line-dark);color:var(--on-noir)}
.on-dark .btn--ghost:hover{border-color:var(--on-noir)}
.btn--sm{--pad-y:.75rem;--pad-x:1.3rem;font-size:.78rem}

/* Text link with animated underline */
.ulink{position:relative;display:inline-block;padding-bottom:2px}
.ulink::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:left;transition:transform .4s var(--ease)}
.ulink:hover::after{transform:scaleX(1)}

/* Media placeholders */
.media{
  background:var(--ph) center/cover no-repeat,var(--noir);
  border-radius:4px;overflow:hidden;position:relative;
}
.media--portrait{aspect-ratio:4/5}
.media--square{aspect-ratio:1/1}
.media--wide{aspect-ratio:16/10}
.media--tall{aspect-ratio:3/4}

/* ---------- Header ---------- */
.header{
  position:fixed;inset:0 0 auto 0;z-index:60;
  padding-block:1.15rem;
  transition:background-color .5s var(--ease),box-shadow .5s var(--ease),padding .5s var(--ease),color .5s var(--ease);
  color:var(--on-noir);
  opacity:1;
}
.header.scrolled{
  background:rgba(247,245,241,.88);
  -webkit-backdrop-filter:saturate(120%) blur(14px);backdrop-filter:saturate(120%) blur(14px);
  box-shadow:0 1px 0 var(--line);
  color:var(--ink);padding-block:.85rem;
}
.header__row{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.05rem,1rem + .4vw,1.3rem);letter-spacing:.06em;text-transform:uppercase;
  white-space:nowrap;
}
.nav{display:flex;align-items:center;gap:clamp(1.5rem,2.5vw,2.6rem)}
.nav a.navlink{font-family:var(--font-ui);font-size:.84rem;font-weight:400;letter-spacing:.02em;opacity:.82}
.nav a.navlink:hover{opacity:1}
.header .btn--book{
  border:1px solid currentColor;color:inherit;background:transparent;
  padding:.62rem 1.2rem;font-size:.8rem;border-radius:0;
}
.header.scrolled .btn--book{border-color:var(--ink)}
.header .btn--book:hover{background:currentColor}
.header .btn--book:hover span{color:var(--paper)}
.header.scrolled .btn--book:hover span{color:var(--paper)}

/* Mobile menu trigger — a plain text label, not a generic hamburger icon */
.menu-btn{
  display:none;align-items:center;justify-content:center;
  font-family:var(--font-ui);font-size:.82rem;font-weight:400;letter-spacing:.08em;text-transform:uppercase;
  padding:.5rem .2rem;
}
.menu-btn__label{min-width:3.2em;text-align:right}

/* Mobile overlay menu */
.overlay{
  position:fixed;inset:0;z-index:55;background:var(--noir);color:var(--on-noir);
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.3rem;
  padding-inline:var(--gutter);text-align:center;
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .5s var(--ease),transform .5s var(--ease),visibility .5s;
}
body.menu-open .overlay{opacity:1;visibility:visible;transform:none}
.overlay a{font-family:var(--font-display);font-weight:600;font-size:2.1rem;letter-spacing:-.01em;padding:.4rem 1rem}
.overlay .eyebrow{margin-top:2.2rem}
.overlay .ov-contact{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.2rem;margin-top:.8rem}
.overlay .ov-contact a{font-family:var(--font-ui);font-size:.84rem;font-weight:400;letter-spacing:.03em;padding:.4rem .55rem;text-transform:uppercase}

/* ---------- Hero (scroll-scrub) ----------
   Architecture: a tall wrapper (.hero-scrub) holds a position:sticky stage
   pinned to the viewport while the wrapper scrolls underneath it. This is
   pure native scrolling — JS only ever reads scroll position to compute a
   0..1 progress value; it never calls preventDefault() or touches body
   overflow. Scrubbing forward/back is therefore just scrolling in either
   direction, and once the wrapper's scroll range is exhausted the sticky
   stage unpins and scrolls away on its own — there's no "lock" state that
   can get stuck. See render()/heroProgress() in js/hero.js.
   Drawn as a frame sequence on <canvas>, not a seeking <video>: H.264
   random-access seeking proved unreliable for the source clip (confirmed
   via direct canvas pixel sampling), which is exactly why most production
   scroll-scrub implementations use this technique instead of true seeking. */
.hero-scrub{position:relative;height:410vh;background:#0b0a09}
.hero-scrub__stage{
  position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;
  color:var(--on-noir);
}
.hero-scrub__canvas{
  position:absolute;inset:0;width:100%;height:100%;display:block;
  background:#0b0a09 center/cover no-repeat;
}
.hero-scrub__scrim{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(8,7,6,.3) 0%,rgba(8,7,6,.06) 36%,rgba(8,7,6,.1) 58%,rgba(8,7,6,.5) 100%);
}
.hero-scrub::after{content:"";position:absolute;inset:0;background:var(--grain);opacity:.05;mix-blend-mode:soft-light;pointer-events:none;z-index:2}
.hero-scrub__title{
  position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;
  text-align:center;pointer-events:none;padding-inline:var(--gutter);
}
.hero-scrub__title h1{
  margin:0;font-family:var(--font-display);font-weight:600;
  letter-spacing:.03em;line-height:.98;
  font-size:clamp(2.6rem,3vw + 3rem,8rem);color:#FBFAF8;
}
.hero-scrub__final{
  position:absolute;left:0;right:0;bottom:clamp(3rem,9vh,6.5rem);z-index:3;
  display:flex;flex-direction:column;align-items:center;gap:1.7rem;text-align:center;
  padding-inline:var(--gutter);
}
.hero-scrub__sub{
  margin:0;font-family:var(--font-body);font-weight:500;
  font-size:clamp(1rem,.4vw + .9rem,1.2rem);letter-spacing:.01em;color:rgba(251,250,248,.95);
  opacity:0;
}
.hero-scrub__cta{
  opacity:0;pointer-events:none;
  --pad-y:1.15rem;--pad-x:2.6rem;font-size:.92rem;
  box-shadow:0 10px 34px rgba(0,0,0,.28);
}
.hero-scrub__cue{
  position:absolute;left:50%;bottom:1.6rem;transform:translateX(-50%);z-index:3;
  font-family:var(--font-body);font-size:.72rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--on-noir-60);
  display:flex;align-items:center;gap:.7rem;transition:opacity .4s var(--ease);
}
.hero-scrub__cue::before{content:"";width:34px;height:1px;background:var(--on-noir-60);animation:cue 2.4s var(--ease) infinite}
@keyframes cue{0%,100%{transform:scaleX(.4);opacity:.5;transform-origin:left}50%{transform:scaleX(1);opacity:1;transform-origin:left}}

/* Down chevron — only appears once the hero has settled into its final
   state (see hero.js), pointing at the content below. Deliberately small
   and low-opacity so it never competes with the CTA above it. */
.hero-scrub__down{
  position:absolute;left:50%;bottom:1.5rem;transform:translateX(-50%);z-index:3;
  color:var(--on-noir-60);opacity:0;transition:opacity .6s var(--ease);pointer-events:none;
}
.hero-scrub__down.is-visible{opacity:1}
.hero-scrub__down svg{width:20px;height:20px;display:block;animation:hero-down-bob 2.4s var(--ease) infinite}
@keyframes hero-down-bob{0%,100%{transform:translateY(0);opacity:.6}50%{transform:translateY(6px);opacity:1}}

@media(max-width:820px){
  .hero-scrub{height:220vh}
  .hero-scrub__title h1{font-size:clamp(2.1rem,9vw + 1rem,3.8rem)}
  /* The settled final-state CTA used to clear the viewport bottom alone,
     but the fixed Book Now bar (~3.7rem tall: its padding + icon/text row)
     now sits on top of that same space once settled — add its footprint
     plus a bit of breathing room, and the bar's own safe-area inset, on
     top of the original clearance so the two never crowd each other. */
  .hero-scrub__final{bottom:calc(clamp(2.2rem,7vh,4rem) + 4.75rem + env(safe-area-inset-bottom));gap:1.3rem}
  .hero-scrub__cta{--pad-y:1rem;--pad-x:2.1rem;font-size:.86rem}
}

@media(prefers-reduced-motion:reduce){
  .hero-scrub{height:100vh;height:100svh}
  .hero-scrub__down svg{animation:none;opacity:.8}
}

/* ---------- Shared grid ---------- */
.grid-2{display:grid;grid-template-columns:1fr;gap:clamp(2.5rem,5vw,5rem);align-items:center}
@media(min-width:860px){.grid-2{grid-template-columns:1.05fr .95fr}}

/* ---------- Philosophy ---------- */
.philosophy{background:var(--paper-2)}
.philosophy .statement{
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.7rem,1.2rem + 2.4vw,2.9rem);line-height:1.22;letter-spacing:-.01em;max-width:28ch;
}

/* ---------- Approach (Home only) — marquee behind the Philosophy copy ----------
   Stacking, back to front: .approach__marquee (z-index:1, decorative) <
   .approach__content (z-index:2, the real copy). .approach itself clips
   the marquee so it can run edge-to-edge without ever causing horizontal
   page scroll. */
.approach{position:relative;overflow:hidden}
.approach__content{position:relative;z-index:2}

/* One looping row built from two identical, back-to-back halves: animating
   translateX 0 -> -50% moves seamlessly into a visually identical copy of
   itself, so the loop never "jumps". Pure CSS, no JS, no scroll-linking —
   a flat, constant drift. The sitewide prefers-reduced-motion rule
   (bottom of this file) already forces every animation's duration and
   iteration-count down to effectively zero, which lands this one on a
   static frame that — by construction, since both halves are identical —
   looks the same as the resting state.
   Positioned at 68% down the section (not dead-center) so it reads as a
   quiet transition between the main copy above and the link below,
   rather than cutting through the statement/lead text itself. */
.approach__marquee{
  position:absolute;left:0;right:0;top:68%;transform:translateY(-50%);z-index:1;
  display:flex;align-items:center;pointer-events:none;
}
.approach__marquee-track{display:flex;width:max-content;animation:approach-marquee 100s linear infinite}
.approach__marquee-half{
  flex:none;white-space:nowrap;
  font-family:var(--font-display);font-weight:600;letter-spacing:-.01em;
  font-size:clamp(2.8rem,7vw,7.9rem);
  color:var(--ink);opacity:.08;
}
@keyframes approach-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- Learn More link (Home Approach only) ----------
   Generous margin-top gives the marquee above room to read as a graphic
   divider rather than a cramped transition. */
.principles__link{
  display:inline-block;margin-top:clamp(3.5rem,7vw,5.5rem);
  font-family:var(--font-ui);font-size:.82rem;font-weight:500;
  letter-spacing:.06em;text-transform:uppercase;color:var(--ink);
}

/* ---------- Services ---------- */
.services__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1.5rem;margin-bottom:clamp(2.5rem,4vw,4rem)}
.price-list{border-top:1px solid var(--line)}
.price-row{
  display:grid;grid-template-columns:1fr auto;gap:.4rem 2rem;align-items:baseline;
  padding:clamp(1.9rem,3.5vw,2.8rem) 0;border-bottom:1px solid var(--line);
  position:relative;
}
.price-row__name{font-family:var(--font-display);font-size:clamp(1.3rem,1.1rem + 1vw,1.8rem);font-weight:600;letter-spacing:-.005em}
.price-row__desc{grid-column:1/2;color:var(--ink-70);font-size:.96rem;margin-top:.5rem;max-width:52ch}
.price-row__price{
  font-family:var(--font-display);font-size:clamp(1.3rem,1.1rem + 1vw,1.8rem);font-weight:600;
  color:var(--ink);white-space:nowrap;
}
.services__note{margin-top:2.2rem;color:var(--ink-70);font-size:.95rem}

/* ---------- About ---------- */
.about{background:var(--noir);color:var(--on-noir)}
.about .sig{font-family:var(--font-body);font-weight:600;font-size:1.05rem;color:var(--on-noir);margin-top:1.8rem;letter-spacing:.01em}
.about .ig{display:inline-flex;align-items:center;gap:.6rem;margin-top:1.6rem;font-size:.86rem;font-weight:500;letter-spacing:.01em}
.about .ig svg{width:18px;height:18px}

/* ---------- Work teaser (Home) — one dominant image + two stacked ----------
   A fixed aspect-ratio on the row sets the overall box height; both the
   main image and the side column stretch to fill it (default flex
   align-items:stretch), so the two side images split that height evenly.
   No border-radius, no border/shadow/badge — plain sharp-cornered photos.
   max-width:88% (desktop only, cancelled on mobile below) scales the whole
   composition down ~12% so it has more breathing room without shrinking
   any single image to a token size. */
.work-teaser{display:flex;gap:clamp(.6rem,1.2vw,1.05rem);aspect-ratio:4/5;max-width:71%;margin-inline:auto}
.work-teaser__main{flex:0 0 58%;display:block;overflow:hidden}
.work-teaser__side-col{flex:1;display:flex;flex-direction:column;gap:clamp(.6rem,1.2vw,1.05rem)}
.work-teaser__cell{flex:1;display:block;min-height:0;overflow:hidden}
.work-teaser__main img,.work-teaser__cell img{width:100%;height:100%;object-fit:cover;display:block;
  object-position:var(--crop-x,50%) var(--crop-y,50%);transform:scale(var(--crop-zoom,1));
  transform-origin:var(--crop-origin-x,50%) var(--crop-origin-y,50%)}
/* work-01.jpg has a lot of blank wall above the subject at default
   center-crop — a modest zoom + downward recenter brings the haircut
   itself more into frame without touching the source image. */
.work-teaser__main img.crop-work01{transform:scale(1.15);object-position:92% 68%}
/* Homepage-only: the outpainted work-05 has extra generated background
   around the subject, giving a more zoomed-out, balanced frame than the
   source work-05.jpg used on /work/ — default center crop already centers
   the subject well, no extra scale needed. */
.work-teaser__cell img.crop-work05{object-position:center}

@media(max-width:820px){
  .work-teaser{flex-direction:column;aspect-ratio:auto;gap:.6rem;max-width:none}
  .work-teaser__main{flex:none;aspect-ratio:4/5}
  .work-teaser__side-col{flex-direction:column;gap:.6rem}
  .work-teaser__side-col .work-teaser__cell{flex:none;aspect-ratio:4/5}
}

/* ---------- Work page: portfolio grid ----------
   A plain, uniform CSS grid — every cell is the same fixed 3:4 box at
   every breakpoint, just a different column count (4 / 2 / 1). Images lay
   out strictly in source order via normal grid auto-flow; no spanning, no
   masonry/packing logic. No JS, no scroll-driven transforms — normal page
   flow, so there's nothing to hijack. */
.editorial-gallery{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:clamp(12px,1.4vw,18px);
}
.editorial-gallery__cell{
  display:block;padding:0;margin:0;border:0;background:var(--paper-2);
  aspect-ratio:3/4;overflow:hidden;cursor:zoom-in;-webkit-tap-highlight-color:transparent;
}
.editorial-gallery__cell img{
  width:100%;height:100%;object-fit:cover;display:block;
  object-position:var(--crop-x,50%) var(--crop-y,50%);
  transition:transform .5s var(--ease);transform:scale(var(--crop-zoom,1));
  transform-origin:var(--crop-origin-x,50%) var(--crop-origin-y,50%);
}
.editorial-gallery__cell:hover img{transform:scale(calc(var(--crop-zoom,1) * 1.03))}

/* Per-image crop normalization — object-position recenters each photo on
   the haircut itself, --crop-zoom feeds both the resting transform above
   and the hover micro-zoom so they compose instead of the hover rule
   overriding a cropped image back down to a flat 1.03x. Images not
   listed here (already well-filled at default center-crop) are left
   untouched — no source images were modified, crop/scale only. */
.editorial-gallery__cell img.crop-work01{object-position:center 68%;--crop-zoom:1.15}
.editorial-gallery__cell img.crop-work02{object-position:center 66%;--crop-zoom:1.15}
/* work-04.jpg: at this image's native aspect ratio vs. the 3:4 grid cell,
   object-fit:cover already shows the full image width with zero horizontal
   slack — object-position's x component has no effect here, the head was
   actually being pushed left (and partly clipped) by the plain center-
   origin zoom. transform-origin shifts where that same zoom (unchanged)
   pivots from, recentering it without cropping further. */
.editorial-gallery__cell img.crop-work04{object-position:center 72%;--crop-zoom:1.3;transform-origin:0% 50%}
.editorial-gallery__cell img.crop-work07{object-position:center 66%;--crop-zoom:1.2}
.editorial-gallery__cell img.crop-work10{object-position:center 64%;--crop-zoom:1.18}
.editorial-gallery__cell img.crop-work11{object-position:center 58%;--crop-zoom:1.08}

@media(max-width:1024px){
  .editorial-gallery{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .editorial-gallery{grid-template-columns:repeat(2,1fr);gap:10px}
  .editorial-gallery__cell{order:var(--mobile-order,0)}
}
@media(prefers-reduced-motion:reduce){
  .editorial-gallery__cell:hover img{transform:scale(var(--crop-zoom,1))}
}

/* ---------- Lightbox (Recent Cuts viewer) ---------- */
.lightbox{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;
  padding:clamp(1rem,4vw,3rem);
  background:rgba(10,9,7,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  opacity:0;visibility:hidden;transition:opacity .45s var(--ease),visibility .45s}
.lightbox.open{opacity:1;visibility:visible}
.lightbox__img{max-width:min(92vw,1100px);max-height:86vh;object-fit:contain;border-radius:4px;
  opacity:0;transform:scale(.97);transition:opacity .5s var(--ease),transform .5s var(--ease)}
.lightbox.open .lightbox__img{opacity:1;transform:none}
.lightbox__close{position:absolute;top:clamp(1rem,3vw,1.6rem);right:clamp(1rem,3vw,1.6rem);
  width:46px;height:46px;display:flex;align-items:center;justify-content:center;color:var(--on-noir);
  border:1px solid var(--line-dark);border-radius:50%;background:rgba(20,19,15,.35);
  transition:color .3s,border-color .3s,background-color .3s}
.lightbox__close:hover{border-color:var(--on-noir)}
.lightbox__close svg{width:20px;height:20px}
.lightbox__nav{position:absolute;top:50%;transform:translateY(-50%);width:50px;height:50px;
  display:flex;align-items:center;justify-content:center;color:var(--on-noir);
  border:1px solid var(--line-dark);border-radius:50%;background:rgba(20,19,15,.35);
  transition:color .3s,border-color .3s,background-color .3s}
.lightbox__nav:hover{border-color:var(--on-noir);background:rgba(20,19,15,.6)}
.lightbox__nav svg{width:21px;height:21px}
.lightbox__prev{left:clamp(.5rem,2vw,1.6rem)}
.lightbox__next{right:clamp(.5rem,2vw,1.6rem)}
.lightbox__counter{position:absolute;bottom:clamp(1rem,3vw,1.5rem);left:0;right:0;text-align:center;
  color:var(--on-noir-60);font-size:.74rem;letter-spacing:.1em}
@media(max-width:600px){.lightbox__nav{width:42px;height:42px}.lightbox__prev{left:.5rem}.lightbox__next{right:.5rem}}
@media(prefers-reduced-motion:reduce){.lightbox,.lightbox__img{transition:opacity .001ms}.lightbox__img{transform:none}}

/* ---------- Reviews — integrated, not boxed cards ---------- */
.reviews{background:var(--paper)}
/* Work preview -> Kind Words, desktop only: same rationale as the mobile
   override below (both sections' own padding-block stacks into a very
   tall gap) — a proportionally similar reduction, just scaled for the
   larger desktop viewport. Scoped to these two sections' own padding only;
   the shared .section{padding-block:var(--section)} rule, every other
   section's spacing, and the mobile override are all untouched. */
@media(min-width:821px){
  .work-preview{padding-bottom:clamp(2.75rem,6vh,4.5rem)}
  .reviews{padding-top:clamp(2.75rem,6vh,4.5rem)}
}
.quotes{display:grid;grid-template-columns:1fr;gap:clamp(2.2rem,4vw,3rem)}
@media(min-width:860px){.quotes{grid-template-columns:repeat(3,1fr);gap:clamp(2.5rem,3vw,3.5rem)}}
.review{display:flex;flex-direction:column;padding-top:clamp(1.8rem,3vw,2.4rem);border-top:1px solid var(--line)}
.review .stars{display:flex;gap:3px;margin-bottom:1.1rem;color:var(--ink)}
.review .stars svg{width:15px;height:15px}
.review__lead{font-family:var(--font-display);font-weight:600;font-size:clamp(1.2rem,1.05rem + .5vw,1.4rem);line-height:1.3;letter-spacing:-.005em;color:var(--ink);margin:.1rem 0 .9rem}
.review__body{position:relative;color:var(--ink-70);font-size:.96rem;line-height:1.7;max-height:64em;overflow:hidden;transition:max-height .55s var(--ease)}
.review__body p{margin:0 0 .75em}
.review__body p:last-child{margin-bottom:0}
.review__body.clamped{max-height:5.4em}
.review__body.clamped::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2.4em;background:linear-gradient(rgba(247,245,241,0),var(--paper));pointer-events:none}
.review__more{align-self:flex-start;margin-top:.6rem;font-family:var(--font-ui);font-size:.78rem;font-weight:400;letter-spacing:.02em;color:var(--ink-50);cursor:pointer;background:none;border:0;padding:.2rem 0}
.review__more:hover{color:var(--ink)}
.review .by{margin-top:auto;padding-top:1.4rem;font-size:.82rem;font-weight:500;color:var(--ink-50)}

/* ---------- Booking form (shared pill/chip/field components) ---------- */
.booking{max-width:720px}
.booking__label{display:block;font-family:var(--font-body);font-size:.86rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--on-noir-60);margin-bottom:1rem}
.booking__step{padding-block:clamp(1.2rem,2.2vw,1.7rem);border-top:1px solid var(--line-dark)}
.booking__step:first-of-type{border-top:0;padding-top:0}
.pillset{display:flex;flex-wrap:wrap;gap:.7rem}
.pill{
  display:flex;align-items:center;gap:.9rem;
  padding:1.05rem 1.5rem;border:1px solid var(--line-dark);border-radius:0;
  font-family:var(--font-ui);font-size:.98rem;font-weight:400;color:var(--on-noir);
  transition:border-color .25s var(--ease),background-color .25s var(--ease);
  background:transparent;
}
.pill:hover{border-color:var(--on-noir-60)}
.pill.is-active{border-color:var(--on-noir);background:rgba(243,241,234,.08)}
.pill__price{color:var(--on-noir-60);font-weight:400}
.pill.is-active .pill__price{color:var(--on-noir)}
.chip{
  padding:.75rem 1.3rem;border:1px solid var(--line-dark);border-radius:0;
  font-family:var(--font-ui);font-size:.9rem;font-weight:400;color:var(--on-noir-60);
  transition:border-color .25s var(--ease),color .25s var(--ease),background-color .25s var(--ease);
}
.chip:hover{border-color:var(--on-noir-60);color:var(--on-noir)}
.chip.is-active{border-color:var(--accent);background:var(--accent);color:var(--noir)}
/* Date picker is a single horizontal strip, not a wrapping cluster — scrolls
   by touch/trackpad/drag, scrollbar hidden cross-browser, selected state and
   click handling untouched (still plain .chip buttons appended by JS). */
.date-strip{position:relative}
.chip-row{
  display:flex;flex-wrap:nowrap;gap:.6rem;margin-bottom:1.1rem;
  overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;padding-right:.2rem;
}
.chip-row::-webkit-scrollbar{display:none}
.chip-row .chip{flex:0 0 auto;white-space:nowrap}
.date-strip::after{
  content:'';position:absolute;top:0;right:0;bottom:1.1rem;width:2.75rem;
  background:linear-gradient(to right, transparent, var(--noir));
  pointer-events:none;
}
/* "More dates" cues — small chevrons shown/hidden by JS based on scroll
   position (right = more dates ahead, left = earlier dates behind).
   Always pointer-events:none so they can never intercept a swipe/drag or
   sit in the way of a chip's click target. */
.date-strip__arrow{
  position:absolute;top:0;bottom:1.1rem;z-index:1;
  display:flex;align-items:center;pointer-events:none;
  opacity:0;transition:opacity .35s var(--ease);
}
.date-strip__arrow.is-visible{opacity:1}
.date-strip__arrow svg{width:15px;height:15px;color:var(--on-noir-60)}
.date-strip__arrow--right{right:0}
.date-strip__arrow--left{left:0}
.date-strip__arrow--left svg{transform:scaleX(-1)}
.pill--time{padding:.85rem 1.3rem;font-size:.92rem}
.booking__fields{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem 1.2rem}
@media(max-width:600px){.booking__fields{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:.5rem}
.field--wide{grid-column:1/-1}
.field span{font-size:.82rem;font-weight:500;color:var(--on-noir-60)}
.field span em{font-style:normal;opacity:.7}
.field input,.field textarea{
  background:transparent;border:0;border-bottom:1px solid var(--line-dark);
  padding:.6rem .1rem;color:var(--on-noir);font-size:1rem;
  font-family:var(--font-ui);
  transition:border-color .25s var(--ease);
}
.field input::placeholder,.field textarea::placeholder{color:var(--on-noir-60)}
.field input:focus,.field textarea:focus{border-color:var(--on-noir);outline:0}
.field textarea{resize:vertical;min-height:4.5em}
/* Validation — reuses the same error red already used by .booking__msg.is-error on this section */
.field--invalid input,.field--invalid textarea{border-color:#E8A2A2}
.field__error{display:block;margin-top:.3rem;font-size:.78rem;color:#E8A2A2}
.step-error{margin-top:.8rem;font-size:.85rem;color:#E8A2A2}
.booking__submit{margin-top:clamp(1.8rem,3vw,2.4rem)}
/* The main booking form's submit is the page's primary action — slightly
   larger and full-width so it reads with more weight than the house-call
   form's (intentionally secondary, .btn--ghost) submit below. Same ink
   color/shape, just more presence. */
#bookingForm .booking__submit{--pad-y:1.15rem;--pad-x:2.4rem;width:100%;font-size:.92rem}
.booking__msg{margin-top:1rem;font-size:.9rem;color:var(--on-noir)}
.booking__msg.is-error{color:#E8A2A2}
.booking__confirmation{padding-block:1rem}
.booking__confirmation h3{margin-bottom:.6rem}
.booking__email-title{display:block;margin-top:2rem;font-size:clamp(1.35rem,3vw,2rem);letter-spacing:.04em;color:var(--on-noir)}
.booking__email-address{font-size:1.06rem;font-weight:600;overflow-wrap:anywhere;margin:.35rem 0 1rem}
.booking__policy{border-top:1px solid rgba(243,241,234,.25);padding-top:1rem;margin:1.5rem 0;font-weight:600}
.booking__calendar-options{display:flex;flex-wrap:wrap;gap:.75rem;margin:0 0 .75rem}
.booking__calendar{margin:0}
.booking__calendar-note{max-width:46rem;margin:0 0 1.25rem;font-size:.88rem}
@media(max-width:600px){
  .booking__calendar-options{flex-direction:column}
  .booking__calendar{width:100%;text-align:center}
}
.manage-page{padding-top:calc(var(--section) + 3rem);min-height:70vh}
.manage-page__content{margin:2rem auto 0}
.manage-page__content .booking__step{margin-top:2.5rem}
.manage-page__content #appointmentDetails{margin:1.5rem 0}

/* ---------- Booking helper area (Book page only) — same-day / off-hours / house-call ----------
   Quieter than the main form (no accent color, no card/shadow/icon), but
   the top rule + extra padding + slightly larger type make it easier to
   notice than the single run-on sentence it replaces. */
.booking__helper{margin-top:clamp(2.4rem,4vw,3.2rem);padding-top:clamp(1.8rem,3.2vw,2.4rem);border-top:1px solid var(--line-dark)}
.booking__helper-q{margin:0 0 .5rem;font-size:1rem;font-weight:600;color:var(--on-noir)}
.booking__helper-q ~ .booking__helper-q{margin-top:1.6rem}
.booking__helper-desc{margin:0 0 .8rem;font-size:.95rem;color:var(--on-noir-60)}
.booking__helper-action{display:inline-block;font-family:var(--font-ui);font-size:.88rem;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--on-noir)}

/* Quiet house-call callout above the form (Book page) — same copy/text
   classes as .booking__helper below so the two read as one consistent
   voice, just a lighter bottom-rule treatment since this sits above the
   primary service selection rather than after the whole form. */
.housecall-callout{margin-bottom:clamp(1.8rem,3vw,2.4rem);padding-bottom:clamp(1.4rem,2.5vw,2rem);border-bottom:1px solid var(--line-dark)}

/* Secondary house-call pathway inside Step 1 — deliberately quieter than
   the service pills above it (smaller type, outline button, no accent
   color) so it reads as a different, auxiliary path rather than a third
   studio service competing with Haircut / Haircut + Eyebrows/Beard. */
.booking__housecall{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 1.5rem;
  margin-top:1.5rem;padding-top:1.4rem;border-top:1px solid var(--line-dark);
}
.booking__housecall-label{margin:0;font-family:var(--font-body);font-size:.9rem;font-weight:600;color:var(--on-noir)}
.booking__housecall-desc{margin:.25rem 0 0;font-family:var(--font-body);font-size:.84rem;color:var(--on-noir-60)}

/* House call section sits on paper, so its form needs the light-mode field look */
.housecall .pill{border-color:var(--line);color:var(--ink)}
.housecall .pill:hover{border-color:var(--ink-50)}
.housecall .pill.is-active{border-color:var(--ink);background:rgba(20,19,15,.04)}
.housecall .field span{color:var(--ink-70)}
.housecall .field input,.housecall .field textarea{border-bottom-color:var(--line);color:var(--ink)}
.housecall .field input:focus,.housecall .field textarea:focus{border-color:var(--ink)}
.housecall .booking__msg{color:var(--ink)}
.housecall .booking__msg.is-error{color:#B3261E}
.housecall .booking__label{color:var(--ink-50)}
.housecall .field--invalid input,.housecall .field--invalid textarea{border-color:#B3261E}
.housecall .field__error,.housecall .step-error{color:#B3261E}

/* ---------- Book / CTA ---------- */
.book{position:relative;background:var(--noir);color:var(--on-noir);overflow:hidden}
.book::after{content:"";position:absolute;inset:0;background:var(--grain);opacity:.05;mix-blend-mode:soft-light;pointer-events:none}
.book .wrap{position:relative;z-index:2}
.book__info{
  display:flex;flex-wrap:wrap;gap:2rem 3.5rem;margin-top:clamp(3rem,5vw,4rem);
  padding-top:clamp(2rem,4vw,2.6rem);border-top:1px solid var(--line-dark);
}
.book__info .k{font-size:.76rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--on-noir-60);margin-bottom:.5rem}
.book__info .v{font-family:var(--font-body);font-weight:500;font-size:1.05rem;color:var(--on-noir)}
.book__info a.v:hover{color:var(--on-noir-60)}

/* ---------- House calls ---------- */
.housecall{background:var(--paper-2)}
/* The left content block (eyebrow/h2/paragraph) is much shorter than the
   form beside it, so the shared .grid-2 align-items:center left it sitting
   noticeably low, centered against the form's full height. Top-align it
   instead and nudge it down slightly so its heading sits roughly level
   with the form's first field group rather than flush with the form's
   very top edge. */
.housecall .grid-2{align-items:start}
.housecall .grid-2 > div:first-child{padding-top:clamp(.5rem,1.5vw,1.25rem)}

/* ---------- What to Expect (Studio page only) — editorial points, not cards ---------- */
.expect{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:clamp(1.75rem,3vw,2.75rem);
  padding-top:clamp(1.5rem,2.5vw,2rem);
}
.expect-item{padding-inline-start:clamp(1.75rem,3vw,2.75rem);border-left:1px solid var(--line)}
.expect-item:first-child{padding-inline-start:0;border-left:0}
.expect-item__title{
  font-family:var(--font-ui);font-size:.8rem;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;color:var(--ink);margin:0 0 .65rem;
}
.expect-item__text{margin:0;font-size:.95rem;color:var(--ink-70);line-height:1.6;max-width:30ch}

@media(max-width:820px){
  .expect{grid-template-columns:1fr;gap:1.6rem}
  .expect-item{padding-inline-start:0;border-left:0;padding-top:1.5rem;border-top:1px solid var(--line)}
  .expect-item:first-child{padding-top:0;border-top:0}
}

/* ---------- Footer ---------- */
.footer{background:var(--noir-2);color:var(--on-noir-60);padding-block:clamp(2.8rem,5vw,3.8rem)}
.footer__row{display:flex;flex-wrap:wrap;gap:1.4rem 2rem;align-items:center;justify-content:space-between}
.footer .brand{color:var(--on-noir)}
.footer a:hover{color:var(--on-noir)}
.footer .small{font-size:.82rem}
.footer .fnav{display:flex;gap:1.5rem;flex-wrap:wrap;font-family:var(--font-ui);font-size:.84rem;font-weight:400}

/* ---------- Sticky mobile Book Now bar ----------
   Single full-width action (Call was removed — redundant with the header's
   own call/text links in the overlay menu, and halving the bar made Book
   Now read as one of two options rather than the primary action it is). */
.mobilebar{
  position:fixed;left:0;right:0;bottom:0;z-index:50;display:none;
  background:var(--noir);
  padding-bottom:env(safe-area-inset-bottom);
  box-shadow:0 -1px 24px rgba(0,0,0,.28);
  transform:translateY(110%);transition:transform .5s var(--ease);
}
.mobilebar.show{transform:none}
.mobilebar a{
  display:flex;align-items:center;justify-content:center;gap:.6rem;
  background:var(--paper);color:var(--ink);
  padding:1.2rem;font-family:var(--font-ui);font-size:.88rem;font-weight:500;letter-spacing:.03em;
}
.mobilebar a svg{width:17px;height:17px}

/* ---------- Reveal animations (soft fade/translate only) ---------- */
[data-reveal],.stagger>*{
  opacity:0;transform:translateY(20px);
  transition:opacity .8s var(--ease),transform .8s var(--ease);
}
[data-reveal].in,.stagger.in>*{opacity:1;transform:none}
.stagger.in>*:nth-child(1){transition-delay:.05s}
.stagger.in>*:nth-child(2){transition-delay:.12s}
.stagger.in>*:nth-child(3){transition-delay:.19s}
.stagger.in>*:nth-child(4){transition-delay:.26s}
.stagger.in>*:nth-child(5){transition-delay:.33s}
.stagger.in>*:nth-child(6){transition-delay:.4s}

/* ---------- Soft reveal-on-scroll (Studio page only) ----------
   A gentler, earlier-triggering variant of the system above: starts
   partly visible (not fully hidden) and lifts only slightly, so sections
   never look empty before the reveal fires. Separate selectors
   (data-reveal-soft / .stagger-soft) so the sitewide [data-reveal]/
   .stagger behavior used by every other page is completely unaffected —
   see js/studio.js for the matching (earlier-threshold) observer. */
[data-reveal-soft],.stagger-soft>*{
  opacity:.25;transform:translateY(10px);
  transition:opacity .8s var(--ease),transform .8s var(--ease);
}
[data-reveal-soft].in,.stagger-soft.in>*{opacity:1;transform:none}
.stagger-soft.in>*:nth-child(1){transition-delay:.05s}
.stagger-soft.in>*:nth-child(2){transition-delay:.12s}
.stagger-soft.in>*:nth-child(3){transition-delay:.19s}
.stagger-soft.in>*:nth-child(4){transition-delay:.26s}
.stagger-soft.in>*:nth-child(5){transition-delay:.33s}
.stagger-soft.in>*:nth-child(6){transition-delay:.4s}

/* Scroll offset so anchors clear the fixed header */
section[id]{scroll-margin-top:84px}

/* Skip link */
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--ink);color:var(--paper);padding:.7rem 1rem;border-radius:0 0 4px 0}
.skip:focus{left:0}

/* Honeypot (spam trap) — deliberately not display:none/visibility:hidden,
   since both are commonly checked by bots before deciding whether to fill
   a field. Positioned off-screen instead (still "visible" to anything
   that only inspects the DOM, not computed styles), combined with
   aria-hidden + tabindex="-1" so sighted/keyboard/screen-reader users
   never encounter it. See js/booking.js and the server-side check in
   api/booking/create.js / api/house-call/request.js. */
.hp{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden}

/* Mobile-only marquee duplicate (see public/index.html) — hidden on
   desktop/tablet, shown in normal flow only below the sitewide mobile
   breakpoint. Same specificity as .approach__marquee itself, so source
   order (this comes later in the file) decides the override. */
.approach__marquee--mobile{display:none}

/* ---------- Responsive ---------- */
@media(max-width:820px){
  .nav .navlink,.header .btn--book{display:none}
  .menu-btn{display:flex}
  .mobilebar{display:grid}
  .hero-scrub__cue{display:none}
  body{padding-bottom:0}
  /* Controlled desktop-only line breaks (several headings/paragraphs use
     these to get an exact, intentional line-wrap on wide screens) — below
     this width they're removed so text wraps naturally instead. */
  br.lb{display:none}

  /* Approach marquee: the desktop version is absolutely positioned at a
     fixed % down the section, tuned for the two-column desktop layout —
     once grid-2 stacks to one column on mobile, that overlay lands on top
     of the stacked copy instead of behind it. Hide the desktop overlay and
     show the in-flow mobile duplicate (already placed after the location
     line, before "Learn more" in the HTML) with deliberate spacing instead. */
  .approach__marquee:not(.approach__marquee--mobile){display:none}
  .approach__marquee--mobile{
    display:flex;position:static;transform:none;
    overflow:hidden;margin:clamp(2rem,7vw,2.75rem) 0;
  }
  /* ~13.6% faster than the shared 100s desktop duration (100s/88s) — a
     small, deliberate bump, not a different animation. prefers-reduced-motion
     (below) still forces every animation-duration to ~0 regardless. */
  .approach__marquee--mobile .approach__marquee-track{animation-duration:88s}

  /* Work preview -> Kind Words: both sections' own padding-block adds up
     to a very tall gap once stacked on mobile (each uses the same vh-based
     --section value, top and bottom). Tighten just this boundary — the
     work-preview section's top padding and the reviews section's bottom
     padding are untouched, so rhythm elsewhere on the page is unaffected. */
  .work-preview{padding-bottom:clamp(2rem,5vh,3rem)}
  .reviews{padding-top:clamp(2rem,5vh,3rem)}
}

/* ---------- Reduced motion ---------- */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  [data-reveal],.stagger>*{opacity:1!important;transform:none!important}
  [data-reveal-soft],.stagger-soft>*{opacity:1!important;transform:none!important}
}
