/* ════════════════════════════════════════════════════════════════════════════
 * [Drawer_Animation2 v20260503-02] Linie Edition · side-aware + premium motion
 *
 * What's new in v02:
 *   - data-da2-side="left|right" — drawer slides from either edge
 *     (rounded corners + toggle position auto-flip)
 *   - --da2-text-size CSS var (default 32px, was 44px)
 *   - Premium entrance: spring-overshoot easing for drawer
 *   - Per-item entrance: clip-path reveal (text wipes in from edge)
 *     combined with stagger fade + translate
 *   - Numbers animate separately with a small slide-up + fade
 *   - Hover state, refined:
 *       • number scales 1.18× and shifts to accent
 *       • text translates inward (toward menu interior)
 *       • thin accent rule sweeps in beneath the text (clip-path 0→100%)
 *       • subtle accent vertical bar on the leading edge
 *   - Tally bars in status draw in sequentially
 *   - Toggle pill morphs (icon rotates, label tightens)
 * ════════════════════════════════════════════════════════════════════════════ */

.da2-shell {
  /* ── Layout */
  --da2-drawer-width: 420px;
  --da2-text-size: 32px;
  --da2-toggle-pad-x: 18px;
  --da2-toggle-pad-y: 8px;
  --da2-toggle-top: 18px;
  --da2-toggle-edge: 18px;

  /* ── Motion */
  --da2-speed: 320ms;
  --da2-speed-fast: 220ms;
  --da2-speed-slow: 520ms;
  --da2-easing: cubic-bezier(.32, .72, 0, 1);              /* ease-out-quart */
  --da2-easing-spring: cubic-bezier(.34, 1.5, .64, 1);     /* gentle overshoot */
  --da2-easing-out-back: cubic-bezier(.34, 1.36, .64, 1);  /* slight settle */

  /* ── Shape */
  --da2-radius: 28px;
  --da2-pill-radius: 999px;
  --da2-tally-w: 3px;

  /* ── Colors */
  --da2-primary: #1a1a1d;
  --da2-text: #f5f4f0;
  --da2-text-soft: rgba(245, 244, 240, .56);
  --da2-text-faint: rgba(245, 244, 240, .32);
  --da2-divider: rgba(245, 244, 240, .08);
  --da2-divider-strong: rgba(245, 244, 240, .14);
  --da2-hover: rgba(245, 244, 240, .03);
  --da2-overlay: rgba(0, 0, 0, .55);
  --da2-accent: #ff5a1f;

  --da2-toggle-bg: #ffffff;
  --da2-toggle-text: #18181b;

  /* ── Shadows */
  --da2-shadow-drawer:
    0 0 0 1px rgba(0, 0, 0, .04),
    -16px 0 32px -8px rgba(0, 0, 0, .12),
    -32px 0 96px -16px rgba(0, 0, 0, .20);
  --da2-shadow-drawer-left:
    0 0 0 1px rgba(0, 0, 0, .04),
    16px 0 32px -8px rgba(0, 0, 0, .12),
    32px 0 96px -16px rgba(0, 0, 0, .20);
  --da2-shadow-toggle:
    0 0 0 1px rgba(0, 0, 0, .06),
    0 1px 2px rgba(0, 0, 0, .06),
    0 4px 16px -2px rgba(0, 0, 0, .12);
  --da2-shadow-toggle-hover:
    0 0 0 1px rgba(0, 0, 0, .08),
    0 2px 4px rgba(0, 0, 0, .08),
    0 10px 28px -4px rgba(0, 0, 0, .20);

  /* ── Typography */
  --da2-font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --da2-font-display: 'Anton', 'Bebas Neue', 'Oswald', 'Inter', system-ui, sans-serif;
  --da2-font-mono: 'Space Grotesk', 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  font-family: var(--da2-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.da2-shell *,
.da2-shell *::before,
.da2-shell *::after {
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════════════════
 * TOGGLE — pill, position follows side
 * ══════════════════════════════════════════════════════════════════════════ */
.da2-toggle {
  position: fixed;
  top: var(--da2-toggle-top);
  right: var(--da2-toggle-edge);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--da2-toggle-pad-y) var(--da2-toggle-pad-x);
  background: var(--da2-toggle-bg);
  color: var(--da2-toggle-text);
  border: 0;
  border-radius: var(--da2-pill-radius);
  font-family: var(--da2-font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  cursor: pointer;
  z-index: 9998;
  box-shadow: var(--da2-shadow-toggle);
  transition:
    transform var(--da2-speed-fast) var(--da2-easing),
    box-shadow var(--da2-speed-fast) var(--da2-easing),
    padding var(--da2-speed-fast) var(--da2-easing),
    letter-spacing var(--da2-speed-fast) var(--da2-easing);
  -webkit-tap-highlight-color: transparent;
}

.da2-shell[data-da2-side="left"] .da2-toggle {
  right: auto;
  left: var(--da2-toggle-edge);
}

.da2-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--da2-shadow-toggle-hover);
  padding-right: calc(var(--da2-toggle-pad-x) + 4px);
  letter-spacing: 0;
}

.da2-shell[data-da2-side="left"] .da2-toggle:hover {
  padding-right: var(--da2-toggle-pad-x);
  padding-left: calc(var(--da2-toggle-pad-x) + 4px);
}

.da2-toggle:focus-visible {
  outline: 2px solid var(--da2-accent);
  outline-offset: 4px;
}

.da2-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--da2-speed-fast) var(--da2-easing-spring);
}

