/* Bellmazi Hair Mob — homepage concept
   Palette and typefaces are taken from the live bellmazihairmob.com theme. */

:root {
  --noir: #0f0f0f;
  --espresso: #1c1a16;
  --bark: #463e36;
  --taupe: #6b6057;
  --champagne: #b59a78;
  --champagne-pale: #d8c7a3;
  --bone: #f8f8f6;
  --stone: #eeece9;
  --white: #ffffff;
  --rule: rgba(70, 62, 54, 0.2);
  --rule-light: rgba(216, 199, 163, 0.24);

  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --band: clamp(72px, 10vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--bark);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }

:focus-visible {
  outline: 2px solid var(--espresso);
  outline-offset: 3px;
}
/* Champagne reads on the dark surfaces; espresso on the light ones. */
:is(.notice, .site-header, .hero, .menu, .learn, .site-footer, .quickbar, .buybar, .p-cover, .p-dark) :focus-visible { outline-color: var(--champagne-pale); }
::selection { background: var(--champagne); color: var(--noir); }
input { caret-color: var(--champagne); }
main { scroll-margin-top: 84px; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band); }

/* Menu links land just below the sticky header instead of underneath it. */
main section[id] { scroll-margin-top: 76px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--champagne);
  color: var(--noir);
}
.skip:focus { top: 12px; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 500 0.9375rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-champagne { background: var(--champagne); color: var(--noir); }
.btn-champagne:hover { background: var(--champagne-pale); }
.btn-espresso { background: var(--espresso); color: var(--bone); }
.btn-espresso:hover { background: var(--bark); }
.btn-outline-light { border-color: rgba(216, 199, 163, 0.55); color: var(--champagne-pale); }
.btn-outline-light:hover { background: var(--champagne-pale); color: var(--noir); }
.btn-outline-dark { border-color: var(--bark); color: var(--espresso); }
.btn-outline-dark:hover { background: var(--espresso); color: var(--bone); }

.text-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--espresso);
  text-decoration: underline;
  text-decoration-color: var(--champagne);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.text-link:hover { text-decoration-thickness: 2px; }
.text-link-light { color: var(--champagne-pale); }

/* ---------- Notice and header ---------- */

.notice {
  background: var(--espresso);
  color: var(--champagne-pale);
  text-align: center;
  font-size: 0.8125rem;
  padding: 9px var(--gutter);
}
.notice a { text-decoration: none; }
.notice a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--noir);
  color: var(--champagne-pale);
  border-bottom: 1px solid var(--rule-light);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}
.logo img { width: 168px; }

.header-row { gap: 0; }
.site-nav { display: flex; align-items: stretch; margin-left: auto; }
.nav-list { display: flex; gap: clamp(26px, 2.6vw, 40px); }
.nav-item { display: flex; }
.nav-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 76px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: 400 0.9375rem var(--sans);
  cursor: pointer;
  box-shadow: inset 0 -1px 0 transparent;
}
.nav-top::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  transition: transform 0.18s ease, margin 0.18s ease;
}
.nav-top:hover, .nav-item.is-open .nav-top { box-shadow: inset 0 -2px 0 var(--champagne); }
.nav-item.is-open .nav-top::after { transform: rotate(225deg); margin-top: 3px; }

/* One panel per menu item, the full width of the header, holding her own pages. */
.nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  background: var(--noir);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  box-shadow: 0 28px 44px rgba(15, 15, 15, 0.32);
}
.nav-item.is-open .nav-panel { display: block; }
html:not(.js) .nav-item:focus-within .nav-panel, html:not(.js) .nav-item:hover .nav-panel { display: block; }
.nav-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 8px clamp(24px, 4vw, 64px);
  padding-block: 34px 44px;
}
.nav-lead a {
  display: inline-block;
  padding-block: 7px;
  font: 400 1.5rem/1.15 var(--serif);
  color: var(--champagne-pale);
  text-decoration: none;
}
.nav-group-title { margin-bottom: 8px; font: italic 400 1.125rem/1.3 var(--serif); color: var(--champagne); }
.nav-group a {
  display: block;
  padding-block: 7px;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: rgba(248, 248, 246, 0.82);
  text-decoration: none;
}
.nav-note { display: block; font-size: 0.8125rem; color: rgba(248, 248, 246, 0.56); }
.nav-panel a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: 5px; }
.nav-panel a:hover .nav-note { color: rgba(248, 248, 246, 0.72); }

