/* =====================================================================
   HEADBOSS — shared web design system
   Tokens mirror app.headbosstreatment.com (ink / gold / warm surfaces,
   Sora + Inter + Geist Mono + Anton). Layout language: quiet, editorial,
   generous white space.
   ===================================================================== */

:root {
  /* App palette */
  --ink: #17171a;
  --ink-2: #2a2a2e;
  --gold: #c68a3c;
  --gold-soft: #f3e4c8;
  --gold-text: #7a5a1e;
  --surface: #fbfbfa;
  --surface-card: #ffffff;
  --surface-muted: #f1efea;
  --studio: #e4e3e0;           /* grey seamless backdrop of the model shoot */
  --line: #ecebe8;
  --line-strong: #e2e0db;
  --body: #17171a;
  --body-2: #57534e;
  --body-3: #78716c;
  --body-4: #a6a5a0;

  /* Type */
  --f-head: 'Sora', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, Arial, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, monospace;
  --f-display: 'Anton', 'Sora', sans-serif;

  --radius-card: 16px;
  --radius-field: 10px;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--surface); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* safety net: nothing inside the page can widen it on phones (clip keeps position: sticky working) */
main, .site-footer { overflow-x: clip; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--body-3);
}
.eyebrow--gold { color: var(--gold-text); }
.h-xxl, .h-xl, .h-lg, .h-md, .h-sm {
  font-family: var(--f-head);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
}
.h-xxl { font-size: clamp(3rem, 9vw, 8.5rem); }
.h-xl  { font-size: clamp(2.4rem, 6vw, 5.5rem); }
.h-lg  { font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.06; }
.h-md  { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.025em; }
.h-sm  { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 400; }
.h-xxl em, .h-xl em, .h-lg em, .h-md em { font-style: normal; color: var(--gold); }
.wordmark { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; line-height: .86; font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--body-2); max-width: 46ch; }
.copy { color: var(--body-2); max-width: 60ch; }
.copy p { margin: 0 0 1em; }
.statement {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  max-width: 28ch;
}
.on-dark { background: var(--ink); color: var(--surface-muted); }
.on-dark .h-xxl, .on-dark .h-xl, .on-dark .h-lg, .on-dark .h-md, .on-dark .h-sm, .on-dark .statement { color: #fbfbfa; }
.on-dark .eyebrow { color: var(--body-4); }
.on-dark .copy, .on-dark .lead { color: #c9c6bf; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 48px; padding: 0 22px;
  border-radius: var(--radius-field);
  font-family: var(--f-body); font-size: 14px; font-weight: 500; letter-spacing: .01em;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold:hover { background: #b57c31; }
.btn--light { background: #fbfbfa; color: var(--ink); border-color: #fbfbfa; }
.btn--light:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.hero-print .btn--ghost, .section--studio .btn--ghost { border-color: rgba(23,23,26,.28); }
.on-dark .btn--ghost {color: #fbfbfa; border-color: rgba(255,255,255,.25); }
.on-dark .btn--ghost:hover { background: #fbfbfa; color: var(--ink); }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease-soft); }
.btn:hover svg { transform: translateX(3px); }

.link {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: 14px; font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size .45s var(--ease-soft);
}
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link svg { width: 14px; height: 14px; }

/* ---------- Announcement bar + header ---------- */
.announce {
  background: var(--ink); color: #d9d6cf;
  font-size: 12px; text-align: center; padding: 9px var(--gutter);
  position: relative; z-index: 61;
}
.announce a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,251,250,.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease-out), border-color .4s, background-color .4s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .bar {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a, .nav button {
  font-size: 13px; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav a::after, .nav > .has-menu > button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-soft);
}
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav > .has-menu > button:hover::after { transform: scaleX(1); transform-origin: left; }
.nav--right { justify-content: flex-end; }
.nav a.btn { color: #fff; height: 40px; padding: 0 18px; }
.nav a.btn::after { display: none; }

/* 12-col helpers */
.col-label { grid-column: 1 / span 3; }
.col-main { grid-column: 4 / -1; }
.col-wide { grid-column: 1 / span 10; }
@media (max-width: 860px) {
  .col-label, .col-main, .col-wide { grid-column: 1 / -1; }
  .col-label { margin-bottom: 20px; }
}
.logo img { height: 26px; width: auto; }
.logo { display: inline-flex; justify-self: center; }
.has-menu { position: relative; }
.has-menu > button { display: inline-flex; align-items: center; gap: 6px; }
.has-menu > button svg { width: 12px; height: 12px; transition: transform .3s var(--ease-soft); }
.has-menu.is-open > button svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 260px;
  background: var(--surface-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; box-shadow: 0 24px 48px -28px rgba(23,23,26,.35);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-out);
}
.has-menu.is-open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
/* invisible bridge over the gap so the menu stays open while the pointer travels down */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.dropdown a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 12px; border-radius: 10px; font-size: 14px;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--surface-muted); }
.dropdown a span:last-child { font-family: var(--f-mono); font-size: 11px; color: var(--body-3); letter-spacing: .1em; }

.menu-btn { display: none; justify-self: end; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.menu-btn .bars { width: 22px; height: 10px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8px; }
body.menu-open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
body.menu-open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 59; background: var(--surface);
  padding: calc(var(--header-h) + 56px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-out); }
body.menu-open { overflow: hidden; }
.mobile-menu nav a {
  display: block; font-family: var(--f-head); font-weight: 300; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1.25;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease-out);
}
body.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
body.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu .branches { display: grid; gap: 10px; }
.mobile-menu .branches a { display: flex; justify-content: space-between; font-size: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .branches a span:last-child { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--body-3); }
.mobile-menu .btn { width: 100%; }

@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .site-header .bar { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .logo { justify-self: start; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 961px) { .mobile-menu { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 160px) 0; }
.section--tight { padding: clamp(56px, 7vw, 104px) 0; }
.section--muted { background: var(--surface-muted); }
.section--studio { background: var(--studio); }
.rule { height: 1px; background: var(--line-strong); border: 0; margin: 0; }
.on-dark .rule { background: rgba(255,255,255,.12); }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); flex-wrap: wrap; }
.sec-head .eyebrow { margin-bottom: 18px; display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 9vw, 140px) 0 clamp(40px, 6vw, 88px); }
.page-hero .eyebrow { display: block; margin-bottom: 28px; }
.page-hero .lead { margin-top: 28px; }
.crumbs, .page-hero .crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; background: var(--surface-muted); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--34 { aspect-ratio: 3 / 4; }
.frame--45 { aspect-ratio: 4 / 5; }
.frame--11 { aspect-ratio: 1 / 1; }
.caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--body-3); }
.bw { filter: grayscale(1) contrast(1.06); }

