/* ==========================================================================
   Bea Nails home — trust band + services grid (sit between hero and gallery)
   ========================================================================== */
[id] { scroll-margin-top: calc(var(--bn-header-h) + 0.5rem); }

/* the hero + gallery no longer need to share one screen */
body.home:not(.home-test) .home-fold { min-height: 0; }

.bn-section-head { max-width: 1320px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4.5rem); }
.bn-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  color: var(--bn-red);
  font-family: var(--bn-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bn-kicker::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
body.home .bn-h2 {
  margin: 0;
  max-width: 18ch;
  color: var(--bn-ink);
  font-family: var(--bn-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
.bn-h2 em { color: var(--bn-red); font-style: italic; }

/* reveal on scroll */
.bn-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bn-reveal.is-in { opacity: 1; transform: none; }

/* ---------- trust band ---------- */
.bn-trust {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
  background: #f7f0ed;
  font-family: var(--bn-sans);
  overflow: hidden;
}
.bn-trust__top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.bn-trust__lead {
  margin: 1.2rem 0 0;
  max-width: 34rem;
  color: var(--bn-muted);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.65;
}
.bn-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(26, 22, 20, 0.16);
}
.bn-stats li { padding: 1.3rem 1rem 0 0; }
.bn-stats li + li { padding-left: 1.25rem; border-left: 1px solid rgba(26, 22, 20, 0.16); }
.bn-stats strong {
  display: block;
  color: var(--bn-ink);
  font-family: var(--bn-serif);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
}
.bn-stats span { display: block; margin-top: 0.55rem; color: var(--bn-muted); font-size: 0.9rem; line-height: 1.4; }

.bn-techs-label {
  max-width: 1320px;
  margin: clamp(2.8rem, 5vw, 4rem) auto 1.1rem;
  padding: 0 clamp(1.25rem, 5vw, 4.5rem);
  color: var(--bn-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.bn-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bn-marquee + .bn-marquee { margin-top: 0.9rem; }
.bn-marquee__track {
  display: flex;
  width: max-content;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: bn-walk 60s linear infinite;
}
.bn-marquee--rev .bn-marquee__track { animation-direction: reverse; animation-duration: 70s; }
.bn-marquee:hover .bn-marquee__track { animation-play-state: paused; }
@keyframes bn-walk { to { transform: translateX(-50%); } }

.bn-tech {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 0 auto;
  padding: 0.95rem 1.35rem 0.95rem 1rem;
  background: #fff;
  border: 1px solid rgba(26, 22, 20, 0.1);
  border-radius: 999px;
}
.bn-tech__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #f7e6e4;
  color: var(--bn-red);
}
.bn-tech__icon svg { width: 1.15rem; height: 1.15rem; }
.bn-tech strong { display: block; color: var(--bn-ink); font-size: 1rem; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.bn-tech small { display: block; margin-top: 0.15rem; color: var(--bn-muted); font-size: 0.82rem; line-height: 1.3; white-space: nowrap; }
.bn-tech--new .bn-tech__icon { background: var(--bn-red); color: #fff; }

/* ---------- services grid ---------- */
.bn-services {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background: #fff;
  font-family: var(--bn-sans);
}
.bn-services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
}
.bn-services__intro { margin: 1rem 0 0; max-width: 32rem; color: var(--bn-muted); font-size: 1.02rem; font-weight: 300; }
.bn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bn-ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.2rem;
}
.bn-link-arrow:hover { color: var(--bn-red); }

.bn-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1.1rem);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4.5rem);
  list-style: none;
}

.svc {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #2a2423;
  color: #fff;
  isolation: isolate;
}
.svc__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: -2;
}
.svc::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 14, 13, 0.28) 0%, rgba(20, 14, 13, 0.08) 22%, rgba(20, 14, 13, 0.55) 52%, rgba(20, 14, 13, 0.9) 100%);
}
.svc:hover .svc__img { transform: scale(1.06); }

