/* ==========================================================================
   Orbit — off-canvas mobile navigation
   W-01 §6.2 (twelve behaviours) · W-04 v1.1 §8 · W-06 P2-5
   transform and opacity only. Never width, left or right.
   Version: 1.4.0
   ========================================================================== */

.offcanvas-backdrop {
  position: fixed; inset: 0;
  background: var(--backdrop);
  opacity: 0;
  z-index: var(--z-offcanvas);
  transition: opacity var(--d-panel) var(--ease);
  pointer-events: none;
}
.offcanvas-backdrop.is-open { opacity: 1; pointer-events: auto; }

.offcanvas {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(88vw, 420px);
  height: 100dvh;                       /* dvh, not vh */
  /* Deep-2, not white. The panel in the artboards is a dark field with a ring
     texture and a glow — the same surface the footer uses, so opening the menu
     never reads as arriving at a different site. W-09 §9. */
  background: var(--deep-2);
  color: var(--white);
  z-index: calc(var(--z-offcanvas) + 1);
  transform: translateX(100%);
  transition: transform var(--d-panel) var(--ease);
  will-change: transform;
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block-end: env(safe-area-inset-bottom);
  box-shadow: var(--e-2);
}
.offcanvas.is-open { transform: translateX(0); }

/* The ring field and the glow, as clipped backgrounds. */
.offcanvas::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    no-repeat right -96px top -58px / 320px 320px
      radial-gradient(circle at 50% 50%, rgba(111,217,180,.34) 0%, rgba(111,217,180,0) 66%),
    no-repeat center / 100% 100%
      url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g fill='none' stroke='%236FD9B4' stroke-width='1.5' opacity='0.08'><circle cx='200' cy='200' r='60'/><circle cx='200' cy='200' r='130'/><circle cx='200' cy='200' r='200'/><circle cx='200' cy='200' r='270'/></g></svg>");
}
.offcanvas > * { position: relative; z-index: 1; }

.offcanvas[hidden] { display: none; }

.offcanvas__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  min-height: 68px;                     /* min-height, not height (W-06 P2-7) */
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line);
}

.offcanvas__close {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-4);
  background: transparent; border: 1px solid rgba(255, 255, 255, .35);
  color: var(--white);
  border-radius: var(--r-input);
  font-size: var(--t-small);            /* 16px floor (W-06 P3-2) */
  font-weight: 600; color: var(--ink); cursor: pointer;
}
.offcanvas__close:hover { background: rgba(255, 255, 255, .1); color: var(--white); }

.offcanvas__nav { flex: 1; padding: var(--s-4) 0; }
.offcanvas__nav ul { list-style: none; margin: 0; padding: 0; }
.offcanvas__nav li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.offcanvas__nav a {
  display: flex; align-items: center;
  min-height: 56px; padding: var(--s-4) var(--s-5);
  font-family: var(--font-display);
  font-size: var(--t-h4); font-weight: 600; color: var(--white);
  text-decoration: none;
}
.offcanvas__nav a:hover { background: rgba(255, 255, 255, .08); color: var(--mint-light); }
.offcanvas__nav [aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 4px 0 0 var(--mint-glow);
}

.offcanvas__foot {
  padding: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.offcanvas__foot .btn { width: 100%; }
.offcanvas__email { font-size: var(--t-body); color: var(--mint-light); }

@media (min-width: 1025px) {
  .offcanvas, .offcanvas-backdrop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .offcanvas, .offcanvas-backdrop { transition-duration: .01ms; }
}

/* The lockup inverts inside the panel: the wordmark goes white and the core
   of the mark goes mint, matching the artboard's dark variant. */
.offcanvas .site-logo__word { color: var(--white); }