.da2-toggle:hover .da2-toggle-icon {
  transform: rotate(90deg);
}

.da2-toggle-icon svg { width: 100%; height: 100%; stroke-width: 1.6; }

.da2-shell[data-da2-open="1"] .da2-toggle {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════════
 * BACKDROP
 * ══════════════════════════════════════════════════════════════════════════ */
.da2-overlay {
  position: fixed;
  inset: 0;
  background: var(--da2-overlay);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  z-index: 9996;
  transition:
    opacity var(--da2-speed) var(--da2-easing),
    visibility 0s var(--da2-speed) linear;
  cursor: pointer;
}

.da2-shell[data-da2-open="1"] .da2-overlay {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--da2-speed) var(--da2-easing),
    visibility 0s linear;
}

/* ══════════════════════════════════════════════════════════════════════════
 * DRAWER — side-aware, spring-eased entrance
 * ══════════════════════════════════════════════════════════════════════════ */
.da2-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--da2-drawer-width);
  max-width: calc(100vw - 56px);
  background: var(--da2-primary);
  color: var(--da2-text);
  z-index: 9997;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--da2-speed-slow) var(--da2-easing-spring);
}

/* Right side (default) */
.da2-shell[data-da2-side="right"] .da2-drawer,
.da2-shell:not([data-da2-side]) .da2-drawer {
  right: 0;
  left: auto;
  border-top-left-radius: var(--da2-radius);
  border-bottom-left-radius: var(--da2-radius);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transform: translateX(100%);
  box-shadow: var(--da2-shadow-drawer);
}

/* Left side */
.da2-shell[data-da2-side="left"] .da2-drawer {
  right: auto;
  left: 0;
  border-top-right-radius: var(--da2-radius);
  border-bottom-right-radius: var(--da2-radius);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  transform: translateX(-100%);
  box-shadow: var(--da2-shadow-drawer-left);
}

.da2-shell[data-da2-open="1"] .da2-drawer {
  transform: translateX(0);
}

/* ══════════════════════════════════════════════════════════════════════════
 * HEADER
 * ══════════════════════════════════════════════════════════════════════════ */
.da2-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 14px;
  flex-shrink: 0;
  position: relative;
}

.da2-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--da2-font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--da2-text);
  text-transform: uppercase;
  flex: 1 1 auto;
}

.da2-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--da2-text);
  flex-shrink: 0;
}

.da2-brand-icon svg { width: 100%; height: 100%; }
.da2-brand-text { letter-spacing: .02em; }
.da2-brand-suffix {
  font-size: 9px;
  font-weight: 600;
  vertical-align: super;
  color: var(--da2-text-soft);
  margin-left: 1px;
}

.da2-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 12px;
  background: transparent;
  color: var(--da2-text);
  border: 1px solid var(--da2-divider-strong);
  border-radius: var(--da2-pill-radius);
  font-family: var(--da2-font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 200ms var(--da2-easing),
    border-color 200ms var(--da2-easing),
    transform 200ms var(--da2-easing);
  -webkit-tap-highlight-color: transparent;
}

.da2-close:hover {
  background: var(--da2-hover);
  border-color: var(--da2-text-soft);
}

.da2-close:active { transform: scale(.98); }

.da2-close:focus-visible {
  outline: 2px solid var(--da2-accent);
  outline-offset: 2px;
}

