/* Keep the illustrated mark and the two lines of type on one baseline at every size. */
.eo-home-link .eo-brand-signature {
  display: inline-flex;
  align-items: center;
  gap: inherit;
}

@media (min-width: 1101px) {
  /* The template clips both body axes. Leave vertical scrolling with the viewport
     so a sticky child measures the document, while retaining horizontal clipping. */
  body.eo-student-home {
    overflow-y: visible;
    --eo-pinned-height: clamp(52px, 6.3vh, 68px);
  }
  .eo-student-home :is(main[id], main [id]) { scroll-margin-top: calc(var(--eo-pinned-height) + 8px); }

  /* The mast overlaps the cover in normal flow. The browser scrolls away exactly one
     utility row, then holds the navigation. Its reserved footprint never changes. */
  .eo-student-home .eo-mast {
    --eo-visible-nav: var(--eo-nav-height);
    position: sticky;
    top: calc(0px - var(--eo-utility-height));
    height: var(--eo-mast-height);
    margin-bottom: calc(0px - var(--eo-mast-height));
    isolation: isolate;
    pointer-events: none;
  }
  .eo-student-home .eo-mast:has(.eo-utility :focus-visible) { top: 0; }
  .eo-student-home .eo-mast-pinned { --eo-visible-nav: var(--eo-pinned-height); }
  .eo-student-home .eo-nav-row, .eo-student-home .eo-utility { pointer-events: auto; }
  .eo-student-home .eo-nav-row { min-height: var(--eo-visible-nav); animation: none; }

  /* A single sheet of chalk paper spans the navigation. Its clipped outside
     corner exposes the photograph and is kept inside the empty right gutter. */
  .eo-student-home .eo-mast::before {
    --eo-corner: clamp(16px, 1.6vw, 28px);
    content: "";
    position: absolute;
    z-index: -1;
    inset: var(--eo-utility-height) 0 auto;
    height: var(--eo-visible-nav);
    pointer-events: none;
    background: var(--eo-paper);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--eo-corner)), calc(100% - var(--eo-corner)) 100%, 0 100%);
  }
  .eo-student-home .eo-mast-pinned::before { clip-path: none; }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .eo-student-home .eo-mast-pinned::before {
      background: rgba(250, 250, 236, .78);
      -webkit-backdrop-filter: blur(18px) saturate(1.12);
      backdrop-filter: blur(18px) saturate(1.12);
    }
  }
  @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
    .eo-student-home .eo-mast-pinned::before {
      background: var(--eo-paper);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }
}

@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .eo-student-home .eo-mast::before {
    transition: background-color .26s ease, height .38s var(--eo-ease-out);
  }
  .eo-student-home .eo-nav-row { transition: min-height .38s var(--eo-ease-out); }

  /* Establish the utility text in place. Only the small printed instruments move. */
  .eo-student-home .eo-utility { animation: eo-mast-utility-ink .62s ease-out backwards; }
  .eo-office a[href^="tel:"] svg { animation: eo-mast-receiver .83s var(--eo-ease-out) .06s backwards; }
  .eo-office a[href^="mailto:"] svg path {
    stroke-dasharray: 1;
    animation: eo-mast-envelope .69s ease-out .14s backwards;
  }
  .eo-office-hours svg path {
    transform-origin: 12px 12px;
    animation: eo-mast-clock .9s var(--eo-ease-out) .16s backwards;
  }
  .eo-student-home .eo-social a svg {
    animation: eo-mast-social .68s var(--eo-ease-out) var(--eo-social-delay, .1s) backwards;
  }
  .eo-social a:nth-child(2) { --eo-social-delay: .16s; }
  .eo-social a:nth-child(3) { --eo-social-delay: .22s; }
  .eo-social a:nth-child(4) { --eo-social-delay: .28s; }
  .eo-student-home .eo-brand-signature {
    transform-origin: left center;
    animation: eo-mast-signature .92s var(--eo-ease-out) .07s backwards;
  }

  /* The baseline window stays still while each complete label rises through it. */
  .eo-student-home .eo-nav-label {
    display: inline-flex;
    clip-path: inset(-.08em -.08em -.08em -.08em);
  }
  .eo-student-home .eo-nav-name {
    display: inline-block;
    animation: eo-mast-nav-rise .44s cubic-bezier(.2,.76,.25,1) var(--eo-name-delay, .06s) backwards;
  }
  .eo-nav-group:nth-child(2) { --eo-name-delay: .13s; }
  .eo-nav-group:nth-child(3) { --eo-name-delay: .20s; }
  .eo-nav-group:nth-child(4) { --eo-name-delay: .27s; }
  .eo-nav-group:nth-child(5) { --eo-name-delay: .34s; }
  .eo-nav-group:nth-child(6) { --eo-name-delay: .41s; }
  .eo-student-home .eo-nav-cta > .eo-action-surface {
    animation: eo-mast-advisor .74s var(--eo-ease-out) .31s backwards;
  }
  .eo-type-pending .eo-student-home .eo-mast * { animation-play-state: paused; }
  .eo-student-home .eo-mast :focus-visible * { animation-duration: 0s; animation-delay: 0s; }
}

@keyframes eo-mast-utility-ink { from { color: #b4bb9c; } }
@keyframes eo-mast-receiver { from { transform: rotate(-19deg); } }
@keyframes eo-mast-envelope { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes eo-mast-clock { from { transform: rotate(-72deg); } }
@keyframes eo-mast-social { from { opacity: 0; transform: scale(.78); } }
@keyframes eo-mast-signature { from { opacity: 0; transform: translateX(-4px) scale(.975); } }
@keyframes eo-mast-nav-rise {
  from { opacity: 0; transform: translateY(112%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes eo-mast-advisor {
  from { opacity: .15; clip-path: inset(0 0 0 88% round 5px); }
  to { clip-path: inset(0 round 5px); }
}
