/* Velvet & Vine Hair Studio: "Swatch Book" theme (Linnet Studio)
   Mobile-first (393px), then 760 (tablet) and 1080 (desktop). No scripts: the shade finder and the menu
   pickers are radios + :has(). Hair shades live inline on each swatch (--a root, --b mid, --c ends). */

:root {
  /* ---- Shared token layer (same names in every Linnet theme; re-skin presets override these) ---- */
  --c-bg: #F4F0F5;          /* page background (toner lilac) */
  --c-surface: #FFFFFF;     /* swatch tabs, cards, tables */
  --c-ink: #2B1532;         /* text, the dark swatch-book page, footer */
  --c-muted: #5F4A67;       /* secondary text, 7:1 on the background */
  --c-line: #DCD0DF;        /* hairlines (decorative) */
  --c-line-strong: #8A7891; /* form borders, 4:1 on white */
  --c-accent: #1D5A46;      /* buttons, links, selected states (vine) */
  --c-on-accent: #FFFFFF;
  --c-accent-2: #A12C3F;    /* status only: a field that needs attention */
  --f-display: "Gloock", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;  /* not used */
  --r-sm: 10px;             /* fields */
  --r-lg: 22px;             /* cards */
  --r-pill: 999px;          /* buttons, slots, badges */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 40px; --s-6: 56px;

  /* ---- Theme names, mapped to the shared layer ---- */
  --ground: var(--c-bg);
  --paper: var(--c-surface);
  --velvet: var(--c-ink);
  --ink-soft: var(--c-muted);
  --line: var(--c-line);
  --field: var(--c-line-strong);
  --vine: var(--c-accent);
  --font-display: var(--f-display);
  --font-text: var(--f-body);
  --r-field: var(--r-sm);
  --r-card: var(--r-lg);

  /* ---- Theme-only ---- */
  --mist: #E5DCE7;          /* quiet surfaces */
  --chrome: #ABA6B2;        /* swatch ring metal */
  --on-dark: #F1E8F3;
  --on-dark-soft: #C9B6CE;
  --vine-deep: #154535;
  --rule-pink: #E2A6BF;     /* margin line on record cards */
  --r-tab: 16px;
  --wrap: 1200px;
  --pad: max(18px, calc((100% - var(--wrap)) / 2));
  --ab-h: 56px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(var(--ab-h) + 28px); }
body { margin: 0; background: var(--ground); color: var(--velvet); font: 400 1.0625rem/1.6 var(--font-text); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--vine); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 12px; }
main > section { overflow-x: clip; }  /* nothing (swatches mid-animation) can widen the page */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--velvet); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.note { display: inline-block; font-size: 0.8125rem; font-weight: 400; color: var(--ink-soft); }
/* One icon style for the whole library: Tabler outline, 2px stroke, from the sprite at the top of the page */
.i { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Touch polish */
a, button, summary, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-pill); background: var(--vine); color: var(--c-on-accent); font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
.btn:active { transform: scale(.97); }
.btn-light { background: var(--paper); color: var(--velvet); }
.btn-quiet { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--vine); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--vine-deep); }
  .btn-light:hover { background: var(--mist); }
  .nav a:hover { box-shadow: inset 0 -8px 0 var(--sw); }
  .head-cta:hover { background: var(--vine-deep); }
  .mount:hover { box-shadow: 0 0 0 2px var(--on-dark-soft); }
  .slots label:hover { border-color: var(--vine); }
  .cat-tabs label:hover, .lvl label:hover { text-decoration: underline; }
  summary:hover span { text-decoration: underline; }
}