.da2-close-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.da2-close-dash svg { width: 100%; height: 100%; }

/* ══════════════════════════════════════════════════════════════════════════
 * PANES — root pane + sub-panes (sliding navigation)
 * ══════════════════════════════════════════════════════════════════════════ */
.da2-panes {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  isolation: isolate;
}

.da2-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--da2-primary);
  visibility: hidden;
  transition:
    transform var(--da2-speed-slow) var(--da2-easing),
    visibility 0s var(--da2-speed-slow) linear;
}

.da2-pane[data-da2-active="1"] {
  visibility: visible;
  transition:
    transform var(--da2-speed-slow) var(--da2-easing),
    visibility 0s linear;
}

/* Root pane: visible by default */
.da2-pane-root {
  visibility: visible;
  transform: translateX(0);
}

/* Sub-panes: hidden off-screen on the leading side */
.da2-shell[data-da2-side="right"] .da2-pane-sub,
.da2-shell:not([data-da2-side]) .da2-pane-sub {
  transform: translateX(100%);
}

.da2-shell[data-da2-side="left"] .da2-pane-sub {
  transform: translateX(-100%);
}

/* Sub-pane active: slide in to 0
   IMPORTANT: must include side selector to beat the side-positioning rule's
   specificity, otherwise the inactive `translateX(100%)` rule wins and the
   sub-pane never slides into view. */
.da2-shell[data-da2-side="right"] .da2-pane-sub[data-da2-active="1"],
.da2-shell:not([data-da2-side]) .da2-pane-sub[data-da2-active="1"],
.da2-shell[data-da2-side="left"] .da2-pane-sub[data-da2-active="1"] {
  transform: translateX(0);
}

/* Root pane when a sub is active: slide partially off in opposite direction
   (creates a depth/parallax effect) */
.da2-shell[data-da2-side="right"][data-da2-pane-active]:not([data-da2-pane-active="root"]) .da2-pane-root,
.da2-shell:not([data-da2-side])[data-da2-pane-active]:not([data-da2-pane-active="root"]) .da2-pane-root {
  transform: translateX(-24%);
  visibility: hidden;
}

.da2-shell[data-da2-side="left"][data-da2-pane-active]:not([data-da2-pane-active="root"]) .da2-pane-root {
  transform: translateX(24%);
  visibility: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════
 * SUB-PANE HEADER — back button + title
 * ══════════════════════════════════════════════════════════════════════════ */
.da2-pane-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px;
  flex-shrink: 0;
  position: relative;
}

.da2-pane-header::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--da2-divider-strong) 12%,
    var(--da2-divider-strong) 88%,
    transparent 100%);
}

.da2-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 11px;
  background: transparent;
  color: var(--da2-text);
  border: 1px solid var(--da2-divider-strong);
  border-radius: var(--da2-pill-radius);
  font-family: var(--da2-font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 200ms var(--da2-easing),
    border-color 200ms var(--da2-easing),
    transform 240ms var(--da2-easing-spring);
  -webkit-tap-highlight-color: transparent;
}

.da2-back:hover {
  background: var(--da2-hover);
  border-color: var(--da2-text-soft);
}

.da2-back:hover .da2-back-arrow {
  /* Arrow pulls outward to suggest "back" motion */
  transform: translateX(-3px);
}

.da2-shell[data-da2-side="left"] .da2-back:hover .da2-back-arrow {
  transform: translateX(3px);
}

.da2-back:active { transform: scale(.98); }

.da2-back:focus-visible {
  outline: 2px solid var(--da2-accent);
  outline-offset: 2px;
}

.da2-back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  transition: transform 240ms var(--da2-easing-spring);
}

.da2-back-arrow svg { width: 100%; height: 100%; }

.da2-pane-title {
  flex: 1 1 auto;
  font-family: var(--da2-font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--da2-text);
  text-transform: uppercase;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════
 * STATUS BAR — tally bars draw in sequentially
 * ══════════════════════════════════════════════════════════════════════════ */
.da2-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px 14px;
  font-family: var(--da2-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--da2-text-soft);
  flex-shrink: 0;
  position: relative;
}

.da2-status::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--da2-divider-strong) 12%,
    var(--da2-divider-strong) 88%,
    transparent 100%);
}

.da2-status-tally {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  margin-right: 4px;
  height: 14px;
}

.da2-status-tally span {
  display: inline-block;
  width: var(--da2-tally-w);
  height: 14px;
  background: var(--da2-accent);
  border-radius: 1px;
  transform: scaleY(0);
  transform-origin: bottom;
}

