/* ==========================================================================
   CUTTING CREW BY HARSHANA : MASTER STYLESHEET
   A site built in contrast. Every section flips polarity like a fade.
   ========================================================================== */

:root{
  --black: #000000;
  --black-soft: #0c0c0c;
  --white: #f6f5f1;
  --white-soft: #ece9e2;
  --gray-1: #8a8a86;
  --gray-2: #5a5a57;
  --line-on-black: rgba(246,245,241,0.16);
  --line-on-white: rgba(0,0,0,0.14);

  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Dancing Script', cursive;

  --container: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-pad: clamp(5rem, 11vw, 9rem);

  --ease: cubic-bezier(.16,.84,.44,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);
}

/* ---------------------------------- RESET ---------------------------------- */
*, *::before, *::after{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
html.lenis-on{ scroll-behavior: auto; }
html, body{ overflow-x: hidden; width:100%; }
body{
  /* Fallback only : the real page colour map lives on .page-bg. */
  background: var(--black);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* The native pointer is hidden only once JS confirms the custom cursor is
   live (body.has-cursor) : if the script ever fails, users keep a pointer. */
body.has-cursor, body.has-cursor button, body.has-cursor a{ cursor: none; }
img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; }
button{ font: inherit; background:none; border:none; cursor: pointer; color: inherit; }
input, select, textarea{ font: inherit; }
em{ font-style: normal; font-family: var(--font-script); font-weight: 500; }
::selection{ background: var(--black); color: var(--white); }
.section--white ::selection{ background: var(--black); color: var(--white); }
.section--black ::selection{ background: var(--white); color: var(--black); }

@media (hover: none), (pointer: coarse){
  body, button, a{ cursor: auto; }
}

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.signature{
  display:inline-block; font-family:var(--font-script); font-style:normal; font-weight:500;
  font-size:.9em; line-height:1; letter-spacing:0; text-transform:none; padding-inline:.06em;
}
.section-title .signature{ font-size:.72em; vertical-align:.1em; }

/* ---------------------------------- GRAIN ----------------------------------
   Static tiled noise texture (JS-generated data URI). No blend mode on purpose:
   a blended full-screen layer forces the compositor to repaint the whole
   viewport on every scrolled frame. */
.grain{
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9000; opacity: .55;
  background-repeat: repeat;
}

/* ---------------------------------- BACKDROP + HAIR LAYER ----------------------------------
   Stacking, bottom to top:  page-bg / chapter-bg (0)  ->  hair canvas (1)  ->  main (2).
   The hair used to sit at z-index 540, on top of everything, which is why it
   had to stay faint : it competed with the copy. Behind the text it can be
   much richer while the type stays perfectly crisp. */
.page-bg{
  position: absolute; top: 0; left: 0; width: 100%;
  z-index: 0; pointer-events: none;
}
.chapter-bg{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; background-color: var(--black);
}
.fx-canvas{
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  transition: opacity .4s ease;
}
.fx-canvas canvas{ width:100% !important; height:100% !important; display:block; }
.fx-canvas.is-hidden{ opacity: 0; }

main{ position: relative; z-index: 2; }

/* ---------------------------------- CURSOR ----------------------------------
   Two-tone (white with a dark rim) instead of mix-blend-mode: difference —
   difference cursors mathematically vanish on mid-grey surfaces (the nav bar,
   fade bands, the measure section's black→white scrub). */
.cursor{ position: fixed; top:0; left:0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.cursor.is-active{ opacity: 1; }
.cursor__dot, .cursor__ring{
  position: fixed; top:0; left:0; border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cursor__dot{
  width: 8px; height: 8px; background: var(--white);
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.8);
}
.cursor__ring{
  width: 40px; height: 40px; background: transparent; border: 1.5px solid var(--white);
  box-shadow: 0 0 0 1px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.55);
  transition: width .3s var(--ease), height .3s var(--ease);
}
.cursor__ring::after{
  content:'✂'; position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-size: 15px; color: var(--white);
  text-shadow: 0 0 2px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.6);
  opacity: 0; transform: rotate(-30deg) scale(.4);
  transition: opacity .25s ease, transform .3s var(--ease);
}
.cursor.is-hover .cursor__ring{ width: 70px; height: 70px; }
.cursor.is-hover .cursor__dot{ opacity: 0; }
.cursor.is-cut .cursor__ring::after{ opacity: 1; transform: rotate(0deg) scale(1); }
.cursor.is-cut .cursor__dot{ opacity: 0; }
@media (hover: none), (pointer: coarse){ .cursor{ display:none; } }