.header-tools { display: flex; align-items: center; gap: 4px; margin-left: clamp(16px, 2vw, 32px); }
.tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
}
.tool svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover, .tool[aria-expanded="true"] { background: rgba(216, 199, 163, 0.14); }
.bag-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--champagne);
  color: var(--noir);
  font: 600 0.6875rem/18px var(--sans);
  text-align: center;
}
.bag-count[hidden] { display: none; }
/* Bag and account open under their icons, against the right edge of the page. */
.tool-panel { position: absolute; left: 0; right: 0; top: 100%; pointer-events: none; }
.tool-panel[hidden] { display: none; }
.tool-panel-wrap { display: flex; justify-content: flex-end; }
.tool-panel-box {
  pointer-events: auto;
  width: min(420px, 100%);
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 24px 24px 26px;
  background: var(--noir);
  border: 1px solid var(--rule-light);
  border-top: 0;
  box-shadow: 0 28px 44px rgba(15, 15, 15, 0.4);
  color: var(--bone);
}
.tool-panel-title { font: 400 1.5rem/1.15 var(--serif); color: var(--champagne-pale); }
.tool-panel-text { margin-top: 10px; font-size: 0.9375rem; color: rgba(248, 248, 246, 0.8); }
.tool-panel-text a { color: var(--champagne-pale); text-underline-offset: 4px; }
.bag-lines { margin-top: 16px; }
.bag-lines:empty { display: none; }
.bag-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: start;
  padding-block: 14px;
  border-top: 1px solid var(--rule-light);
}
.bag-line img { grid-row: 1 / span 2; width: 56px; height: 70px; object-fit: cover; background: var(--stone); }
.bag-line-name { font: 400 1.125rem/1.2 var(--serif); color: var(--bone); text-decoration: none; }
.bag-line-name:hover { text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: 4px; }
.bag-line-price { font: 400 1.125rem/1.2 var(--serif); }
.bag-line-meta { grid-column: 2; font-size: 0.8125rem; color: rgba(248, 248, 246, 0.66); }
.bag-remove {
  grid-column: 3;
  justify-self: end;
  min-height: 32px;
  padding: 0;
  background: none;
  border: 0;
  color: rgba(248, 248, 246, 0.74);
  font: 400 0.8125rem var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bag-remove:hover { color: var(--white); }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--rule-light); font-size: 0.9375rem; }
.bag-total[hidden], .bag-actions[hidden], .bag-empty[hidden] { display: none; }
.bag-total strong { font: 400 1.5rem/1 var(--serif); color: var(--champagne-pale); }
.tool-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tool-panel-actions .btn { flex: 1 1 auto; min-height: 48px; padding: 10px 18px; }
/* A real button brings its own grey face; the outline style expects none. */
button.btn-outline-light, button.btn-outline-dark { background-color: transparent; }
button.btn-outline-light:hover { background-color: var(--champagne-pale); }
button.btn-outline-dark:hover { background-color: var(--espresso); }
button.btn { cursor: pointer; }
.tool-panel-note { margin-top: 14px; font-size: 0.875rem; line-height: 1.5; color: var(--champagne-pale); }
.tool-panel-note:empty { display: none; }
.nav-book { min-height: 44px; padding: 10px 20px; }
.nav-book-bar { margin-left: clamp(14px, 1.6vw, 26px); flex: none; }
.nav-book-menu, .nav-login { display: none; }

.site-search {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--noir);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  box-shadow: 0 28px 44px rgba(15, 15, 15, 0.32);
}
.site-search[hidden] { display: none; }
.site-search-row { display: flex; align-items: center; gap: 12px; padding-block: 22px; }
.site-search-label { flex: none; font: italic 400 1.25rem var(--serif); color: var(--champagne); }
.site-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid rgba(216, 199, 163, 0.5);
  border-radius: 2px;
  color: var(--bone);
  font: 400 1rem var(--sans);
}
.site-search input::placeholder { color: rgba(248, 248, 246, 0.5); }
.site-search .btn { flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: inherit;
  font: 500 0.9375rem var(--sans);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}
.nav-toggle-bars { position: relative; top: -3px; }
.nav-toggle-bars::before { content: ""; position: absolute; top: 7px; }

/* ---------- Hero ---------- */

.hero { position: relative; background: var(--noir); color: var(--champagne-pale); }
.hero-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* One row locked to the panel height. Left to size itself, the row grows to
     the photos' natural height and they spill over the section below. */
  grid-template-rows: minmax(0, 1fr);
  gap: 2px;
  height: min(860px, calc(100vh - 148px));
  min-height: 580px;
  overflow: hidden;
}
.hero-panels img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }

