@font-face {
  font-family: "CGL Grandeur";
  src: url("/assets/grandeur.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "CGL Mono";
  src: url("/assets/cutive-mono.woff2") format("woff2");
  font-display: swap;
}

.cgl-mobile-nav {
  display: none;
}

@media (max-width: 809.98px) {
  :root {
    --cgl-mobile-nav-height: 80px;
    --cgl-mobile-ink: #06100e;
    --cgl-mobile-paper: #fff;
    --cgl-mobile-gold: #fee05c;
    --cgl-mobile-orange: #ffae00;
    --cgl-mobile-leaf: #65a82c;
    --cgl-mobile-line: rgba(255, 255, 255, 0.25);
  }

  html.cgl-mobile-nav-ready body .framer-1enn8xh-container.attract-unified-header,
  html.cgl-mobile-nav-ready body .framer-1enn8xh-container,
  html.cgl-mobile-nav-ready body .site-header.attract-unified-header,
  html.cgl-mobile-nav-ready body .site-header {
    display: none !important;
  }

  /* The standalone bar replaces the legacy fixed iOS shield. */
  html.cgl-mobile-nav-ready body::before {
    content: none !important;
    display: none !important;
  }

  html.cgl-mobile-nav-ready .location-main {
    padding-top: var(--cgl-mobile-nav-height) !important;
  }

  html.cgl-mobile-nav-ready,
  html.cgl-mobile-nav-ready body {
    overflow-x: clip !important;
  }

  html.cgl-mobile-menu-open {
    overscroll-behavior: none;
  }

  .cgl-mobile-nav,
  .cgl-mobile-nav * {
    box-sizing: border-box;
  }

  .cgl-mobile-nav {
    position: fixed;
    z-index: 2147483640;
    inset: 0 0 auto;
    display: block;
    width: 100%;
    height: var(--cgl-mobile-nav-height);
    overflow: visible;
    color: var(--cgl-mobile-paper);
    background: var(--cgl-mobile-ink);
    font-family: "CGL Mono", "Courier New", monospace;
    isolation: isolate;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .cgl-mobile-nav::after {
    content: none;
    display: none;
  }

  .cgl-mobile-nav a,
  .cgl-mobile-nav button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .cgl-mobile-nav__bar {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 30% 40% 30%;
    width: 100%;
    height: var(--cgl-mobile-nav-height);
    background: var(--cgl-mobile-ink);
    border-bottom: 1px solid var(--cgl-mobile-line);
  }

  .cgl-mobile-nav__reserve,
  .cgl-mobile-nav__brand,
  .cgl-mobile-nav__toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    color: var(--cgl-mobile-paper);
    background: transparent;
    border: 0;
    text-decoration: none;
  }

  .cgl-mobile-nav__reserve,
  .cgl-mobile-nav__brand {
    border-right: 1px solid var(--cgl-mobile-line);
  }

  .cgl-mobile-nav__reserve {
    gap: 9px;
    padding: 0 8px;
    font: 400 8px/1 "CGL Mono", "Courier New", monospace;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .cgl-mobile-nav__reserve-mark {
    position: relative;
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cgl-mobile-paper);
  }

  .cgl-mobile-nav__reserve-mark::before {
    content: "";
    position: absolute;
    top: 4px;
    left: -7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cgl-mobile-paper);
  }

  .cgl-mobile-nav__reserve-mark::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--cgl-mobile-ink);
  }

  .cgl-mobile-nav__brand {
    flex-direction: column;
    padding-top: 8px;
    text-align: center;
  }

  .cgl-mobile-nav__brand-flourish {
    position: absolute;
    top: 11px;
    left: 50%;
    width: 34px;
    height: 11px;
    border-top: 3px solid var(--cgl-mobile-orange);
    border-radius: 50%;
    transform: translateX(-50%) rotate(-3deg);
  }

  .cgl-mobile-nav__brand-flourish::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 28px;
    height: 8px;
    border-top: 2px solid var(--cgl-mobile-gold);
    border-radius: 50%;
    transform: rotate(5deg);
  }

  .cgl-mobile-nav__brand-flourish::after {
    content: "";
    position: absolute;
    top: -8px;
    right: -1px;
    width: 8px;
    height: 5px;
    border-radius: 100% 0 100% 0;
    background: var(--cgl-mobile-leaf);
    transform: rotate(18deg);
    transform-origin: left bottom;
  }

  .cgl-mobile-nav__brand strong {
    margin-top: 10px;
    font: 400 20px/0.85 "CGL Grandeur", Georgia, serif;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .cgl-mobile-nav__brand small {
    margin-top: 5px;
    font: 400 5px/1 "CGL Mono", "Courier New", monospace;
    letter-spacing: 0.28em;
    text-transform: uppercase;
  }

  .cgl-mobile-nav__toggle {
    padding: 0;
    cursor: pointer;
  }

  .cgl-mobile-nav__toggle-icon {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
  }

  .cgl-mobile-nav__toggle-icon i {
    position: absolute;
    left: 0;
    width: 40px;
    height: 1px;
    background: currentColor;
    transform-origin: center;
    transition:
      top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .cgl-mobile-nav__toggle-icon i:first-child {
    top: 14px;
  }

  .cgl-mobile-nav__toggle-icon i:last-child {
    top: 25px;
  }

  .cgl-mobile-nav[data-open="true"] .cgl-mobile-nav__toggle-icon i {
    top: 20px;
  }

  .cgl-mobile-nav[data-open="true"] .cgl-mobile-nav__toggle-icon i:first-child {
    transform: rotate(45deg);
  }

  .cgl-mobile-nav[data-open="true"] .cgl-mobile-nav__toggle-icon i:last-child {
    transform: rotate(-45deg);
  }

  .cgl-mobile-nav__panel {
    position: absolute;
    z-index: 2;
    top: var(--cgl-mobile-nav-height);
    right: 0;
    left: 0;
    height: calc(100vh - var(--cgl-mobile-nav-height));
    height: calc(100dvh - var(--cgl-mobile-nav-height));
    overflow: hidden;
    color: var(--cgl-mobile-paper);
    background:
      radial-gradient(circle at 50% -10%, rgba(254, 224, 92, 0.07), transparent 48%),
      var(--cgl-mobile-ink);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transition:
      clip-path 0.58s cubic-bezier(0.76, 0, 0.24, 1),
      opacity 0.24s ease,
      visibility 0.58s;
  }

  .cgl-mobile-nav__panel::before,
  .cgl-mobile-nav__panel::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
  }

  .cgl-mobile-nav__panel::before {
    left: 30%;
  }

  .cgl-mobile-nav__panel::after {
    right: 30%;
  }

  .cgl-mobile-nav[data-open="true"] .cgl-mobile-nav__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    clip-path: inset(0);
    transition:
      clip-path 0.58s cubic-bezier(0.76, 0, 0.24, 1),
      opacity 0.18s ease,
      visibility 0s;
  }

  .cgl-mobile-nav__panel-scroll {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px 20px max(30px, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-y;
  }

  .cgl-mobile-nav__panel-scroll::-webkit-scrollbar {
    display: none;
  }

  .cgl-mobile-nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: min-content;
  }

  .cgl-mobile-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 116px;
    min-height: 64px;
    padding: 0 12px;
    color: var(--cgl-mobile-paper);
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(18px);
    transition:
      color 0.2s ease,
      opacity 0.3s ease calc(0.1s + var(--cgl-item) * 0.045s),
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1) calc(0.1s + var(--cgl-item) * 0.045s);
  }

  .cgl-mobile-nav[data-open="true"] .cgl-mobile-nav__link {
    opacity: 1;
    transform: none;
  }

  .cgl-mobile-nav__copy,
  .cgl-mobile-nav__copy strong {
    position: relative;
    z-index: 1;
  }

  .cgl-mobile-nav__copy strong {
    font: 400 20px/24px Jost, Arial, sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .cgl-mobile-nav__link.is-current::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: calc(100% - 4px);
    height: 44px;
    border: 1px solid var(--cgl-mobile-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(9deg);
    pointer-events: none;
  }

  .cgl-mobile-nav :focus-visible {
    outline: 1px solid var(--cgl-mobile-gold);
    outline-offset: -3px;
  }
}

@media (max-width: 340px) {
  .cgl-mobile-nav__reserve {
    gap: 7px;
    font-size: 7px;
    letter-spacing: 0.15em;
  }

  .cgl-mobile-nav__brand strong {
    font-size: 18px;
  }

  .cgl-mobile-nav__toggle-icon,
  .cgl-mobile-nav__toggle-icon i {
    width: 34px;
  }
}

@media (max-width: 809.98px) and (max-height: 620px) {
  .cgl-mobile-nav__panel-scroll {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .cgl-mobile-nav__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
  }

  .cgl-mobile-nav__link {
    width: 100%;
    min-width: 0;
    min-height: 54px;
  }

  .cgl-mobile-nav__copy strong {
    font-size: 16px;
    letter-spacing: 0.16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cgl-mobile-nav *,
  .cgl-mobile-nav *::before,
  .cgl-mobile-nav *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
