/* Keep the signature on the upper line and reserve the lower line for navigation. */
.mast {position: relative; z-index: 4;}
.mast .navrow {
  padding-block: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  --brand-gap: 1.25rem;
  --links-start: 8.5rem;
  --link-top: 2.8rem;
  --link-height: 2.75rem;
  display: flex;
  align-items: flex-start;
  gap: var(--brand-gap);
  container-type: inline-size;
}
.brand-line {
  margin: .5rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid #a6b3a2;
  color: var(--forest);
  font: 400 1rem/1.12 var(--serif);
}
.brand-line em {color: var(--clay);}
.dot-nav {
  flex: 0 0 auto;
  position: relative;
  min-height: calc(var(--link-top) + var(--link-height) + 2px);
  border: 0;
}
.dot-toggle {
  position: relative;
  width: max-content;
  z-index: 1;
  display: grid;
  grid-template-rows: var(--link-top) var(--link-height);
  justify-items: center;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 3px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.dot-toggle::-webkit-details-marker {display: none;}
.dot-toggle::after, .dot-toggle::marker {content: none;}
.dot-nav[open] > .dot-toggle::after {content: none;}
.animated-mark {
  position: relative;
  display: inline-block;
  padding: 0 .26em 0 .24em;
  color: var(--forest);
  font: bold 2.75rem/.94 var(--serif);
  letter-spacing: -.075em;
}
.mark-letters {display: block;}
.dot-position {
  position: absolute;
  bottom: .07em;
  left: 0;
  width: .17em;
  height: .17em;
  pointer-events: none;
}
.dot-bead {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--clay);
}
.dot-nav[open] .dot-position {left: calc(100% - .19em);}
.menu-hint {
  color: var(--muted);
  font: 500 .75rem/1.15 var(--sans);
  letter-spacing: .025em;
}
.dot-toggle:hover .menu-hint, .dot-nav[open] .menu-hint {color: var(--clay);}
/* The menu spans the header. Only the wordmark sets the width before the divider. */
.nav-track {
  display: flow-root;
  width: 0;
}
.bar-links {
  width: calc(100cqi - var(--links-start));
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: .75rem;
  margin-top: calc(-1 * var(--link-height));
  margin-left: var(--links-start);
  /* The top line stays available to the tagline and the wordmark. */
  pointer-events: none;
}
.bar-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--link-height);
  padding-inline: .65rem;
  border-radius: 2px;
  font: 550 .98rem/1.2 var(--sans);
  color: var(--forest);
  text-decoration: none;
  text-underline-offset: .3em;
  white-space: nowrap;
  pointer-events: auto;
}
.bar-links a:hover, .bar-links a:focus-visible {text-decoration: underline;}
.bar-links a:focus-visible {outline-offset: -3px;}
.bar-links .talk-link {font-weight: 680; color: var(--clay);}
.bar-links .label-short {display: none;}
.bar-links a:nth-child(1) {--step: 0;}
.bar-links a:nth-child(2) {--step: 1;}
.bar-links a:nth-child(3) {--step: 2;}
.bar-links a:nth-child(4) {--step: 3;}
.bar-links a:nth-child(5) {--step: 4;}
.bar-links a:nth-child(6) {--step: 5;}

@media (max-width: 44rem) {
  .bar-links {column-gap: .15rem;}
  .bar-links a {padding-inline: .32rem; font-size: .94rem;}
  .bar-links .label-long {display: none;}
  .bar-links .label-short {display: inline;}
}
@media (max-width: 32rem) {
  .mast .navrow {--links-start: 2.72rem;}
  /* Only the little caption occupies this first cell on the lower line. */
  .dot-toggle {justify-items: start;}
  .menu-hint {margin-left: .06rem;}
  .bar-links {column-gap: 0;}
  .bar-links a {min-width: 2.75rem; padding-inline: .18rem; font-size: .9rem;}
}
@media (max-width: 22rem) {
  .mast .navrow {--links-start: 2.2rem; width: calc(100% - .75rem);}
  .bar-links a {padding-inline: .06rem; font-size: .875rem;}
}
@media (max-width: 34rem) {
  .mast .navrow {--links-start: 3rem;}
  .dot-nav[open] .bar-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: start;
    gap: 0 .2rem;
    padding-bottom: .35rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .dot-position {transition: left 255ms cubic-bezier(.44,0,.2,1);}
  .dot-bead {animation: beckon 11s ease-in-out .45s infinite;}
  .dot-nav[open] .dot-position {animation: cross-word 255ms ease-in-out;}
  .dot-nav[open] .bar-links a {
    animation: reveal-link 175ms ease-out both;
    animation-delay: calc(245ms + var(--step) * 36ms);
  }
  .dot-nav[open] .bar-links a:focus-visible {animation: none;}
  @keyframes beckon {
    /* Uneven rests between hops, with one short rebound. */
    0%, 3.4%, 20%, 23%, 43%, 46.6%, 49.5%, 67%, 70%, 83%, 86.4%, 100% {transform: translateY(0);}
    1.5% {transform: translateY(-3px);}
    21.3% {transform: translateY(-2px);}
    44.6% {transform: translateY(-4px);}
    47.9% {transform: translateY(-1.5px);}
    68.3% {transform: translateY(-2.5px);}
    84.5% {transform: translateY(-3px);}
  }
  @keyframes cross-word {
    0%, 100% {transform: translateY(0);}
    48% {transform: translateY(-6px);}
  }
  @keyframes reveal-link {
    from {opacity: 0; transform: translateX(-5px);}
    to {opacity: 1; transform: translateY(0);}
  }
}