/* With a mouse, the photograph under the pointer opens up and the others give way. */
@media (hover: hover) and (min-width: 861px) {
  .hero-panels { transition: grid-template-columns 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .hero-panels:has(img:nth-child(1):hover) { grid-template-columns: 1.3fr 0.85fr 0.85fr; }
  .hero-panels:has(img:nth-child(2):hover) { grid-template-columns: 0.85fr 1.3fr 0.85fr; }
  .hero-panels:has(img:nth-child(3):hover) { grid-template-columns: 0.85fr 0.85fr 1.3fr; }
  /* The copy sits over the photos; let the pointer through to them except on the links. */
  .hero-copy { pointer-events: none; }
  .hero-copy a { pointer-events: auto; }
}
.hero-panels img:nth-child(1) { object-position: 50% 12%; }
.hero-panels img:nth-child(2) { object-position: 64% 16%; }
.hero-panels img:nth-child(3) { object-position: 50% 18%; }

/* The copy sits over the foot of the photos, on a fade to the header black. */
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 200px 0 52px;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.8) 34%, rgba(15, 15, 15, 0.38) 68%, rgba(15, 15, 15, 0) 100%);
}
.hero-copy-inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 400px);
  justify-content: space-between;
  align-items: end;
  gap: clamp(28px, 5vw, 80px);
}
.hero-motto { margin-bottom: 14px; font: italic 400 1.25rem/1.3 var(--serif); color: var(--champagne); }
.hero-title {
  font-size: clamp(3.5rem, 8.4vw, 8.75rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--champagne-pale);
}
.hero-what { margin-top: 16px; font-size: 1.0625rem; font-weight: 500; color: var(--champagne-pale); }
.hero-sub { font-size: 1.0625rem; line-height: 1.6; color: rgba(248, 248, 246, 0.88); }
.hero-rating { margin-top: 18px; font-size: 0.9375rem; color: rgba(248, 248, 246, 0.88); }
.stars { color: var(--champagne); letter-spacing: 0.12em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-panels img { animation: unveil 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-panels img:nth-child(2) { animation-delay: 0.12s; }
  .hero-panels img:nth-child(3) { animation-delay: 0.24s; }
  .hero-title { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Proof ---------- */

.proof { background: var(--stone); padding-block: clamp(56px, 7vw, 96px); }
.proof .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
.proof-line {
  max-width: 30ch;
  font: 400 clamp(1.75rem, 4vw, 3.5rem)/1.14 var(--serif);
  letter-spacing: -0.015em;
  color: var(--espresso);
  text-wrap: balance;
}
.proof-note { padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--taupe); }
.proof-note a { display: block; margin-top: 12px; }
.tm { font-size: 0.42em; vertical-align: 0.9em; line-height: 0; letter-spacing: 0; font-style: normal; }
/* After italic text the last letter leans into the mark, so the mark stands clear of it. */
.footer-motto .tm, .experience-head h4 .tm { margin-left: 0.36em; }
.proof-note a { color: var(--espresso); text-decoration-color: var(--champagne); text-underline-offset: 5px; }

/* ---------- Doors ---------- */

/* Three ways in, set as a large typographic index. The salon photos become
   small accents beside each line instead of carrying the section. */
.doors { padding-block: clamp(48px, 6vw, 88px); }
/* The top rule sits on the first row so it lines up with the text, not the page gutter. */
.door:first-child { border-top: 1px solid var(--bark); }
.door {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding-block: clamp(16px, 2vw, 26px);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--espresso);
}
.door img {
  order: 2;
  width: clamp(72px, 9.5vw, 128px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.door:hover img { transform: scale(1.05); }
.door-learn img { object-position: 50% 12%; }
.door-text { display: block; order: 1; }
.door-title {
  display: block;
  font: 400 clamp(2rem, 4.6vw, 3.75rem)/1 var(--serif);
  letter-spacing: -0.02em;
  transition: color 0.2s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.door:hover .door-title { color: var(--bark); transform: translateX(10px); }
.door-desc { display: block; margin-top: 8px; font-size: 1rem; color: var(--taupe); max-width: 46ch; }

/* ---------- Section heads ---------- */

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { margin-top: 20px; font-size: 1.0625rem; max-width: 56ch; color: var(--taupe); }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head-light h2 { color: var(--champagne-pale); }
.section-head-light p { color: rgba(248, 248, 246, 0.72); }

.sub-head {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: clamp(64px, 8vw, 112px) 0 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

/* ---------- Same day ---------- */

.today { background: var(--stone); padding-block: clamp(56px, 7vw, 104px); }
.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.today-lead { margin-bottom: 12px; font: italic 400 1.25rem/1.3 var(--serif); color: var(--bark); }
.today h2 { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 0.98; color: var(--espresso); }
.today-text { margin-top: 22px; max-width: 44ch; font-size: 1.0625rem; }
.today-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* The picture's ground is white, so multiplying it lets the section colour show through. */
.today-truck img { width: 100%; mix-blend-mode: multiply; }

/* The truck pulls in once, the first time the section comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .today.will-arrive .today-truck img { opacity: 0; transform: translateX(-72px); }
  /* The transition belongs to the arrival only, so the truck is hidden at once on load, not faded out. */
  .today.will-arrive.is-in .today-truck img {
    opacity: 1;
    transform: none;
    transition: transform 1.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.7s ease;
  }
}

/* ---------- Shop: grades ---------- */

.shop { background: var(--white); }
.grades {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}
.grade-photo { margin-bottom: 24px; }
.grade-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.grade h3 { font-size: clamp(2rem, 3.4vw, 3rem); color: var(--espresso); }
.grade-price { margin-top: 10px; font-size: 0.9375rem; font-weight: 500; color: var(--bark); }
.grade-desc { margin: 20px 0 22px; max-width: 34ch; color: var(--taupe); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.tile { display: block; text-decoration: none; color: var(--espresso); }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity 0.2s ease; }
.tile:hover img { opacity: 0.9; }
.tile-name { display: block; margin-top: 14px; font: 400 1.375rem/1.15 var(--serif); }
.tile-note { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--taupe); }

/* ---------- Choose your texture ---------- */

.texture { background: var(--stone); }
.texture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.texture-visual { order: 2; }
.texture-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 760px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--espresso);
}
/* The photos cross-fade on their own; the canvas takes over once WebGL is ready. */
.texture-stage img,
.texture-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.texture-stage img { object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 0.6s ease; }
.texture-stage img.is-current { opacity: 1; }
.texture-stage canvas { opacity: 0; }
.texture-stage.gl-ready canvas { opacity: 1; }
.texture-copy h2 { color: var(--espresso); }
.texture-intro { margin-top: 18px; font-size: 1.0625rem; color: var(--taupe); }
.texture-list { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); }
.texture-option { border-bottom: 1px solid var(--rule); }
.texture-name {
  display: block;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: 0;
  text-align: left;
  font: 400 clamp(1.625rem, 2.8vw, 2.375rem)/1.1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--taupe);
  cursor: pointer;
  transition: color 0.18s ease, padding-left 0.25s ease;
}
.texture-name:hover { color: var(--espresso); }
.texture-option.is-selected .texture-name {
  padding-left: 22px;
  color: var(--espresso);
  font-style: italic;
  box-shadow: inset 2px 0 0 var(--champagne);
}
.texture-detail { padding: 0 0 22px 22px; }
.texture-detail[hidden] { display: none; }
.texture-detail p { margin-bottom: 12px; max-width: 40ch; }

