/* Morphing top navigation (Details vault: top-morphing-navigation). Preview only.
   Scoped to the root attribute. DMM changes: wordmark in the home slot, DMM links and images,
   LinkedIn only (no X account). */
[data-nav-view=top-morphing-navigation] {
  --surface-2: rgb(32, 30, 29);
  --surface-3: rgb(46, 43, 41);
  --text-1: rgb(245, 245, 244);
  --text-2: rgb(166, 160, 155);
  font-family: 'Avenir Next', 'Segoe UI', Arial, sans-serif;
}
[data-nav-view=top-morphing-navigation][data-theme=light] {
  --surface-2: rgb(243, 242, 241);
  --surface-3: rgb(234, 232, 230);
  --text-1: rgb(15, 15, 15);
  --text-2: rgb(107, 104, 102);
}
[data-nav-view=top-morphing-navigation], [data-nav-view=top-morphing-navigation] *, [data-nav-view=top-morphing-navigation] *::before, [data-nav-view=top-morphing-navigation] *::after {
  box-sizing: border-box;
}
[data-nav-view=top-morphing-navigation] * {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
[data-nav-view=top-morphing-navigation] a {
  color: inherit;
  text-decoration: none;
}
[data-nav-view=top-morphing-navigation] svg, [data-nav-view=top-morphing-navigation] img {
  display: block;
  max-width: 100%;
}
[data-nav-view=top-morphing-navigation] button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
[data-nav-view=top-morphing-navigation] a[href]:focus-visible, [data-nav-view=top-morphing-navigation] button:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
[data-nav-view=top-morphing-navigation] {
  --focus-ring-color: color-mix(in srgb, var(--text-1) 60%, transparent);
  --focus-ring-width: 1.5px;
  --focus-ring-offset: 2px;
}
[data-nav-view=top-morphing-navigation] .backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 310ms, visibility 310ms;
}
[data-nav-view=top-morphing-navigation][data-open=true] .backdrop {
  opacity: 1;
  visibility: visible;
}
[data-nav-view=top-morphing-navigation] header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 24px;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
@media (max-width: 767px) {
  [data-nav-view=top-morphing-navigation] header {
    padding: 16px;
  }
}
[data-nav-view=top-morphing-navigation] .panel {
  position: relative;
  width: 330px;
  height: 60px;
  flex-shrink: 0;
  contain: layout style;
  color: var(--text-1);
  pointer-events: auto;
  overflow: hidden;
  border-radius: 12px;
  corner-shape: superellipse(1.5);
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (max-width: 767px) {
  [data-nav-view=top-morphing-navigation] .panel {
    width: 100%;
  }
}
[data-nav-view=top-morphing-navigation] .panel .mnav-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}
[data-nav-view=top-morphing-navigation] .panel .mnav-bar a, [data-nav-view=top-morphing-navigation] .panel .mnav-bar button {
  pointer-events: auto;
}
[data-nav-view=top-morphing-navigation] .panel .mnav-bar a:focus-visible, [data-nav-view=top-morphing-navigation] .panel .mnav-bar button:focus-visible {
  outline: none;
}
[data-nav-view=top-morphing-navigation] .panel .mnav-bar a:focus-visible::after, [data-nav-view=top-morphing-navigation] .panel .mnav-bar button:focus-visible::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  pointer-events: none;
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
/* DMM: classes are mnav-bar and mnav-home because the page already uses .bar and body.home. The slot is wider than the sample's square mark so the DMM. wordmark fits. */
[data-nav-view=top-morphing-navigation] .panel .mnav-bar .mnav-home {
  position: absolute;
  top: 0;
  left: 8px;
  width: 92px;
  height: 60px;
  display: grid;
  place-items: center;
}
[data-nav-view=top-morphing-navigation] .panel .mnav-bar .toggle {
  position: absolute;
  right: 4px;
  top: 0;
  width: 60px;
  height: 60px;
}
[data-nav-view=top-morphing-navigation] .panel .mnav-bar .toggle::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  transition: background 200ms;
}
[data-nav-view=top-morphing-navigation] .panel .mnav-bar .toggle:hover::before {
  background: color-mix(in srgb, var(--surface-3) 30%, transparent);
}
[data-nav-view=top-morphing-navigation] .panel .mnav-bar .toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  translate: -50% -50%;
  border-radius: 2px;
  background: currentColor;
}
[data-nav-view=top-morphing-navigation] .panel .mnav-bar .toggle [data-top] {
  top: 42%;
}
[data-nav-view=top-morphing-navigation] .panel .mnav-bar .toggle [data-bottom] {
  top: 58%;
}
[data-nav-view=top-morphing-navigation] .panel .content {
  position: absolute;
  top: 60px;
  left: 50%;
  width: 100%;
  padding: 20px 24px 24px;
  transform: translateX(-50%);
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
[data-nav-view=top-morphing-navigation] .panel .content::-webkit-scrollbar {
  display: none;
}
@media (max-width: 767px) {
  [data-nav-view=top-morphing-navigation] .panel .content {
    height: calc(100dvh - 60px);
    max-height: calc(100dvh - 60px);
    display: flex;
    flex-direction: column;
  }
}
[data-nav-view=top-morphing-navigation] .panel .content [data-enter] {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
}
[data-nav-view=top-morphing-navigation] .panel .content [data-enter=fade] {
  transform: none;
  filter: none;
}
[data-nav-view=top-morphing-navigation] .spread {
  display: grid;
  grid-template-columns: 1fr 398px;
  grid-template-areas: "links media" "footer footer";
  grid-template-rows: auto auto;
  align-items: start;
  gap: 24px 32px;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  [data-nav-view=top-morphing-navigation] .spread {
    grid-template-columns: 0.9fr 1.1fr;
    column-gap: 24px;
  }
}
@media (max-width: 639px) {
  [data-nav-view=top-morphing-navigation] .spread {
    grid-template-columns: 1fr;
    grid-template-areas: "links" "media" "footer";
    grid-template-rows: auto;
    gap: 20px;
  }
}
[data-nav-view=top-morphing-navigation] .spread .media {
  grid-area: media;
  position: relative;
  width: 100%;
  aspect-ratio: 398/212;
  overflow: hidden;
  border-radius: 8px;
  corner-shape: superellipse(1.5);
  background: var(--surface-3);
}
@media (max-width: 639px) {
  [data-nav-view=top-morphing-navigation] .spread .media {
    height: 160px;
    aspect-ratio: auto;
  }
}
[data-nav-view=top-morphing-navigation] .spread .media .preview {
  position: absolute;
  inset: 0;
  opacity: 0;
}
[data-nav-view=top-morphing-navigation] .spread .media .preview:first-child {
  opacity: 1;
}
[data-nav-view=top-morphing-navigation] .spread .media .preview img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
[data-nav-view=top-morphing-navigation] .spread .media .preview img.portrait {
  object-position: center 30%;
}
[data-nav-view=top-morphing-navigation] .spread .directory {
  grid-area: links;
  min-width: 0;
}
[data-nav-view=top-morphing-navigation] .spread .directory nav {
  --link-size: 28px;
  --link-height: 40px;
}
@media (max-width: 767px) {
  [data-nav-view=top-morphing-navigation] .spread .directory nav {
    --link-size: 32px;
    --link-height: 56px;
  }
}
@media (max-width: 639px) {
  [data-nav-view=top-morphing-navigation] .spread .directory nav {
    --link-size: 30px;
    --link-height: 48px;
  }
}
[data-nav-view=top-morphing-navigation] .spread .footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
[data-nav-view=top-morphing-navigation] .spread .footer .socials {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
[data-nav-view=top-morphing-navigation] .spread .footer .socials a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--text-2);
  transition: color 180ms ease;
}
[data-nav-view=top-morphing-navigation] .spread .footer .socials a[aria-label=X] svg {
  transform: translateY(1px);
}
[data-nav-view=top-morphing-navigation] .spread .footer .socials a:hover, [data-nav-view=top-morphing-navigation] .spread .footer .socials a:focus-visible {
  color: var(--text-1);
}
[data-nav-view=top-morphing-navigation] .spread .footer .utility {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-2);
}
[data-nav-view=top-morphing-navigation] .spread .footer .utility a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 4px;
  transition: color 180ms ease;
}
[data-nav-view=top-morphing-navigation] .spread .footer .utility a:hover, [data-nav-view=top-morphing-navigation] .spread .footer .utility a:focus-visible {
  color: var(--text-1);
}
[data-nav-view=top-morphing-navigation] [data-links] a {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--link-height, 60px);
  padding-right: 0.75em;
  color: var(--text-1);
  font-size: var(--link-size, 40px);
  line-height: 1.2;
  border-radius: 8px;
}
[data-nav-view=top-morphing-navigation] [data-links] a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.45em;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform 500ms cubic-bezier(0.19, 1, 0.22, 1);
}
[data-nav-view=top-morphing-navigation] [data-links] a .word {
  display: block;
  transition: transform 500ms cubic-bezier(0.19, 1, 0.22, 1), opacity 240ms ease;
}
[data-nav-view=top-morphing-navigation] [data-links] a:hover::before, [data-nav-view=top-morphing-navigation] [data-links] a:focus-visible::before {
  transform: translateY(-50%) scaleX(1);
}
[data-nav-view=top-morphing-navigation] [data-links] a:hover .word, [data-nav-view=top-morphing-navigation] [data-links] a:focus-visible .word {
  transform: translateX(0.7em);
}
[data-nav-view=top-morphing-navigation] [data-links] a:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
[data-nav-view=top-morphing-navigation] [data-links]:has(a:hover) a:not(:hover) .word,
[data-nav-view=top-morphing-navigation] [data-links]:has(a:focus-visible) a:not(:focus-visible) .word {
  opacity: 0.35;
}

