/* Shared V2 site shell. Enabled per page during the visual migration. */
.site-shell-header {
  position: sticky;
  top: 12px;
  z-index: 120;
  width: calc(100% - 64px);
  max-width: var(--max, 1180px);
  margin: 12px auto 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-shell-primary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
}

.site-shell-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-shell-brand:hover {
  color: #6461f1;
}

.site-shell-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-shell-nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-shell-nav a:hover {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.04);
  background: #f5f5f7;
}

.site-shell-nav a.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, #6757ef 0%, #2d6fe8 100%);
}

.site-shell-header.site-shell-dark {
  color: #e8e8f6;
  background: rgba(14, 14, 19, 0.28);
  border-color: rgba(232, 232, 246, 0.12);
  box-shadow: none;
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}

.site-shell-header.site-shell-dark.is-scrolled {
  background: rgba(14, 14, 19, 0.72);
  border-color: rgba(232, 232, 246, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.site-shell-dark .site-shell-brand {
  color: #e8e8f6;
}

.site-shell-dark .site-shell-brand:hover {
  color: #ffffff;
}

.site-shell-dark .site-shell-nav a:not(.is-active) {
  color: #a8a8b6;
}

.site-shell-dark .site-shell-nav a:not(.is-active):hover {
  color: #e8e8f6;
  border-color: rgba(232, 232, 246, 0.08);
  background: rgba(232, 232, 246, 0.07);
}

.site-shell-dark .site-shell-brand:focus-visible,
.site-shell-dark .site-shell-nav a:focus-visible {
  outline-color: #e8e8f6;
}

.case-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.case-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.case-breadcrumb a:hover {
  color: var(--ink);
}

.case-breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

.site-shell-header + main .tab-wrap {
  top: 76px;
}

.site-shell-header + main .hero {
  padding-top: 36px;
}

.site-shell-header + main .act-label {
  top: 182px;
}

.site-shell-header + .index,
.site-shell-header + .work,
.site-shell-header + .about {
  padding-top: 64px;
}

.site-shell-brand:focus-visible,
.site-shell-nav a:focus-visible,
.case-breadcrumb a:focus-visible {
  outline: 2px solid #6461f1;
  outline-offset: 3px;
}

.case-breadcrumb a:focus-visible {
  outline-color: var(--blue);
}

@media (max-width: 640px) {
  .site-shell-header {
    top: 8px;
    width: calc(100% - 36px);
    margin-top: 8px;
  }

  .site-shell-primary {
    min-height: 48px;
    gap: 12px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-shell-brand {
    font-size: 12px;
  }

  .site-shell-nav {
    gap: 4px;
  }

  .site-shell-nav a {
    min-height: 30px;
    padding: 4px 9px;
  }

  .site-shell-header + main .tab-wrap {
    top: 64px;
  }

  .site-shell-header + main .hero {
    padding-top: 28px;
  }

  .site-shell-header + .index,
  .site-shell-header + .work,
  .site-shell-header + .about {
    padding-top: 52px;
  }

  .case-breadcrumb {
    margin-bottom: 22px;
  }
}

@media print {
  .site-shell-header {
    display: none !important;
  }
}