/* Without JavaScript every texture stays listed with its link, beside the first photo. */
.texture:not(.is-enhanced) .texture-name { cursor: default; color: var(--espresso); padding-bottom: 8px; }
.texture:not(.is-enhanced) .texture-detail { padding-left: 0; }


/* ---------- Best sellers ---------- */

.sellers { background: var(--bone); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.product { display: block; text-decoration: none; color: var(--espresso); }
.product-shot {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  overflow: hidden;
}
.product-shot img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}
.product:hover .product-shot img { transform: scale(1.03); }
.product-shot .product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  background: var(--espresso);
  color: var(--bone);
  font-size: 0.75rem;
  font-weight: 500;
}
.product-grade { display: block; margin-top: 16px; font-size: 0.8125rem; color: var(--taupe); }
.product-meta { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--taupe); }
.product-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--champagne);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.product:hover .product-cta { text-decoration-thickness: 2px; }

.shelf-tabs { display: flex; gap: 4px 28px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.shelf-tabs button {
  padding: 12px 0;
  margin-bottom: -1px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--taupe);
  font: 400 clamp(1.375rem, 2.2vw, 1.75rem)/1.1 var(--serif);
  cursor: pointer;
}
.shelf-tabs button:hover { color: var(--espresso); }
.shelf-tabs button[aria-selected="true"] { color: var(--espresso); border-bottom-color: var(--champagne); }
.sellers [role="tabpanel"][hidden] { display: none; }

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(16px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.trust li { position: relative; padding: 18px 0 0 22px; font-size: 0.9375rem; color: var(--bark); }
.trust li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 23px;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--champagne);
  border-bottom: 1.5px solid var(--champagne);
  transform: rotate(-45deg);
}
.product-name { display: block; margin-top: 4px; font: 400 1.3125rem/1.2 var(--serif); }
.product-price { display: block; margin-top: 8px; font-size: 0.9375rem; font-weight: 500; }

/* ---------- Salon menu ---------- */

.menu { background: var(--noir); color: var(--bone); }
.offers { margin-bottom: clamp(40px, 5vw, 64px); }
.offers[hidden], .offer[hidden] { display: none; }
.offers h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--champagne-pale); }
.offers ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 20px; }
.offer { padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--champagne); }
.offer-name { font: italic 400 1.625rem/1.15 var(--serif); color: var(--champagne-pale); }
.offer-detail { margin-top: 10px; color: rgba(248, 248, 246, 0.84); max-width: 44ch; }
.offer-ends { margin: 14px 0 16px; font-size: 0.875rem; font-weight: 600; color: var(--champagne); }

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.menu-tabs {
  display: flex;
  gap: 4px 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule-light);
}
.menu-tabs button {
  padding: 12px 0;
  margin-bottom: -1px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: rgba(248, 248, 246, 0.6);
  font: 400 clamp(1.375rem, 2.2vw, 1.75rem)/1.1 var(--serif);
  cursor: pointer;
}
.menu-tabs button:hover { color: var(--bone); }
.menu-tabs button[aria-selected="true"] { color: var(--champagne-pale); border-bottom-color: var(--champagne); }

.menu-panel { padding-top: 12px; }
.menu-panel[hidden] { display: none; }
.price-list > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 17px;
  border-bottom: 1px solid var(--rule-light);
}
.price-list dt { font-size: 1.0625rem; }
.price-list dt small { display: block; margin-top: 2px; font-size: 0.8125rem; color: rgba(248, 248, 246, 0.56); }
.price-list dd {
  margin-left: auto;
  font: 400 1.375rem/1 var(--serif);
  color: var(--champagne-pale);
  white-space: nowrap;
}
.menu-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 36px; }

