.menu-toggle,
.menu-button,
.po-mobile-menu-stage {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --po-menu-duration: 2600ms;
    --po-printer-recoil-delay: 104ms;
    --po-item-fade: 600ms;
    --po-item-stagger: 78ms;
  }

  .site-header {
    z-index: 170;
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    align-items: center;
    gap: 16px;
    padding: 14px 6%;
  }

  .brand {
    width: min(300px, 72vw);
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    margin-top: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
    border: 1px solid #d8dce1;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(30, 33, 37, 0.16);
  }

  .menu-toggle:checked ~ .main-nav {
    display: flex;
  }

  html.po-mobile-menu-ready .site-header > .main-nav {
    display: none !important;
  }

  .main-nav > a,
  .nav-dropdown > .dropdown-toggle {
    width: 100%;
    display: block;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e3e6ea;
  }

  .main-nav > a:last-child {
    border-bottom: 0;
  }

  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .dropdown-menu {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .menu-button {
    width: 46px;
    height: 46px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    justify-self: end;
    cursor: pointer;
  }

  .menu-button span {
    position: absolute;
    top: 21px;
    left: 8px;
    width: 30px;
    height: 4px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 520ms cubic-bezier(.22, 1, .36, 1), opacity 300ms ease;
  }

  .menu-button span:nth-child(1) {
    transform: translateY(-10px);
  }

  .menu-button span:nth-child(3) {
    transform: translateY(10px);
  }

  .menu-toggle:checked + .menu-button span:nth-child(1),
  html.po-mobile-menu-open .menu-button span:nth-child(1) {
    transform: rotate(45deg);
  }

  .menu-toggle:checked + .menu-button span:nth-child(2) {
    display: none !important;
  }

  html.po-mobile-menu-open .menu-button span:nth-child(2) {
    display: none !important;
    opacity: 0 !important;
  }

  .menu-toggle:checked + .menu-button span:nth-child(3),
  html.po-mobile-menu-open .menu-button span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .po-mobile-menu-stage {
    position: absolute;
    z-index: 160;
    top: var(--po-stage-top, 112px);
    right: 0;
    left: 0;
    display: block;
    height: calc(var(--po-menu-travel, 441px) + 150px);
    pointer-events: none;
  }

  .po-mobile-menu-stage.po-route-exit {
    opacity: 0;
    transition: opacity 520ms ease;
  }

  html.po-route-enter main > *,
  html.po-route-enter .footer {
    opacity: 0;
    transform: translateY(18px);
  }

  html.po-route-enter.po-route-ready main > *,
  html.po-route-enter.po-route-ready .footer {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 660ms ease, transform 660ms cubic-bezier(.22, 1, .36, 1);
  }

  body.po-route-leaving main > *,
  body.po-route-leaving .footer {
    opacity: 0;
    transform: translateY(-18px);
    transition: opacity 540ms ease, transform 540ms cubic-bezier(.4, 0, .2, 1);
  }

  .po-mobile-curtain {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 6%;
    left: 6%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    border: 1px solid #d8dce1;
    border-radius: 0 0 6px 6px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(30, 33, 37, 0.16);
    transition:
      clip-path var(--po-menu-duration) linear,
      visibility 0s linear var(--po-menu-duration);
  }

  .po-mobile-menu-stage.is-open .po-mobile-curtain {
    visibility: visible;
    clip-path: inset(0);
    pointer-events: auto;
    transition-delay: 0s;
    transition-timing-function: cubic-bezier(.42, 0, .18, 1), linear;
  }

  .po-mobile-curtain > a {
    min-height: 63px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #e3e6ea;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 800;
    opacity: 0;
    text-align: left;
    transition: opacity var(--po-item-fade) cubic-bezier(.4, 0, .2, 1);
  }

  .po-mobile-curtain > a:last-child {
    border-bottom: 0;
  }

  .po-mobile-curtain > a:hover,
  .po-mobile-curtain > a:focus-visible {
    background: #f1f3f4;
  }

  .po-mobile-curtain .po-products-link::after {
    content: "▾";
    margin-left: 7px;
    font-size: .7rem;
  }

  .po-mobile-menu-stage.is-open .po-mobile-curtain > a {
    opacity: 1;
    transition: opacity 520ms ease 160ms;
  }

  .po-mobile-curtain > a:nth-child(7) { transition-delay: 0ms; }
  .po-mobile-curtain > a:nth-child(6) { transition-delay: calc(var(--po-item-stagger) * 1); }
  .po-mobile-curtain > a:nth-child(5) { transition-delay: calc(var(--po-item-stagger) * 2); }
  .po-mobile-curtain > a:nth-child(4) { transition-delay: calc(var(--po-item-stagger) * 3); }
  .po-mobile-curtain > a:nth-child(3) { transition-delay: calc(var(--po-item-stagger) * 4); }
  .po-mobile-curtain > a:nth-child(2) { transition-delay: calc(var(--po-item-stagger) * 5); }
  .po-mobile-curtain > a:nth-child(1) { transition-delay: calc(var(--po-item-stagger) * 6); }

  .po-printer-pass {
    position: absolute;
    z-index: 2;
    top: -64px;
    right: 3%;
    left: 3%;
    height: 134px;
    visibility: hidden;
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    transform: translateY(0);
    transition:
      transform var(--po-menu-duration) linear var(--po-printer-recoil-delay),
      visibility 0s linear calc(var(--po-menu-duration) + var(--po-printer-recoil-delay));
  }

  .po-mobile-menu-stage.is-open .po-printer-pass {
    visibility: visible;
    transform: translateY(var(--po-menu-travel, 441px));
    transition-delay: 0s;
    transition-timing-function: cubic-bezier(.42, 0, .18, 1), linear;
    pointer-events: auto;
    cursor: pointer;
  }

  .po-printer-lid {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 35px;
    left: 35px;
    height: 18px;
    border: 1px solid #d8dce1;
    border-radius: 6px 6px 2px 2px;
    background: #e4e6e8;
    transform: perspective(80px) rotateX(18deg);
    transform-origin: bottom;
  }

  .po-printer-body {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 0;
    left: 0;
    height: 51px;
    border: 1px solid #2a2d31;
    border-radius: 7px;
    color: #fff;
    background: #171a1f;
    box-shadow: 0 9px 16px rgba(23, 26, 31, .24);
  }

  .po-printer-name {
    position: absolute;
    top: 9px;
    left: 15px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
  }

  .po-printer-prompt {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .92);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
  }

  .po-printer-prompt-tap {
    display: none;
  }

  @media (pointer: coarse) {
    .po-printer-prompt-tap {
      display: inline;
    }

    .po-printer-prompt-click {
      display: none;
    }
  }

  .po-printer-pass:focus-visible .po-printer-body {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
  }

  .po-printer-pass:active .po-printer-display {
    box-shadow: 0 0 9px rgba(59, 130, 246, .9);
  }

  .po-printer-display {
    position: absolute;
    top: 8px;
    right: 14px;
    width: 19px;
    height: 10px;
    border-radius: 2px;
    background: #3b82f6;
  }

  .po-printer-slot {
    position: absolute;
    right: 39px;
    bottom: 7px;
    left: 39px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
  }

  .po-printer-ink {
    position: absolute;
    z-index: 2;
    top: 62px;
    left: 0;
    width: 100%;
    height: 70px;
    overflow: visible;
    opacity: 0;
    filter: drop-shadow(0 4px 3px rgba(23, 26, 31, .18));
    transition: opacity 160ms ease;
  }

  .po-printer-ink g {
    transform: scaleY(.05);
    transform-box: fill-box;
    transform-origin: 50% 0;
  }

  .po-printer-ink path {
    fill: var(--po-ink-color);
    stroke: color-mix(in srgb, var(--po-ink-color) 84%, #171a1f);
    stroke-width: .65;
    vector-effect: non-scaling-stroke;
  }

  .po-ink-cyan { --po-ink-color: #3b82f6; --po-drip-delay: 260ms; --po-drip-duration: 6600ms; }
  .po-ink-magenta { --po-ink-color: #7c3aed; --po-drip-delay: 420ms; --po-drip-duration: 6100ms; }
  .po-ink-orange { --po-ink-color: #f47a32; --po-drip-delay: 160ms; --po-drip-duration: 5800ms; }
  .po-ink-yellow { --po-ink-color: #f7c843; --po-drip-delay: 520ms; --po-drip-duration: 7200ms; }
  .po-ink-green { --po-ink-color: #4caf50; --po-drip-delay: 340ms; --po-drip-duration: 5600ms; }
  .po-ink-blue { --po-ink-color: #6c83d5; --po-drip-delay: 690ms; --po-drip-duration: 6800ms; }

  .po-mobile-menu-stage.ink-active.is-open .po-printer-ink {
    opacity: 1;
  }

  .po-mobile-menu-stage.ink-active.is-open .po-printer-ink g {
    animation: po-attached-ink-flow var(--po-drip-duration) linear var(--po-drip-delay) both;
  }

  @keyframes po-attached-ink-flow {
    0% { transform: scaleY(.05); }
    25% { transform: scaleY(.54); }
    50% { transform: scaleY(1.02); }
    75% { transform: scaleY(1.51); }
    100% { transform: scaleY(2); }
  }
}

@media (max-width: 640px) {
  .po-mobile-curtain > a {
    min-height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-button span,
  .po-mobile-curtain,
  .po-mobile-curtain > a,
  .po-printer-pass,
  .po-printer-ink,
  .po-printer-ink g {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }
}
