/* Shared EBK tokens. Retain these variables when adding subsequent sections. */
:root {
  --ebk-ivory: #FCF9F5;
  --ebk-cream: #F5ECE2;
  --ebk-latte: #E0B196;
  --ebk-caramel: #77513A;
  --ebk-gold: #BE946C;
  --ebk-espresso: #1C1715;
  --ebk-font: Arial, Helvetica, sans-serif;
  --ebk-ease: cubic-bezier(.22, 1, .36, 1);
}

/* The page class is explicit so component CSS does not reset future sections. */
.ebk-page { margin: 0; background: var(--ebk-ivory); }
.ebk-hero, .ebk-hero *, .ebk-hero *::before, .ebk-hero *::after { box-sizing: border-box; }
.ebk-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 661 / 389;
  margin-inline: auto;
  overflow: clip;
  background: var(--ebk-ivory);
  color: var(--ebk-espresso);
  font-family: var(--ebk-font);
  -webkit-font-smoothing: antialiased;
}
.ebk-definitions { position: absolute; pointer-events: none; }
.ebk-hero a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ebk-hero a:focus-visible, .ebk-hero button:focus-visible { outline: 3px solid var(--ebk-espresso); outline-offset: 5px; }
.ebk-hero__visual { position: absolute; inset: 0; z-index: -1; clip-path: url(#ebk-hero-outline); background: var(--ebk-cream); }
.ebk-hero__image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.ebk-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
}

.ebk-header { position: absolute; top: 0; left: 3.8%; right: 2.2%; height: 11.7%; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 5; }
.ebk-brand { display: inline-flex; align-items: center; gap: clamp(7px, 1.15vw, 22px); flex: 0 0 20%; }
.ebk-brand__monogram { font: italic 400 clamp(25px, 3.2vw, 60px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.13em; padding-right: .13em; }
.ebk-brand__wordmark { font-size: clamp(10px, 1.38vw, 25px); line-height: 1.06; font-weight: 500; letter-spacing: -.035em; }
.ebk-brand__wordmark > span { display: block; margin-top: .35em; font-size: .44em; font-weight: 400; letter-spacing: .34em; }
.ebk-navigation { position: absolute; left: 31%; right: 31%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ebk-navigation > a { position: relative; padding-block: 12px; white-space: nowrap; font-size: clamp(10px, 1.08vw, 20px); }
.ebk-navigation > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--ebk-caramel); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ebk-ease); }
.ebk-navigation > a:hover::after { transform: scaleX(1); }
.ebk-header__actions { display: flex; align-items: center; gap: clamp(6px, .75vw, 14px); }
.ebk-contact { padding: .94em 2.05em; border-radius: 100px; background: var(--ebk-espresso); color: var(--ebk-ivory) !important; font-size: clamp(10px, 1.04vw, 20px); line-height: 1.1; white-space: nowrap; transition: background .25s, transform .25s var(--ebk-ease); }
.ebk-contact:hover { background: var(--ebk-caramel); transform: translateY(-2px); }
.ebk-round-link { display: grid; place-items: center; width: clamp(29px, 3.8vw, 72px); aspect-ratio: 1; border-radius: 50%; background: var(--ebk-espresso); color: var(--ebk-ivory) !important; transition: background .25s, transform .35s var(--ebk-ease); }
.ebk-round-link svg { width: 44%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.ebk-round-link:hover { background: var(--ebk-gold); color: var(--ebk-espresso) !important; transform: rotate(45deg); }
.ebk-menu-toggle { display: none; }

.ebk-hero__content { position: absolute; top: 23.7%; left: 13.05%; width: 58%; }
.ebk-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1.1em;
  margin: 0 0 clamp(17px, 2vw, 30px);
  color: #1C1715;
  font-family: "Manrope", sans-serif;
  font-size: clamp(9px, .79vw, 12px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ebk-hero__eyebrow > span {
  height: 1px;
  width: clamp(48px, 7.4vw, 120px);
  background: rgba(28, 23, 21, .25);
}

.ebk-hero__title {
  margin: 0;
  color: #FCF9F5;
  font-family: "Manrope", sans-serif;
  font-size: clamp(39px, 5.2vw, 88px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-transform: none;
}

/* Apply the gradient to each animated character. */
.ebk-hero__title div div {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #F5ECE2 55%,
    #ebd9ad 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(28, 23, 21, .55));
}

.ebk-hero__title > span {
  display: inline-block;
  color: #E0B196;
}

.ebk-hero__title > span div div {
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    #F5ECE2 40%,
    #BE946C 100%
  );
}

.ebk-hero__description {
  max-width: 480px;
  margin: clamp(14px, 1.5vw, 22px) 0 0;
  color: #F5ECE2;
  font-family: "Manrope", sans-serif;
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
  text-shadow: 0 1px 4px rgba(28, 23, 21, .75);
}
.ebk-booking {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.65vw, 32px);
  margin-top: clamp(12px, 1.45vw, 28px);
  padding: .3em .32em .3em 1.85em;

  border-radius: 100px;
  background: linear-gradient(112deg, #1C1715 12%, #493027 63%, #77513A 100%);
  color: var(--ebk-ivory) !important;
  font-size: clamp(11px, 1.2vw, 23px);
  font-weight: 600;
  line-height: 1.1;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(28, 23, 21, 0.15),
    0 5px 18px rgba(190, 148, 108, 0.25);

  transition:
    box-shadow 300ms ease,
    transform 300ms var(--ebk-ease);
}

/* Light passes over the gold, underneath the button text. */
.ebk-booking::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.12) 60%,
    transparent 70%
  );

  transform: translateX(-150%);
  animation: ebk-booking-shimmer 5s ease-in-out infinite;
}