.experiences {
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--rule-light);
  background: var(--espresso);
}
.experiences h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); color: var(--champagne-pale); }
.experiences-intro { margin-top: 12px; color: rgba(248, 248, 246, 0.72); }
.experience { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule-light); }
.experience h4 { font-size: 1.625rem; font-style: italic; }
.experience-price { margin-top: 8px; font: 400 1.375rem/1 var(--serif); color: var(--champagne-pale); }
.experience ul { margin-top: 14px; }
.experience li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 0.9375rem;
  color: rgba(248, 248, 246, 0.8);
}
.experience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 9px;
  height: 1px;
  background: var(--champagne);
}
.experiences-foot { margin: 32px 0 24px; padding-top: 24px; border-top: 1px solid var(--rule-light); font-size: 0.875rem; color: rgba(248, 248, 246, 0.66); }

/* ---------- Results ---------- */

.results { background: var(--white); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.result { grid-column: span 3; }
.result-wide { grid-column: span 6; }
.result img { width: 100%; height: clamp(260px, 30vw, 420px); object-fit: cover; }
.result-wide:first-child { grid-column: span 6; }
.result:nth-child(2), .result:nth-child(3) { grid-column: span 3; }
.result:nth-child(4) { grid-column: span 5; }
.result:nth-child(5) { grid-column: span 7; }
.result figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--taupe); }
.results-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.results-cta p { margin-right: auto; font: 400 clamp(1.5rem, 2.6vw, 2.125rem)/1.15 var(--serif); color: var(--espresso); }

/* ---------- Reviews ---------- */

.reviews { background: var(--stone); }
.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.reviews h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); color: var(--taupe); }
.reviews-score { margin-top: 14px; font-size: 0.9375rem; color: var(--bark); }
.lead-quote { margin-top: 28px; }
.lead-quote p {
  font: 400 clamp(1.75rem, 3.3vw, 2.75rem)/1.2 var(--serif);
  letter-spacing: -0.01em;
  color: var(--espresso);
  text-wrap: pretty;
}
.lead-quote p::before { content: "“"; }
.lead-quote p::after { content: "”"; }
blockquote footer { margin-top: 20px; font-size: 0.875rem; color: var(--taupe); }
.quotes li { padding-block: 26px; border-top: 1px solid var(--rule); }
.quotes li:last-child { border-bottom: 1px solid var(--rule); }
.quotes blockquote p { font: 400 1.3125rem/1.35 var(--serif); color: var(--espresso); }
.quotes blockquote p::before { content: "“"; }
.quotes blockquote p::after { content: "”"; }
.quotes blockquote footer { margin-top: 10px; }
.quotes-source p { margin-bottom: 10px; font-weight: 500; }

/* ---------- Meet Jai ---------- */

/* Her studio portrait has a white ground, so on a white section it reads as a
   cut-out: no frame, large, standing on the bottom edge of the section. */
.jai { background: var(--white); padding-bottom: 0; }
.jai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}
.jai-photo { align-self: end; }
/* Shown whole: cropping this photo again would slice her hair with a hard edge. */
.jai-photo img { width: 100%; height: auto; }
/* Only a little air under the text, so the portrait beside it is about as tall as the copy. */
.jai-copy { padding-bottom: clamp(36px, 4vw, 64px); }
.jai-copy h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); color: var(--espresso); max-width: 16ch; }
.jai-copy > p { margin-top: 28px; max-width: 44ch; font: italic 400 clamp(1.25rem, 2vw, 1.5rem)/1.45 var(--serif); }
.jai-copy .jai-sign { margin-top: 12px; font: 400 0.9375rem/1.5 var(--sans); color: var(--taupe); }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 40px); margin: 32px 0 36px; max-width: 620px; }
.credentials li { padding-block: 13px; border-top: 1px solid var(--rule); font-size: 0.9375rem; }

/* ---------- Hair care ---------- */

.care { background: var(--bone); }
/* Her hair care pictures are styled scenes, not cut-outs, so they fill the tile. */
.product-shot-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }

/* ---------- Education ---------- */

.learn { background: var(--noir); color: var(--bone); }
.learn-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.learn h2 { color: var(--champagne-pale); }
.learn-copy p { margin-top: 20px; max-width: 44ch; font-size: 1.0625rem; color: rgba(248, 248, 246, 0.8); }
.learn-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 30px; }
.learn-list > div { align-items: center; }
.learn-list > div:first-child { border-top: 1px solid var(--rule-light); }
.learn-list dt { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; align-items: center; }
.learn-thumb { grid-row: span 2; width: 64px; height: 64px; object-fit: cover; }
.learn-list dt a { align-self: end; color: inherit; text-decoration: none; }
.learn-list dt small { align-self: start; }
.learn-list dt a:hover { text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: 5px; }

/* ---------- Before you buy ---------- */

.faq { background: var(--white); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.faq-head h2 { color: var(--espresso); margin-bottom: 20px; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font: 400 clamp(1.25rem, 2vw, 1.5rem)/1.25 var(--serif);
  color: var(--espresso);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--bark);
}
.faq-list summary::after { transform: rotate(90deg); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: none; }
.faq-list details p { padding: 0 44px 22px 0; max-width: 64ch; color: var(--taupe); }
.faq-list details a { color: var(--espresso); text-decoration-color: var(--champagne); text-underline-offset: 4px; }

/* ---------- Heritage ---------- */