/* ---------------------------------- PROGRESS BAR ---------------------------------- */
.progress-bar{
  position: fixed; top:0; left:0; width: 100%; height: 3px; z-index: 8000;
}
.progress-bar span{
  display:block; height: 100%; width: 0%;
  background: var(--white); mix-blend-mode: difference;
}

/* ---------------------------------- SECTION INDEX ---------------------------------- */
.section-index{
  position: fixed; left: clamp(1rem,3vw,2.5rem); bottom: clamp(1rem,3vw,2.5rem);
  z-index: 500; color: var(--white); mix-blend-mode: difference;
  font-family: var(--font-body); font-weight: 700; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase;
  display:flex; align-items:center; gap:.6rem;
  pointer-events:none;
}
.section-index.is-intro{
  top: clamp(6rem,13vh,8rem); bottom:auto;
}
.section-index__num{ font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em; }
@media (max-width: 880px), (max-height: 680px){ .section-index{ display:none; } }

/* ---------------------------------- PRELOADER ---------------------------------- */
.preloader{
  position: fixed; inset:0; z-index: 10000; color: var(--white);
  transition: transform .9s var(--ease), opacity .7s ease;
}
.preloader__half{
  position:absolute; left:0; width:100%; height:50.5%; background: var(--black); z-index:1;
  will-change: transform;
}
.preloader__half--top{ top:0; }
.preloader__half--bottom{ bottom:0; }
.preloader__content{
  position:absolute; inset:0; z-index:2;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 1.4rem;
}
.preloader__mark{ width: 90px; height:90px; border-radius:50%; overflow:hidden; }
.preloader__mark img{ width:100%; height:100%; object-fit:cover; }
.preloader__count{ font-family: var(--font-display); font-size: clamp(1.5rem,4vw,2.5rem); letter-spacing:.05em; }
.preloader__bar{ width: min(260px, 60vw); height:1px; background: var(--line-on-black); }
.preloader__bar span{ display:block; height:100%; width:0%; background: var(--white); }
.preloader__word{
  font-size:.68rem; font-weight:600; letter-spacing:.3em; text-transform:uppercase; opacity:.5;
  min-height: 1.2em;
}
.preloader__blade{
  position:absolute; top:50%; left:0; width:100%; height:2px; z-index:3;
  background: var(--white); box-shadow: 0 0 22px rgba(246,245,241,.9);
  transform: scaleX(0); transform-origin: 0 50%;
}
.preloader.is-done{ transform: translateY(-100%); opacity: 1; pointer-events:none; }
body.is-loading{ overflow: hidden; height: 100vh; }