/* DMM: each image is a link with its own call to action. */
[data-nav-view=top-morphing-navigation] .spread .media {
  display: block;
  cursor: pointer;
}
[data-nav-view=top-morphing-navigation] .spread .media .preview img.calendar {
  object-position: center 62%;
}
[data-nav-view=top-morphing-navigation] .spread .media .cta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  color: #171821;
  font-size: 15px;
  font-weight: 650;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background 180ms ease;
}
[data-nav-view=top-morphing-navigation] .spread .media:hover .cta {
  background: #e8ecfa;
}
/* DMM: the free assessment is a real button at the far right. */
[data-nav-view=top-morphing-navigation] .spread .footer .utility a.nav-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #fff;
  color: #171821;
  font-weight: 650;
}
[data-nav-view=top-morphing-navigation] .spread .footer .utility a.nav-button:hover,
[data-nav-view=top-morphing-navigation] .spread .footer .utility a.nav-button:focus-visible {
  background: #e8ecfa;
  color: #171821;
}

/* DMM round 3: show each picture whole. The button sits under the picture, not on it. */
[data-nav-view=top-morphing-navigation] .spread .media {
  aspect-ratio: 398/300;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 639px) {
  [data-nav-view=top-morphing-navigation] .spread .media {
    height: auto;
    aspect-ratio: 398/300;
  }
}
[data-nav-view=top-morphing-navigation] .spread .media .preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
[data-nav-view=top-morphing-navigation] .spread .media .shot {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-nav-view=top-morphing-navigation] .spread .media .preview .shot img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
[data-nav-view=top-morphing-navigation] .spread .media .cta {
  position: static;
  align-self: flex-start;
  flex-shrink: 0;
  box-shadow: none;
}
/* Book a call: a dark calendar drawn in the page, current month, open weekdays highlighted. */
[data-nav-view=top-morphing-navigation] .cal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #11131a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}
[data-nav-view=top-morphing-navigation] .cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
[data-nav-view=top-morphing-navigation] .cal-head b { font-size: 14px; font-weight: 650; }
[data-nav-view=top-morphing-navigation] .cal-head span { color: rgba(255, 255, 255, 0.5); font-size: 11px; white-space: nowrap; }
[data-nav-view=top-morphing-navigation] .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  flex: 1;
  grid-auto-rows: 1fr;
}
[data-nav-view=top-morphing-navigation] .cal-week { flex: 0 0 auto; color: rgba(255, 255, 255, 0.45); font-size: 11px; font-weight: 600; text-align: center; }
[data-nav-view=top-morphing-navigation] .cal-grid i {
  display: grid;
  place-items: center;
  font-style: normal;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.28);
}
[data-nav-view=top-morphing-navigation] .cal-grid i.open { background: #2e4490; color: #fff; font-weight: 650; }
[data-nav-view=top-morphing-navigation] .cal-grid i.today { box-shadow: inset 0 0 0 1.5px #f97316; }

/* DMM round 4: picture buttons line up on the right with the assessment button and use DMM blue,
   so they don't repeat the white button. The picture box loses its frame so the edges line up. */
[data-nav-view=top-morphing-navigation] .spread .media {
  background: transparent;
  border: 0;
}
[data-nav-view=top-morphing-navigation] .spread .media .preview {
  padding: 0;
  gap: 12px;
}
[data-nav-view=top-morphing-navigation] .spread .media .cta {
  align-self: flex-end;
  min-height: 44px;
  padding: 0 18px;
  background: #2f47a0;
  color: #fff;
}
[data-nav-view=top-morphing-navigation] .spread .media:hover .cta {
  background: #3b55b8;
}
[data-nav-view=top-morphing-navigation] .spread .media .shot { justify-content: flex-end; }

/* DMM round 5: pictures and buttons are separate links (About has two buttons).
   Only the picture on top takes clicks, so a hidden layer never catches them. */
[data-nav-view=top-morphing-navigation] .spread .media { cursor: default; }
[data-nav-view=top-morphing-navigation] .spread .media .preview { pointer-events: none; }
[data-nav-view=top-morphing-navigation] .spread .media .preview.is-active { pointer-events: auto; }
[data-nav-view=top-morphing-navigation] .spread .media .shot { cursor: pointer; }
[data-nav-view=top-morphing-navigation] .spread .media .ctas {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
[data-nav-view=top-morphing-navigation] .spread .media .cta { align-self: auto; gap: 8px; }
[data-nav-view=top-morphing-navigation] .spread .media:hover .cta { background: #2f47a0; }
[data-nav-view=top-morphing-navigation] .spread .media .cta:hover { background: #3b55b8; }
[data-nav-view=top-morphing-navigation] .spread .media .cta-alt { background: rgba(255, 255, 255, 0.1); }
[data-nav-view=top-morphing-navigation] .spread .media:hover .cta-alt { background: rgba(255, 255, 255, 0.1); }
[data-nav-view=top-morphing-navigation] .spread .media .cta-alt:hover { background: rgba(255, 255, 255, 0.18); }

/* Room for the fixed nav where the old header sat. */
body:has([data-nav-view=top-morphing-navigation]) #main { padding-top: 84px; }
@media (max-width: 767px) {
  body:has([data-nav-view=top-morphing-navigation]) #main { padding-top: 76px; }
}

/* Subpages: same breathing room under the nav as the homepage hero. */
body:has([data-nav-view=top-morphing-navigation]) #main:is(.book, .policy, .assessment-layout) { padding-top: 128px; }
@media (max-width: 767px) {
  body:has([data-nav-view=top-morphing-navigation]) #main:is(.book, .policy, .assessment-layout) { padding-top: 100px; }
}
