.dv-pf-nav {
  --dv-pf-dark: #161311;
  --dv-pf-light: #f6f1e8;
  --dv-pf-muted: rgba(246, 241, 232, 0.58);
  --dv-pf-gap: clamp(18px, 2.2vw, 34px);
  color: var(--dv-pf-light);
  font-family: Bagoss, Helvetica, Arial, sans-serif;
}

.dv-pf-nav,
.dv-pf-menu {
  box-sizing: border-box;
}

.dv-pf-nav *,
.dv-pf-menu * {
  box-sizing: border-box;
}

/* Hide the exported theme's header (left "Works" menu + centred logo + right menu)
   and the mobile navigation panel. The fixed logo + top-right icon menu replace them. */
#header,
#navigation {
  display: none !important;
}

/* Fixed top-left logo — mirrors the PlayFight nav logo placement.
   Pure black, but mix-blend-mode: difference makes it read white on dark
   backgrounds as the page scrolls (same trick as the menu button). */
.dv-pf-logo {
  z-index: 10030;
  color: #ffffff;
  mix-blend-mode: difference;
  display: block;
  position: fixed;
  top: clamp(18px, 2.2vw, 30px);
  left: clamp(20px, 3.4vw, 46px);
  width: clamp(68px, 6vw, 92px);
  line-height: 0;
  text-decoration: none;
}

.dv-pf-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Force the wordmark fully monochrome (the source SVG has blue/orange accent
   paths); difference-blend then handles black-on-light / white-on-dark. */
.dv-pf-logo svg path {
  fill: currentColor !important;
}

.dv-pf-logo:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

.dv-pf-nav__button {
  z-index: 10030;
  color: var(--dv-pf-light);
  mix-blend-mode: difference;
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 2.3rem;
  height: 2rem;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: clamp(22px, 3vw, 42px);
  right: clamp(22px, 4vw, 58px);
}

.dv-pf-nav__button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

.dv-pf-nav__button-lines {
  pointer-events: none;
  width: 100%;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.dv-pf-nav__line {
  background: currentColor;
  width: 100%;
  height: 0.16rem;
  transform-origin: center;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.dv-pf-nav.is-open .dv-pf-nav__line--top {
  transform: translateY(0.23rem) rotate(45deg);
}

.dv-pf-nav.is-open .dv-pf-nav__line--bottom {
  transform: translateY(-0.23rem) rotate(-45deg);
}

.dv-pf-menu {
  z-index: 10020;
  color: var(--dv-pf-light);
  background: var(--dv-pf-dark);
  width: 100%;
  height: 100vh;
  height: 100svh;
  position: fixed;
  inset: 0;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path 0.95s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.dv-pf-menu.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}

.dv-pf-menu__container {
  width: 100%;
  height: 100%;
  padding: clamp(80px, 9vw, 132px) clamp(24px, 7vw, 96px) clamp(28px, 4vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
}

.dv-pf-menu__layout {
  min-height: min(620px, 72vh);
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  gap: clamp(36px, 6vw, 86px);
}

.dv-pf-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  gap: clamp(16px, 2.3vw, 34px);
}

.dv-pf-menu__item {
  overflow: clip;
}

.dv-pf-menu__link {
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-block;
  position: relative;
  font-family: Solare, Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 9.3vw, 142px);
  line-height: 0.88;
  letter-spacing: 0;
  transform: translateY(115%) rotate(2deg);
  transform-origin: left bottom;
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.65s ease,
    color 0.25s ease;
  will-change: transform, opacity;
}

.dv-pf-menu.is-open .dv-pf-menu__link {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
}

.dv-pf-menu.is-open .dv-pf-menu__item:nth-child(1) .dv-pf-menu__link {
  transition-delay: 0.18s;
}

.dv-pf-menu.is-open .dv-pf-menu__item:nth-child(2) .dv-pf-menu__link {
  transition-delay: 0.27s;
}

.dv-pf-menu.is-open .dv-pf-menu__item:nth-child(3) .dv-pf-menu__link {
  transition-delay: 0.36s;
}

.dv-pf-menu__link[href]:hover,
.dv-pf-menu__link[href]:focus-visible {
  color: #ffffff;
  transform: translateY(-0.06em);
}

.dv-pf-menu__link.is-disabled {
  color: var(--dv-pf-muted);
  cursor: default;
}

.dv-pf-menu__links {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.dv-pf-menu.is-open .dv-pf-menu__links {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* Contact button — shares the site-wide "calypso" button hover (blue disc floods
   up from the bottom) but keeps its own text swap: Contact me -> email.
   On the dark menu overlay the default is the light pill; on hover it floods
   brand blue and the email rolls in white. */
.dv-pf-contact {
  /* Default = the on-dark "C" line style: transparent, white outline, white text
     (matches the global .button--on-dark used by "View More Cases"). */
  color: #ffffff;
  background: transparent;
  border-width: var(--btn-border, 1.5px);
  border-style: solid;
  border-color: #ffffff;
  border-radius: var(--btn-radius, 0px);
  min-height: 2.8rem;
  padding: 0.85rem 1.8rem;
  font-size: clamp(15px, 1.15vw, 17px);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--btn-color-dur, 0.26s) var(--btn-ease, cubic-bezier(0.1, 0, 0.3, 1));
}

/* Growing blue disc (calypso ::before). */
.dv-pf-contact::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -10%;
  top: -110%;
  width: 120%;
  height: 0;
  padding-bottom: 120%;
  border-radius: 50%;
  background: #ffffff;   /* C style: white flood */
  transform: translate3d(0, 68%, 0) scale3d(0, 0, 0);
  pointer-events: none;
}

.dv-pf-contact:hover::before,
.dv-pf-contact:focus-visible::before {
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  transition: transform var(--btn-disc-dur, 0.3s) var(--btn-ease, cubic-bezier(0.1, 0, 0.3, 1));
}

/* Solid blue fill that holds once the disc finishes (calypso ::after). */
.dv-pf-contact::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #ffffff;   /* C style: white fill holds */
  transform: translate3d(0, -100%, 0);
  transition: transform var(--btn-disc-dur, 0.3s) var(--btn-ease, cubic-bezier(0.1, 0, 0.3, 1));
  pointer-events: none;
}

