.glowly-case-page {
  --glowly-nav-space: calc(114px + env(safe-area-inset-top, 0px));
}

body.kwd-navigation.glowly-case-page:not(.mobile-nav-open) #topbar#topbar {
  position: absolute !important;
}

body.kwd-navigation.elite-detail-page.glowly-case-page #tresc {
  padding-top: var(--glowly-nav-space);
  background: linear-gradient(115deg, #0b1823, #070e15 75%) top / 100% var(--glowly-nav-space) no-repeat;
}

.glowly-case-page .hw-case {
  --hw-ink: #f2eee6;
  --hw-muted: #bbb3a7;
  --hw-accent: #c5ac87;
  --hw-line: #d0bfa13d;
  color: var(--hw-ink);
  background: #121211;
}

.glowly-wrap {
  width: min(1440px, calc(100% - 8vw));
  margin-inline: auto;
}

.glowly-opening {
  padding-block: 12px clamp(28px, 4vw, 58px);
  color-scheme: dark;
  color: #f2eee6;
  background: #121211;
}

.glowly-trail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: #b9b0a4;
  font-size: 12px;
}

.glowly-trail a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.glowly-opening__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px 5vw;
  margin-bottom: 20px;
}

.glowly-opening .hw-case__label {
  color: #c5ac87;
}

.glowly-case-page .glowly-opening h1 {
  margin-top: 8px;
  max-width: none;
  color: #f2eee6;
  font-size: clamp(36px, 3.7vw, 56px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.06em;
}

.glowly-opening__scope > p {
  max-width: 42ch;
  color: #d6cec1;
  font-size: 14px;
  line-height: 1.5;
}

.glowly-opening__scope dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.4;
}

.glowly-opening__scope dl > div {
  display: flex;
  gap: 6px;
}

.glowly-opening__scope dt {
  color: #a49988;
}

.glowly-opening__scope dd {
  margin: 0;
}

.hw-case figure.glowly-hero-scene {
  position: relative;
  width: min(100%, calc((100svh - 280px) * 1.7768));
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #b9a68238;
  border-radius: 7px;
  background: #28251f;
}

.glowly-hero-scene a,
.glowly-hero-scene img,
.glowly-editorial-scene a,
.glowly-editorial-scene img,
.glowly-mobile-scene a,
.glowly-mobile-scene img,
.glowly-services-screen a,
.glowly-services-screen img,
.glowly-calendar-screen a,
.glowly-calendar-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.glowly-brand,
.glowly-booking {
  --hw-ink: #302d28;
  --hw-muted: #70695e;
  --hw-accent: #8b724e;
  --hw-line: #5a4b352b;
  padding-block: clamp(54px, 8vw, 116px);
  color-scheme: light;
  color: var(--hw-ink);
  background: #f2efe7;
}

.glowly-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 20px 8vw;
  margin-bottom: clamp(28px, 4vw, 54px);
}

.glowly-case-page .glowly-heading {
  font-size: clamp(34px, 4.5vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.glowly-section-head h2 {
  margin-top: 14px;
}

.glowly-section-head p:not(.hw-case__label) {
  max-width: 47ch;
  color: var(--hw-muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.glowly-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 24px;
  margin-top: 12px;
  border-bottom: 1px solid var(--hw-accent);
  font-size: 14px;
}

.glowly-services-screen,
.glowly-calendar-screen {
  overflow: hidden;
  border: 1px solid #a4957c56;
  border-radius: 10px;
  background: #111210;
  box-shadow: 0 24px 55px #2d251c1f;
}

.glowly-brand-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
}

.glowly-brand-flow > div {
  padding-top: 16px;
  border-top: 1px solid var(--hw-line);
}

.glowly-brand-flow dt {
  color: #8b724e;
  font-size: 11px;
}

.glowly-brand-flow dd {
  max-width: 25ch;
  margin: 9px 0 0;
  font-size: clamp(17px, 2vw, 27px);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.glowly-editorial {
  --hw-ink: #eee9df;
  --hw-muted: #bbb0a1;
  --hw-accent: #c5ac87;
  padding-block: clamp(62px, 9vw, 130px);
  color-scheme: dark;
  color: var(--hw-ink);
  background: #22211f;
}

.glowly-editorial__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 54px);
}

.glowly-editorial__head > .hw-case__label {
  color: var(--hw-accent);
}

.hw-case p.glowly-editorial__intro {
  max-width: 55ch;
  margin-bottom: clamp(26px, 4vw, 50px);
  color: var(--hw-muted);
  font-size: 16px;
  line-height: 1.65;
}

.glowly-editorial-scene {
  overflow: hidden;
  border: 1px solid #c3ad8c42;
  border-radius: 8px;
  background: #40392e;
}

.glowly-ui-crop {
  position: relative;
  overflow: hidden;
}

.glowly-ui-crop img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

/* Source crops retain the salon's typography and open as complete originals. */
.glowly-stylist-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-top: clamp(46px, 7vw, 100px);
  padding-top: 24px;
  border-top: 1px solid var(--hw-line);
}