.svc__num {
  position: absolute;
  top: 0.85rem;
  left: 0.95rem;
  font-family: var(--bn-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.svc__front {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 0.95rem 1rem;
}
.svc__tag { margin: 0 0 0.3rem; color: #ffd9d6; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
body.home .svc h3 {
  margin: 0;
  color: #fff;
  font-family: var(--bn-serif);
  font-size: clamp(1.25rem, 1.55vw, 1.6rem);
  font-weight: 600;
  line-height: 1.05;
}
.svc__meta { margin: 0.35rem 0 0.8rem; color: rgba(255, 255, 255, 0.82); font-size: 0.8rem; }
.svc__actions { display: flex; gap: 0.45rem; }
.svc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.6rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font: 500 0.8rem/1 var(--bn-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.svc__btn:hover,
.svc__btn:focus-visible { background: #fff; color: var(--bn-ink); }
.svc__btn--book { background: var(--bn-red); border-color: var(--bn-red); }
.svc__btn--book:hover,
.svc__btn--book:focus-visible { background: #fff; border-color: #fff; color: var(--bn-red); }

/* Read-more panel slides up over the square */
.svc__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 0.95rem;
  background: #fbf7f5;
  color: var(--bn-ink);
  transform: translateY(101%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.45s;
}
.svc.is-open .svc__panel { transform: none; visibility: visible; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.svc__panel-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 0.25rem; scrollbar-width: thin; }
.svc__panel .svc__tag { color: var(--bn-red); text-shadow: none; padding-right: 2.4rem; }
body.home .svc__panel h3 { color: var(--bn-ink); padding-right: 2rem; font-size: clamp(1.15rem, 1.4vw, 1.45rem); }
.svc__panel p.svc__desc { margin: 0.45rem 0 0.55rem; color: var(--bn-muted); font-size: 0.8rem; line-height: 1.45; }
.svc__panel ul { margin: 0; padding: 0; list-style: none; font-size: 0.78rem; line-height: 1.35; }
.svc__panel li { position: relative; padding-left: 1rem; }
.svc__panel li + li { margin-top: 0.28rem; }
.svc__panel li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--bn-red); opacity: 0.75; }
.svc__panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding-top: 0.7rem; border-top: 1px solid rgba(26, 22, 20, 0.12); margin-top: 0.6rem; }
.svc__price { font-family: var(--bn-serif); font-size: 1.25rem; font-weight: 600; line-height: 1; }
.svc__price small { display: block; margin-bottom: 0.2rem; font-family: var(--bn-sans); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bn-muted); }
.svc__panel .svc__btn--book { flex: 0 0 auto; padding: 0.65rem 0.9rem; }
.svc__panel .svc__btn--book:hover { background: var(--bn-red-hover); border-color: var(--bn-red-hover); color: #fff; }
.svc__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(26, 22, 20, 0.2);
  border-radius: 50%;
  background: #fff;
  color: var(--bn-ink);
  cursor: pointer;
}
.svc__close:hover { background: var(--bn-ink); color: #fff; }
.svc__close svg { width: 0.8rem; height: 0.8rem; }

/* gallery heading (now that the gallery follows the services) */
.bn-album-head { width: 100%; box-sizing: border-box; padding-top: 0; padding-bottom: 1.6rem; }
body.home:not(.home-test) .home-album { padding-top: clamp(1rem, 2vw, 1.5rem); }

@media (max-width: 1180px) {
  .bn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bn-trust__top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* phones: one swipeable row of squares */
  .bn-grid {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.6rem;
    scrollbar-width: none;
  }
  .bn-grid::-webkit-scrollbar { display: none; }
  .svc { flex: 0 0 78%; scroll-snap-align: center; }
  .bn-stats strong { font-size: 2.2rem; }
  .bn-stats span { font-size: 0.8rem; }
  .bn-tech { padding: 0.75rem 1.05rem 0.75rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bn-marquee__track { animation: none; flex-wrap: wrap; width: auto; padding: 0 1.25rem; }
  .bn-marquee__track [aria-hidden="true"] { display: none; }
  .bn-marquee { -webkit-mask-image: none; mask-image: none; }
  .bn-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- bigger squares (3 per row, 10th card centred) ---------- */
.bn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); max-width: 1560px; }
.bn-services .bn-section-head { max-width: 1560px; }
.bn-grid > .svc:last-child:nth-child(3n + 1) { grid-column: 2; }
.svc__num { top: 1.2rem; left: 1.4rem; font-size: 1.4rem; }
.svc__front { padding: 1.6rem 1.5rem 1.5rem; }
.svc__tag { font-size: 0.78rem; margin-bottom: 0.45rem; }
body.home .svc h3 { font-size: clamp(1.8rem, 2.3vw, 2.5rem); }
.svc__meta { margin: 0.5rem 0 1.1rem; font-size: 1rem; }
.svc__actions { gap: 0.7rem; max-width: 26rem; }
.svc__btn { padding: 0.9rem 1rem; font-size: 0.95rem; }
.svc__panel { padding: 1.6rem 1.6rem 1.4rem; }
body.home .svc__panel h3 { font-size: clamp(1.6rem, 2vw, 2.1rem); padding-right: 2.6rem; }
.svc__panel p.svc__desc { font-size: 0.98rem; line-height: 1.55; margin: 0.6rem 0 0.8rem; }
.svc__panel ul { font-size: 0.95rem; line-height: 1.45; }
.svc__panel li + li { margin-top: 0.4rem; }
.svc__panel-foot { padding-top: 1rem; margin-top: 0.9rem; }
.svc__price { font-size: 1.8rem; }
.svc__price small { font-size: 0.72rem; }
.svc__panel .svc__btn--book { padding: 0.9rem 1.3rem; }
.svc__close { top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; }

@media (max-width: 1180px) and (min-width: 761px) {
  .bn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-grid > .svc:last-child:nth-child(3n + 1) { grid-column: auto; }
}
@media (max-width: 760px) {
  .bn-grid > .svc:last-child:nth-child(3n + 1) { grid-column: auto; }
  .svc { flex-basis: 88%; }
  .svc__front { padding: 1.2rem 1.1rem 1.1rem; }
  body.home .svc h3 { font-size: 1.7rem; }
  .svc__panel { padding: 1.2rem 1.15rem 1.1rem; }
  .svc__panel p.svc__desc, .svc__panel ul { font-size: 0.88rem; }
}

/* hero booking button uses the same brand red as the header + service cards */
body.home:not(.home-test) .home-copy .book-cta { background: var(--bn-red); }
body.home:not(.home-test) .home-copy .book-cta:hover { background: var(--bn-red-hover); }

/* ---------- hero: "final" banner with the head breaking out of the top ----------
   hero-final1.jpg is the banner (3840×1136). hero-final2-head.webp is the cut-out
   head from final2@2x.png, cropped at x 2760–3746, y 51–1071 of a canvas that sits
   245px above the banner, so it lines up pixel-for-pixel and rises 194px above it. */
body.home:not(.home-test) .home-hero {
  overflow: visible;
  padding-top: calc(100vw * 194 / 3840 + 1.25rem); /* room for the head above the banner */
  background: #fff;
}
/* banner stays white; the page behind it is blush, so the head breaking out above the banner stands out */
/* light version of the booking-card gradient (#171717 black → #7d1f1f red), mixed with lots of white */
body.home:not(.home-test) .home-fold { background: #fff; }
body.home:not(.home-test) .home-hero {
  /* one even, light tone: a little black + a little red spread across the whole strip, same lightness everywhere */
  background: linear-gradient(180deg, #f2eeee 0%, #f4ecec 100%); /* light charcoal tint blending into light red tint, equally light */
}
body.home:not(.home-test) .home-hero-frame { background: #fff; }
body.home:not(.home-test) .home-hero-frame > img.hero-pop {
  position: absolute;
  z-index: 1;
  left: calc(2760 / 3840 * 100%);
  top: 0;
  margin-top: calc((51 - 245) / 3840 * 100%); /* % margins follow width, so this tracks the banner on every screen */
  width: calc(986 / 3840 * 100%);
  height: auto;
  pointer-events: none;
}

/* ---------- hero text: much bigger, bolder, animated in ---------- */
body.home:not(.home-test) .home-copy { width: min(66%, 62rem); padding-top: 1rem; padding-bottom: 1rem; }
body.home:not(.home-test) .home-copy .hero-kicker {
  margin-bottom: 0.9rem;
  color: var(--bn-red, #7d1f1f);
  font-size: clamp(0.8rem, 0.95vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
body.home:not(.home-test) .home-copy h1.hero-power {
  max-width: 13em;
  margin-bottom: clamp(0.8rem, 1.3vw, 1.4rem);
  font-size: clamp(2.6rem, 4.5vw, 6.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
body.home:not(.home-test) .home-copy h1.hero-power em { color: var(--bn-red, #7d1f1f); font-style: normal; }
body.home:not(.home-test) .home-copy .hero-lead { max-width: 36rem; font-size: clamp(0.95rem, 1.1vw, 1.2rem); margin-bottom: clamp(1rem, 1.6vw, 1.7rem); }
body.home:not(.home-test) .home-copy .book-cta { padding: clamp(0.85rem, 1.1vw, 1.15rem) clamp(1.6rem, 2vw, 2.3rem); font-size: clamp(1rem, 1.1vw, 1.2rem); }

/* entrance: each word of the headline rises out of a mask, then the rest follows */
.hero-power .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-power .hw > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1); transition-delay: calc(0.15s + var(--w) * 0.07s); }
.hero-anim .hero-kicker,
.hero-anim .hero-lead,
.hero-anim .book-cta { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1); }
.hero-anim .hero-lead { transition-delay: 0.85s; }
.hero-anim .book-cta { transition-delay: 1s; transform: translateY(18px) scale(0.92); }
.hero-anim.is-in .hero-kicker,
.hero-anim.is-in .hero-lead,
.hero-anim.is-in .book-cta { opacity: 1; transform: none; }
.hero-anim.is-in .hero-power .hw > span { transform: none; }
.hero-prep, .hero-prep * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-anim *, .hero-power .hw > span { transition: none !important; opacity: 1 !important; transform: none !important; }
}
@media (max-width: 900px) {
  body.home:not(.home-test) .home-copy { width: auto; }
  body.home:not(.home-test) .home-copy .hero-kicker { letter-spacing: 0.2em; }
  body.home:not(.home-test) .home-copy h1.hero-power { font-size: clamp(2.5rem, 11vw, 3.4rem); max-width: none; }
}

/* header sits 30px lower so the light hero background shows above it (it still sticks to the top on scroll) */
body.home:not(.home-test) { background: #f2eeee; }
body.home:not(.home-test) .bn-header { margin-top: 30px; }
.skip:not(:focus) { position: absolute; top: -100px; }
.skip:focus { z-index: 100; }

/* link from each service panel to its full page */
.svc__full { display: inline-block; margin: 0 0 1rem; color: var(--bn-red); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.svc__full:hover { color: var(--bn-red-hover); }