/* ---------- Hero: contact-print triptych ---------- */
.hero-print {
  background: var(--studio);
  min-height: calc(100svh - var(--header-h) - 34px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.hero-print__top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.print-stage { perspective: 1600px; }
.print {
  position: relative;
  background: #f8f8f6;
  padding: clamp(8px, 1.1vw, 16px) clamp(8px, 1.1vw, 16px) 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, .9vw, 14px);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 40px -24px rgba(23,23,26,.45), 0 60px 90px -60px rgba(23,23,26,.4);
  transform-style: preserve-3d;
  will-change: transform;
}
/* paper fold lines between panels */
.print::before, .print::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.09) 50%, rgba(0,0,0,.04));
  pointer-events: none;
}
.print::before { left: 33.333%; }
.print::after  { left: 66.666%; }
.print__tape {
  position: absolute; top: -18px; left: 30%; width: clamp(90px, 12vw, 150px); height: clamp(30px, 3.6vw, 44px);
  background: linear-gradient(100deg, rgba(255,255,255,.55), rgba(240,240,236,.35) 40%, rgba(255,255,255,.6));
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 2px 6px -3px rgba(0,0,0,.25);
  transform: rotate(-4deg);
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
  z-index: 3;
  clip-path: polygon(3% 8%, 97% 0, 100% 50%, 96% 100%, 2% 94%, 0 40%);
}
.print__cell { display: flex; flex-direction: column; min-width: 0; }
.print__img { position: relative; aspect-ratio: 1 / .93; overflow: hidden; background: #d9d8d5; }
.print__img img, .print__img canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%;
  filter: grayscale(1) contrast(1.06);
}
.print__cap {
  font-family: var(--f-body); font-size: clamp(10px, 1.05vw, 15px); color: #2b2b2b;
  padding: clamp(8px, 1vw, 14px) 2px clamp(10px, 1.2vw, 18px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.print__cell:nth-of-type(2) .print__cap { text-align: center; }
.print__cell:nth-of-type(3) .print__cap { text-align: right; }
.print__hint {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; mix-blend-mode: difference; opacity: .8;
}
.hero-print__bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; margin-top: clamp(40px, 6vw, 88px); }
.hero-print__bottom .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) {
  .hero-print__top { flex-direction: column; gap: 8px; }
  .hero-print__bottom { grid-template-columns: 1fr; }
  .hero-print__bottom .actions { justify-content: flex-start; }
  .print__hint { display: none; }
  .print__cap { white-space: normal; font-size: 10px; line-height: 1.3; }
}