.da2-shell[data-da2-open="1"] .da2-status-tally span {
  animation: da2-tally-grow 320ms var(--da2-easing-out-back) both;
}
.da2-shell[data-da2-open="1"] .da2-status-tally span:nth-child(1) { animation-delay: 220ms; }
.da2-shell[data-da2-open="1"] .da2-status-tally span:nth-child(2) { animation-delay: 280ms; }
.da2-shell[data-da2-open="1"] .da2-status-tally span:nth-child(3) { animation-delay: 340ms; }
.da2-shell[data-da2-open="1"] .da2-status-tally span:nth-child(4) {
  animation: da2-tally-grow-tilt 320ms var(--da2-easing-out-back) both;
  animation-delay: 400ms;
}

@keyframes da2-tally-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes da2-tally-grow-tilt {
  from { transform: scaleY(0) rotate(0); }
  to   { transform: scaleY(1) rotate(-22deg); }
}

.da2-status-text { color: var(--da2-text); font-weight: 600; }
.da2-status-sep { color: var(--da2-text-faint); }
.da2-status-date { color: var(--da2-text-soft); }

/* ══════════════════════════════════════════════════════════════════════════
 * LIST — the centerpiece
 * ══════════════════════════════════════════════════════════════════════════ */
.da2-list-wrap {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--da2-divider-strong) transparent;
}

.da2-list-wrap::-webkit-scrollbar { width: 4px; }
.da2-list-wrap::-webkit-scrollbar-thumb { background: var(--da2-divider-strong); border-radius: 2px; }

.da2-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.da2-item { margin: 0; position: relative; }

.da2-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 28px 8px 24px;
  text-decoration: none;
  color: var(--da2-text);
  position: relative;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  /* Buttons: reset native styles so they look like the leaf links */
  background: transparent;
  border: 0;
  font-family: inherit;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

/* Parent items (have submenu): chevron arrow on the trailing side */
.da2-link-parent .da2-arrow {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  align-self: center;
  color: var(--da2-text-soft);
  transition:
    color 240ms var(--da2-easing),
    transform 280ms var(--da2-easing-spring);
}

.da2-link-parent .da2-arrow svg { width: 100%; height: 100%; stroke-width: 1.6; }

.da2-link-parent:hover .da2-arrow,
.da2-link-parent:focus-visible .da2-arrow {
  color: var(--da2-accent);
}

/* Right-side drawer: arrow points right, slides further right on hover */
.da2-shell[data-da2-side="right"] .da2-link-parent:hover .da2-arrow,
.da2-shell:not([data-da2-side]) .da2-link-parent:hover .da2-arrow {
  transform: translateX(4px);
}

/* Left-side drawer: arrow points left, slides further left on hover */
.da2-shell[data-da2-side="left"] .da2-link-parent:hover .da2-arrow {
  transform: translateX(-4px);
}

/* Accent vertical bar on the leading edge — slides in on hover */
.da2-link::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--da2-accent);
  border-radius: 2px;
  transform: translateY(-50%);
  transition:
    height 280ms var(--da2-easing-out-back),
    background-color 200ms var(--da2-easing);
  pointer-events: none;
  z-index: 1;
}

.da2-shell[data-da2-side="right"] .da2-link::before,
.da2-shell:not([data-da2-side]) .da2-link::before {
  left: 0;
}

.da2-shell[data-da2-side="left"] .da2-link::before {
  left: auto;
  right: 0;
}

.da2-link:hover::before,
.da2-link:focus-visible::before {
  height: calc(var(--da2-text-size) * 0.85);
}

/* ── Number ── */
.da2-num {
  font-family: var(--da2-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--da2-accent);
  flex-shrink: 0;
  width: 22px;
  align-self: flex-start;
  padding-top: calc(var(--da2-text-size) * 0.34);
  transition:
    color 200ms var(--da2-easing),
    transform 280ms var(--da2-easing-spring);
  display: inline-block;
}

.da2-link:hover .da2-num,
.da2-link:focus-visible .da2-num {
  transform: scale(1.18);
}

/* ── Text container with hover underline ── */
.da2-text {
  position: relative;
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--da2-font-display);
  font-size: var(--da2-text-size);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--da2-text);
  transition:
    transform 320ms var(--da2-easing-spring),
    color 200ms var(--da2-easing);
}