.heritage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--espresso);
  color: var(--bone);
}
.heritage-media { position: relative; min-height: clamp(440px, 48vw, 680px); overflow: hidden; }
.heritage-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.heritage-copy { align-self: center; padding: clamp(40px, 5vw, 80px) var(--gutter); max-width: 620px; }
.heritage-copy h2 { font-style: italic; color: var(--champagne-pale); }
.heritage-copy p { margin: 24px 0 36px; font-size: 1.125rem; color: rgba(248, 248, 246, 0.82); max-width: 40ch; }

/* ---------- Visit ---------- */

.visit { background: var(--bone); }
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
}
.visit-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.visit-copy h2 { color: var(--espresso); max-width: 16ch; }
.visit-copy address { margin-top: 32px; font: 400 1.375rem/1.4 var(--serif); color: var(--espresso); }
.hours { width: 100%; max-width: 460px; margin-top: 28px; border-collapse: collapse; font-size: 0.9375rem; }
.hours caption { text-align: left; padding-bottom: 10px; font-weight: 600; color: var(--espresso); }
.hours th, .hours td { padding: 11px 0; border-top: 1px solid var(--rule); font-weight: 400; text-align: left; }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--rule); }
.visit-directions { margin-top: 24px; max-width: 54ch; color: var(--taupe); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--noir); color: rgba(248, 248, 246, 0.78); padding-top: clamp(64px, 8vw, 112px); }

/* The page closes on her own line, set large, with the newsletter beside it. */
.footer-close {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding-bottom: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--rule-light);
}
.footer-motto {
  font: italic 400 clamp(2.75rem, 6.4vw, 5.5rem)/0.98 var(--serif);
  white-space: nowrap;
  letter-spacing: -0.02em;
  color: var(--champagne-pale);
}
.signup { width: 100%; max-width: 460px; justify-self: end; }
.signup label { display: block; margin-bottom: 14px; font-size: 1.0625rem; color: rgba(248, 248, 246, 0.88); }
.signup-row { display: flex; gap: 8px; }
.signup input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid rgba(216, 199, 163, 0.45);
  border-radius: 2px;
  color: var(--bone);
  font: 400 1rem var(--sans);
}
.signup input::placeholder { color: rgba(248, 248, 246, 0.42); }
.signup-msg { min-height: 1.5em; margin-top: 10px; font-size: 0.875rem; color: var(--champagne-pale); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(40px, 5vw, 64px);
}
.footer-col h2 { font: 400 1.375rem/1.2 var(--serif); letter-spacing: 0; color: var(--champagne-pale); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9375rem; text-decoration: none; }
.footer-col a:hover { color: var(--champagne-pale); text-decoration: underline; text-underline-offset: 4px; }
.footer-col address, .footer-hours { font-size: 0.9375rem; line-height: 1.7; }
.footer-hours { margin-top: 14px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 24px 36px;
  position: relative;
  font-size: 0.8125rem;
}
.footer-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--rule-light);
}
.footer-sign { display: flex; align-items: center; gap: 20px; }
.footer-sign img { width: 124px; }
.footer-base ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-base .social a { font-size: 0.9375rem; color: var(--champagne-pale); }
.footer-base a { text-decoration: none; }
.footer-base a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Concept note ---------- */

.concept {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px var(--gutter);
  background: var(--stone);
  font-size: 0.8125rem;
  color: var(--espresso);
}
.concept[hidden] { display: none; }
.concept a { color: inherit; text-decoration-color: var(--champagne); text-underline-offset: 3px; }
.concept-close {
  padding: 4px 10px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font: 500 0.75rem var(--sans);
  color: var(--bark);
  cursor: pointer;
}
.concept-close:hover { background: var(--white); }

/* ---------- Book and Shop bar (phones) ---------- */

.quickbar { display: none; }

/* ---------- Note for links that are switched off in the concept ---------- */

.later {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 14px 14px 20px;
  background: var(--bone);
  border: 1px solid var(--bark);
  box-shadow: 0 14px 34px rgba(15, 15, 15, 0.28);
  color: var(--espresso);
  font-size: 0.9375rem;
  line-height: 1.45;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.3s;
}
.later.is-open { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.later button {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font: 500 0.8125rem var(--sans);
  color: var(--bark);
  cursor: pointer;
}
.later button:hover { background: var(--stone); }
.later :focus-visible { outline-color: var(--espresso); }
@media (max-width: 860px) { .later { bottom: 84px; } }
@media (max-width: 480px) {
  .logo img { width: 138px; }
  .tool { width: 40px; height: 40px; }
  .nav-toggle { margin-left: 4px; }
  .site-search-row { gap: 8px; padding-block: 14px; }
  .site-search .btn { padding-inline: 18px; }
}

/* ---------- Critique pass ---------- */

/* The five-line index repeats the desktop header, so it is for phones only. */
@media (min-width: 861px) { .doors { display: none; } }

.sellers, .results, .care, .learn, .faq { padding-block: clamp(56px, 7vw, 104px); }
.section-head p { max-width: 46ch; }
.faq-list details p { max-width: 48ch; }
.visit-directions { max-width: 44ch; }
main section[id] { scroll-margin-top: 77px; }

/* Four lines of hair, each with its hair type, so they can be compared. */
.grades { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.grade h3 { font-size: clamp(1.5rem, 2.3vw, 2.125rem); }
.grade-fact { margin-top: 10px; font-size: 0.9375rem; font-weight: 500; color: var(--espresso); }
/* Side by side, the four lines share their rows, so names, prices and links line up across the columns. */
@media (min-width: 861px) {
  .grade { display: flex; flex-direction: column; align-items: flex-start; }
  .grade .grade-photo { width: 100%; }
  .grade .text-link { margin-top: auto; }
  @supports (grid-template-rows: subgrid) {
    .grade { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; justify-items: start; }
    .grade .text-link { margin-top: 0; }
  }
}
.grade-price { margin-top: 6px; font-weight: 400; color: var(--taupe); }
.grade-desc { margin: 14px 0 18px; }
.sub-head { margin-top: clamp(48px, 6vw, 80px); }
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile img { aspect-ratio: 16 / 9; object-position: 50% 24%; }

.faq-help { margin-top: clamp(32px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--rule); max-width: 420px; }
.faq-help h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); color: var(--espresso); }
.faq-help > p { margin: 12px 0 20px; color: var(--taupe); }
.faq-help .faq-help-note { margin: 14px 0 0; font-size: 0.875rem; }
.faq-help-note a { color: var(--espresso); text-decoration-color: var(--champagne); text-underline-offset: 4px; }