.dv-pf-contact:hover::after,
.dv-pf-contact:focus-visible::after {
  transform: translate3d(0, 0, 0);
  transition-duration: 0.05s;
  transition-delay: var(--btn-disc-dur, 0.3s);
  transition-timing-function: linear;
}

/* Force the contact button's own colours. The exported theme has a broad
   `a:not(.button):not(.brand):hover { color: var(--accent-orange) }` rule that
   otherwise turns this <a> orange on hover — override it explicitly here. */
.dv-pf-contact,
.dv-pf-contact:link,
.dv-pf-contact:visited {
  color: #ffffff !important;   /* default white text (line style on dark) */
}

.dv-pf-contact:hover,
.dv-pf-contact:focus-visible,
.dv-pf-contact:hover .dv-pf-contact__text,
.dv-pf-contact:focus-visible .dv-pf-contact__text {
  color: #121314 !important;   /* C style: dark text on the white flood */
}

/* Two stacked text layers; a hidden ghost of the (wider) email sizes the button
   so the email never clips. Default rolls up + out, email rolls in. */
.dv-pf-contact__inner {
  display: inline-grid;
  align-items: center;
  justify-items: center;
}

.dv-pf-contact__text {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  transition:
    transform var(--btn-text-dur, 0.2s) var(--btn-ease, cubic-bezier(0.1, 0, 0.3, 1)),
    opacity var(--btn-text-dur, 0.2s) var(--btn-ease, cubic-bezier(0.1, 0, 0.3, 1));
}

.dv-pf-contact__sizer {
  grid-area: 1 / 1;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.dv-pf-contact__text--default {
  transform: translateY(0);
}

.dv-pf-contact__text--hover {
  transform: translateY(140%);
  opacity: 0;
}

.dv-pf-contact:hover .dv-pf-contact__text--default,
.dv-pf-contact:focus-visible .dv-pf-contact__text--default {
  transform: translateY(-140%);
  opacity: 0;
}

.dv-pf-contact:hover .dv-pf-contact__text--hover,
.dv-pf-contact:focus-visible .dv-pf-contact__text--hover {
  transform: translateY(0);
  opacity: 1;
  transition-delay: var(--btn-text-dur, 0.2s);
}

.dv-pf-menu__small {
  color: var(--dv-pf-muted);
  font-size: 14px;
  text-decoration: none;
}

.dv-pf-menu__visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  transition:
    opacity 0.75s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.dv-pf-menu.is-open .dv-pf-menu__visual {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.28s;
}

.dv-pf-menu__visual video,
.dv-pf-menu__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dv-menu-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .dv-pf-menu__container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .dv-pf-menu__layout,
  .dv-pf-menu__list {
    align-items: center;
  }

  .dv-pf-menu__visual {
    display: none;
  }
}

@media (max-width: 560px) {
  .dv-pf-nav__button {
    top: 24px;
    right: 22px;
  }

  .dv-pf-logo {
    top: 22px;
    left: 22px;
    width: 76px;
  }

  .dv-pf-menu__container {
    padding: 96px 24px 34px;
  }

  .dv-pf-menu__layout {
    min-height: 70vh;
  }

  .dv-pf-menu__link {
    font-size: clamp(54px, 17vw, 86px);
  }
}