.da2-text-inner {
  display: inline-block;
}

/* Underline that sweeps from leading edge on hover */
.da2-text-rule {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--da2-accent);
  pointer-events: none;
  border-radius: 1px;
  transition:
    clip-path 480ms var(--da2-easing),
    -webkit-clip-path 480ms var(--da2-easing);
}

.da2-shell[data-da2-side="right"] .da2-text-rule,
.da2-shell:not([data-da2-side]) .da2-text-rule {
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
}

.da2-shell[data-da2-side="right"] .da2-link:hover .da2-text-rule,
.da2-shell[data-da2-side="right"] .da2-link:focus-visible .da2-text-rule,
.da2-shell:not([data-da2-side]) .da2-link:hover .da2-text-rule,
.da2-shell:not([data-da2-side]) .da2-link:focus-visible .da2-text-rule {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}

.da2-shell[data-da2-side="left"] .da2-text-rule {
  clip-path: inset(0 0 0 100%);
  -webkit-clip-path: inset(0 0 0 100%);
}

.da2-shell[data-da2-side="left"] .da2-link:hover .da2-text-rule,
.da2-shell[data-da2-side="left"] .da2-link:focus-visible .da2-text-rule {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}

/* Magnetic shift on hover — INWARD (toward menu interior) */
.da2-shell[data-da2-side="right"] .da2-link:hover .da2-text,
.da2-shell:not([data-da2-side]) .da2-link:hover .da2-text {
  transform: translateX(8px);
}

.da2-shell[data-da2-side="left"] .da2-link:hover .da2-text {
  transform: translateX(-8px);
}

/* ══════════════════════════════════════════════════════════════════════════
 * STAGGER ENTRANCE — items reveal with clip-path + fade
 * ══════════════════════════════════════════════════════════════════════════ */
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item {
  animation: da2-item-rise 560ms var(--da2-easing) both;
}

.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item .da2-text-inner {
  animation: da2-text-clip-from-left 600ms var(--da2-easing) both;
}

.da2-shell[data-da2-side="left"][data-da2-open="1"] .da2-pane-root .da2-item .da2-text-inner {
  animation-name: da2-text-clip-from-right;
}

.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item .da2-num {
  animation: da2-num-rise 480ms var(--da2-easing-out-back) both;
}

