.masthead__in {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-block: .9rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut)
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mulberry);
  color: #fff;
  padding: .7rem 1rem;
  z-index: 300
}

.skip:focus {
  left: 0
}

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s, box-shadow .4s;
  color: #fff
}

.masthead.is-solid {
  background: rgba(251, 246, 242, .86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -20px rgba(0, 0, 0, .25)
}

.brand {
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
  margin-right: auto;
  flex: 0 0 auto;
  display: block
}

.brand b {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  letter-spacing: -.01em
}

.brand span {
  font-size: .68rem;
  opacity: .75;
  white-space: nowrap;
  letter-spacing: .02em
}

.nav {
  display: flex;
  gap: 1.15rem;
  font-size: .9rem;
  white-space: nowrap
}

.nav a {
  color: inherit;
  opacity: .82;
  text-decoration: none;
  padding-block: .3rem;
  position: relative
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease)
}

.nav a:hover::after,
.nav a[aria-current=page]::after {
  transform: scaleX(1)
}

.nav a[aria-current=page] {
  opacity: 1
}

@media (max-width:1000px) {
  .nav {
          display: none
        }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--mulberry-glow), var(--gold));
  z-index: 200
}

@media (max-width:640px) {
  .masthead .btn {
          display: none
        }
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .5);
  flex: 0 0 auto
}

.brand b {
  color: var(--gold-2)
}

.masthead.is-solid .brand b {
  color: var(--mulberry)
}

.brand>span {
  display: block;
  line-height: 1.1
}

.brand>span>span {
  display: block
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 -40% 0;
  background: linear-gradient(to bottom, rgba(42, 13, 22, .75), transparent);
  pointer-events: none;
  z-index: -1;
  transition: opacity .4s
}

.masthead.is-solid::before {
  opacity: 0
}

.brand {
  gap: .85rem
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid rgba(231, 149, 108, .55);
  box-shadow: 0 0 0 3px rgba(42, 13, 22, .6), 0 8px 20px -6px rgba(0, 0, 0, .6)
}

.brand b {
  font-size: 1.42rem;
  letter-spacing: .01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4)
}

.masthead.is-solid .brand b {
  text-shadow: none
}

.brand>span>span {
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8
}

/* ---------- topbar ---------- */

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  overflow: hidden;
  max-height: 44px;
  transition: max-height .4s var(--ease), opacity .3s, border-color .4s
}

.masthead.is-solid .topbar {
  max-height: 0;
  opacity: 0;
  border-color: transparent
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  padding-block: .55rem;
  font-size: .82rem
}

.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: inherit;
  opacity: .85;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
  transition: opacity .25s
}

.topbar__phone:hover {
  opacity: 1;
  color: inherit
}

.topbar__phone svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: 0 0 auto
}

.topbar__note {
  opacity: .6;
  letter-spacing: .02em
}

/* ---------- masthead layout ---------- */

.masthead__cta {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto
}

.masthead .nav {
  margin-inline: auto
}

/* ---------- burger ---------- */

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .25s
}

.burger[aria-expanded=true] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.burger[aria-expanded=true] span:nth-child(2) {
  opacity: 0
}

.burger[aria-expanded=true] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* ---------- mobile drawer ---------- */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  z-index: 140;
  background: var(--bg);
  color: #EBD9DC;
  padding: 5.4rem var(--gut) 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  box-shadow: var(--shadow-3)
}

.drawer[hidden] {
  display: block
}

.drawer.is-open {
  transform: none
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-d)
}

.drawer__nav a {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-d);
  font-family: var(--serif);
  font-size: 1.22rem;
  color: #fff;
  text-decoration: none
}

.drawer__nav a[aria-current=page] {
  color: var(--gold)
}

.drawer__cta {
  display: grid;
  gap: .6rem;
  margin-top: 1.6rem
}

.drawer__cta .btn {
  justify-content: center
}

.drawer__addr {
  margin-top: 1.6rem;
  font-size: .84rem;
  opacity: .6
}

.drawer__veil {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(42, 13, 22, .6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s
}

.drawer__veil[hidden] {
  display: block
}

.drawer__veil.is-open {
  opacity: 1;
  pointer-events: auto
}

@media (max-width:880px) {
  .masthead__cta .btn--ghost {
      display: none
    }
}

@media (max-width:820px) {
  .burger {
      display: flex
    }
  .masthead .nav {
      display: none
    }
  .masthead__cta {
      display: none
    }
}

@media (prefers-reduced-motion:reduce) {
  .drawer,
    .drawer__veil,
    .topbar,
    .burger span {
      transition: none
    }
}