/* Proof beside the highest prices on the page. */
.menu-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--rule-light);
}
.menu-proof img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.menu-proof figcaption { margin-top: 10px; font-size: 0.875rem; color: rgba(248, 248, 246, 0.62); }
.menu-proof blockquote p { font: 400 clamp(1.5rem, 2.6vw, 2.125rem)/1.28 var(--serif); color: var(--champagne-pale); text-wrap: pretty; }
.menu-proof blockquote p::before { content: "\201C"; }
.menu-proof blockquote p::after { content: "\201D"; }
.menu-proof blockquote footer { color: rgba(248, 248, 246, 0.62); }

/* Four client photos in one row. */
.results-grid .result, .results-grid .result-wide { grid-column: span 2; }
.results-grid .result:nth-child(1) { grid-column: span 5; }
.results-grid .result:nth-child(4) { grid-column: span 3; }

.logo { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Responsive ---------- */

/* Below this width the six items no longer fit beside the logo: they move into the Menu, opening one at a time. */
@media (max-width: 1240px) {
  .header-row { gap: 0; }
  .nav-toggle { display: inline-flex; margin-left: 10px; }
  .header-tools { margin-left: auto; }
  .tool-account, .nav-book-bar { display: none; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 4px var(--gutter) 28px;
    background: var(--noir);
    border-bottom: 1px solid var(--rule-light);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { display: block; border-bottom: 1px solid var(--rule-light); }
  .nav-top {
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
    font: 400 1.5rem/1.2 var(--serif);
    box-shadow: none;
  }
  .nav-top:hover, .nav-item.is-open .nav-top { box-shadow: none; }
  .nav-top::after { width: 8px; height: 8px; margin-right: 4px; }
  .nav-panel { position: static; border: 0; box-shadow: none; }
  .nav-panel-inner { grid-template-columns: 1fr; gap: 18px; padding: 2px 0 22px; }
  .nav-lead a { padding-block: 9px; font-size: 1.25rem; }
  .nav-group a { padding-block: 10px; font-size: 1rem; }
  .nav-book-menu { display: inline-flex; margin-top: 24px; min-height: 52px; }
  .nav-login { display: block; margin-top: 18px; padding-block: 10px; font-size: 0.9375rem; color: rgba(248, 248, 246, 0.82); text-underline-offset: 4px; }
  .site-search-label { display: none; }
}
@media (min-width: 700px) and (max-width: 1240px) {
  .nav-panel-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 28px; }
}

@media (max-width: 1040px) {

  .menu-layout { grid-template-columns: 1fr; }
  /* Below this width the newsletter needs the full row to keep a usable email box. */
  .footer-close { grid-template-columns: 1fr; }
  .signup { justify-self: start; }
}

@media (max-width: 860px) {
  .quickbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--noir);
    border-top: 1px solid var(--rule-light);
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .quickbar.is-visible { visibility: visible; transform: none; transition: transform 0.25s ease; }
  .quickbar .btn { min-height: 48px; padding: 10px 12px; }
  .footer-base { padding-bottom: 104px; }

  /* Short enough that the headline and the line under it show on the first screen of a phone. */
  .hero-panels { height: clamp(280px, 44vh, 460px); min-height: 0; }
  .hero-copy { position: static; padding: 22px 0 44px; background: none; }
  .hero-copy-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-title { font-size: clamp(2.75rem, 14.5vw, 5.5rem); }
  .hero-actions .btn { flex: 1 1 100%; }

  .proof .wrap { grid-template-columns: 1fr; }
  .door-desc { font-size: 0.9375rem; }

  .grades, .jai-grid, .reviews-grid, .heritage, .texture-grid { grid-template-columns: 1fr; }
  /* Heading, then the bundle, then the choices, so the bundle stays in view while choosing. */
  .texture-grid { gap: 0; }
  .texture-copy { display: contents; }
  .texture-copy h2 { order: 1; }
  .texture-intro { order: 2; }
  .texture-visual { order: 3; margin-top: 24px; }
  .texture-list { order: 4; margin-top: 24px; }
  .texture-stage { max-height: 440px; }
  .tiles, .products { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  /* Three tiles in two columns: the last one takes the full row instead of sitting alone. */
  .tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tiles li:last-child:nth-child(odd) img { aspect-ratio: 16 / 11; object-position: 50% 30%; }
  .trust { grid-template-columns: 1fr 1fr; }
  .help-grid, .faq-grid, .learn-grid, .today-grid { grid-template-columns: 1fr; }
  .today-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-motto { line-height: 1.04; }
  .grade-photo img { aspect-ratio: 1 / 1; object-position: 50% 18%; }
  .learn-actions .btn { flex: 1 1 100%; }
  .offers ul { grid-template-columns: 1fr; }
  .help-actions .btn, .results-cta .btn { flex: 1 1 100%; }
  .results-cta p { margin-right: 0; flex-basis: 100%; }
  .hero-rating { margin-top: 14px; }

  .result, .result-wide,
  .result:nth-child(2), .result:nth-child(3), .result:nth-child(4), .result:nth-child(5) { grid-column: span 6; }
  .result-wide:first-child, .result:nth-child(4), .result:nth-child(5) { grid-column: 1 / -1; }
  .result img { height: clamp(220px, 58vw, 380px); }

  .jai-grid { align-items: start; }
  .jai-photo { order: 2; max-width: 460px; margin-inline: auto; }
  .jai-copy { order: 1; padding-bottom: 8px; }
  .credentials { grid-template-columns: 1fr; }
  .heritage-media { min-height: 0; aspect-ratio: 4 / 5; }

  .visit-grid { grid-template-columns: 1fr; }
  .visit-photo img { aspect-ratio: 4 / 3; }
  .visit-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 560px) {
  .signup-row { flex-direction: column; }
  .price-list dt { font-size: 1rem; }
  .price-list dd { font-size: 1.25rem; }
  .menu-tabs { gap: 0 22px; }
  .menu-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.today-lead { margin: 14px 0 0; }
@media (min-width: 861px) {
  /* A deeper wash behind the hero copy keeps every line readable over the photographs. */
  .hero-copy { background: linear-gradient(to top, rgba(15, 15, 15, 0.96) 0%, rgba(15, 15, 15, 0.9) 38%, rgba(15, 15, 15, 0.58) 70%, rgba(15, 15, 15, 0) 100%); }
}

/* Jai: the portrait column is the wider one, so her head starts level with the copy. */
@media (min-width: 1200px) { .jai-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); } }
/* Between phone and wide desktop the copy runs taller than the portrait: centre them instead of standing her on the edge. */
@media (min-width: 861px) and (max-width: 1199px) {
  .jai { padding-bottom: var(--band); }
  .jai-grid { align-items: center; }
  .jai-photo { align-self: center; }
  .jai-copy { padding-bottom: 0; }
}