/* The lock: a bundle of hair fibres, drawn in CSS. Set --a (root), --b (mid), --c (ends). */
.lock {
  display: block;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0) 14%, rgb(255 255 255 / .30) 25%, rgb(255 255 255 / .07) 33%, rgb(255 255 255 / 0) 41%),
    linear-gradient(90deg, rgb(0 0 0 / .24), rgb(0 0 0 / 0) 20%, rgb(0 0 0 / 0) 80%, rgb(0 0 0 / .24)),
    repeating-linear-gradient(90deg, rgb(0 0 0 / .16) 0 1px, rgb(0 0 0 / 0) 1px 4px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .17) 0 1px, rgb(255 255 255 / 0) 1px 7px),
    linear-gradient(180deg, var(--a, #5E2238), var(--b, #5E2238) 55%, var(--c, #7D3449));
  clip-path: polygon(0 0, 100% 0, 97% 80%, 93% 100%, 86% 95%, 79% 100%, 71% 96%, 63% 100%, 55% 95%, 47% 100%, 39% 96%, 31% 100%, 23% 95%, 15% 100%, 8% 96%, 3% 80%);
}

/* Demo bar: one line */
.demo-bar { overflow: hidden; background: var(--velvet); color: var(--on-dark); font-size: 0.8125rem; line-height: 1.4; text-align: center; padding: 7px 14px; white-space: nowrap; text-overflow: ellipsis; }

/* Header: brand + phone on row one, swatch-tab nav + Book on row two (phones) */
.site-head {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas: "brand brand brand phone phone" "nav nav nav nav cta";
  align-items: center; gap: 4px; padding: 10px var(--pad) 0; background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { grid-area: brand; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; justify-content: start; text-decoration: none; min-height: 44px; }
.brand-mark {
  grid-row: 1 / span 2; width: 13px; height: 34px;
  --a: #3A1424; --b: #5E2238; --c: #7D3449;
  background: linear-gradient(180deg, var(--a), var(--b) 55%, var(--c));
  clip-path: polygon(0 0, 100% 0, 96% 82%, 82% 100%, 64% 92%, 46% 100%, 28% 92%, 12% 100%, 4% 82%);
  border-top: 6px solid var(--chrome);
}
.brand-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.brand-sub { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.head-phone { grid-area: phone; justify-self: end; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.head-phone .i { width: 18px; height: 18px; color: var(--vine); }
.nav { grid-area: nav; }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nav a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 48px; padding: 0 2px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; box-shadow: inset 0 -4px 0 var(--sw); transition: box-shadow 150ms ease; }
.head-cta { grid-area: cta; display: flex; align-items: center; justify-content: center; min-height: 48px; background: var(--vine); color: var(--c-on-accent); font-weight: 600; font-size: 0.9375rem; text-decoration: none; border-radius: 12px 12px 0 0; }
.wide-only { display: none; }

/* Hero */
.hero { display: grid; gap: 22px; padding: 30px var(--pad) 36px; }
.hero h1 { font-size: clamp(2.4rem, 9.6vw, 4.75rem); line-height: 1.02; max-width: 11em; }
.lede { margin-top: 16px; font-size: 1.125rem; color: var(--ink-soft); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 22px; }
.hero-rating { margin-top: 16px; font-weight: 600; font-size: 0.9375rem; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.stars { color: var(--vine); letter-spacing: 2px; }

/* Hero art: a swatch ring with the photo as the front swatch. Everything is sized in container units. */
.ring-art { position: relative; width: 100%; max-width: min(540px, 82vw); justify-self: center; aspect-ratio: 1 / 1.06; container-type: inline-size; }
.ring { position: absolute; z-index: 3; left: 60cqw; top: 2.6cqw; width: 16cqw; height: 16cqw; border-radius: 50%; border: 1.9cqw solid var(--chrome); box-shadow: inset 0 0.4cqw 0 rgb(255 255 255 / .55), 0 0.5cqw 1cqw rgb(43 21 50 / .35); border-top-color: #C9C5CE; border-left-color: #BDB8C3; }
.fan { list-style: none; margin: 0; padding: 0; }
.sw { position: absolute; z-index: 1; left: 62.5cqw; top: 13.5cqw; width: 11cqw; transform-origin: 50% 3.5cqw; rotate: var(--r); filter: drop-shadow(0 0.8cqw 1.2cqw rgb(43 21 50 / .28)); }
.sw-tab {
  display: block; height: 9cqw; background: var(--paper); border-radius: 2cqw 2cqw 0.6cqw 0.6cqw;
  -webkit-mask: radial-gradient(circle 1.5cqw at 50% 3.5cqw, #0000 96%, #000); mask: radial-gradient(circle 1.5cqw at 50% 3.5cqw, #0000 96%, #000);
  background-image: linear-gradient(var(--velvet), var(--velvet)); background-size: 50% 0.7cqw; background-position: 50% 6.6cqw; background-repeat: no-repeat;
}
.sw .lock { height: 59cqw; margin: 0 0.8cqw; }
.big-tab { position: absolute; z-index: 2; left: 41cqw; top: 12.6cqw; width: 54cqw; transform-origin: 50% 4.4cqw; rotate: -2deg; filter: drop-shadow(0 1.4cqw 2.2cqw rgb(43 21 50 / .30)); }
.big-tab-head {
  display: flex; flex-direction: column; justify-content: flex-end; height: 22cqw; padding: 0 3.5cqw 2.4cqw; background: var(--paper); border-radius: 3.4cqw 3.4cqw 0 0;
  -webkit-mask: radial-gradient(circle 1.9cqw at 50% 4.4cqw, #0000 96%, #000); mask: radial-gradient(circle 1.9cqw at 50% 4.4cqw, #0000 96%, #000);
}
.big-tab-head .code { font-family: var(--font-display); font-size: max(1.35rem, 7cqw); line-height: 1; }
.big-tab-head .name { font-size: max(0.8125rem, 2.9cqw); font-weight: 600; color: var(--ink-soft); line-height: 1.3; margin-top: 0.6cqw; }
.big-tab img { width: 100%; height: 66cqw; object-fit: cover; object-position: 50% 30%; border-radius: 0 0 1.2cqw 1.2cqw; }

/* Trust band */
.trust { background: var(--paper); border-block: 1px solid var(--line); padding: 22px var(--pad); }
.trust-facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.trust-facts li { display: grid; gap: 2px; padding-top: 10px; border-top: 4px solid var(--sw, var(--velvet)); }
.trust-facts li:nth-child(1) { --sw: #5E2238; }
.trust-facts li:nth-child(2) { --sw: #A85424; }
.trust-facts li:nth-child(3) { --sw: #C1A984; }
.trust-facts li:nth-child(4) { --sw: #6E635B; }
.trust-facts strong { font-size: 1rem; line-height: 1.3; }
.trust-facts span { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.4; }
.badges { list-style: none; padding: 0; margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.badges li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--ground); font-size: 0.875rem; font-weight: 500; line-height: 1.25; }
.badges .i { color: var(--vine); }

/* Section heads and disclosure rows */
.section-head { max-width: 44em; margin-bottom: 22px; }
.section-head p { margin-top: 10px; color: var(--ink-soft); font-size: 1.0625rem; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary .i { transition: transform 180ms var(--ease-out); }
details[open] > summary .i { transform: rotate(45deg); }

/* Signature: the shade finder, a page from the swatch book */
.finder { background: var(--velvet); color: var(--on-dark); padding: 44px var(--pad); }
.finder-head h2 { color: #fff; }
.finder-head p { margin-top: 10px; color: var(--on-dark-soft); max-width: 40em; }
.finder-body { display: grid; gap: 14px; margin-top: 24px; }

/* Phones: the pulled swatch sits on top as a compact card, the swatches pan sideways below it */
.pull { display: contents; }
.pull-art {
  order: 1; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 10px 16px 10px 12px; background: var(--paper); color: var(--velvet); border-radius: 16px;
}
.pull-ring { display: none; }
.pull-lock { grid-row: 1 / span 2; grid-column: 1; height: 62px; }
.pull-tab { display: contents; }
.pull-code::before { content: var(--code); }
.pull-name::before { content: var(--name); }
.pull-name::after { content: "Your pick, pulled from the ring"; display: block; font-size: 0.8125rem; font-weight: 400; color: var(--ink-soft); }
.pull-code { grid-column: 2; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; align-self: end; }
.pull-name { grid-column: 2; font-weight: 600; line-height: 1.3; align-self: start; margin-top: 4px; }
.pull-note { order: 3; color: var(--on-dark-soft); max-width: 34em; }
.pull > .btn { order: 4; justify-self: start; }

/* Default preview values (5.62 Velvet), then one rule per shade */
.pull { --a: #3A1424; --b: #5E2238; --c: #7D3449; --code: "5.62"; --name: "Velvet"; }
.finder:has(#sh-40:checked) .pull { --a: #2E1E17; --b: #4A3024; --c: #634433; --code: "4.0"; --name: "Espresso"; }
.finder:has(#sh-562:checked) .pull { --a: #3A1424; --b: #5E2238; --c: #7D3449; --code: "5.62"; --name: "Velvet"; }
.finder:has(#sh-634:checked) .pull { --a: #7A3A16; --b: #A85424; --c: #C9733A; --code: "6.34"; --name: "Copper"; }
.finder:has(#sh-73:checked) .pull { --a: #86602F; --b: #B08646; --c: #CDA463; --code: "7.3"; --name: "Honey"; }
.finder:has(#sh-813:checked) .pull { --a: #9A8264; --b: #C1A984; --c: #DCC7A4; --code: "8.13"; --name: "Sand"; }
.finder:has(#sh-912:checked) .pull { --a: #8B8A90; --b: #B3B2B8; --c: #D4D3D8; --code: "9.12"; --name: "Silver"; }

.book-page {
  order: 2; position: relative; border: 0; min-width: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(46%, 200px); gap: 10px;
  margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad) 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--on-dark-soft) transparent;
}
.mount { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; background: var(--paper); color: var(--velvet); border-radius: 18px; padding: 0 12px 14px; cursor: pointer; }
.mount::before { content: ""; height: 10px; margin: 0 -12px; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, #D8D4DC, var(--chrome)); }
.mount .lock { height: 84px; margin: 0 2px 10px; }
.m-code { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.m-name { font-weight: 700; margin-top: 2px; }
.m-what { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }
.m-row { font-size: 0.875rem; line-height: 1.35; margin-top: 8px; font-variant-numeric: tabular-nums; }
.m-row b { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
input:checked + .mount { box-shadow: 0 0 0 3px var(--on-dark), 0 18px 30px -12px rgb(0 0 0 / .6); translate: 0 -6px; }
input:checked + .mount::after { content: "Your pick"; position: absolute; top: 16px; right: 8px; background: var(--vine); color: #fff; font-size: 0.8125rem; font-weight: 600; padding: 2px 10px; border-radius: var(--r-pill); }
input:focus-visible + .mount { outline: 3px solid var(--on-dark); outline-offset: 5px; }
/* Pin each hidden radio to its own swatch's rail column, so a tap never scrolls the rail back to the start. */
.book-page > input { grid-row: 1; }
.book-page > input:nth-of-type(1) { grid-column: 1; } .book-page > input:nth-of-type(2) { grid-column: 2; } .book-page > input:nth-of-type(3) { grid-column: 3; }
.book-page > input:nth-of-type(4) { grid-column: 4; } .book-page > input:nth-of-type(5) { grid-column: 5; } .book-page > input:nth-of-type(6) { grid-column: 6; }

.code-key { margin-top: 20px; max-width: 46em; border-top: 1px solid rgb(255 255 255 / .16); }
.code-key summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; color: #fff; font-family: var(--font-display); font-size: 1.25rem; }
.code-key p { padding-bottom: 6px; color: var(--on-dark-soft); }

/* Menu: price tables with swatch-book index tabs */
.menu { padding: 44px var(--pad); }
.menu-ctl { display: grid; gap: 14px; }
.lvl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.lvl legend { float: left; padding: 0; font-weight: 600; font-size: 0.9375rem; }
.lvl-opts { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); }
.lvl label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.lvl input:checked + label { background: var(--velvet); color: #fff; }
.lvl input:focus-visible + label, .cat-tabs input:focus-visible + label { outline: 3px solid var(--vine); outline-offset: 2px; }
.cat-tabs { display: flex; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cat-tabs label { flex: 1; display: grid; place-items: center; min-height: 48px; padding: 0 4px; border-radius: 14px 14px 0 0; background: var(--mist); font-family: var(--font-display); font-size: 1.1rem; cursor: pointer; transition: background-color 150ms ease; }
.cat-tabs input:checked + label { background: var(--sw); color: var(--sw-ink, #fff); }
.menu-grid { display: grid; gap: 32px; }
.price { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: 0 0 18px 18px; }
.price caption { caption-side: top; text-align: left; }
.itab { display: inline-block; padding: 9px 20px 7px; border-radius: 14px 14px 0 0; background: var(--sw); color: var(--sw-ink, #fff); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.price th, .price td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price tr:last-child > * { border-bottom: 0; }
.price thead th { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); text-align: right; padding-top: 12px; padding-bottom: 6px; }
.price thead th:first-child { text-align: left; }
.price th:first-child { padding-left: 16px; }
.price td:last-child, .price thead th:last-child { padding-right: 16px; }
.price tbody th { text-align: left; font-weight: 600; line-height: 1.35; }
.price tbody th span { font-weight: 400; font-size: 0.875rem; color: var(--ink-soft); white-space: nowrap; }
.price td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.price td.na { font-size: 0.875rem; font-weight: 400; color: var(--ink-soft); white-space: normal; }
.menu-foot { margin-top: 20px; max-width: 48em; color: var(--ink-soft); font-size: 0.9375rem; }
/* Phones: one category and one stylist level at a time; every price stays in the page. Shift-free: the four tables
   share one grid cell (as tall as the longest) and the price column has a fixed width, so switching moves nothing. */
@media (max-width: 759.98px) {
  .price caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .price td, .price thead th:not(:first-child) { width: 92px; }
  .menu:has(#cat-cut:checked) .price:not(.p-cut), .menu:has(#cat-color:checked) .price:not(.p-color),
  .menu:has(#cat-light:checked) .price:not(.p-light), .menu:has(#cat-care:checked) .price:not(.p-care) { visibility: hidden; }
  @supports selector(:has(*)) { .menu-grid > .price { grid-area: 1 / 1; } }
  .menu:has(#lvl-1:checked) .price :is(th, td):is(:nth-child(3), :nth-child(4)),
  .menu:has(#lvl-2:checked) .price :is(th, td):is(:nth-child(2), :nth-child(4)),
  .menu:has(#lvl-3:checked) .price :is(th, td):is(:nth-child(2), :nth-child(3)) { display: none; }
  .menu-ctl + .menu-grid .price { border-top-left-radius: 0; }
}
@supports not selector(:has(*)) { .menu-ctl { display: none; } .price { border-radius: 18px; } }

/* Stylists: each card is a swatch tab with the stylist's signature shade (a rail on phones) */
.stylists { padding: 0 var(--pad) 44px; }
.cards { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 340px); gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--chrome) transparent; }
.card {
  --hx: 42px; scroll-snap-align: start;
  display: grid; grid-template-columns: 78px 1fr; background: var(--paper); border-radius: var(--r-tab) var(--r-card) var(--r-card) var(--r-tab);
  -webkit-mask: radial-gradient(circle 7px at var(--hx) 17px, #0000 96%, #000); mask: radial-gradient(circle 7px at var(--hx) 17px, #0000 96%, #000);
}
.card-tab { display: flex; flex-direction: column; padding: 34px 12px 16px; border-right: 1px solid var(--line); }
.card-tab .lock { flex: 1; min-height: 120px; }
.card-body { padding: 18px 18px 12px; display: grid; gap: 4px; align-content: start; }
.level { justify-self: start; font-size: 0.8125rem; font-weight: 600; color: var(--vine); background: #E2EEE8; padding: 3px 10px; border-radius: var(--r-pill); }
.card h3 { font-size: 1.5rem; margin-top: 4px; }
.years { font-size: 0.9375rem; color: var(--ink-soft); }
.card-body > p:not([class]) { font-size: 0.9375rem; line-height: 1.5; }
.sig { font-family: var(--font-display); font-size: 1.1rem; margin-top: 4px; }
.sig span { display: block; font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.card-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--vine); justify-self: start; }

/* Work: photos with formula cards (the client record card), a rail on phones */
.work { padding: 44px var(--pad); background: var(--mist); }
.work-grid { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 330px); gap: 14px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--chrome) transparent; }
.work-grid > li { scroll-snap-align: start; }
.work figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.formula {
  position: relative; margin: -30px 12px 0; padding: 10px 14px 8px 40px;
  background: linear-gradient(90deg, transparent 28px, var(--rule-pink) 28px 29px, transparent 29px), repeating-linear-gradient(180deg, transparent 0 25px, #EAE1EC 25px 26px), var(--paper);
  background-position: 0 0, 0 12px, 0 0; border-radius: 6px; box-shadow: 0 12px 24px -14px rgb(43 21 50 / .45); rotate: -1deg;
}
.work-grid li:nth-child(even) .formula { rotate: 1deg; }
.f-title { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 26px; }
.formula dl div { display: grid; grid-template-columns: 62px 1fr; gap: 8px; line-height: 26px; }
.formula dt { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.formula dd { margin: 0; font-size: 0.875rem; line-height: 26px; }
.work-grid:focus-visible, .cards:focus-visible, .review-list:focus-visible { outline-offset: -3px; }

/* First visit + aftercare tag */
.visit-steps { padding: 44px var(--pad); }
.steps-wrap { display: grid; gap: 28px; }
.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding-top: 12px; border-top: 2px solid var(--velvet); }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--vine); }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 2px; color: var(--ink-soft); font-size: 1rem; }
/* Phones: the numeral sits on the heading's line and the text runs the full, centered column */
@media (max-width: 759.98px) {
  .steps li { grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
  .steps li::before { grid-row: auto; font-size: 1.75rem; }
  .steps p { grid-column: 1 / -1; margin-top: 4px; }
}
.consult-photo { display: none; }
.consult-photo img { border-radius: 18px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.consult-photo figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }
.care-tag { position: relative; margin-top: 24px; max-width: 640px; background: var(--paper); border-radius: 12px 22px 22px 12px; padding: 0 20px 0 64px; -webkit-mask: radial-gradient(circle 8px at 32px 28px, #0000 96%, #000); mask: radial-gradient(circle 8px at 32px 28px, #0000 96%, #000); }
.care-tag::before { content: ""; position: absolute; left: 28px; top: 44px; bottom: 14px; width: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgb(0 0 0 / .15) 0 1px, transparent 1px 3px), linear-gradient(#3A1424, #7D3449); }
.care-tag summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.care-tag ul { list-style: none; padding: 0 0 20px; display: grid; gap: 8px; }
.care-tag li { padding-left: 22px; position: relative; }
.care-tag li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: var(--vine); }

/* Reviews: a rail on phones */
.reviews { padding: 44px var(--pad); background: var(--paper); }
.review-list { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--chrome) transparent; }
.review-list li { scroll-snap-align: start; background: var(--ground); border-radius: var(--r-card); padding: 22px 20px 18px; display: flex; flex-direction: column; }
.review-list blockquote p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; }
.who { margin-top: auto; padding-top: 16px; font-weight: 700; }
.who .note { display: block; }

/* About */
.about { display: grid; gap: 22px; padding: 44px var(--pad); }
.about-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-card); }
.about-copy p { margin-top: 14px; max-width: 36em; }

/* Book: a page from the appointment book */
.book { padding: 44px var(--pad); background: var(--mist); }
.book-form { display: grid; gap: 22px; align-items: start; }
.appt-book { margin: 0; min-width: 0; border: 0; border-radius: 18px; padding: 16px 14px 8px; background: var(--paper); }
.appt-book legend { float: left; width: 100%; padding: 0 0 8px; font-family: var(--font-display); font-size: 1.35rem; }
.day { clear: both; display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; min-height: 62px; border-top: 1px solid #EAE1EC; }
.day-name { font-weight: 700; display: flex; align-items: center; border-right: 1px solid var(--rule-pink); }
.slots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; }
.slots label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: var(--r-pill); background: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 150ms ease; }
.slots label span { font-weight: 400; color: var(--ink-soft); }
.slots input:checked + label { background: var(--vine); border-color: var(--vine); color: #fff; }
.slots input:checked + label span { color: #DDEFE7; }
.slots input:focus-visible + label { outline: 3px solid var(--vine); outline-offset: 2px; }
.fields { display: grid; gap: 6px; }
.fields label { font-weight: 600; margin-top: 8px; }
.fields label:first-child { margin-top: 0; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: 0.875rem; }
.fields input, .fields select { width: 100%; min-height: 50px; padding: 10px 14px; font: 400 1.0625rem/1.4 var(--font-text); color: var(--velvet); background: var(--paper); border: 1.5px solid var(--field); border-radius: var(--r-field); }
.fields select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--velvet) 50%), linear-gradient(135deg, var(--velvet) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.fields input:user-invalid { border-color: var(--c-accent-2); }
.fields .btn { justify-self: start; margin-top: 14px; }
.fine { margin-top: 8px; font-size: 0.875rem; color: var(--ink-soft); }
.sent { display: none; margin-top: 10px; padding: 12px 14px; border-radius: var(--r-field); background: var(--paper); border-left: 4px solid var(--vine); }
.sent:target { display: block; }

/* Visit */
.visit { display: grid; gap: 14px; padding: 44px var(--pad); }
.visit-card, .hours { background: var(--paper); border-radius: var(--r-card); padding: 22px 20px; }
.visit address { font-style: normal; font-size: 1.2rem; margin-top: 12px; line-height: 1.45; }
.visit address a { text-decoration-color: var(--line); }
.visit-card > p { margin-top: 10px; color: var(--ink-soft); }
.contact-lines a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.contact-lines .i { color: var(--vine); }
.hours table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours tr:last-child > * { border-bottom: 0; }
.hours td { text-align: right; font-weight: 600; white-space: nowrap; }

/* Footer */
.site-foot { background: var(--velvet); color: var(--on-dark); padding: 36px var(--pad) calc(var(--ab-h) + 36px + env(safe-area-inset-bottom)); }
.foot-name { font-family: var(--font-display); font-size: 1.8rem; color: #fff; line-height: 1.1; }
.foot-brand p:last-child { color: var(--on-dark-soft); margin-top: 6px; }
.foot-cols { display: grid; gap: 18px; margin-top: 22px; }
.foot-cols h2 { font-family: var(--font-text); font-size: 0.875rem; font-weight: 600; color: var(--on-dark-soft); letter-spacing: 0; margin-bottom: 2px; }
.foot-cols a { display: flex; align-items: center; min-height: 44px; width: fit-content; overflow-wrap: anywhere; }
.foot-hours { font-variant-numeric: tabular-nums; }
.foot-legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .16); font-size: 0.875rem; color: var(--on-dark-soft); }
.site-foot :focus-visible { outline-color: var(--on-dark); }

/* C1 Action Bar (phones): Call, Text, Book */
.action-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgb(43 21 50 / .35); }
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ab-h); border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--paper); color: var(--velvet); font-weight: 600; text-decoration: none; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
.action-bar .ab-call { background: var(--vine); border-color: var(--vine); color: var(--c-on-accent); }
.action-bar a:active { transform: scale(.97); background: var(--mist); }
.action-bar .ab-call:active { background: var(--vine-deep); }

/* ---------- Tablet: 760 ---------- */
@media (min-width: 760px) {
  :root { --ab-h: 0px; }
  html { scroll-padding-bottom: 0; }
  .action-bar { display: none; }
  .hero { padding: 48px var(--pad) 56px; }
  .trust { padding-block: 28px; }
  .trust-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .badges { display: flex; flex-wrap: wrap; }
  .badges li { border-radius: var(--r-pill); }
  .finder, .menu, .work, .visit-steps, .reviews, .about, .book, .visit { padding-block: 72px; }
  .stylists { padding-bottom: 72px; }
  .menu-ctl { display: none; }
  .price { border-radius: 0 18px 18px 18px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
  .cards, .work-grid, .review-list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .cards { gap: 16px; }
  .work-grid { gap: 36px 24px; }
  .review-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .book-page { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 8px 0 0; overflow: visible; }
  /* Keep each hidden radio in its own label's grid cell, so a click never scrolls the page to the top-left of the grid. */
  .book-page > input:nth-of-type(-n+3) { grid-row: 1; }
  .book-page > input:nth-of-type(n+4) { grid-row: 2; }
  .book-page > input:nth-of-type(3n+1) { grid-column: 1; }
  .book-page > input:nth-of-type(3n+2) { grid-column: 2; }
  .book-page > input:nth-of-type(3n) { grid-column: 3; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .steps li { display: block; }
  .steps li::before { display: block; font-size: 2.4rem; margin-bottom: 8px; }
  .consult-photo { display: block; }
  /* From tablet up the shade-code key and the aftercare tag are open in place (progressive: ::details-content) */
  .code-key > summary, .care-tag > summary { pointer-events: none; }
  .code-key > summary .i, .care-tag > summary .i { display: none; }
  .care-tag { padding-bottom: 4px; }
  .visit { grid-template-columns: 1.2fr 1fr; }
  .site-foot { padding-bottom: 28px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .code-key::details-content, .care-tag::details-content { content-visibility: visible; }
}

/* ---------- Desktop: 1080 ---------- */
@media (min-width: 1080px) {
  .site-head { grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand nav phone cta"; gap: 28px; padding: 14px var(--pad); }
  .nav ul { display: flex; justify-content: center; gap: 30px; }
  .nav a { min-height: 44px; padding: 0 4px; box-shadow: inset 0 -3px 0 var(--sw); }
  .head-cta { border-radius: var(--r-pill); padding: 0 22px; }
  .wide-only { display: inline; }
  .brand-name { font-size: 1.6rem; }

  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: center; gap: 64px; padding: 72px var(--pad) 80px; }
  .lede { margin-top: 20px; }
  .hero-actions { margin-top: 28px; }

  .finder { padding: 104px var(--pad); }
  .finder-body { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 32px; }
  .pull { display: grid; gap: 22px; position: sticky; top: 24px; }
  .pull-art { position: relative; display: block; height: 460px; padding: 0; background: none; filter: drop-shadow(0 18px 24px rgb(0 0 0 / .45)); }
  .pull-ring { display: block; position: absolute; z-index: 2; left: 50%; top: 0; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; border: 8px solid var(--chrome); border-top-color: #CFCBD3; }
  .pull-tab {
    display: flex; flex-direction: column; justify-content: flex-end; position: absolute; left: 50px; right: 50px; top: 46px; height: 150px;
    padding: 0 20px 18px; background: var(--paper); color: var(--velvet); border-radius: 18px 18px 4px 4px;
    -webkit-mask: radial-gradient(circle 9px at 50% 16px, #0000 96%, #000); mask: radial-gradient(circle 9px at 50% 16px, #0000 96%, #000);
  }
  .pull-code { font-size: 3.4rem; margin: 0; }
  .pull-name { margin-top: 4px; font-size: 1.05rem; }
  .pull-lock { position: absolute; left: 62px; right: 62px; top: 196px; height: 264px; }
  .pull-art, .pull-note, .pull > .btn { order: 0; }
  .pull-code, .pull-name { align-self: auto; }
  .book-page { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .mount .lock { height: 112px; }
  .m-code { font-size: 1.75rem; }
  .code-key { margin-top: 40px; }

  .stylists .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card { --hx: 50%; grid-template-columns: 1fr; grid-template-rows: auto 1fr; border-radius: var(--r-tab) var(--r-tab) var(--r-card) var(--r-card); }
  .card-tab { padding: 34px 22px 0; border-right: 0; }
  .card-tab .lock { flex: none; height: 120px; min-height: 0; }

  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work figure img { aspect-ratio: 4 / 5; }
  .steps-wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .book-form { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; }
}

/* Motion: one signature moment (the hero ring fans open), plus small responses to taps */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .sw { animation: fan-open 1.3s cubic-bezier(.2, .75, .25, 1) both; animation-delay: calc(300ms + var(--i) * 90ms); }
  .mount { transition: translate 250ms var(--ease-out); }
}
@keyframes fan-open { from { rotate: -2deg; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* One Call on the entry screen (Ethan, Oct 7 2026): on phones the action bar's Call is the one; the header number shows
   from 760px, where the bar is hidden. */
@media (max-width: 759.98px) { .head-phone { display: none; } }