/* ---------------------------------- BUTTONS ---------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding: 1rem 2rem; border-radius: 999px;
  font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid currentColor; transition: transform .45s var(--ease), background .35s ease, color .35s ease;
  white-space: nowrap;
}
.btn--solid{ background: var(--white); color: var(--black); border-color: var(--white); }
.btn--solid:hover{ background: transparent; color: var(--white); }
.btn--solid-inverse{ background: var(--white); color: var(--black); border-color: var(--white); width:100%; padding: 1.1rem 2rem; }
.btn--solid-inverse:hover{ background: transparent; color: var(--white); }
.btn--outline{ background: transparent; }
.section--white .btn--outline:hover{ background: var(--black); color: var(--white); }
.section--black .btn--outline:hover, .footer .btn--outline:hover{ background: var(--white); color: var(--black); }
.btn--ghost-inverse{ background: var(--white); color: var(--black); border-color: var(--white); padding: .7rem 1.4rem; font-size: .75rem; }

/* ---------------------------------- NAV ---------------------------------- */
.nav{
  position: fixed; top: clamp(.8rem,2vw,1.5rem); left: 50%; transform: translateX(-50%);
  z-index: 700; width: min(1080px, 92vw);
  display:flex; align-items:center; justify-content: space-between; gap: 1.5rem;
  /* No backdrop-filter: the particle canvas animates behind this bar every
     frame, and a live blur forces the compositor to re-blur that whole region
     each time : it was the single biggest cost during scroll. A near-opaque
     fill reads the same at a glance and is essentially free. */
  background: rgba(9,9,9,0.94);
  border: 1px solid rgba(246,245,241,0.12);
  border-radius: 999px; padding: .55rem .6rem .55rem 1rem;
  color: var(--white);
  transition: transform .6s var(--ease), top .4s ease;
}
.nav.nav--hidden{ transform: translateX(-50%) translateY(-140%); }
.nav__brand{ display:flex; align-items:center; gap:.6rem; flex-shrink:0; }
.nav__brand img{ width: 34px; height: 34px; border-radius:50%; object-fit:cover; }
.nav__brand-text{ font-family: var(--font-display); font-size: .85rem; letter-spacing: .06em; }
.nav__links{ display:flex; align-items:center; gap: clamp(1rem,2vw,2rem); font-size: .82rem; font-weight:500; letter-spacing: .02em; }
.nav__links a{ position: relative; opacity: .85; transition: opacity .3s ease; }
.nav__links a:hover{ opacity: 1; }
.nav__links a::after{
  content:''; position:absolute; left:0; bottom:-4px; width:100%; height:1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:hover::after{ transform: scaleX(1); transform-origin: left; }
.nav__burger{ display:none; flex-direction:column; gap:5px; width: 40px; height:40px; align-items:center; justify-content:center; }
.nav__burger span{ width: 20px; height:1.5px; background: var(--white); transition: transform .35s var(--ease), opacity .35s ease; }

@media (max-width: 880px){
  .nav__links{ display:none; }
  .nav__burger{ display:flex; }
}
@media (max-width: 560px){
  .nav__cta{ display:none; }
  .nav__brand-text{ display:none; }
}

/* Mobile fullscreen menu */
.mobile-menu{
  position: fixed; inset:0; z-index: 690; background: var(--black); color: var(--white);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 2.5rem;
  transform: translateY(-100%); transition: transform .6s var(--ease);
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-menu nav{ display:flex; flex-direction:column; align-items:center; gap: 1.4rem; }
.mobile-menu nav a{ font-family: var(--font-display); font-size: clamp(1.8rem,8vw,3rem); letter-spacing:.02em; }
.mobile-menu__foot{ position:absolute; bottom: 2rem; display:flex; gap: 2rem; font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; opacity:.6; }

body.menu-open{ overflow:hidden; }
.nav__burger.is-active span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-active span:nth-child(2){ opacity:0; }
.nav__burger.is-active span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------- FLOATING BOOK PILL ---------------------------------- */
.float-book{
  position: fixed; right: clamp(1rem,3vw,2rem); bottom: clamp(1rem,3vw,2rem); z-index: 600;
  background: var(--white); color: var(--black); border-radius: 999px;
  padding: 1rem 1.5rem; font-weight: 700; font-size: .78rem; letter-spacing:.05em; text-transform:uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity:0; transform: translateY(30px) scale(.9); pointer-events:none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.float-book.is-visible{ opacity:1; transform: translateY(0) scale(1); pointer-events:auto; }
@media (max-width: 560px){ .float-book span{ font-size: .68rem; } .float-book{ padding: .85rem 1.1rem; } }

/* ---------------------------------- OPEN STATUS PILL ---------------------------------- */
.open-pill{
  display:inline-flex; align-items:center; gap:.6rem;
  border: 1px solid currentColor; border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.open-pill__clock{
  position:relative; width:14px; height:14px; flex:0 0 14px;
  border:1px solid currentColor; border-radius:50%; opacity:.58;
}
.open-pill__clock::before,
.open-pill__clock::after{
  content:''; position:absolute; left:50%; top:50%; width:1px;
  background:currentColor; transform-origin:50% 100%;
}
.open-pill__clock::before{ height:4px; transform:translate(-50%,-100%); }
.open-pill__clock::after{ height:3px; transform:translate(-50%,-100%) rotate(120deg); }
.visit-info .open-pill{ margin-top: clamp(1.25rem,2.5vw,1.75rem); }

/* ==========================================================================
   SECTION BASE + POLARITY
   ========================================================================== */
.section{ position: relative; padding-block: var(--section-pad); overflow: hidden; }
/* Page-level surfaces are transparent : .page-bg supplies the colour so the
   hair can render between it and the copy. Only the text colour lives here. */
.section--black{ color: var(--white); }
.section--white{ color: var(--black); }

.eyebrow{
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  opacity: .6; margin-bottom: 1.25rem;
}
.section-title{
  font-family: var(--font-display); font-weight:400; line-height: 1.02;
  font-size: clamp(2.1rem, 5.4vw, 4.6rem); letter-spacing: .01em; text-transform: uppercase;
}
.section-head{ margin-bottom: clamp(2.5rem, 6vw, 5rem); }

/* Fade band : the literal "fade" between sections */
/* Height spacers only : .page-bg draws the actual gradient at these positions. */
.fade-band{ position: relative; height: clamp(70px, 12vw, 160px); }

/* ---------------------------------- REVEAL / SPLIT UTIL BASE ---------------------------------- */
[data-reveal]{ opacity: 0; transform: translateY(26px); }
[data-reveal].is-in{ opacity: 1; transform: translateY(0); transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* Hidden baseline for char/word reveals is applied via GSAP (gsap.set) in JS, not here —
   GSAP tracks yPercent as its own transform slot, separate from a CSS-authored transform,
   so the two must not fight over the same element. If JS never runs, these stay visible
   by default (safe fallback). */
.char{ display:inline-block; }
.char > span{ display:inline-block; will-change: transform; }

.word-split .word{ display:inline-block; overflow:hidden; }
.word-split .word > span{ display:inline-block; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{ min-height: 100svh; display:flex; align-items:center; padding-block: clamp(7rem,14vw,10rem) 6rem; }
.hero__ribbon-bg{
  position:absolute; inset: -10% -5%; z-index:0; pointer-events:none;
  display:flex; align-items:center; transform: rotate(-6deg); opacity: .05;
}
.hero.has-particles .hero__ribbon-bg{ opacity: .028; }
.hero__ribbon-track{
  display:flex; white-space:nowrap; font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 9rem); animation: marqueeScroll 40s linear infinite;
}
/* No vignette here: the hero sits above the hair canvas now, so an overlay
   inside it would dim the logo portrait rendering behind. */
.hero__inner{ position: relative; z-index:2; width:100%; padding-inline: var(--gutter); }
.hero__eyebrow{
  font-size: .78rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase; opacity:.65;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.hero__headline{
  font-family: var(--font-display); font-weight:400; text-transform:uppercase;
  font-size: clamp(3rem, 11vw, 9.5rem); line-height: .96; letter-spacing: .005em;
}
.hero__hline{ display:block; }
.hero__headline em{
  display:inline-block; font-size:.3em; line-height:1; letter-spacing:0; text-transform:none;
  position:relative; top:-.06em; white-space:nowrap;
}
.hero__foot{
  margin-top: clamp(2.5rem, 6vw, 4rem); display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap: 2rem;
}
.hero__sub{ max-width: 30ch; font-size: clamp(1rem,1.4vw,1.15rem); opacity:.82; }
.hero__ctas{ display:flex; gap:1rem; flex-wrap:wrap; }

.hero__scroll{
  position:absolute; bottom: clamp(1.5rem,4vw,2.5rem); left: 50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.6rem; z-index:2;
  font-size:.68rem; letter-spacing:.25em; opacity:.6;
}
.hero__scroll-line{ width:1px; height: 46px; background: var(--line-on-black); overflow:hidden; }
.hero__scroll-line i{ display:block; width:100%; height:40%; background: var(--white); animation: scrollDrop 1.8s ease-in-out infinite; }
@keyframes scrollDrop{
  0%{ transform: translateY(-100%); } 100%{ transform: translateY(250%); }
}

/* ==========================================================================
   MARQUEE RIBBONS
   ========================================================================== */
.marquee{ position: relative; padding-block: clamp(1.2rem,3vw,2rem); overflow:hidden; transform: rotate(-1.4deg) scale(1.02); }
.marquee--white{ color: var(--black); border-block: 1px solid var(--line-on-white); }
.marquee__track{
  display:flex; align-items:center; gap: clamp(1.5rem,3vw,3rem); white-space:nowrap; width:max-content;
  font-family: var(--font-display); font-size: clamp(1.3rem,3.4vw,2.6rem); text-transform:uppercase;
  animation: marqueeScroll 26s linear infinite;
}
.marquee__track i{ font-style:normal; font-size: .7em; opacity:.5; }
@keyframes marqueeScroll{
  from{ transform: translateX(0); } to{ transform: translateX(-50%); }
}
.marquee:hover .marquee__track{ animation-play-state: paused; }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto__statement{
  font-family: var(--font-display); font-weight:400; text-transform:uppercase;
  font-size: clamp(1.6rem, 4.2vw, 3.4rem); line-height:1.18; max-width: 22ch;
}
.manifesto__gradient-text{
  background: linear-gradient(90deg, var(--black), var(--gray-1), var(--black));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stats{
  margin-top: clamp(3.5rem,7vw,6rem); display:grid; grid-template-columns: repeat(4,1fr);
  gap: clamp(1.5rem,3vw,2rem); border-top: 1px solid var(--line-on-white); padding-top: clamp(2rem,4vw,3rem);
}
.stat{ display:flex; flex-direction:column; gap:.6rem; }
.stat__num{ font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.2rem); line-height:1; }
.stat__label{ font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; opacity:.6; }
@media (max-width: 760px){ .stats{ grid-template-columns: repeat(2,1fr); } }

/* ==========================================================================
   CUT PANEL : a blade slices the statement in half
   ========================================================================== */
.cutpanel{
  position: relative; height: 100svh; overflow: hidden;
  color: var(--white);
  display:flex; align-items:center; justify-content:center;
}
.cutpanel__stage{
  position: relative; width: 100%; transform: rotate(-2.5deg);
}
.cutpanel__half{ will-change: transform; }
.cutpanel__half--top{ position: relative; clip-path: inset(0 0 50% 0); }
.cutpanel__half--bottom{ position: absolute; inset: 0; clip-path: inset(50% 0 0 0); }
.cutpanel__line{
  font-family: var(--font-display); font-weight:400; text-transform:uppercase; text-align:center;
  font-size: clamp(2.6rem, 9.5vw, 8rem); line-height: 1.02; letter-spacing:.01em;
  padding-inline: var(--gutter); padding-block: .1em;
}
.cutpanel__blade{
  position:absolute; top: calc(50% - 1px); left: -5%; width: 110%; height: 2px;
  background: var(--white); box-shadow: 0 0 20px rgba(246,245,241,.85);
  transform: scaleX(0); transform-origin: 0 50%; opacity: 1;
}
.cutpanel__sub{
  position:absolute; bottom: 14%; left: 50%; transform: translateX(-50%);
  font-family: var(--font-script); font-size: clamp(1.4rem, 3vw, 2.2rem);
  opacity: 0; white-space: nowrap;
}
/* Static fallback (reduced motion / no JS): the statement stays whole */
.cutpanel.is-static .cutpanel__half--top{ clip-path: none; }
.cutpanel.is-static .cutpanel__half--bottom, .cutpanel.is-static .cutpanel__blade{ display:none; }
.cutpanel.is-static .cutpanel__sub{ opacity: 1; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.service-list{ border-top: 1px solid var(--line-on-black); }
.service-item{
  display:grid; grid-template-columns: 3rem 1fr auto auto; align-items:center; gap: clamp(1rem,3vw,2.5rem);
  padding: clamp(1.2rem,2.6vw,1.8rem) 0; border-bottom: 1px solid var(--line-on-black);
  transition: padding-left .45s var(--ease), opacity .3s ease;
  position: relative;
}
.service-item:hover{ padding-left: 1.2rem; }
.service-item:hover .service-item__name{ opacity:1; }
.service-list:hover .service-item:not(:hover) .service-item__name{ opacity:.35; }
.service-item__index{ font-family: var(--font-display); font-size:1rem; opacity:.5; }
.service-item__name{
  font-family: var(--font-display); font-size: clamp(1.2rem,3vw,2.1rem); text-transform:uppercase;
  transition: opacity .4s ease; position: relative; width: max-content; max-width: 100%;
}
.service-item__name::after{
  content:''; position:absolute; left:-2%; top: 54%; width:104%; height:2px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease);
}
.service-item:hover .service-item__name::after{ transform: scaleX(1); }
.service-item__desc{ display:none; font-size:.85rem; opacity:.55; }
.service-item__price{ font-size: .9rem; font-weight:600; letter-spacing:.03em; white-space:nowrap; }
@media (min-width: 760px){
  .service-item{ grid-template-columns: 3rem 1fr 1fr auto; }
  .service-item__desc{ display:block; }
}
.services__note{ margin-top: 2rem; font-size:.82rem; opacity:.5; }

/* ==========================================================================
   THE MEASURE : pinned ruler scrub; the section background performs the fade
   ========================================================================== */
.measure{
  position: relative; height: 100svh; overflow: hidden;
  /* Pinned, so it is fixed on screen and cannot take its colour from the
     scrolling map : .chapter-bg carries its black→white scrub instead. */
  /* Text color flips at the midpoint of the black→white scrub (JS toggles .is-light);
     a blend-mode approach dies at the grey midpoint, so we hard-flip instead. */
  color: var(--white);
  transition: color .4s ease;
}
.measure.is-light{ color: var(--black); }
.measure__pin{
  height: 100%; display:flex; flex-direction:column; justify-content:center;
  gap: clamp(1.2rem, 4vh, 2.6rem);
}
.measure__head, .measure__caption{ padding-inline: var(--gutter); }
.measure__head .eyebrow{ margin-bottom: .9rem; }
.measure__ruler{ position: relative; }
.measure__track{
  display:flex; align-items:flex-start; width: max-content;
  padding-inline: 50vw; will-change: transform;
}
.measure__block{
  position: relative; display:flex; flex-direction:column; align-items:center; gap:.5rem;
  width: clamp(230px, 32vw, 460px); flex-shrink: 0;
  padding-top: 2.4rem; border-top: 1px solid currentColor;
  transition: color .4s ease;
}
.measure__block::before{
  content:''; position:absolute; top:0; left:0; right:0; height: 13px;
  background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10%);
  opacity: .5;
}
.measure__block::after{
  content:''; position:absolute; top:0; left:50%; width:1px; height: 26px; background: currentColor;
}
.measure__num{ font-family: var(--font-display); font-size: clamp(4.2rem, 13vw, 10.5rem); line-height: 1; }
.measure__guard{ font-size:.68rem; font-weight:700; letter-spacing:.34em; opacity:.55; }
.measure__label{
  font-family: var(--font-display); font-size: clamp(1rem, 2.4vw, 1.6rem);
  letter-spacing:.06em; text-transform:uppercase; opacity:.85;
}
.measure__indicator{
  position:absolute; top: -14%; bottom: -14%; left: 50%; width: 2px; background: currentColor;
  transition: color .4s ease;
}
.measure__indicator::after{
  content:''; position:absolute; top:-2px; left:50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: currentColor;
}
.measure__caption{ max-width: 52ch; opacity: .8; font-size: .95rem; }
/* Static fallback */
.measure.is-static{ height:auto; background: var(--white); color: var(--black); padding-block: var(--section-pad); }
.measure.is-static .measure__track{ flex-wrap: wrap; width:auto; padding-inline: var(--gutter); gap: 2rem; transform:none !important; }
.measure.is-static .measure__indicator{ display:none; }

/* ==========================================================================
   RITUAL
   ========================================================================== */
.ritual-list{ margin-top: clamp(2.5rem,5vw,4rem); display:flex; flex-direction:column; }
.ritual-item{
  display:grid; grid-template-columns: 5rem 1fr; gap: clamp(1rem,3vw,2.5rem);
  padding-block: clamp(1.5rem,3vw,2.5rem); border-top: 1px solid var(--line-on-white);
}
.ritual-item:last-child{ border-bottom: 1px solid var(--line-on-white); }
.ritual-item__num{ font-family: var(--font-display); font-size: clamp(1.8rem,4vw,3rem); opacity:.25; }
.ritual-item__body h3{ font-family: var(--font-display); font-size: clamp(1.3rem,2.6vw,1.9rem); text-transform:uppercase; margin-bottom:.5rem; }
.ritual-item__body p{ max-width: 52ch; opacity:.72; }

/* ==========================================================================
   CREW
   ========================================================================== */
.crew-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line-on-black); border: 1px solid var(--line-on-black); }
.crew-card{
  background: var(--black); padding: clamp(2rem,4vw,2.75rem) clamp(1.25rem,3vw,1.75rem);
  display:flex; flex-direction:column; gap: clamp(2.5rem,8vw,5rem);
  transition: background .5s var(--ease);
  min-height: 260px;
  position: relative; overflow: hidden;
}
.crew-card::before{
  content:''; position:absolute; top:0; left:-120%; width:80%; height:100%;
  background: linear-gradient(100deg, transparent, rgba(246,245,241,.06), transparent);
  transition: left .8s var(--ease);
  pointer-events:none;
}
.crew-card:hover::before{ left: 140%; }
.crew-card:hover{ background: var(--black-soft); }
.crew-card__num{ font-family: var(--font-display); font-size: 1rem; opacity:.45; }
.crew-card__name{ font-family: var(--font-display); font-size: clamp(1.3rem,2.6vw,1.7rem); text-transform:uppercase; margin-top:auto; }
.crew-card__role{ font-size:.82rem; opacity:.6; margin-top:.4rem; }
.crew-card__spec{ font-size:.78rem; opacity:.45; margin-top:.15rem; }
@media (max-width: 900px){ .crew-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .crew-grid{ grid-template-columns: 1fr; } }

/* ===========================================================================
   ARCHIVE / SALON GALLERY
   ========================================================================== */
.archive__head{
  display:grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  align-items:end; gap: clamp(2rem,6vw,6rem);
}
.archive__intro{ max-width: 42ch; font-size: clamp(.9rem,1.2vw,1rem); line-height:1.75; opacity:.62; }
.salon-gallery{
  display:grid; grid-template-columns: repeat(12,minmax(0,1fr));
  gap: clamp(.7rem,1.4vw,1.25rem);
}
.salon-shot{
  position:relative; grid-column: span 4; margin:0; overflow:hidden;
  aspect-ratio: 3/4; isolation:isolate; background:var(--black);
}
.salon-shot--wide{ grid-column: 1 / -1; aspect-ratio: 16/7; }
.salon-shot img{
  width:100%; height:100%; object-fit:cover;
  filter: grayscale(.9) contrast(1.06) brightness(.9);
  transform:scale(1.015);
  transition: filter .8s var(--ease), transform 1.1s var(--ease);
}
.salon-shot--opening img{ object-position:center 55%; }
.salon-shot--closing img{ object-position:center 52%; }
.salon-shot::before{
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
  border:1px solid rgba(246,245,241,.2);
}
.salon-shot::after{
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, transparent 48%, rgba(0,0,0,.74) 100%);
}
.salon-shot figcaption{
  position:absolute; z-index:3; left:clamp(1rem,2vw,1.6rem); right:clamp(1rem,2vw,1.6rem); bottom:clamp(1rem,2vw,1.5rem);
  display:flex; justify-content:flex-start; align-items:flex-end; gap:1rem; color:var(--white);
  text-transform:uppercase;
}
.salon-shot figcaption span{ font-size:.65rem; font-weight:700; letter-spacing:.16em; opacity:.6; }
.salon-shot figcaption strong{ font-family:var(--font-display); font-size:clamp(.95rem,1.8vw,1.45rem); font-weight:400; letter-spacing:.035em; text-align:left; }
@media (hover:hover) and (pointer:fine){
  .salon-shot:hover img{ filter:grayscale(.08) contrast(1.02) brightness(.96); transform:scale(1.045); }
}
.salon-shot.is-touch-active img{ filter:grayscale(.08) contrast(1.02) brightness(.96); transform:scale(1.045); }
.archive__note{ margin-top: 1.75rem; font-size:.72rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; opacity:.5; }

@media (max-width: 900px){
  .archive__head{ grid-template-columns:1fr; align-items:start; }
  .salon-shot--wide{ aspect-ratio: 16/9; }
}
@media (max-width: 680px){
  .salon-gallery{ grid-template-columns:1fr; gap:.8rem; }
  .salon-shot, .salon-shot--wide{ grid-column:1; aspect-ratio:4/5; }
  .salon-shot--wide{ aspect-ratio:4/3; }
  .salon-shot img{ filter:grayscale(.9) contrast(1.06) brightness(.9); }
}

/* ==========================================================================
   REVIEWS / QUOTE MARQUEE
   ========================================================================== */
.quote-marquee{ margin-top: clamp(2rem,4vw,3rem); overflow:hidden; }
.quote-marquee__track{ display:flex; gap: clamp(3rem,7vw,6rem); width:max-content; animation: marqueeScroll 46s linear infinite; }
.quote-marquee:hover .quote-marquee__track{ animation-play-state: paused; }
.quote{
  font-family: var(--font-display); font-weight:400; text-transform:uppercase; white-space:nowrap;
  font-size: clamp(1.4rem,4vw,3rem); opacity:.9;
}
.quote span{ font-family: var(--font-body); text-transform:none; font-size:.4em; opacity:.5; margin-left:1rem; letter-spacing:.05em; }

/* ==========================================================================
   VISIT
   ========================================================================== */
.visit-grid{ margin-top: clamp(2.5rem,5vw,4rem); display:grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem,6vw,5rem); }
.visit-info address{ font-style:normal; margin-top: clamp(1.5rem,3vw,2.2rem); font-size: 1.05rem; opacity:.75; line-height:1.7; }
.visit-link{ display:block; margin-top: .9rem; font-size: 1.05rem; font-weight:600; border-bottom: 1px solid transparent; transition: border-color .3s ease; width:max-content; }
.visit-link:hover{ border-color: currentColor; }
.visit-hours{ border-left: 1px solid var(--line-on-white); padding-left: clamp(1.5rem,3vw,2.5rem); }
.visit-hours h3{ font-family: var(--font-display); text-transform:uppercase; font-size: 1.3rem; margin-bottom: 1.25rem; }
.hours-row{ display:flex; justify-content:space-between; gap:1rem; padding-block:.6rem; border-bottom: 1px solid var(--line-on-white); font-size:.92rem; }
.hours-row span:first-child{ opacity:.55; text-transform:uppercase; letter-spacing:.05em; font-size:.78rem; }
@media (max-width: 760px){ .visit-grid{ grid-template-columns: 1fr; } .visit-hours{ border-left:none; padding-left:0; border-top:1px solid var(--line-on-white); padding-top:2rem; } }

/* ==========================================================================
   BOOK CTA
   ========================================================================== */
.book__headline{
  font-family: var(--font-display); text-transform:uppercase; font-weight:400; line-height:.95;
  font-size: clamp(2.6rem, 8vw, 6.5rem); margin-bottom: clamp(2.5rem,6vw,4rem);
}
.book__grid{ display:grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem,6vw,5rem); align-items:start; }
.book__form{ display:grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.field{ display:flex; flex-direction:column; gap:.5rem; }
.field--full{ grid-column: 1 / -1; }
.field label{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; opacity:.6; }
.field input, .field select, .field textarea{
  background: transparent; border: none; border-bottom: 1px solid var(--line-on-black); color: var(--white);
  padding: .7rem .1rem; font-size: 1rem; transition: border-color .3s ease;
}
.field select{ appearance:none; -webkit-appearance:none; }
.field select option{ background: #111; color: var(--white); }
.field input::placeholder, .field textarea::placeholder{ color: var(--gray-1); }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--white); }
.book__form button{ grid-column: 1 / -1; margin-top: .75rem; }
.book__form-note{ grid-column: 1/-1; font-size:.85rem; opacity:.75; min-height: 1.2em; }
.book__alt{ display:flex; flex-direction:column; gap:1rem; align-items:flex-start; padding-top: clamp(1rem,2vw,0); }
.book__alt p{ font-size:.85rem; text-transform:uppercase; letter-spacing:.1em; opacity:.55; margin-bottom:.25rem; }
.book__alt .open-pill{ opacity: 1; margin-bottom: .75rem; }
.book__alt .btn{ width: 100%; max-width: 320px; }
.book__alt .book__care{
  text-transform: none; letter-spacing: .01em; font-size: .95rem; line-height: 1.6;
  opacity: .7; max-width: 30ch; margin-top: 1.25rem;
}
.book{ padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
@media (max-width: 760px){ .book__grid{ grid-template-columns: 1fr; } .book__form{ grid-template-columns: 1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{ color: var(--white); padding-block: clamp(1.5rem,3vw,2.5rem) clamp(1.5rem,3vw,2rem); overflow:hidden; }
.footer__mark{
  font-family: var(--font-display); font-size: clamp(4rem, 15vw, 13rem); line-height: .95;
  text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(246,245,241,.34);
  user-select: none; pointer-events: none;
  margin-bottom: clamp(1.5rem,3vw,2.5rem);
  will-change: transform;
}
.footer__top{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:2rem; padding-bottom: clamp(2rem,4vw,3rem); border-bottom: 1px solid var(--line-on-black); }
.footer__brand img{ width: 56px; height:56px; border-radius:50%; }
.footer__links{ display:flex; gap: clamp(1rem,2vw,2rem); flex-wrap:wrap; font-size:.85rem; letter-spacing:.03em; }
.footer__links a{ opacity:.75; transition:opacity .3s ease; }
.footer__links a:hover{ opacity:1; }
.footer__social{ display:flex; gap:1rem; }
.footer__social a{ width:38px; height:38px; border:1px solid var(--line-on-black); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.68rem; letter-spacing:.02em; transition: background .3s ease, color .3s ease; }
.footer__social a:hover{ background: var(--white); color: var(--black); }
.footer__bottom{ margin-top: clamp(1.5rem,3vw,2rem); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; font-size:.78rem; opacity:.6; }
.footer__signature{ font-family: var(--font-body); }
.footer__totop{ width:42px; height:42px; border:1px solid var(--line-on-black); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.1rem; transition: transform .4s var(--ease), background .3s ease, color .3s ease; opacity:1 !important; }
.footer__totop:hover{ background: var(--white); color: var(--black); transform: translateY(-4px); }

/* ==========================================================================
   STAGGER CHILD DEFAULT STATE (JS toggles .is-in on children via ScrollTrigger)
   ========================================================================== */
[data-stagger] > *{ opacity:0; transform: translateY(30px); }
[data-stagger] > *.is-in{ opacity:1; transform: translateY(0); transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .cursor{ display:none; }
  body, button, a{ cursor: auto; }
  a, button, [data-hover]{ cursor: pointer; }
  .hero__ribbon-track, .marquee__track, .quote-marquee__track, .hero__scroll-line i,
  .crew-card::before{ animation: none !important; }
  [data-reveal], [data-stagger] > *{
    opacity:1 !important; transform:none !important; transition:none !important;
  }
}

/* ==========================================================================
   RESPONSIVE TYPE TRIM
   ========================================================================== */
@media (max-width: 480px){
  :root{ --section-pad: clamp(4rem, 16vw, 6rem); }
  /* The particle portrait occupies more of the reading area on a phone.
     Keep secondary hero copy close to white so it remains clearly legible. */
  .hero__eyebrow{ opacity:.82; }
  .hero__sub{ opacity:.94; }
  .service-item{ grid-template-columns: 2.2rem 1fr auto; }
  .service-item__price{ grid-column: 2 / -1; margin-top:.3rem; opacity:.6; font-size:.8rem; }
}