/* ---------- Word-fill statement ---------- */
.fill .w { opacity: .16; transition: opacity .2s; }

/* ---------- Looks: pinned frame sequence ---------- */
.looks { background: var(--studio); position: relative; }
.looks__pin { height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 72px); }
.looks__canvas-wrap { position: relative; height: min(82svh, 980px); aspect-ratio: 2 / 3; justify-self: center; overflow: hidden; background: #d9d8d5; }
.looks__canvas-wrap canvas { position: relative; width: 100%; height: 100%; display: block; }
.looks__canvas-wrap > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.looks__frame-no { position: absolute; left: 14px; bottom: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: #fff; mix-blend-mode: difference; }
.looks__list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid rgba(23,23,26,.14); }
.looks__list li {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: baseline; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid rgba(23,23,26,.14);
  color: rgba(23,23,26,.32); transition: color .4s;
}
.looks__list li.is-active { color: var(--ink); }
.looks__list .n { font-family: var(--f-mono); font-size: 12px; }
.looks__list .t { font-family: var(--f-head); font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.1; }
.looks__list .m { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.looks__progress { height: 1px; background: rgba(23,23,26,.14); margin-top: 28px; position: relative; overflow: hidden; }
.looks__progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .looks__pin { grid-template-columns: 1fr; align-content: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
  .looks__canvas-wrap { height: 54svh; order: -1; }
  .looks__list { margin-top: 0; }
  .looks__list li { padding: 10px 0; }
  .looks__intro { display: none; }
}

/* ---------- Treatments ---------- */
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.treat {
  background: var(--surface-card); border-radius: var(--radius-card); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.treat:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(23,23,26,.4); }
.treat .frame { aspect-ratio: 4 / 3; }
.treat .frame img { transition: transform 1.2s var(--ease-out); }
.treat:hover .frame img { transform: scale(1.04); }
.treat__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.treat__top { display: flex; justify-content: space-between; align-items: baseline; }
.treat__body p { margin: 0; color: var(--body-2); font-size: 15px; }
@media (max-width: 860px) { .treat-grid { grid-template-columns: 1fr; } }

/* ---------- Marquees ---------- */
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee__track { display: flex; flex: 0 0 auto; gap: clamp(12px, 1.4vw, 20px); padding-right: clamp(12px, 1.4vw, 20px); will-change: transform; }
.word-marquee { padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.word-marquee .marquee__track { gap: 0; padding: 0; align-items: center; }
.word-marquee span.wm { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3.5rem, 11vw, 10rem); line-height: .9; padding: 0 .25em; color: var(--ink); }
.word-marquee span.dot { width: clamp(10px, 1.2vw, 16px); height: clamp(10px, 1.2vw, 16px); border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.word-marquee span.wm.outline { color: transparent; -webkit-text-stroke: 1px var(--ink); }

/* ---------- Hairdesigner cards ---------- */
.hd-card { display: block; width: clamp(220px, 22vw, 320px); flex: 0 0 auto; }
.hd-grid .hd-card { width: auto; }
.hd-card__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #f4f4f2; border-radius: 4px; }
.hd-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: opacity .6s var(--ease-soft), transform 1.2s var(--ease-out); }
.hd-card__img img.full { opacity: 0; object-position: 50% 50%; transform: scale(1.06); }
.hd-card:hover .hd-card__img img.full, .hd-card.is-flipped .hd-card__img img.full { opacity: 1; transform: scale(1); }
.hd-card:hover .hd-card__img img.close, .hd-card.is-flipped .hd-card__img img.close { opacity: 0; transform: scale(.98); }
.hd-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.hd-card__name { font-family: var(--f-head); font-weight: 400; font-size: 1.15rem; letter-spacing: -0.02em; }
.hd-card__role { font-size: 13px; color: var(--body-3); margin-top: 2px; }
.hd-card__certs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hd-card__price { font-family: var(--f-head); font-weight: 400; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.chip svg { color: var(--gold); flex: 0 0 auto; }
.certs-img { width: 100%; max-width: 920px; height: auto; mix-blend-mode: multiply; }
.price-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--gold-soft); color: var(--gold-text);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
}
.chip--line { background: transparent; border: 1px solid var(--line-strong); color: var(--body-2); }
.hd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(12px, 1.6vw, 24px); }
@media (max-width: 1100px) { .hd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hd-card__name { font-size: 1rem; } }