.glowly-stylist-head > p:last-child {
  color: var(--hw-muted);
  font-size: 14px;
}

.hw-case figure.glowly-stylist-detail {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.glowly-stylist-detail a {
  display: block;
  margin-top: 26px;
  padding: clamp(16px, 3.5vw, 50px);
  border: 1px solid #c9b99a42;
  border-radius: 8px;
  background: #f2f1ec;
}

.glowly-ui-crop--stylist {
  aspect-ratio: 1380 / 742;
}

.glowly-ui-crop--stylist img {
  width: 137.97%;
  left: -15.22%;
  top: -33.02%;
}

.glowly-services {
  padding-block: clamp(62px, 9vw, 130px);
  color-scheme: dark;
  color: var(--hw-ink);
  background: #101110;
}

.glowly-ui-crop--services {
  /* Preserve the original section's outer whitespace around both columns. */
  aspect-ratio: 1595 / 850;
  background: #fff;
}

.glowly-ui-crop--services img {
  width: 119.3731%;
  left: -9.4044%;
  top: -22.9412%;
}

.glowly-case-page .glowly-services .glowly-heading {
  line-height: 1.12;
  letter-spacing: -.045em;
}

.glowly-screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 35px;
  padding: 6px 18px;
  border-bottom: 1px solid #b5a38133;
  color: #b8ab94;
  background: #29271f;
  font-size: 11px;
}

.glowly-services-screen {
  width: min(100%, 1180px);
}

.hw-case figure.glowly-services-screen {
  margin-inline: auto;
}

.glowly-booking {
  background: linear-gradient(120deg, #f4f1e9, #e4ded1);
}

.glowly-mobile-scene {
  overflow: hidden;
  border: 1px solid #a99b7c50;
  border-radius: 8px;
  background: #d7cdbb;
}

.glowly-booking-steps {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  width: min(100%, 1140px);
  margin: clamp(32px, 5vw, 70px) auto 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--hw-line);
  list-style: none;
}

.glowly-booking-steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.glowly-booking-steps span {
  color: #92764f;
  font-size: 11px;
}

.glowly-booking-steps strong {
  font-size: clamp(17px, 2vw, 27px);
  font-weight: 400;
  letter-spacing: -.025em;
}

.hw-case figure.glowly-calendar-screen {
  width: min(100%, 1140px);
  margin: 28px auto 0;
  background: #fff;
}

.glowly-end {
  padding-block: clamp(42px, 6vw, 84px);
  color-scheme: dark;
  color: #f2eee6;
  background: #1b1b18;
}

.glowly-end__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px 40px;
}

.glowly-end__layout > p {
  font-size: clamp(29px, 3.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -.06em;
}

.glowly-end__layout > a:not(.glowly-end__back) {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #30271c;
  background: #d0b68d;
  font-size: 14px;
}

.glowly-end__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  grid-column: 1 / -1;
  min-height: 40px;
  color: #b6ab99;
  font-size: 12px;
}

body.glowly-case-page:has(#topbar:not(.is-condensed)) .dock {
  visibility: hidden !important;
}

body.glowly-case-page:has(.hw-gallery[open]) {
  overflow: hidden;
}

body.glowly-case-page .hw-gallery {
  --hw-ink: #edf6ff;
  --hw-muted: #b6c4d0;
  --hw-line: #bcd9ef34;
}

body.glowly-case-page .hw-gallery[open],
body.glowly-case-page .hw-gallery[open] * {
  cursor: auto !important;
}

body.glowly-case-page .hw-gallery[open] button,
body.glowly-case-page .hw-gallery[open] button * {
  cursor: pointer !important;
}

body.glowly-case-page:has(.hw-gallery[open]) .kwd-cursor {
  visibility: hidden;
}

@media (max-width: 870px) {
  .glowly-case-page {
    --glowly-nav-space: calc(84px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 760px) {
  .glowly-opening__head,
  .glowly-section-head,
  .glowly-end__layout {
    grid-template-columns: 1fr;
  }

  .hw-case figure.glowly-hero-scene {
    width: 100%;
  }

  .glowly-hero-scene img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
  }

  .glowly-mobile-scene img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
  }

  .glowly-opening__head {
    gap: 16px;
  }

  .glowly-editorial__head,
  .glowly-stylist-head {
    display: grid;
  }

  .glowly-end__layout > a:not(.glowly-end__back) {
    justify-self: start;
  }

  .glowly-end {
    padding-bottom: 110px;
  }
}

@media (max-width: 500px) {
  .glowly-brand-flow {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .glowly-booking-steps {
    gap: 14px;
  }

  .glowly-booking-steps li {
    display: grid;
    gap: 5px;
  }
}