.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(1)  { animation-delay: 240ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(2)  { animation-delay: 290ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(3)  { animation-delay: 340ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(4)  { animation-delay: 390ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(5)  { animation-delay: 440ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(6)  { animation-delay: 490ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(7)  { animation-delay: 540ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(8)  { animation-delay: 590ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(9)  { animation-delay: 640ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(10) { animation-delay: 690ms; }

.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(1)  .da2-text-inner { animation-delay: 280ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(2)  .da2-text-inner { animation-delay: 330ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(3)  .da2-text-inner { animation-delay: 380ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(4)  .da2-text-inner { animation-delay: 430ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(5)  .da2-text-inner { animation-delay: 480ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(6)  .da2-text-inner { animation-delay: 530ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(7)  .da2-text-inner { animation-delay: 580ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(8)  .da2-text-inner { animation-delay: 630ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(9)  .da2-text-inner { animation-delay: 680ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(10) .da2-text-inner { animation-delay: 730ms; }

.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(1)  .da2-num { animation-delay: 360ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(2)  .da2-num { animation-delay: 410ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(3)  .da2-num { animation-delay: 460ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(4)  .da2-num { animation-delay: 510ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(5)  .da2-num { animation-delay: 560ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(6)  .da2-num { animation-delay: 610ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(7)  .da2-num { animation-delay: 660ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(8)  .da2-num { animation-delay: 710ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(9)  .da2-num { animation-delay: 760ms; }
.da2-shell[data-da2-open="1"] .da2-pane-root .da2-item:nth-child(10) .da2-num { animation-delay: 810ms; }

/* Sub-pane items: animate on activation (independent of drawer-open state) */
.da2-pane-sub[data-da2-active="1"] .da2-item {
  animation: da2-item-rise 480ms var(--da2-easing) both;
}
.da2-pane-sub[data-da2-active="1"] .da2-item .da2-text-inner {
  animation: da2-text-clip-from-left 520ms var(--da2-easing) both;
}
.da2-shell[data-da2-side="left"] .da2-pane-sub[data-da2-active="1"] .da2-item .da2-text-inner {
  animation-name: da2-text-clip-from-right;
}
.da2-pane-sub[data-da2-active="1"] .da2-item .da2-num {
  animation: da2-num-rise 420ms var(--da2-easing-out-back) both;
}

/* Sub-pane stagger — slightly tighter than root */
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(1)  { animation-delay: 220ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(2)  { animation-delay: 260ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(3)  { animation-delay: 300ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(4)  { animation-delay: 340ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(5)  { animation-delay: 380ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(6)  { animation-delay: 420ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(7)  { animation-delay: 460ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(8)  { animation-delay: 500ms; }

.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(1)  .da2-text-inner { animation-delay: 260ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(2)  .da2-text-inner { animation-delay: 300ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(3)  .da2-text-inner { animation-delay: 340ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(4)  .da2-text-inner { animation-delay: 380ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(5)  .da2-text-inner { animation-delay: 420ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(6)  .da2-text-inner { animation-delay: 460ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(7)  .da2-text-inner { animation-delay: 500ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(8)  .da2-text-inner { animation-delay: 540ms; }

.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(1)  .da2-num { animation-delay: 320ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(2)  .da2-num { animation-delay: 360ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(3)  .da2-num { animation-delay: 400ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(4)  .da2-num { animation-delay: 440ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(5)  .da2-num { animation-delay: 480ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(6)  .da2-num { animation-delay: 520ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(7)  .da2-num { animation-delay: 560ms; }
.da2-pane-sub[data-da2-active="1"] .da2-item:nth-child(8)  .da2-num { animation-delay: 600ms; }

/* Pane title in sub-pane animates in */
.da2-pane-sub[data-da2-active="1"] .da2-pane-header {
  animation: da2-fade-up 420ms var(--da2-easing) both;
  animation-delay: 140ms;
}

@keyframes da2-item-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes da2-text-clip-from-left {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }
}

@keyframes da2-text-clip-from-right {
  from {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
    -webkit-clip-path: inset(0 0 0 100%);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }
}

@keyframes da2-num-rise {
  from { opacity: 0; transform: translateY(-6px) scale(.7); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.da2-shell[data-da2-open="1"] .da2-header,
.da2-shell[data-da2-open="1"] .da2-status,
.da2-shell[data-da2-open="1"] .da2-footer {
  animation: da2-fade-up 480ms var(--da2-easing) both;
}
.da2-shell[data-da2-open="1"] .da2-header { animation-delay: 100ms; }
.da2-shell[data-da2-open="1"] .da2-status { animation-delay: 160ms; }
.da2-shell[data-da2-open="1"] .da2-footer { animation-delay: 800ms; }

@keyframes da2-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════════
 * FOOTER
 * ══════════════════════════════════════════════════════════════════════════ */
.da2-footer {
  flex-shrink: 0;
  padding: 18px 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.da2-footer::before {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--da2-divider-strong) 12%,
    var(--da2-divider-strong) 88%,
    transparent 100%);
}

.da2-footer-link {
  font-family: var(--da2-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--da2-text);
  text-decoration: none;
  transition: color 200ms var(--da2-easing), transform 200ms var(--da2-easing);
  align-self: flex-start;
}

.da2-footer-link:hover {
  color: var(--da2-accent);
  transform: translateX(2px);
}

.da2-footer-phone { color: var(--da2-text-soft); font-size: 13px; }
.da2-footer-email { font-weight: 600; }

.da2-socials {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  align-items: center;
}

.da2-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--da2-text-soft);
  text-decoration: none;
  transition:
    color 240ms var(--da2-easing),
    transform 240ms var(--da2-easing-spring);
}

.da2-social:hover {
  color: var(--da2-accent);
  transform: translateY(-2px) scale(1.1);
}

.da2-social svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════════════════════════════════════
 * REDUCED MOTION
 * ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .da2-drawer, .da2-overlay, .da2-toggle, .da2-link, .da2-text, .da2-text-inner,
  .da2-text-rule, .da2-num, .da2-status, .da2-item, .da2-footer, .da2-status-tally span,
  .da2-link::before, .da2-toggle-icon, .da2-social, .da2-footer-link {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
 * RESPONSIVE
 * ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .da2-shell { --da2-drawer-width: 360px; --da2-text-size: 28px; }
  .da2-header { padding: 16px 20px 12px; }
  .da2-status { padding: 10px 20px 12px; }
  .da2-link { padding: 7px 24px 7px 20px; }
  .da2-footer { padding: 16px 20px 18px; }
}

@media (min-width: 768px) {
  .da2-shell { --da2-drawer-width: 460px; }
}