.ebk-booking > span {
  position: relative;
  z-index: 1;
}

@keyframes ebk-booking-shimmer {
  0%, 55% {
    transform: translateX(-150%);
  }

  85%, 100% {
    transform: translateX(150%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebk-booking::before {
    animation: none;
    opacity: 0;
  }
}
.ebk-booking__arrow { display: grid; place-items: center; width: 2.65em; aspect-ratio: 1; background: var(--ebk-ivory); color: var(--ebk-espresso); border-radius: 50%; }
.ebk-booking__arrow svg { width: 50%; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ebk-ease); }
.ebk-booking:hover {
  transform: translateY(-3px);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(28, 23, 21, 0.15),
    0 8px 24px rgba(190, 148, 108, 0.4),
    0 0 30px rgba(190, 148, 108, 0.35);
}
.ebk-booking:hover svg { transform: rotate(45deg); }

/* Hero entrance is controlled by GSAP after the preloader closes. */

/* Tablet keeps the two notches and right-side portrait. */
@media (min-width: 701px) and (max-width: 1050px) {
  .ebk-navigation { left: 27%; right: 27%; gap: 10px; }
  .ebk-hero__title { font-size: 5.7vw; }
}

/* Mobile retains the sculpted top edge, continuous photograph and left-aligned copy. */
@media (max-width: 700px) {
  .ebk-hero { aspect-ratio: auto; min-height: 710px; min-height: min(810px, max(710px, 100svh)); }
  .ebk-hero__visual { inset: 78px 8px 8px; clip-path: none; border-radius: 26px; overflow: hidden; }
  .ebk-hero__visual::before { content: ""; position: absolute; left: 25%; right: 25%; top: -59px; height: 90px; border-radius: 30px 30px 0 0; background: var(--ebk-cream); z-index: -1; }
  .ebk-hero__image { object-position: 67% center; }
  .ebk-hero__visual::after { background: linear-gradient(180deg, rgb(255 255 255 / .95) 0%, rgb(255 255 255 / .88) 25%, rgb(250 243 229 / .48) 45%, transparent 67%); }
  /* A curved central bridge repeats the reference's inset navigation silhouette. */
  .ebk-hero::before { content: ""; position: absolute; top: 58px; left: 43%; width: 23%; height: 45px; z-index: -1; border-radius: 32px 32px 0 0; background: var(--ebk-cream); }
  .ebk-header { top: 0; left: 6%; right: 5%; height: 78px; gap: 8px; }
  .ebk-brand { flex-basis: auto; gap: 9px; }
  .ebk-brand__monogram { font-size: 36px; }
  .ebk-brand__wordmark { font-size: 13px; }
  .ebk-contact { padding: 12px 16px; font-size: 11px; }
  .ebk-round-link { width: 34px; }
  .ebk-header__actions { gap: 7px; }
  .ebk-hero__content { top: 126px; left: 9%; width: 84%; }
  .ebk-hero__eyebrow { font-size: 8px; margin-bottom: 23px; gap: 14px; letter-spacing: .22em; }
  .ebk-hero__eyebrow > span { width: 50px; }
  .ebk-hero__title {
    font-size: clamp(36px, 9.6vw, 66px);
    line-height: 1.15;
  }
  .ebk-hero__description { margin-top: 16px; font-size: clamp(12px, 3.1vw, 18px); line-height: 1.4; }
  .ebk-booking { margin-top: 20px; font-size: 12px; padding-left: 20px; gap: 16px; }
  .ebk-booking__arrow { width: 34px; }
  .ebk-menu-toggle:not([hidden]) { display: flex; width: 34px; height: 34px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgb(48 40 32 / .16); padding: 0; border-radius: 50%; background: var(--ebk-cream); color: var(--ebk-espresso); cursor: pointer; }
  .ebk-menu-toggle > span { width: 14px; height: 1px; background: currentColor; transition: transform .25s; }
  .ebk-menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3px) rotate(45deg); }
  .ebk-menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .ebk-hero--enhanced .ebk-round-link { display: none; }
  .ebk-navigation { top: 74px; left: 0; right: 0; justify-content: center; flex-wrap: wrap; gap: 8px 19px; padding: 11px 15px; background: var(--ebk-ivory); border: 1px solid var(--ebk-cream); border-radius: 18px; box-shadow: 0 16px 40px rgb(48 40 32 / .08); }
  .ebk-navigation > a { font-size: 12px; padding-block: 9px; }
  .ebk-hero--enhanced .ebk-navigation { visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; }
  .ebk-hero--enhanced .ebk-navigation.is-open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
  /* Without JS, navigation remains available without covering the headline. */
  .ebk-hero:not(.ebk-hero--enhanced) .ebk-hero__content { top: 185px; }
}
@media (max-width: 360px) {
  .ebk-brand__monogram { font-size: 29px; }
  .ebk-brand__wordmark { font-size: 11px; }
  .ebk-contact { padding-inline: 12px; }
  .ebk-hero__title { font-size: 9.5vw; }
}
/* Move the hero heading, description and button to the bottom left. */
.ebk-hero .ebk-hero__content {
  top: auto;
  bottom: 8%;
  left: 4%;
  width: 65%;
}