/* ---------- Critique pass: phones and small tablets ---------- */

@media (max-width: 860px) {
  /* Something to tap on the first screen: shorter photos, buttons before the paragraph. */
  .hero-panels { height: clamp(220px, 34vh, 380px); }
  .hero-side { display: flex; flex-direction: column; }
  .hero-actions { order: -1; margin-top: 0; }
  .hero-actions .btn { flex: 1 1 148px; padding-inline: 8px; font-size: 0.875rem; white-space: nowrap; }
  .hero-sub { margin-top: 22px; }

  /* Grades as compact rows: a small photo beside the facts. */
  .grades { grid-template-columns: 1fr; gap: 0; }
  .grade { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 18px; padding-block: 22px; border-top: 1px solid var(--rule); }
  .grade > * { grid-column: 2; }
  .grade > .grade-photo { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
  .grade-photo img { aspect-ratio: 4 / 5; object-position: 50% 18%; }
  .grade-desc { margin: 10px 0 6px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile img { aspect-ratio: 4 / 5; }

  /* The texture photo and all six choices fit one screen together. */
  .texture-stage { max-height: 300px; aspect-ratio: 5 / 4; }
  .texture-name { padding: 11px 0; font-size: 1.5rem; }
  .texture-detail { padding-bottom: 14px; }

  .menu-proof { grid-template-columns: 1fr; }
  .results-grid .result, .results-grid .result-wide { grid-column: span 6; }
  .results-grid .result:nth-child(1), .results-grid .result:nth-child(4) { grid-column: 1 / -1; }
  .faq-help { max-width: none; }
  .faq-help .btn { width: 100%; }
  /* Her face first, then her words. */
  .jai { padding-top: 0; padding-bottom: 56px; }
  .jai-photo { order: 1; max-width: 320px; }
  .jai-copy { order: 2; padding-bottom: 0; }

  /* Fingers need 44px: text links, the notice, and the footer lists. */
  .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .notice { padding-block: 0; }
  .notice a { display: inline-block; padding-block: 13px; }
  .footer-col li { margin-bottom: 0; }
  .footer-col li a, .footer-col address a, .footer-base a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-base ul { gap: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