/* ---------- Branch filter (app-style segmented chips) ---------- */
.filter-bar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(251,251,250,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: top .5s var(--ease-out);
}
body.header-hidden .filter-bar { top: 0; }
.filter-bar .wrap { display: flex; gap: 8px; align-items: center; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.filter-bar .wrap::-webkit-scrollbar { display: none; }
.seg {
  height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--body-2);
  transition: background-color .3s, color .3s, border-color .3s;
}
.seg:hover { border-color: var(--ink); color: var(--ink); }
.seg[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg .count { font-family: var(--f-mono); font-size: 11px; opacity: .6; margin-left: 6px; }

.branch-block { padding: clamp(56px, 7vw, 104px) 0 0; }
.branch-block[hidden] { display: none; }
.branch-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-bottom: 28px; margin-bottom: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line-strong); }
.branch-head .addr { color: var(--body-3); font-size: 14px; margin-top: 10px; }
.branch-head .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .branch-head { grid-template-columns: 1fr; } .branch-head .actions { justify-content: flex-start; } }

/* ---------- Index list with cursor-follow portrait ---------- */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.index-list li a {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: baseline;
  padding: clamp(14px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line-strong);
  transition: padding .5s var(--ease-out), color .3s;
}
.index-list .n { font-family: var(--f-mono); font-size: 12px; color: var(--body-3); }
.index-list .t { font-family: var(--f-head); font-weight: 300; font-size: clamp(1.8rem, 4.4vw, 4rem); letter-spacing: -0.04em; line-height: 1; }
.index-list .b { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--body-3); }
@media (hover: hover) {
  .index-list:hover li a { color: var(--body-4); }
  .index-list li a:hover { color: var(--ink); padding-left: 18px; }
}
.follow-img {
  position: fixed; left: 0; top: 0; z-index: 40; width: clamp(180px, 18vw, 260px); aspect-ratio: 3 / 4;
  pointer-events: none; overflow: hidden; border-radius: 4px; background: #f4f4f2;
  opacity: 0; transform: translate(-50%, -50%) scale(.85);
  box-shadow: 0 30px 60px -30px rgba(23,23,26,.5);
}
.follow-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
@media (hover: none) { .follow-img { display: none; } }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.loc { padding: 32px clamp(16px, 2vw, 32px) 36px 0; border-right: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 14px; }
.loc + .loc { padding-left: clamp(16px, 2vw, 32px); }
.loc:last-child { border-right: 0; }
.loc .code { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--gold); }
.loc address { font-style: normal; color: #c9c6bf; font-size: 15px; line-height: 1.6; }
.loc .branch-card__faces img { border-color: var(--ink); }
.loc-grid--light .loc .branch-card__faces img { border-color: var(--studio); }
.loc .row {display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.section--muted .loc-grid, .loc-grid--light { border-top-color: var(--line-strong); }
.loc-grid--light .loc { border-right-color: var(--line-strong); }
.loc-grid--light .loc address { color: var(--body-2); }
.loc-grid--light .loc .code { color: var(--gold-text); }
@media (max-width: 860px) {
  .loc-grid { grid-template-columns: 1fr; }
  .loc, .loc + .loc { padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .loc-grid--light .loc { border-bottom-color: var(--line-strong); }
}

/* ---------- App band ---------- */
.app-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.app-band__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-band__media .frame:nth-child(2) { margin-top: 18%; }
.app-band__media { align-items: start; }
.app-band__media .app-band__phone { --phone-w: min(240px, 18vw); justify-self: center; }
.app-band__phone + .app-band__phone { margin-top: 22%; }
@media (max-width: 860px) { .app-band__media .app-band__phone { --phone-w: min(200px, 40vw); } }
.app-icon { width: 76px; height: 76px; border-radius: 22%; overflow: hidden; box-shadow: 0 0 0 1px rgba(198,138,60,.35), 0 14px 32px -16px rgba(0,0,0,.8); }
.app-icon img { width: 100%; height: 100%; display: block; }
.app-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.app-list li { display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #d9d6cf; font-size: 15px; }
.app-list li span:first-child { font-family: var(--f-mono); font-size: 11px; color: var(--gold); padding-top: 4px; }
@media (max-width: 860px) { .app-band { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.stat { padding: 28px 20px 4px 0; }
.stat + .stat { border-left: 1px solid var(--line-strong); padding-left: 20px; }
.stat .num { font-family: var(--f-head); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.stat .lbl { margin-top: 10px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-strong); }
}

/* ---------- Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: center; }
.split__media { grid-column: 1 / span 6; }
.split__text { grid-column: 8 / span 5; }
.split--rev .split__media { grid-column: 7 / span 6; order: 2; }
.split--rev .split__text { grid-column: 1 / span 5; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media, .split__text, .split--rev .split__media, .split--rev .split__text { grid-column: 1 / -1; order: 0; }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.pillar { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.pillar p { color: var(--body-2); margin: 12px 0 0; font-size: 15px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Price list ---------- */
.price-sheet { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.price-sheet img { width: 100%; height: auto; }
.price-sheet .missing { display: none; }
.price-sheet.is-missing img { display: none; }
.price-sheet.is-missing .missing {
  display: grid; place-items: center; text-align: center; gap: 12px; aspect-ratio: 9 / 16; padding: 32px;
  background: var(--surface-muted); color: var(--body-3);
}
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.branch-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Branch cards (services hub) ---------- */
.branch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.branch-card { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.branch-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(23,23,26,.4); }
.branch-card .frame { aspect-ratio: 4 / 3; }
.branch-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.branch-card__body .addr { color: var(--body-3); font-size: 14px; margin: 0; }
.branch-card__faces { display: flex; margin-top: 8px; }
.branch-card__faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px; background: #f4f4f2; transition: transform .4s var(--ease-out); }
.branch-card__faces img:hover { transform: translateY(-4px); }
.branch-card__faces img:first-child { margin-left: 0; }
/* the all-hairdesigners row (About) wraps instead of running off narrow screens */
.branch-card__faces[data-faces="all"] { flex-wrap: wrap; gap: 10px; }
.branch-card__faces[data-faces="all"] img { margin-left: 0; width: 52px; height: 52px; }
@media (max-width: 560px) { .branch-card__faces[data-faces="all"] img { width: 44px; height: 44px; } }
.branch-card__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 960px) { .branch-cards { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--body-3); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface-card); border: 1px solid var(--line-strong); border-radius: var(--radius-field);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(198,138,60,.18); }
.form-card { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.feedback { font-size: 13px; color: var(--body-3); margin: 0; }
.feedback.is-error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c6bf; padding: clamp(56px, 7vw, 96px) 0 28px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--body-4); margin: 0 0 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.foot-grid a:hover { color: #fff; }
.foot-grid address { font-style: normal; font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.foot-grid address strong { color: #fff; font-weight: 500; }
.foot-news p { font-size: 14px; max-width: 34ch; margin: 0 0 18px; }
.foot-word { margin-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.foot-word img { display: block; width: 100%; height: auto; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: var(--body-4); }
.foot-base nav { display: flex; gap: 20px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-news { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   App page (HEADBOSS+) — store badges, phone mock, feature scroller.
   The phone UI mirrors app.headbosstreatment.com tokens.
   ===================================================================== */
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px 0 18px;
  border-radius: 12px; background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.store:hover { transform: translateY(-2px); background: var(--ink-2); }
.store svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store small { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.store strong { display: block; font-family: var(--f-head); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.15; }
.store--ghost { background: transparent; color: var(--ink); border-color: rgba(23,23,26,.28); }
.store--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .store { background: #fbfbfa; color: var(--ink); border-color: #fbfbfa; }
.on-dark .store:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.on-dark .store--ghost { background: transparent; color: #fbfbfa; border-color: rgba(255,255,255,.3); }
.on-dark .store--ghost:hover { background: #fbfbfa; color: var(--ink); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 520px) { .stores .store { flex: 1 1 100%; justify-content: center; } }

/* App hero */
.hero-app { background: var(--studio); position: relative; overflow: hidden; padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 7vw, 112px); }
.hero-app__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero-app h1 .plus { color: var(--gold); font-weight: 400; }
.hero-app .lead { margin: 28px 0 36px; }
.hero-app__meta { margin-top: 24px; }
.hero-app__visual { position: relative; display: grid; justify-items: end; padding-bottom: 40px; }
.hero-app__model { width: min(78%, 440px); aspect-ratio: 4 / 5; overflow: hidden; background: #d9d8d5; }
.hero-app__model img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.06); }
.hero-app__visual .phone { position: absolute; left: 4%; bottom: 0; --phone-w: min(280px, 32vh); }
.hero-app__tag {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  background: #fbfbfa; padding: 8px 12px; border-radius: 999px; color: var(--ink);
  display: inline-flex; gap: 8px; align-items: center;
}
.hero-app__tag i { width: 7px; height: 7px; border-radius: 50%; background: #3f855c; animation: hb-ping 1.8s infinite; }
@keyframes hb-ping { 0% { box-shadow: 0 0 0 0 rgba(63,133,92,.5); } 80%, 100% { box-shadow: 0 0 0 9px rgba(63,133,92,0); } }
@media (max-width: 960px) {
  .hero-app__grid { grid-template-columns: 1fr; }
  .hero-app__visual { justify-items: end; padding: 40px 0 32px; margin-top: 8px; }
  .hero-app__model { width: 68%; aspect-ratio: 3 / 4; }
  .hero-app__visual .phone { left: 0; bottom: 0; --phone-w: min(170px, 44vw); }
}

/* Phone mock */
.phone {
  --phone-w: 290px;
  position: relative; width: var(--phone-w); aspect-ratio: 290 / 600; flex: 0 0 auto;
  border-radius: calc(var(--phone-w) * .155); background: var(--ink); padding: calc(var(--phone-w) * .033);
  box-shadow: 0 60px 90px -50px rgba(23,23,26,.6), 0 20px 40px -30px rgba(23,23,26,.5), inset 0 0 0 1.5px #3a3a3f;
  font-size: calc(var(--phone-w) / 290 * 16);
  will-change: transform;
}
.phone__notch { position: absolute; top: 4.6%; left: 50%; width: 31%; height: 4.4%; transform: translateX(-50%); background: var(--ink); border-radius: 20px; z-index: 5; }
.phone__screen { position: relative; height: 100%; border-radius: calc(var(--phone-w) * .125); overflow: hidden; background: var(--surface); color: var(--ink); }
.phone__status { position: absolute; top: 0; left: 0; right: 0; height: 2.6em; display: flex; justify-content: space-between; align-items: center; padding: 0 1.6em; font: 600 .62em/1 var(--f-body); color: var(--ink); z-index: 4; pointer-events: none; }
.shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease-soft), transform 1.1s var(--ease-out);
}
.shot.is-on { opacity: 1; transform: none; }

/* Feature scroller: sticky phone, screens follow the text */
.feat { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.feat__phone { position: sticky; top: calc(var(--header-h) + 5vh); display: grid; justify-items: center; padding: 3vh 0; }
.feat__phone .phone { --phone-w: min(300px, 26vw, 38vh); }
.feat__item { min-height: 62vh; padding: 28px 0; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 14px; transition: opacity .5s; }
.feat__item:last-child { min-height: 48vh; }
@media (min-width: 961px) { .feat__item:not(.is-on) { opacity: .28; } }
.feat__item .n { font-family: var(--f-mono); font-size: 12px; color: var(--gold-text); }
.feat__item p { color: var(--body-2); max-width: 44ch; margin: 0; font-size: 1.05rem; }
@media (max-width: 960px) {
  .feat { grid-template-columns: 1fr; }
  .feat__phone { display: none; }
  .feat__item { min-height: 0; padding: 28px 0 36px; }
}

/* Steps + returning-customer callout */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.step { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.step .num { font-family: var(--f-head); font-weight: 300; font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -0.05em; line-height: 1; color: var(--body-4); }
.step h3 { margin-top: 18px; }
.step p { color: var(--body-2); margin: 10px 0 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.callout { margin-top: clamp(40px, 5vw, 72px); background: var(--gold-soft); border-radius: var(--radius-card); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; max-width: 760px; color: var(--gold-text); }
.callout svg { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; }
.callout p { margin: 0; color: #5d4517; }

/* Install CTA */
.install { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 5vw, 80px); align-items: end; }
.qr-card { background: #fbfbfa; color: var(--ink); border-radius: var(--radius-card); padding: 18px; display: grid; gap: 12px; justify-items: center; width: 200px; }
.qr-card [data-qr] { width: 164px; height: 164px; }
.qr-card [data-qr] svg, .qr-card [data-qr] img { width: 100%; height: 100%; display: block; }
.qr-card .eyebrow { color: var(--body-3); text-align: center; }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } .qr-card { display: none; } }

/* ---------- Motion primitives (states set by hb.js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-clip] { clip-path: inset(100% 0 0 0); }
.js .is-in[data-reveal] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .is-in[data-clip], .js [data-clip].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.split-line { overflow: hidden; padding-bottom: .06em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-clip] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .fill .w { opacity: 1 !important; }
}