/* Champagne glass pill navigation. */
.ebk-hero .ebk-navigation {
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 100px;
  background: rgba(250, 243, 229, 0.48);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 8px 30px rgba(28, 23, 21, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ebk-hero .ebk-navigation > a {
  padding-block: 7px;
  font-weight: 500;
}

@media (min-width: 701px) {
  .ebk-hero .ebk-navigation {
    left: 26%;
    right: 25%;
    transform: translateY(16px);
  }
}

/* Mobile placement and readable text over the photograph. */
@media (max-width: 700px) {
  .ebk-hero .ebk-hero__content {
    top: auto;
    bottom: 42px;
    left: 8%;
    width: 84%;
  }

  .ebk-hero .ebk-hero__visual::after {
    background: linear-gradient(
      to top,
      rgba(250, 243, 229, 1) 0%,
      rgba(250, 243, 229, 0.6) 28%,
      rgba(250, 243, 229, 0) 53%,
      transparent 75%
    );
  }

  .ebk-hero .ebk-navigation {
    padding: 12px 16px;
    border-radius: 24px;
    background: rgba(250, 243, 229, 0.85);
  }
}

/* Sliding gradient capsule inside the existing glass navbar. */
.ebk-hero .ebk-navigation {
  isolation: isolate;
  justify-content: center;
  gap: 8px;
}

/* Compact, centred desktop capsule. */
@media (min-width: 701px) {
  .ebk-hero .ebk-navigation {
    left: 50%;
    right: auto;
    width: max-content;
    padding: 10px 12px;
    transform: translate(-50%, 16px);
  }
}

/* Soft highlight over the moving gradient. */
.ebk-hero .ebk-navigation > a {
  transition:
    background 250ms ease,
    box-shadow 250ms ease,
    color 250ms ease;
}

.ebk-hero .ebk-navigation > a:hover {
  color: #1C1715;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ebk-hero .ebk-navigation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--ebk-pill-width, 0px);
  height: var(--ebk-pill-height, 0px);
  transform: translate(
    var(--ebk-pill-x, 0px),
    var(--ebk-pill-y, 0px)
  );
  border-radius: 999px;
  background: linear-gradient(
    115deg,
    #F5ECE2 0%,
    #E0B196 40%,
    #BE946C 75%,
    #BE946C 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 4px 14px rgba(119, 81, 58, 0.22);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition:
    transform 500ms cubic-bezier(.22, 1, .36, 1),
    width 500ms cubic-bezier(.22, 1, .36, 1),
    height 500ms cubic-bezier(.22, 1, .36, 1),
    opacity 200ms ease;
}

.ebk-hero .ebk-navigation[data-pill-ready]::before {
  opacity: 1;
}

.ebk-hero .ebk-navigation > a {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  color: #1C1715;
}

.ebk-hero .ebk-navigation > a::after {
  display: none;
}

@media (max-width: 700px) {
  .ebk-hero .ebk-navigation {
    justify-content: space-between;
    gap: 4px;
  }

  .ebk-hero .ebk-navigation > a {
    padding: 7px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebk-hero *, .ebk-hero *::before, .ebk-hero *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* RIGHT-SIDE INTERACTIVE 3D MARQUEE */
.ebk-grid-marquee {
  --grid-gap: 20px;

  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;

  -webkit-clip-path: url(#ebk-hero-outline);
  clip-path: url(#ebk-hero-outline);

  pointer-events: none;
}

.ebk-grid-marquee__board {
  position: absolute;
  top: -12%;
  left: 100%;
  width: 47%;
  height: 180%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: start;

  transform-origin: 0 0;
  transform-style: preserve-3d;

  transform:
    translate3d(
      var(--grid-move-x, 0px),
      var(--grid-move-y, 0px),
      0
    )
    rotateZ(32deg)
    rotateX(calc(28deg + var(--grid-tilt-x, 0deg)))
    rotateY(calc(-12deg + var(--grid-tilt-y, 0deg)));

  transition: transform 450ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  pointer-events: auto;
}

.ebk-grid-marquee__column {
  min-width: 0;
}

/* Desktop only: translucent cards, softer at the top. */
@media (min-width: 701px) {
  .ebk-grid-marquee {
    opacity: 1;

    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      #000 40%
    );

    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      #000 40%
    );
  }
}

.ebk-grid-marquee__track {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: ebk-grid-scroll 70s linear infinite;
  will-change: transform;
}

.ebk-grid-marquee__column:nth-child(2)
.ebk-grid-marquee__track {
  animation-direction: reverse;
  animation-duration: 82s;
}

.ebk-grid-marquee__group {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: var(--grid-gap);
  padding-bottom: var(--grid-gap);
}

.ebk-grid-marquee__card {
  position: relative;
  flex: none;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  transition: transform 350ms ease;
}

.ebk-grid-marquee__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms ease, filter 400ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ebk-grid-marquee:hover .ebk-grid-marquee__track {
    animation-play-state: paused;
  }

  .ebk-grid-marquee__card:hover {
    z-index: 2;
    transform: scale(1.035);
  }

  .ebk-grid-marquee__card:hover img {
    transform: scale(1.08);
    filter: brightness(1.07);
  }
}

.ebk-hero .ebk-hero__content {
  z-index: 2;
}

@keyframes ebk-grid-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@media (max-width: 700px) {
  .ebk-grid-marquee {
    --grid-gap: 12px;

    /* Match the mobile hero image's exact outer boundary. */
    inset: 78px 8px 8px;
    width: auto;
    height: auto;

    border: 0;
    border-radius: 26px;
    background: transparent;
    overflow: hidden;

    -webkit-clip-path: inset(0 round 26px);
    clip-path: inset(0 round 26px);

    /* Fade into the photo instead of showing a straight edge. */
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 48%,
      #000 72%,
      #000 100%
    );

    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 48%,
      #000 72%,
      #000 100%
    );

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .ebk-grid-marquee__board {
    /* Position the diagonal columns toward the bottom left. */
    top: 44%;
    left: 25%;
    width: 85%;
    height: 180%;
  }

  .ebk-grid-marquee__card {
    border: 0;
    border-radius: 8px;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebk-grid-marquee__track {
    animation: none;
    will-change: auto;
  }

  .ebk-grid-marquee__board,
  .ebk-grid-marquee__card,
  .ebk-grid-marquee__card img {
    transition: none;
  }

  .ebk-grid-marquee__board {
    will-change: auto;
  }
}

/* Mobile branding is shown only inside the mobile hero content. */
.ebk-mobile-brand {
  display: none;
}

/* MOBILE HERO: BRANDING, NOTCH NAVIGATION AND BOTTOM-RIGHT MARQUEE */
@media (max-width: 700px) {
  .ebk-hero {
    width: calc(100% - 20px);
    max-width: none;
    height: 700px;
    min-height: 0;
    aspect-ratio: auto;
    margin: 8px auto;
    overflow: clip;
  }

  .ebk-hero::before,
  .ebk-hero .ebk-hero__visual::before {
    content: none;
  }

  /* The image now starts near the top, without a separate logo row. */
  .ebk-hero .ebk-hero__visual {
    inset: 8px 0 0;
    border-radius: 0;
    overflow: hidden;
    -webkit-clip-path: url(#ebk-hero-outline-mobile);
    clip-path: url(#ebk-hero-outline-mobile);
  }

  .ebk-hero .ebk-header {
    top: 0;
    left: 0;
    right: 0;
    height: 78px;
    pointer-events: none;
  }

  /* Remove the original branding and duplicate contact CTA on mobile. */
  .ebk-hero .ebk-header > .ebk-brand,
  .ebk-hero .ebk-header .ebk-contact,
  .ebk-hero .ebk-header .ebk-round-link {
    display: none;
  }

  /* Menu control sits in the empty right-hand notch. */
  .ebk-hero .ebk-header__actions {
    position: absolute;
    top: 8px;
    right: 1px;
    gap: 0;
    pointer-events: auto;
  }

  .ebk-hero .ebk-menu-toggle:not([hidden]) {
    display: flex;
    width: 34px;
    height: 34px;
    margin: 0;
  }

  /* Navbar remains inside the raised centre of the photograph. */
  .ebk-hero .ebk-navigation {
    position: absolute;
    top: 22px;
    left: 16%;
    right: 16%;
    width: auto;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 6px;

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: rgba(250, 243, 229, 0.52);

    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);

    box-shadow:
      0 8px 24px rgba(28, 23, 21, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);

    pointer-events: auto;
    transform-origin: top center;

    transition:
      opacity 300ms ease,
      transform 400ms cubic-bezier(.22, 1, .36, 1),
      visibility 300ms;
  }

  .ebk-hero .ebk-navigation > a {
    flex: 0 1 auto;
    padding: 7px clamp(3px, 1vw, 7px);
    font-size: clamp(10px, 2.6vw, 13px);
    line-height: 1.2;
    white-space: nowrap;
  }

  /* Navigation stays permanently visible inside the hero. */
  .ebk-hero.ebk-hero--enhanced .ebk-navigation {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  /* Enlarged, stacked branding centred across the mobile hero. */
  .ebk-hero .ebk-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    margin: 0 0 28px;
    color: #FCF9F5;
    text-align: center;
    transform: translateY(-195px);
  }

  .ebk-mobile-brand .ebk-brand__monogram {
    font-size: clamp(70px, 18vw, 84px);
    line-height: 1;
  }

  .ebk-mobile-brand .ebk-brand__wordmark {
    display: block;
    font-size: clamp(30px, 5vw, 24px);
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .ebk-mobile-brand .ebk-brand__wordmark > span {
    display: block;
    width: max-content;
    margin: 7px auto 0;
    font-size: 0.5em;
    line-height: 1.2;
    letter-spacing: 0.34em;
  }

  .ebk-mobile-brand .ebk-brand__monogram,
  .ebk-mobile-brand .ebk-brand__wordmark,
  .ebk-mobile-brand .ebk-brand__wordmark > span {
    background-image: linear-gradient(
      90deg,
      #BE946C 0%,
      #E0B196 45%,
      #FFFFFF 85%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .ebk-hero .ebk-hero__content {
    top: auto;
    bottom: 40px;
    left: 6%;
    width: 88%;
    z-index: 2;
  }

  .ebk-hero .ebk-hero__eyebrow {
    margin-bottom: 18px;
  }

  .ebk-hero .ebk-hero__title {
    font-size: clamp(32px, 9vw, 46px);
  }

  .ebk-hero .ebk-hero__description {
    margin-top: 14px;
  }

  .ebk-hero .ebk-booking {
    margin-top: 20px;
  }

  /* Same clipping boundary as the main photograph. */
  .ebk-hero .ebk-grid-marquee {
    inset: 8px 0 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    overflow: hidden;

    -webkit-clip-path: url(#ebk-hero-outline-mobile);
    clip-path: url(#ebk-hero-outline-mobile);

    /* Gradually appear toward the bottom without a hard top edge. */
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 60%,
      #000 84%,
      #000 100%
    );

    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 60%,
      #000 84%,
      #000 100%
    );
  }

  /* Shift the diagonal cards lower and further right. */
  .ebk-hero .ebk-grid-marquee__board {
    top: 58%;
    left: 85%;
    width: 85%;
    height: 180%;

    transform-origin: 0 0;

    transform:
      translate3d(
        var(--grid-move-x, 0px),
        var(--grid-move-y, 0px),
        0
      )
      rotateZ(38deg)
      rotateX(calc(28deg + var(--grid-tilt-x, 0deg)))
      rotateY(calc(-12deg + var(--grid-tilt-y, 0deg)));
  }
}
/* Shared paint for interactive controls on Home, Services and Book Me. */
:root {
  --yg-pearl: linear-gradient(112deg, #fcf9f5, #f5ece2 49%, #e0b196);
  --yg-metal: linear-gradient(112deg, #be946c, #fbd7c0 48%, #e0b196);
  --yg-espresso: linear-gradient(112deg, #1c1715, #4a3027 56%, #77513a);
  --yg-light-ink: #fcf9f5;
  --yg-dark-ink: #1c1715;
}

/* Page-specific rules also set button shorthands. Give only the shared paint
   priority so each component retains its size, shape and interaction. */
@layer ygdi-controls {
  :where(
    button:enabled:not(.ebi-panel, .ebk-work__dot),
    input:is([type="submit"], [type="button"]):enabled,
    a:is(.ebk-booking, .ebp-button, .ebf-book, .ebf-top-link, .ebk-round-link,
         .ebk-contact, .ebk-contact-chat, .nv-home-services-heading__button,
         .ygdi-drawer-primary, .ygdi-menu-link, .ygdi-booking-pill, .tw-btn-circle, .gooey-nav__link),
    .ygdi-menu-jump a, .leaflet-bar a[role="button"]:not(.leaflet-disabled),
    .ygdi-menu-makeup-option summary, .ygdi-booking-control > summary
  ) {
    --yg-paint: var(--yg-pearl);
    --yg-ink: var(--yg-dark-ink);
    --yg-sweep: #c69b7c;
    --yg-size: 0% 0%;
    color: var(--yg-ink) !important;
    background-image:
      radial-gradient(ellipse at left bottom, var(--yg-sweep) 0 69%, transparent 70%),
      var(--yg-paint) !important;
    background-size: var(--yg-size), 100% 100% !important;
    background-position: left bottom, center !important;
    background-repeat: no-repeat !important;
    transition: background-size 460ms cubic-bezier(.22, 1, .36, 1),
      transform 280ms ease, border-color 220ms ease, box-shadow 220ms ease !important;
  }

  :is(.ebk-booking, .ebp-button, .ebk-contact, .ebk-contact-submit,
      .ebn-button, .ygdi-drawer-primary, .ygdi-menu-link--dark, .ygdi-booking-lock,
      .nv-home-services-heading__button, #ygdi-booking-auth-submit,
      .ebn-day.selected, .ebn-time.selected, button[aria-pressed="true"]:not(.ebi-panel)) {
    --yg-paint: var(--yg-espresso);
    --yg-ink: var(--yg-light-ink);
    --yg-sweep: #754733;
  }

  :is(.ebf-book, .tw-btn-circle, .gooey-nav__link[aria-current="page"],
      .ebp-card--signature .ebp-button) {
    --yg-paint: var(--yg-metal);
    --yg-ink: var(--yg-dark-ink);
    --yg-sweep: #f9dfc9;
  }

  .gooey-nav__link:not([aria-current="page"]) {
    --yg-paint: linear-gradient(115deg, transparent, transparent);
    --yg-sweep: #e0b196;
  }

  .tw-btn-circle .tw-btn-circle-dot {
    background: #c69b7c !important;
  }
  .tw-btn-circle span, .ygdi-menu-review small {
    color: var(--yg-ink) !important;
  }

  .ebk-booking__arrow, .nv-home-services-heading__arrow {
    color: #1c1715 !important;
    background: #f5ece2 !important;
  }
  .ebp-card--signature .ebp-button span {
    background: #332320 !important;
    color: #fcf9f5 !important;
  }

  /* Keep the slideshow images visible. Sweep the caption or pager dot. */
  .ebi-panel-title, .ebk-work__dot::before {
    --yg-size: 0% 0%;
    background-image: radial-gradient(ellipse at left bottom, #77513a 0 69%, transparent 70%),
      linear-gradient(115deg, #1c1715, #4a3027) !important;
    background-position: left bottom, center !important;
    background-size: var(--yg-size), 100% 100% !important;
    background-repeat: no-repeat !important;
  }
  .ebi-panel-title {
    color: #fcf9f5 !important;
    border-radius: .45em;
    padding: .16em .44em;
    transition: background-size 460ms ease, left 800ms ease, transform 800ms ease !important;
  }
  .ebk-work__dot::before {
    transition: background-size 460ms ease, width 450ms ease !important;
  }
  .ebk-work__dot.is-active::before {
    background-image: radial-gradient(ellipse at left bottom, #77513a 0 69%, transparent 70%),
      var(--yg-metal) !important;
  }

  @media (hover: hover) {
    :is(a, button:enabled, input:enabled, summary):hover,
    .ebi-panel:hover .ebi-panel-title, .ebk-work__dot:hover::before {
      --yg-size: 170% 170%;
    }
  }
  :is(a, button:enabled, input:enabled, summary):is(:focus-visible, :active),
  .ebi-panel:is(:focus-visible, :active) .ebi-panel-title,
  .ebk-work__dot:is(:focus-visible, :active)::before {
    --yg-size: 170% 170%;
  }
  @media (prefers-reduced-motion: reduce) {
    :is(a, button, input, summary), .ebi-panel-title, .ebk-work__dot::before {
      transition-duration: 0s !important;
    }
  }
}
