/* ════════════════════════════════════
   SITE NAV: top bar + menu drawer (markup injected by nav.js)
════════════════════════════════════ */
@font-face { font-family: 'Nav Artific'; src: url('fonts/artific-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nav Artific'; src: url('fonts/artific-medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Nav Artific'; src: url('fonts/artific-semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }

/* ── Bar ── */
.sn-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 6000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 23px 37px 0 36px;
  pointer-events: none;
  /* White icons that flip dark over light backgrounds */
  mix-blend-mode: difference;
}
/* Pages over a photo (home) opt out of the blend: plain white with a soft shadow */
[data-nav="solid"] .sn-bar { mix-blend-mode: normal; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); }
.sn-home, .sn-burger { pointer-events: auto; display: block; line-height: 0; }
.sn-home img { width: 30px; height: 27px; }
/* After scrolling, only the hamburger stays */
.sn-home { transition: opacity 0.3s ease, transform 0.3s ease; }
.sn-scrolled .sn-home { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.sn-burger {
  /* 8px padding widens the hit area; negative margins keep the icon on Figma's spot */
  padding: 8px;
  margin: -0.5px -8px 0 0;
  background: none; border: 0; cursor: pointer;
}
.sn-burger img { width: 29px; height: 12px; }
.sn-home:hover, .sn-burger:hover { opacity: 0.75; }
.sn-home:focus-visible, .sn-burger:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ── Scrim (dim + blur behind the drawer) ── */
.sn-scrim {
  position: fixed; inset: 0;
  z-index: 7000;
  background: rgba(48, 46, 43, 0.39);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

/* ── Drawer ── */
.sn-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 7001;
  width: min(421px, 100vw);
  background: #fff;
  padding: 28px 32px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-family: 'Nav Artific', 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
  line-height: normal;
  text-align: left;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0.45s;
}
.sn-open .sn-scrim { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
.sn-open .sn-drawer { transform: translateX(0); visibility: visible; transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1); }

.sn-drawer a { color: inherit; text-decoration: none; }
.sn-drawer a:hover { opacity: 0.6; }

.sn-top { display: flex; align-items: center; justify-content: space-between; }
.sn-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a3a3a3;
}
.sn-close {
  width: 40px; height: 40px;
  border: 0; border-radius: 20px;
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.sn-close:hover { background: #e9e9e9; }
.sn-close img { width: 14px; height: 14px; }

.sn-links { margin-top: 42px; display: flex; flex-direction: column; gap: 28px; }
.sn-link {
  display: block;
  font-size: 36px; font-weight: 600;
  line-height: 44px;
  letter-spacing: -0.02em;
}
.sn-work { display: flex; flex-direction: column; gap: 20px; padding: 0 12px; }
.sn-cases { display: flex; flex-direction: column; gap: 24px; }
.sn-case { display: flex; flex-direction: column; gap: 3px; }
.sn-case-t { font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -0.01em; }
.sn-case-d { font-size: 13px; line-height: 18px; color: #8a8a8a; }

html.sn-lock, html.sn-lock body { overflow: hidden; }

@media (max-width: 600px) {
  .sn-bar { padding: 18px 20px 0; }
  .sn-drawer { padding: 22px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .sn-scrim, .sn-drawer, .sn-open .sn-scrim, .sn-open .sn-drawer { transition-duration: 0.01s; }
}
