/* ============================================================
   STYLE.CSS — Base glassmorphism + components
   Ported from apple-style-glassmorphism-sidebar by Juxtoposed
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: rgba(255, 255, 255, 0.9);
  --secondary-color: rgba(255, 255, 255, 0.55);
  --accent-color: #6c8aff;
  --glass-bg: rgba(15, 16, 19, 0.82);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --content-padding: 40px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--primary-color);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout Container ---------- */
.app-container {
  display: flex;
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  height: 100dvh;
  margin: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  border-right: 1px solid var(--glass-border);
  position: relative;
  transition: width var(--transition-slow), min-width var(--transition-slow);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 20px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profile Section */
.profile-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-info {
  overflow: hidden;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}

.profile-role {
  font-size: 12px;
  color: var(--secondary-color);
  white-space: nowrap;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.menu-list {
  position: relative;
}

/* Liquid highlight (sliding active indicator) */
.menu-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  transition: transform 0.2s ease, height 0.2s ease, opacity 0.15s ease;
}

.menu-list:hover .menu-highlight {
  opacity: 1;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.menu-link i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.menu-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-link:hover {
  color: var(--primary-color);
}

.menu-item.active .menu-link {
  color: var(--primary-color);
}

/* Active bar indicator */
.menu-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 8px 4px;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.sidebar-signature {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  white-space: nowrap;
}

/* ---------- Content Area ---------- */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--content-padding);
  position: relative;
}

.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Content Header */
.content-header {
  margin-bottom: 32px;
}

.content-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.content-header .subtitle {
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 400;
}

/* ---------- Filter Toolbar ---------- */
.filter-toolbar {
  margin-bottom: 28px;
}

.filter-search {
  position: relative;
  margin-bottom: 16px;
}

.filter-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 13px;
  pointer-events: none;
}

.filter-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--primary-color);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.filter-search input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.filter-search input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-color);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-color);
}

.filter-chip.active {
  background: rgba(108, 138, 255, 0.15);
  border-color: rgba(108, 138, 255, 0.3);
  color: var(--accent-color);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.filter-sort {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--secondary-color);
  font-family: var(--font-family);
  font-size: 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.filter-sort option {
  background: #1a1a2e;
  color: #fff;
}

.filter-clear {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--secondary-color);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-color);
}

/* ---------- Project Cards Grid ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition-normal), background var(--transition-fast);

}

.project-card.is-visible { opacity: 1; }

.project-card:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.project-card-inner {
  transform-style: preserve-3d;
}

.project-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.project-oneliner {
  font-size: 13px;
  color: var(--secondary-color);
  margin-bottom: 14px;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-tag {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.project-tag.domain {
  border-color: rgba(108, 138, 255, 0.15);
  color: rgba(108, 138, 255, 0.8);
}

.project-tag.language {
  border-color: rgba(130, 200, 130, 0.15);
  color: rgba(130, 200, 130, 0.8);
}


.project-metadata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.project-status,
.project-year {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.project-status.completed {
  border-color: rgba(130, 200, 130, 0.22);
  color: rgba(130, 200, 130, 0.9);
}

.project-status.planned {
  border-color: rgba(108, 138, 255, 0.22);
  color: rgba(108, 138, 255, 0.95);
}

.project-stack,
.project-types {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 8px;
}

.project-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-color);
  transition: all var(--transition-fast);
}

.project-action:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.project-action.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.project-action i {
  font-size: 12px;
}

/* No results message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--secondary-color);
  font-size: 14px;
}

/* ---------- Placeholder Cards ---------- */
.placeholder-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
}

.placeholder-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.placeholder-card p {
  font-size: 14px;
  color: var(--secondary-color);
  line-height: 1.6;
  margin-bottom: 16px;
}

.placeholder-card .btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.placeholder-note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}

/* ---------- Contact Card ---------- */
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 540px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.contact-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.contact-row + .contact-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.contact-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.contact-footer .signature {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}


.demo-mega-card {
  background: rgba(23, 24, 30, 0.78);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-pill {
  border: 1px solid rgba(160, 160, 160, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-demo,
.score-demo {
  min-height: 220px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  position: relative;
}

.target-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.cert-card-link {
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cert-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.cert-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
/* ---------- Focus / Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

/* Tablet: collapsed sidebar */
@media (max-width: 1024px) {
  .sidebar {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
    padding: 20px 10px;
    align-items: center;
  }

  .brand-name,
  .profile-info,
  .menu-link span,
  .sidebar-signature,
  .sidebar-gooey {
    display: none;
  }

  .sidebar-header {
    justify-content: center;
    padding: 6px 0 20px;
  }

  .profile-section {
    justify-content: center;
    padding: 12px 0;
  }

  .menu-link {
    justify-content: center;
    padding: 10px;
  }

  .menu-link i {
    font-size: 18px;
  }

  .menu-item.active::before {
    display: none;
  }

  .content {
    padding: 28px;
  }
}

/* Mobile: hide sidebar, show mobile menu */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
    width: 100vw;
    min-height: 100vh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
  }

  .sidebar {
    display: none;
  }

  .content {
    padding: 72px 20px 20px;
    overflow-x: hidden;
  }

  .content-header h1 {
    font-size: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .filter-groups {
    flex-direction: column;
    gap: 14px;
  }

  .filter-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .projects-reactive {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
  }

  .pr-sidebar {
    padding: 14px;
    min-width: 0;
    border-radius: 12px;
  }

  .pr-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
  }

  .pr-user-photo {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .pr-main {
    padding: 14px;
    min-width: 0;
    border-radius: 12px;
  }

  .pr-main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pr-main-title {
    font-size: 1.3rem;
  }

  .pr-grid {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 10px;
  }

  .pr-card {
    grid-column: span 1;
    min-width: 0;
    word-break: break-word;
  }

  .pr-card:hover {
    transform: none;
  }

  .pr-tags {
    gap: 4px;
  }

  .pr-tags span {
    font-size: 10px;
    padding: 2px 7px;
  }

  .pr-actions {
    margin-top: 10px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .content {
    padding: 68px 14px 14px;
  }

  .project-card {
    padding: 16px;
  }

  .pr-sidebar {
    padding: 10px;
  }

  .pr-main {
    padding: 10px;
  }

  .pr-card {
    padding: 10px;
  }

  .pr-card h3 {
    font-size: 0.95rem;
  }

  .pr-card p {
    font-size: 0.82rem;
  }

  .pr-main-title {
    font-size: 1.15rem;
  }
}

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

  .project-card {
    transform: none !important;
    opacity: 1;
  }

  .menu-highlight {
    transition: none;
  }
}

/* ---------- Liquid Hover Sparkle ---------- */
.sparkle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle-fade 0.6s ease-out forwards;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

.mt-wrapper {
  gap: 0;
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.92), rgba(232, 232, 232, 0.88));
  border-color: rgba(255, 255, 255, 0.2);
  color: #141414;
}

.mt-masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: rgba(20, 20, 20, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.mt-tag {
  display: inline-flex;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.65);
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.mt-meta {
  text-align: right;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.mt-title {
  margin: 12px 0 4px;
  text-align: center;
  font-family: "Chomsky", "UnifrakturMaguntia", "Old English Text MT", "Goudy Text MT", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1;
}

.mt-subtitle {
  margin: 0 0 12px;
  text-align: center;
  color: rgba(20, 20, 20, 0.7);
  font-size: 13px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.mt-rule {
  border-bottom: 3px solid rgba(20, 20, 20, 0.95);
  margin: 10px 0 12px;
}

.mt-rule-thin {
  border-bottom-width: 1px;
}

.mt-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-bottom: 8px;
}

.mt-nav-btn {
  appearance: none;
  border: 1px solid rgba(20, 20, 20, 0.3);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.7);
  color: #101010;
  font-size: 12px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  cursor: pointer;
}

.mt-nav-btn.is-active {
  border-color: rgba(20, 20, 20, 0.7);
  background: rgba(255, 255, 255, 0.98);
}

.mt-stories {
  column-count: 4;
  column-gap: 28px;
  column-rule: 1px solid rgba(20, 20, 20, 0.25);
}

.mt-story {
  break-inside: avoid;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.mt-kicker,
.mt-byline {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: rgba(20, 20, 20, 0.64);
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.mt-story-title {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.mt-deck {
  margin: 0 0 9px;
  font-size: 13.5px;
  line-height: 1.6;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  color: rgba(20, 20, 20, 0.78);
}

.mt-paragraph {
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.6;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.mt-footer {
  margin: 12px 0 0;
  color: rgba(20, 20, 20, 0.62);
  font-size: 12px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.mt-sentinel {
  height: 1px;
}

@media (max-width: 1180px) {
  .mt-stories { column-count: 3; }
}

@media (max-width: 900px) {
  .mt-stories { column-count: 2; }
}

@media (max-width: 600px) {
  .mt-stories { column-count: 1; }
  .mt-masthead-top { flex-direction: column; align-items: flex-start; }
  .mt-meta { text-align: left; }
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}

.game-card {
  min-height: 100%;
}

.wordle {
  display: grid;
  gap: 12px;
}

.wordle-board {
  display: grid;
  gap: 8px;
}

.wordle-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 52px));
  gap: 8px;
}

.wordle-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.wordle-tile.filled {
  border-color: rgba(255, 255, 255, 0.45);
}

.wordle-tile.correct { background: #36d399; color: #052216; }
.wordle-tile.present { background: #fbbf24; color: #231805; }
.wordle-tile.absent { background: #4b5563; color: #fff; }

.wordle-kb {
  display: grid;
  gap: 8px;
}

.wordle-kb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wordle-key {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 34px;
  font-size: 11px;
}

.wordle-key.wide { min-width: 62px; }
.wordle-key.correct { background: #36d399; color: #052216; }
.wordle-key.present { background: #fbbf24; color: #231805; }
.wordle-key.absent { background: #4b5563; color: #fff; }

.mt-wrapper {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.mt-game-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(20, 20, 20, 0.15);
  border-radius: 12px;
  padding: 12px;
}

.mini-wordle-row {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 6px;
  margin: 8px 0;
}

.mini-w-tile {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 20, 20, 0.32);
  border-radius: 6px;
  font-weight: 700;
}

.mini-w-tile.ok { background: #7fd39f; }
.mini-w-tile.near { background: #eed482; }
.mini-w-tile.off { background: #d0d0d0; }

.mini-input {
  width: 120px;
  text-transform: uppercase;
  padding: 7px 8px;
  margin-right: 6px;
}

.mini-sudoku {
  display: grid;
  grid-template-columns: repeat(9, 24px);
  gap: 3px;
  margin: 8px 0;
}

.s-cell {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  text-align: center;
  font-size: 12px;
}

.s-cell:disabled {
  background: rgba(20, 20, 20, 0.08);
  color: #111;
}

.mini-ttt {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  gap: 5px;
  margin: 8px 0;
}

.t-cell {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 700;
}

/* ---------- Contact Social Grid ---------- */
.ir {
  display: block;
  overflow: visible;
  padding: 0 0 100%;
  position: relative;
  height: 0;
  width: 100%;
}

.ir > * {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.soc {
  --soc-bg: hsl(210, 45%, 10%);
  display: block;
  font-size: 0;
  list-style: none;
  margin: 0 auto;
  padding: 1rem 0 0;
  text-align: center;
  width: min(76rem, 100%);
}

.soc li {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0.8rem;
}

.soc a,
.soc svg {
  display: block;
}

.soc a {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50%;
  transition: transform 0.5s ease-out, background-color 0.5s;
}

.soc path {
  transition: fill 0.5s;
}

.soc a:hover,
.soc a:focus-visible {
  transform: scale(1.16);
  outline: none;
}

.soc a:hover path,
.soc a:focus-visible path {
  fill: var(--soc-bg);
}

.soc-label {
  margin-top: 0.55rem;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.icon-8 { fill: hsl(96, 70%, 50%); }
.icon-13 { fill: hsl(156, 70%, 50%); }
.icon-15 { fill: hsl(180, 70%, 50%); }
.icon-17 { fill: hsl(204, 70%, 50%); }
.icon-21 { fill: hsl(252, 70%, 50%); }
.icon-23 { fill: hsl(276, 70%, 50%); }
.icon-32 { fill: hsl(24, 70%, 50%); }

.icon-8:hover, .icon-8:focus-visible { background: hsl(96, 70%, 50%); }
.icon-13:hover, .icon-13:focus-visible { background: hsl(156, 70%, 50%); }
.icon-15:hover, .icon-15:focus-visible { background: hsl(180, 70%, 50%); }
.icon-17:hover, .icon-17:focus-visible { background: hsl(204, 70%, 50%); }
.icon-21:hover, .icon-21:focus-visible { background: hsl(252, 70%, 50%); }
.icon-23:hover, .icon-23:focus-visible { background: hsl(276, 70%, 50%); }
.icon-32:hover, .icon-32:focus-visible { background: hsl(24, 70%, 50%); }

@media (max-width: 600px) {
  .soc a {
    width: 4.6rem;
    height: 4.6rem;
  }

  .soc-label {
    font-size: 0.95rem;
  }
}

/* ---------- Players Page ---------- */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}

.player-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}

.player-card-front {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  text-align: center;
}

.player-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.player-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.player-name-short {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-sport-tag {
  font-size: 9px;
  font-weight: 500;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Player detail panel */
.player-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-detail-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.player-detail-card {
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  padding: 28px;
}

.player-detail-card::-webkit-scrollbar {
  width: 4px;
}
.player-detail-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.player-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.player-detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.player-detail-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.player-detail-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.player-detail-meta {
  font-size: 12px;
  color: var(--secondary-color);
  line-height: 1.4;
}

.player-detail-section {
  margin-bottom: 16px;
}

.player-detail-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.player-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.player-detail-row-label {
  color: var(--secondary-color);
}

.player-detail-row-value {
  color: var(--primary-color);
  font-weight: 500;
}

.player-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--secondary-color);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.player-detail-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary-color);
}

.player-form-bar {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.player-form-dot {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

.player-form-dot.w { background: #36d399; }
.player-form-dot.d { background: #fbbf24; color: #231805; }
.player-form-dot.l { background: #ef4444; }

.player-loading {
  text-align: center;
  padding: 20px;
  color: var(--secondary-color);
  font-size: 13px;
}

.player-next-game {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 8px;
  text-align: center;
}

.player-next-game-teams {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.player-next-game-info {
  font-size: 11px;
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
  }
  .player-initials,
  .player-avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
  .player-name-short {
    font-size: 10px;
  }
  .player-detail-card {
    padding: 20px;
    max-height: 90vh;
  }
}

@media (max-width: 480px) {
  .players-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

.mt-title {
  font-family: "UnifrakturMaguntia", "Old English Text MT", "Goudy Text MT", serif;
  letter-spacing: 0.01em;
}

.mt-game-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(20, 20, 20, 0.15);
  border-radius: 12px;
  padding: 12px;
}

.mini-wordle-row {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 6px;
  margin: 8px 0;
}

.mini-w-tile {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 20, 20, 0.32);
  border-radius: 6px;
  font-weight: 700;
}

.mini-w-tile.ok { background: #7fd39f; }
.mini-w-tile.near { background: #eed482; }
.mini-w-tile.off { background: #d0d0d0; }

.mini-input {
  width: 120px;
  text-transform: uppercase;
  padding: 7px 8px;
  margin-right: 6px;
}

.mini-sudoku {
  display: grid;
  grid-template-columns: repeat(9, 24px);
  gap: 3px;
  margin: 8px 0;
}

.s-cell {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  text-align: center;
  font-size: 12px;
}

.s-cell:disabled {
  background: rgba(20, 20, 20, 0.08);
  color: #111;
}

.mini-ttt {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  gap: 5px;
  margin: 8px 0;
}

.t-cell {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 700;
}

/* Typography + game sizing refinement requested by product */
.mt-wrapper {
  font-family: "Cheltenham", "Cheltenham Std", "Libre Baskerville", Georgia, "Times New Roman", serif;
}

.mt-title {
  font-family: "Engravers' Old English BT", "Old English Text MT", "UnifrakturMaguntia", serif;
  letter-spacing: 0.015em;
  font-size: clamp(36px, 7vw, 64px);
}

.mt-game-card {
  width: 100%;
  padding: 18px;
}

.mt-game-card .mt-deck {
  font-size: 14px;
  line-height: 1.65;
}

.mt-game-card .mt-nav-btn {
  padding: 9px 14px;
  font-size: 13px;
}

.mini-wordle-row {
  grid-template-columns: repeat(5, 42px);
  gap: 8px;
}

.mini-w-tile {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.mini-input {
  width: 170px;
  font-size: 14px;
}

.mini-sudoku {
  grid-template-columns: repeat(9, 30px);
  gap: 4px;
}

.s-cell {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.mini-ttt {
  grid-template-columns: repeat(3, 52px);
  gap: 7px;
}

.t-cell {
  width: 52px;
  height: 52px;
  font-size: 19px;
}

@media (max-width: 600px) {
  .mini-sudoku {
    grid-template-columns: repeat(9, 26px);
  }

  .s-cell {
    width: 26px;
    height: 26px;
  }

  .mini-wordle-row {
    grid-template-columns: repeat(5, 38px);
  }

  .mini-w-tile {
    width: 38px;
    height: 38px;
  }
}

/* --- Requested refinements: typography + card behaviors --- */
.mt-title {
  font-family: "Chomsky", "UnifrakturMaguntia", "Old English Text MT", serif;
}

.mt-story-title {
  font-family: "Cheltenham", "Libre Baskerville", Georgia, serif;
  font-weight: 700;
}

.mt-paragraph {
  font-family: "Imperial", Georgia, "Times New Roman", serif;
}

.mt-kicker,
.mt-byline,
.mt-subtitle,
.mt-meta,
.mt-tag,
.mt-footer {
  font-family: "Franklin Gothic Medium", Arial, sans-serif;
}

.gamely-embed-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  min-height: 320px;
}

.gamely-embed {
  width: 100%;
  min-height: 320px;
  border: 0;
  background: #0b0b0b;
}

.player-card {
  perspective: 800px;
}

.player-card-front,
.player-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transition: transform 0.45s ease;
}

.player-card-back {
  transform: rotateY(180deg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  text-align: left;
  background: rgba(8, 12, 24, 0.96);
}

.player-card:hover .player-card-front { transform: rotateY(180deg); }
.player-card:hover .player-card-back { transform: rotateY(360deg); }

.player-back-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
}

.player-back-stat {
  font-size: 10px;
  color: var(--secondary-color);
}

/* --- 2026 refresh overrides --- */
.mt-title {
  font-family: "Chomsky", "UnifrakturCook", "Old English Text MT", serif;
  letter-spacing: 0.04em;
}

.mt-subtitle,
.mt-kicker,
.mt-byline,
.mt-footer,
.mt-meta,
.mt-tag {
  font-family: "Arial", "Franklin Gothic Medium", "Helvetica Neue", sans-serif;
}

.mt-story-title {
  font-family: "Cheltenham", "Georgia", serif;
}

.mt-paragraph,
.mt-deck {
  font-family: "Georgia", serif;
}

.mt-games-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.games-grid-single {
  grid-template-columns: 1fr;
}

.mini-sudoku {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.mini-sudoku input,
.filter-search-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.player-card {
  min-height: 210px;
}

.player-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
}

.player-card.is-flipped .player-card-front { transform: rotateY(180deg); }
.player-card.is-flipped .player-card-back { transform: rotateY(360deg); }

.contact-orbit-wrapper {
  min-height: 560px;
}

.contact-orbit-icon {
  width: 84px;
  height: 84px;
  font-size: 30px;
}


.cert-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  min-height: 160px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 1600px) {
  .players-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .players-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mt-games-strip { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .players-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.games-content {
  padding: 0;
}

.gamely-fullscreen {
  width: 100%;
  height: 100vh;
}

.gamely-embed-full {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  border: 0;
}

/* --- Norris contact style adaptation --- */
/* Norris contact effect */
.no-contact-norris {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  gap: 0.4rem;
  font-family: "Stack Sans Headline", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.no-contact-norris a.norris {
  --c-primary: #dde1d2;
  --c-secondary: #b2c73a;
  --font-size: clamp(2rem, 8vw, 5.4rem);
  --animation-time: 25ms;
  text-decoration: none;
  font-size: var(--font-size);
  line-height: var(--font-size);
  overflow: hidden;
}

.no-contact-norris a.norris span {
  position: relative;
  color: transparent;
}

.no-contact-norris a.norris span::before,
.no-contact-norris a.norris span::after {
  position: absolute;
  left: 0;
  content: attr(data-char);
  color: var(--c-primary);
  transition: all ease-in-out calc(var(--animation-time) * 10);
  transition-delay: calc(var(--index) * var(--animation-time));
}

.no-contact-norris a.norris span::before {
  transform: translateY(0);
}

.no-contact-norris a.norris span::after {
  transform: translateY(var(--font-size));
}

.no-contact-norris a.norris:hover span::before,
.no-contact-norris a.norris:focus-visible span::before {
  transform: translateY(calc(-1 * var(--font-size)));
  opacity: 0;
  color: var(--c-secondary);
}

.no-contact-norris a.norris:hover span::after,
.no-contact-norris a.norris:focus-visible span::after {
  transform: translateY(0);
  opacity: 1;
  color: var(--c-secondary);
}

/* ---------- Projects Seamless Loop ---------- */
.projects-loop-intro {
  margin-bottom: 14px;
}

.projects-loop-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}

.projects-loop-intro p {
  margin: 0;
  color: var(--secondary-color);
}

.loop--projects {
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.loop--projects .loop-contents {
  display: flex;
  width: 100%;
  cursor: grab;
  user-select: none;
}

.loop--projects .loop-contents:active {
  cursor: grabbing;
}

.loop--projects .loop-item {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 12px;
  flex-shrink: 0 !important;
  padding: 14px;
  width: 100% !important;
}

.project-loop-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--primary-color);
  background: rgba(15, 20, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px;
  min-height: 190px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.project-loop-card:hover,
.project-loop-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
  outline: none;
}

.project-loop-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.project-loop-year,
.project-loop-status {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.project-loop-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.project-loop-card p {
  margin: 0;
  color: var(--secondary-color);
  font-size: .95rem;
  line-height: 1.45;
}

.project-loop-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
}

.project-loop-tags span {
  font-size: 11px;
  letter-spacing: .03em;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-loop-action {
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent-color);
}

@media (max-width: 680px) {
  .loop--projects .loop-item {
    grid-auto-columns: minmax(220px, 250px);
  }
}

/* ---------- Reactive Projects Layout ---------- */
.projects-reactive {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  min-height: calc(100dvh - 180px);
  align-items: stretch;
}

.pr-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(9, 17, 35, 0.84), rgba(9, 17, 35, 0.58));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  overflow: auto;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.pr-user {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
}

.pr-user-photo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.pr-user-name { font-weight: 700; }
.pr-user-mail { color: var(--secondary-color); font-size: 13px; }

.pr-main {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(9, 17, 35, 0.65), rgba(8, 14, 28, 0.45));
  padding: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.pr-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pr-main-title { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.02em; }
.pr-count { color: var(--secondary-color); font-size: 13px; }

.pr-side-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.pr-side-tabs {
  max-height: min(56dvh, 520px);
  overflow-y: auto;
  padding-right: 4px;
}

.pr-side-tab {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--secondary-color);
  font-size: 0.88rem;
  line-height: 1.2;
  cursor: pointer;
  transition: all .2s ease;
}

.pr-side-tab:hover,
.pr-side-tab.active {
  color: var(--primary-color);
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.pr-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255,255,255,0.03);
  padding: 14px;
  min-height: 308px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.pr-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(108, 138, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.05), transparent 38%);
  pointer-events: none;
  opacity: 0.8;
}

.pr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 138, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255,255,255,0.05);
}

.pr-tab-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  height: 100%;
}

.pr-tab-nav {
  --pr-tab-gap: 4px;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--pr-tab-gap);
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  isolation: isolate;
}

.pr-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc((100% - 8px - ((var(--pr-tab-count, 3) - 1) * var(--pr-tab-gap, 4px))) / var(--pr-tab-count, 3));
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(108, 138, 255, 0.95), rgba(78, 168, 255, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(108, 138, 255, 0.18);
  transition: transform .24s ease, width .24s ease;
  pointer-events: none;
}

.pr-tab-link {
  appearance: none;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: 1;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  color: var(--secondary-color);
  cursor: pointer;
  transition: color .2s ease;
}

.pr-tab-link:hover,
.pr-tab-link:focus-visible {
  color: var(--primary-color);
}

.pr-tab-link.active {
  color: #fff;
}

.pr-tab-panels {
  min-height: 224px;
  display: flex;
}

.pr-tab-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.pr-tab-panel.is-active {
  display: flex;
}

.pr-panel-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.pr-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pr-status {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d7e4ff;
  white-space: nowrap;
}

.pr-panel-heading h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.pr-panel-copy {
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.89rem;
  line-height: 1.52;
}

.pr-demo-preview {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 138px;
  margin-top: 2px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(5, 12, 12, 0.9), rgba(5, 12, 12, 0.78)),
    radial-gradient(circle at top right, rgba(0, 255, 106, 0.08), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.pr-demo-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(0, 255, 106, 0.03), transparent),
    linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(0, 255, 106, 0.06) calc(100% - 1px));
  pointer-events: none;
}

.pr-demo-preview.is-ballislife {
  background:
    linear-gradient(180deg, rgba(2, 10, 26, 0.96), rgba(2, 8, 20, 0.9)),
    radial-gradient(circle at top right, rgba(194, 255, 61, 0.07), transparent 40%);
  border-color: rgba(79, 116, 255, 0.16);
}

.pr-demo-preview.is-beatings {
  background:
    linear-gradient(180deg, rgba(231, 231, 234, 0.98), rgba(218, 218, 222, 0.95)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 42%);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(180, 180, 190, 0.18);
}

.pr-demo-preview.is-newpost {
  background:
    linear-gradient(180deg, rgba(238, 235, 228, 0.98), rgba(229, 225, 216, 0.96)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), transparent 42%);
  border-color: rgba(68, 63, 55, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(110, 98, 84, 0.08);
}

.pr-demo-preview.is-gitguide {
  background:
    linear-gradient(180deg, rgba(7, 8, 18, 0.98), rgba(6, 8, 16, 0.95)),
    radial-gradient(circle at top right, rgba(186, 247, 208, 0.05), transparent 38%);
  border-color: rgba(255, 255, 255, 0.08);
}

.pr-demo-preview.is-gitguide::after {
  background:
    linear-gradient(90deg, rgba(77, 90, 188, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(77, 90, 188, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.55;
}

.pr-demo-preview.is-newpost::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(68, 63, 55, 0.05) calc(100% - 1px));
}

.pr-demo-preview.is-beatings::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(170, 170, 180, 0.08) calc(100% - 1px));
}

.pr-demo-preview.is-atlasgdp {
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.97), rgba(7, 10, 16, 0.92)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.025), transparent 36%);
  border-color: rgba(255, 255, 255, 0.08);
}

.pr-demo-preview.is-atlasgdp::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent),
    linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.04) calc(100% - 1px));
}

.pr-demo-preview.is-ballislife::after {
  background:
    linear-gradient(90deg, transparent, rgba(79, 116, 255, 0.04), transparent),
    linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(194, 255, 61, 0.05) calc(100% - 1px));
}

.pr-demo-preview-top,
.pr-demo-ticker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pr-demo-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1dfc61;
}

.pr-demo-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.66);
}

.pr-demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1dfc61;
  box-shadow: 0 0 8px rgba(29, 252, 97, 0.65);
}

.pr-demo-search {
  position: relative;
  z-index: 1;
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(29, 252, 97, 0.22);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(214, 255, 227, 0.62);
  font-size: 0.67rem;
}

.pr-demo-search.is-ballislife {
  border-color: rgba(79, 116, 255, 0.18);
  background: rgba(2, 12, 36, 0.62);
  color: rgba(214, 224, 255, 0.62);
}

.pr-git-head,
.pr-git-chip-row,
.pr-git-scale,
.pr-git-stage {
  position: relative;
  z-index: 1;
}

.pr-git-head,
.pr-git-scale,
.pr-git-stage,
.pr-git-actions,
.pr-git-card-top,
.pr-git-meter {
  display: flex;
  align-items: center;
}

.pr-git-head,
.pr-git-card-top,
.pr-git-meter {
  justify-content: space-between;
}

.pr-git-head {
  gap: 8px;
}

.pr-git-title {
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  color: #f6f7fb;
}

.pr-git-subtitle {
  margin-top: 3px;
  color: rgba(208, 213, 230, 0.55);
  font-size: 0.56rem;
}

.pr-git-actions {
  gap: 6px;
}

.pr-git-actions span,
.pr-git-chip-row span,
.pr-git-badge,
.pr-git-flag {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pr-git-actions span {
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(223, 226, 236, 0.78);
  font-size: 0.5rem;
  font-weight: 700;
}

.pr-git-chip-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pr-git-chip-row span {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(236, 239, 247, 0.84);
  font-size: 0.5rem;
  font-weight: 700;
}

.pr-git-scale {
  gap: 7px;
}

.pr-git-scale-label {
  font-size: 0.49rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pr-git-scale-label.is-safe {
  color: #38e1b4;
}

.pr-git-scale-label.is-risk {
  color: #ff7a7a;
}

.pr-git-scale-bar {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1ac98f, #f2c433, #ff4040);
  overflow: hidden;
}

.pr-git-scale-bar i {
  position: absolute;
  top: 50%;
  left: 86%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 10px rgba(255, 93, 93, 0.35);
}

.pr-git-stage {
  gap: 8px;
  align-items: stretch;
}

.pr-git-plot,
.pr-git-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 13, 28, 0.62);
}

.pr-git-plot {
  position: relative;
  flex: 1 1 0;
  min-height: 108px;
  overflow: hidden;
}

.pr-git-plot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(25% - 0.5px), rgba(255, 255, 255, 0.03) calc(25% - 0.5px), rgba(255, 255, 255, 0.03) calc(25% + 0.5px), transparent calc(25% + 0.5px)),
    linear-gradient(90deg, transparent 0, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.03) calc(50% - 0.5px), rgba(255, 255, 255, 0.03) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent 0, transparent calc(75% - 0.5px), rgba(255, 255, 255, 0.03) calc(75% - 0.5px), rgba(255, 255, 255, 0.03) calc(75% + 0.5px), transparent calc(75% + 0.5px)),
    linear-gradient(180deg, transparent 0, transparent calc(33% - 0.5px), rgba(255, 255, 255, 0.03) calc(33% - 0.5px), rgba(255, 255, 255, 0.03) calc(33% + 0.5px), transparent calc(33% + 0.5px)),
    linear-gradient(180deg, transparent 0, transparent calc(66% - 0.5px), rgba(255, 255, 255, 0.03) calc(66% - 0.5px), rgba(255, 255, 255, 0.03) calc(66% + 0.5px), transparent calc(66% + 0.5px));
}

.pr-git-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.pr-git-dot.is-a { top: 18%; left: 10%; background: #8e7cff; }
.pr-git-dot.is-b { top: 34%; left: 18%; background: #ffd43b; }
.pr-git-dot.is-c { top: 22%; left: 34%; background: #3be2bb; }
.pr-git-dot.is-d { top: 56%; left: 26%; background: #6aa8ff; }
.pr-git-dot.is-e { top: 46%; left: 52%; background: #f5c13d; }
.pr-git-dot.is-f { top: 70%; left: 72%; background: #ff7474; }
.pr-git-dot.is-g { top: 26%; left: 82%; background: #ff7474; }
.pr-git-dot.is-h { top: 38%; left: 90%; background: #ff7474; width: 12px; height: 12px; box-shadow: 0 0 0 4px rgba(255, 116, 116, 0.12); }

.pr-git-card {
  width: 42%;
  min-width: 122px;
  padding: 8px;
}

.pr-git-card-top {
  gap: 6px;
  align-items: baseline;
}

.pr-git-badge {
  padding: 3px 7px;
  background: rgba(255, 90, 90, 0.08);
  color: #ff8d8d;
  font-size: 0.46rem;
  font-weight: 800;
}

.pr-git-card strong {
  font-size: 0.62rem;
  font-weight: 800;
  color: #f3f5fa;
  line-height: 1.2;
}

.pr-git-meter {
  margin-top: 8px;
  gap: 7px;
}

.pr-git-meter i {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pr-git-meter i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 88%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e47d7d, #ff6a6a);
}

.pr-git-meter span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.48rem;
  font-weight: 700;
}

.pr-git-copy {
  margin-top: 8px;
  color: rgba(214, 219, 233, 0.72);
  font-size: 0.5rem;
  line-height: 1.4;
}

.pr-git-flag {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 7px;
  background: rgba(97, 146, 255, 0.08);
  color: #8fbcff;
  font-size: 0.46rem;
  font-weight: 700;
}

.pr-news-mast,
.pr-news-dateline,
.pr-news-chip-row,
.pr-news-columns {
  position: relative;
  z-index: 1;
}

.pr-news-mast {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 8px;
  align-items: end;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(68, 63, 55, 0.36);
}

.pr-news-forecast {
  padding: 6px 7px;
  border: 1px solid rgba(68, 63, 55, 0.35);
  color: rgba(68, 63, 55, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.54rem;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.pr-news-brand,
.pr-news-headline,
.pr-news-kicker {
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(42, 40, 37, 0.94);
}

.pr-news-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-align: center;
}

.pr-news-dateline {
  padding: 5px 0 6px;
  border-bottom: 1px solid rgba(68, 63, 55, 0.32);
  color: rgba(68, 63, 55, 0.8);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.03em;
}

.pr-news-chip-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pr-news-chip-row span {
  border-radius: 999px;
  padding: 3px 7px;
  border: 1px solid rgba(68, 63, 55, 0.18);
  background: rgba(255, 255, 255, 0.24);
  color: rgba(82, 74, 62, 0.88);
  font-size: 0.5rem;
  font-weight: 700;
}

.pr-news-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(68, 63, 55, 0.16);
}

.pr-news-col {
  padding: 7px 8px 0;
  min-width: 0;
}

.pr-news-col + .pr-news-col {
  border-left: 1px solid rgba(68, 63, 55, 0.28);
}

.pr-news-headline {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.pr-news-headline.is-italic {
  font-style: italic;
  font-weight: 500;
}

.pr-news-rule {
  width: 38%;
  height: 1px;
  margin: 6px auto;
  background: rgba(68, 63, 55, 0.46);
}

.pr-news-copy {
  color: rgba(68, 63, 55, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.52rem;
  line-height: 1.35;
}

.pr-news-photo {
  margin-top: 7px;
  height: 38px;
  border: 1px solid rgba(68, 63, 55, 0.18);
  background-color: rgba(52, 50, 47, 0.16);
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

.pr-news-photo.is-train {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    linear-gradient(135deg, rgba(90, 90, 90, 0.9) 0 18%, transparent 18%),
    linear-gradient(160deg, transparent 0 48%, rgba(130, 130, 130, 0.8) 48% 56%, transparent 56%),
    linear-gradient(180deg, rgba(168, 168, 168, 0.6), rgba(115, 115, 115, 0.75));
}

.pr-news-photo.is-portrait {
  background-image:
    radial-gradient(circle at 50% 34%, rgba(220, 220, 220, 0.9) 0 11%, transparent 11%),
    linear-gradient(180deg, transparent 0 24%, rgba(208, 208, 208, 0.8) 24% 60%, transparent 60%),
    linear-gradient(180deg, rgba(58, 58, 58, 0.85), rgba(24, 24, 24, 0.92));
}

.pr-news-kicker {
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.02;
  text-align: center;
}

.pr-beat-top,
.pr-beat-controls,
.pr-beat-pads,
.pr-beat-grid {
  position: relative;
  z-index: 1;
}

.pr-beat-top,
.pr-beat-controls,
.pr-beat-pads {
  display: flex;
  align-items: center;
}

.pr-beat-top {
  justify-content: space-between;
  gap: 8px;
}

.pr-beat-brand {
  font-size: 0.82rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.03em;
  color: rgba(85, 85, 94, 0.92);
}

.pr-beat-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pr-beat-actions span,
.pr-beat-controls span,
.pr-beat-pads span {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(243, 243, 246, 0.96), rgba(220, 220, 225, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 12px rgba(164, 164, 175, 0.18);
}

.pr-beat-actions span {
  padding: 5px 8px;
  color: rgba(41, 41, 48, 0.9);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pr-beat-controls {
  gap: 6px;
  flex-wrap: wrap;
}

.pr-beat-controls span {
  padding: 5px 8px;
  color: rgba(114, 114, 123, 0.95);
  font-size: 0.52rem;
  font-weight: 700;
}

.pr-beat-pads {
  gap: 6px;
  flex-wrap: wrap;
}

.pr-beat-pads span {
  padding: 6px 7px;
  color: rgba(90, 90, 98, 0.92);
  font-size: 0.5rem;
  font-weight: 800;
}

.pr-beat-grid {
  display: grid;
  gap: 5px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(196, 196, 204, 0.56);
  background: linear-gradient(180deg, rgba(209, 209, 214, 0.72), rgba(198, 198, 204, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.pr-beat-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}

.pr-beat-row span {
  position: relative;
  min-height: 14px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(226, 226, 231, 0.96), rgba(209, 209, 214, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(174, 174, 183, 0.22);
}

.pr-beat-row span.is-on::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(48, 48, 54, 0.9);
}

.pr-atlas-top,
.pr-atlas-subtitle,
.pr-atlas-metrics,
.pr-atlas-tabs,
.pr-atlas-stage {
  position: relative;
  z-index: 1;
}

.pr-atlas-top,
.pr-atlas-metrics,
.pr-atlas-tabs,
.pr-atlas-main {
  display: flex;
  align-items: center;
}

.pr-atlas-top {
  justify-content: space-between;
  gap: 8px;
}

.pr-atlas-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #f4f5f8;
}

.pr-atlas-deploy {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(240, 242, 247, 0.58);
}

.pr-atlas-subtitle {
  font-size: 0.58rem;
  line-height: 1.4;
  color: rgba(196, 199, 210, 0.58);
}

.pr-atlas-metrics {
  gap: 6px;
  flex-wrap: wrap;
}

.pr-atlas-metrics span {
  border-radius: 10px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(240, 243, 248, 0.82);
  font-size: 0.52rem;
  font-weight: 700;
}

.pr-atlas-tabs {
  gap: 6px;
  flex-wrap: wrap;
}

.pr-atlas-tabs span {
  position: relative;
  padding-bottom: 3px;
  color: rgba(185, 189, 200, 0.72);
  font-size: 0.54rem;
  font-weight: 700;
}

.pr-atlas-tabs span.is-active {
  color: #ff5b5b;
}

.pr-atlas-tabs span.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #ff5b5b;
}

.pr-atlas-stage {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 8px;
  min-height: 112px;
}

.pr-atlas-rail,
.pr-atlas-chart,
.pr-atlas-table,
.pr-atlas-drivers {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pr-atlas-rail {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 7px;
  background: linear-gradient(180deg, rgba(41, 42, 53, 0.9), rgba(30, 31, 42, 0.88));
}

.pr-atlas-rail-field {
  min-height: 18px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 7px;
  background: rgba(8, 10, 18, 0.64);
  color: rgba(240, 242, 247, 0.78);
  font-size: 0.5rem;
  font-weight: 700;
}

.pr-atlas-rail-slider {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(147, 151, 168, 0.22);
  overflow: hidden;
}

.pr-atlas-rail-slider i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 54%;
  border-radius: inherit;
  background: #ff5b5b;
}

.pr-atlas-main {
  gap: 8px;
  min-width: 0;
  align-items: stretch;
}

.pr-atlas-chart {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background:
    linear-gradient(180deg, transparent 0, transparent calc(25% - 0.5px), rgba(255, 255, 255, 0.04) calc(25% - 0.5px), rgba(255, 255, 255, 0.04) calc(25% + 0.5px), transparent calc(25% + 0.5px)),
    linear-gradient(180deg, transparent 0, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.05) calc(50% - 0.5px), rgba(255, 255, 255, 0.05) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(180deg, transparent 0, transparent calc(75% - 0.5px), rgba(255, 255, 255, 0.04) calc(75% - 0.5px), rgba(255, 255, 255, 0.04) calc(75% + 0.5px), transparent calc(75% + 0.5px)),
    rgba(8, 10, 18, 0.76);
  overflow: hidden;
}

.pr-atlas-band,
.pr-atlas-line {
  position: absolute;
}

.pr-atlas-band.is-outer {
  inset: auto 10% 10% 48%;
  height: 74%;
  background: linear-gradient(180deg, rgba(39, 83, 178, 0.3), rgba(39, 83, 178, 0.15));
  clip-path: polygon(0 84%, 24% 64%, 52% 36%, 76% 30%, 100% 14%, 100% 84%, 76% 90%, 52% 100%, 24% 100%, 0 100%);
}

.pr-atlas-band.is-inner {
  inset: auto 15% 17% 51%;
  height: 56%;
  background: linear-gradient(180deg, rgba(58, 114, 255, 0.38), rgba(58, 114, 255, 0.2));
  clip-path: polygon(0 82%, 24% 62%, 54% 36%, 76% 34%, 100% 20%, 100% 82%, 76% 90%, 54% 98%, 24% 98%, 0 98%);
}

.pr-atlas-line.is-history {
  inset: 0 46% 0 6%;
  background: linear-gradient(180deg, transparent 0, transparent 100%);
}

.pr-atlas-line.is-history::before,
.pr-atlas-line.is-forecast::before {
  content: "";
  position: absolute;
  inset: 0;
}

.pr-atlas-line.is-history::before {
  clip-path: polygon(0 84%, 18% 70%, 34% 52%, 50% 30%, 66% 12%, 82% 96%, 100% 84%, 100% 90%, 82% 100%, 66% 18%, 50% 36%, 34% 58%, 18% 76%, 0 90%);
  background: linear-gradient(90deg, rgba(90, 106, 145, 0.18), rgba(90, 106, 145, 0.58));
}

.pr-atlas-line.is-forecast {
  inset: 0 12% 0 50%;
}

.pr-atlas-line.is-forecast::before {
  clip-path: polygon(0 76%, 22% 54%, 48% 52%, 72% 48%, 100% 32%, 100% 38%, 72% 54%, 48% 58%, 22% 60%, 0 82%);
  background: linear-gradient(90deg, rgba(58, 114, 255, 0.35), rgba(58, 114, 255, 0.96));
}

.pr-atlas-side {
  display: grid;
  gap: 7px;
  width: 31%;
  min-width: 84px;
}

.pr-atlas-table,
.pr-atlas-drivers {
  padding: 6px;
  background: rgba(16, 18, 29, 0.74);
}

.pr-atlas-table {
  display: grid;
  gap: 4px;
}

.pr-atlas-table span,
.pr-atlas-drivers span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pr-atlas-table b,
.pr-atlas-table i {
  font-style: normal;
  font-size: 0.48rem;
  font-weight: 700;
}

.pr-atlas-table b {
  color: rgba(238, 240, 244, 0.8);
}

.pr-atlas-table i {
  color: rgba(214, 217, 226, 0.56);
}

.pr-atlas-drivers {
  display: grid;
  gap: 5px;
}

.pr-atlas-drivers span i {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(23, 91, 48, 0.46), rgba(34, 168, 79, 0.92));
}

.pr-ball-top,
.pr-ball-hero,
.pr-ball-boards,
.pr-ball-fixture {
  position: relative;
  z-index: 1;
}

.pr-ball-top,
.pr-ball-hero,
.pr-ball-fixture {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pr-ball-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f5f8ff;
}

.pr-ball-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, #d2ff38, #8bd613);
  box-shadow: 0 0 12px rgba(210, 255, 56, 0.35);
}

.pr-ball-locale {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(222, 232, 255, 0.55);
}

.pr-ball-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #f5f8ff;
}

.pr-ball-subtitle {
  margin-top: 2px;
  font-size: 0.58rem;
  color: rgba(201, 214, 255, 0.55);
}

.pr-ball-pill {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(194, 255, 61, 0.24);
  background: rgba(194, 255, 61, 0.08);
  color: #d2ff38;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pr-ball-chip-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pr-ball-chip-row span {
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(65, 91, 148, 0.22);
  border: 1px solid rgba(79, 116, 255, 0.12);
  color: #bcd0ff;
  font-size: 0.54rem;
  font-weight: 700;
}

.pr-ball-boards {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 7px;
}

.pr-ball-board {
  position: relative;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(79, 116, 255, 0.1);
  background: rgba(4, 14, 38, 0.58);
  overflow: hidden;
}

.pr-ball-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0, transparent calc(50% - 0.5px), rgba(79, 116, 255, 0.05) calc(50% - 0.5px), rgba(79, 116, 255, 0.05) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  pointer-events: none;
}

.pr-ball-line,
.pr-ball-bar-col {
  position: absolute;
}

.pr-ball-line {
  inset: auto 0 0 0;
  height: 100%;
  border-radius: 999px;
  opacity: 0.9;
}

.pr-ball-line.is-a {
  clip-path: polygon(0 78%, 18% 70%, 38% 52%, 58% 36%, 80% 22%, 100% 16%, 100% 26%, 80% 32%, 58% 46%, 38% 60%, 18% 76%, 0 84%);
  background: linear-gradient(90deg, rgba(255, 199, 0, 0.4), rgba(255, 199, 0, 0.95));
}

.pr-ball-line.is-b {
  clip-path: polygon(0 68%, 20% 64%, 42% 58%, 64% 60%, 82% 54%, 100% 44%, 100% 54%, 82% 62%, 64% 68%, 42% 66%, 20% 72%, 0 76%);
  background: linear-gradient(90deg, rgba(79, 116, 255, 0.25), rgba(79, 116, 255, 0.88));
}

.pr-ball-line.is-c {
  clip-path: polygon(0 72%, 24% 66%, 48% 62%, 72% 56%, 100% 50%, 100% 58%, 72% 64%, 48% 70%, 24% 74%, 0 80%);
  background: linear-gradient(90deg, rgba(0, 231, 255, 0.18), rgba(0, 231, 255, 0.72));
}

.pr-ball-bar-col {
  bottom: 5px;
  width: 14%;
  border-radius: 4px 4px 2px 2px;
}

.pr-ball-bar-col.is-a {
  left: 12%;
  height: 48%;
  background: linear-gradient(180deg, rgba(79, 116, 255, 0.92), rgba(79, 116, 255, 0.52));
}

.pr-ball-bar-col.is-b {
  left: 33%;
  height: 68%;
  background: linear-gradient(180deg, rgba(194, 255, 61, 0.92), rgba(194, 255, 61, 0.5));
}

.pr-ball-bar-col.is-c {
  left: 54%;
  height: 38%;
  background: linear-gradient(180deg, rgba(79, 116, 255, 0.92), rgba(79, 116, 255, 0.52));
}

.pr-ball-bar-col.is-d {
  left: 75%;
  height: 56%;
  background: linear-gradient(180deg, rgba(194, 255, 61, 0.92), rgba(194, 255, 61, 0.5));
}

.pr-ball-fixture {
  font-size: 0.57rem;
  font-weight: 700;
  color: rgba(234, 241, 255, 0.82);
}

.pr-ball-fixture-bar {
  position: relative;
  flex: 1 1 auto;
  height: 5px;
  border-radius: 999px;
  background: rgba(49, 71, 120, 0.55);
  overflow: hidden;
}

.pr-ball-fixture-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(194, 255, 61, 0.95), rgba(79, 116, 255, 0.9));
}

.pr-demo-chip-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pr-demo-chip-row span {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(29, 252, 97, 0.12);
  border: 1px solid rgba(29, 252, 97, 0.18);
  color: #8affab;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pr-demo-stage {
  position: relative;
  z-index: 1;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(29, 252, 97, 0.1);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.22), transparent 8%),
    radial-gradient(circle at 50% 50%, rgba(18, 26, 28, 0.92), rgba(3, 5, 8, 0.98));
  overflow: hidden;
}

.pr-demo-gridline {
  position: absolute;
  inset: 0;
}

.pr-demo-gridline.is-x {
  background: linear-gradient(180deg, transparent 0, transparent calc(50% - 0.5px), rgba(29, 252, 97, 0.08) calc(50% - 0.5px), rgba(29, 252, 97, 0.08) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.pr-demo-gridline.is-y {
  background: linear-gradient(90deg, transparent 0, transparent calc(50% - 0.5px), rgba(29, 252, 97, 0.06) calc(50% - 0.5px), rgba(29, 252, 97, 0.06) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.pr-demo-blob {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(29, 252, 97, 0.08);
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.35));
}

.pr-demo-blob.is-a {
  top: 18%;
  left: 11%;
  width: 30%;
  height: 44%;
}

.pr-demo-blob.is-b {
  top: 14%;
  left: 47%;
  width: 22%;
  height: 50%;
}

.pr-demo-blob.is-c {
  top: 26%;
  right: 8%;
  width: 27%;
  height: 42%;
}

.pr-demo-ticker {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(138, 255, 171, 0.8);
}

.pr-hash-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.pr-hash-row span {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  color: #dbe6ff;
  background: rgba(255, 255, 255, 0.04);
}

.pr-panel-actions {
  margin-top: auto;
  padding-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-tab-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-color);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

a.pr-tab-action {
  cursor: pointer;
}

button.pr-tab-action {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}

.pr-tab-action:hover,
.pr-tab-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(108, 138, 255, 0.38);
  background: rgba(108, 138, 255, 0.14);
  color: #fff;
}

.pr-tab-action.is-secondary {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

.pr-tab-action.is-disabled {
  cursor: default;
  opacity: 0.56;
  pointer-events: none;
}

.pr-tab-action.is-landscape {
  gap: 8px;
}

.pr-tab-action.is-landscape::after {
  content: "16:9";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(108, 138, 255, 0.24);
  background: rgba(108, 138, 255, 0.12);
  color: #dbe6ff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

body.is-demo-viewer-open {
  overflow: hidden;
}

.pr-demo-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding:
    max(16px, calc(env(safe-area-inset-top) + 12px))
    max(16px, calc(env(safe-area-inset-right) + 12px))
    max(16px, calc(env(safe-area-inset-bottom) + 12px))
    max(16px, calc(env(safe-area-inset-left) + 12px));
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.pr-demo-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pr-demo-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 8, 18, 0.76);
  backdrop-filter: blur(16px);
}

.pr-demo-viewer-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(7, 14, 28, 0.95), rgba(6, 12, 22, 0.92)),
    radial-gradient(circle at top right, rgba(108, 138, 255, 0.12), transparent 34%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pr-demo-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pr-demo-viewer-heading {
  min-width: 0;
}

.pr-demo-viewer-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.pr-demo-viewer-title {
  margin: 3px 0 0;
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  line-height: 1.2;
}

.pr-demo-viewer-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  min-height: 40px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.pr-demo-viewer-close:hover,
.pr-demo-viewer-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(108, 138, 255, 0.36);
  background: rgba(108, 138, 255, 0.12);
  color: #fff;
}

.pr-demo-viewer-stage {
  min-width: 0;
}

.pr-demo-viewer-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(3, 9, 18, 0.94), rgba(4, 8, 16, 0.92)),
    radial-gradient(circle at top right, rgba(108, 138, 255, 0.08), transparent 34%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pr-demo-viewer-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050814;
}

.pr-demo-viewer-frame.is-fallback {
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 22px);
}

.pr-demo-viewer-fallback {
  width: min(100%, 920px);
  display: grid;
  gap: 14px;
}

.pr-demo-viewer-fallback .pr-demo-preview {
  min-height: clamp(240px, 42vw, 440px);
  margin-top: 0;
  padding: clamp(14px, 2vw, 20px);
}

.pr-demo-viewer-placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(240px, 42vw, 440px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.pr-demo-viewer-copy,
.pr-demo-viewer-note {
  margin: 0;
  color: rgba(219, 230, 255, 0.74);
  font-size: 0.78rem;
  line-height: 1.55;
}

.pr-demo-viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pr-empty { color: var(--secondary-color); padding: 16px 0; }

@media (max-width: 980px) {
  .projects-reactive { grid-template-columns: 1fr; min-height: auto; }
  .pr-sidebar { min-height: auto; overflow: visible; }
}

@media (max-width: 640px) {
  .content { padding: 14px; }
  .content-header { margin-bottom: 16px; }

  .projects-reactive { gap: 12px; min-height: auto; }

  .pr-sidebar,
  .pr-main {
    padding: 12px;
    border-radius: 14px;
  }

  .pr-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
  }

  .pr-user-photo {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
  }

  .pr-side-tabs {
    gap: 8px;
    align-items: stretch;
  }

  .pr-side-tabs {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .pr-side-tab {
    font-size: 0.8rem;
    padding: 8px 11px;
  }

  .pr-main-header {
    margin-bottom: 10px;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .pr-main-title { font-size: 1.2rem; line-height: 1.2; }
  .pr-count { font-size: 12px; }

  .pr-grid { grid-template-columns: 1fr; gap: 10px; }
  .pr-card { padding: 12px; min-height: 292px; }
  .pr-tab-nav { --pr-tab-gap: 3px; padding: 3px; }
  .pr-tab-indicator { top: 3px; left: 3px; height: calc(100% - 6px); }
  .pr-tab-link { min-height: 36px; padding: 8px 6px; font-size: 0.74rem; }
  .pr-tab-panels { min-height: 210px; }
  .pr-tab-panel { padding: 12px; border-radius: 14px; }
  .pr-panel-heading h3 { font-size: 0.95rem; }
  .pr-panel-copy { font-size: 0.83rem; line-height: 1.45; }
  .pr-demo-preview { min-height: 130px; padding: 10px; gap: 7px; }
  .pr-demo-brand { font-size: 0.66rem; }
  .pr-demo-search { min-height: 28px; font-size: 0.61rem; padding: 0 9px; }
  .pr-git-title { font-size: 0.78rem; }
  .pr-git-subtitle { font-size: 0.5rem; }
  .pr-git-actions { gap: 4px; }
  .pr-git-actions span { padding: 3px 6px; font-size: 0.45rem; }
  .pr-git-chip-row { gap: 4px; }
  .pr-git-chip-row span { font-size: 0.46rem; padding: 3px 7px; }
  .pr-git-scale { gap: 5px; }
  .pr-git-scale-label { font-size: 0.43rem; }
  .pr-git-stage { gap: 6px; }
  .pr-git-plot { min-height: 96px; }
  .pr-git-dot { width: 8px; height: 8px; }
  .pr-git-dot.is-h { width: 10px; height: 10px; }
  .pr-git-card { min-width: 108px; padding: 7px; }
  .pr-git-card strong { font-size: 0.56rem; }
  .pr-git-meter { margin-top: 6px; gap: 5px; }
  .pr-git-copy { margin-top: 6px; font-size: 0.46rem; }
  .pr-git-flag { margin-top: 6px; font-size: 0.43rem; padding: 3px 6px; }
  .pr-news-mast { gap: 6px; padding-bottom: 5px; }
  .pr-news-forecast { font-size: 0.48rem; padding: 5px 6px; }
  .pr-news-brand { font-size: 0.86rem; }
  .pr-news-dateline { font-size: 0.45rem; padding: 4px 0 5px; }
  .pr-news-chip-row { gap: 4px; }
  .pr-news-chip-row span { font-size: 0.46rem; padding: 3px 6px; }
  .pr-news-col { padding: 6px 6px 0; }
  .pr-news-headline { font-size: 0.7rem; }
  .pr-news-rule { margin: 5px auto; }
  .pr-news-copy { font-size: 0.48rem; }
  .pr-news-photo { height: 32px; margin-top: 6px; }
  .pr-news-kicker { font-size: 0.62rem; margin-top: 6px; }
  .pr-beat-brand { font-size: 0.72rem; }
  .pr-beat-actions { gap: 4px; }
  .pr-beat-actions span,
  .pr-beat-controls span,
  .pr-beat-pads span { border-radius: 8px; }
  .pr-beat-actions span { padding: 4px 6px; font-size: 0.46rem; }
  .pr-beat-controls { gap: 5px; }
  .pr-beat-controls span { padding: 4px 7px; font-size: 0.48rem; }
  .pr-beat-pads { gap: 5px; }
  .pr-beat-pads span { padding: 5px 6px; font-size: 0.47rem; }
  .pr-beat-grid { padding: 7px; gap: 4px; }
  .pr-beat-row { gap: 3px; }
  .pr-beat-row span { min-height: 12px; }
  .pr-beat-row span.is-on::after { width: 4px; height: 4px; }
  .pr-atlas-title { font-size: 0.72rem; }
  .pr-atlas-subtitle { font-size: 0.54rem; }
  .pr-atlas-metrics span { font-size: 0.48rem; padding: 4px 5px; }
  .pr-atlas-tabs span { font-size: 0.5rem; }
  .pr-atlas-stage { gap: 6px; min-height: 104px; }
  .pr-atlas-rail { padding: 6px; gap: 5px; }
  .pr-atlas-rail-field { min-height: 16px; font-size: 0.46rem; }
  .pr-atlas-main { gap: 6px; }
  .pr-atlas-side { min-width: 76px; width: 30%; gap: 6px; }
  .pr-atlas-table,
  .pr-atlas-drivers { padding: 5px; }
  .pr-atlas-table b,
  .pr-atlas-table i { font-size: 0.45rem; }
  .pr-ball-brand { font-size: 0.62rem; gap: 6px; }
  .pr-ball-title { font-size: 0.72rem; }
  .pr-ball-subtitle { font-size: 0.54rem; }
  .pr-ball-pill { font-size: 0.48rem; padding: 3px 7px; }
  .pr-ball-chip-row span { font-size: 0.5rem; }
  .pr-ball-boards { gap: 6px; }
  .pr-ball-board { min-height: 30px; }
  .pr-ball-fixture { font-size: 0.53rem; }
  .pr-demo-chip-row { gap: 5px; }
  .pr-demo-chip-row span { font-size: 0.54rem; padding: 3px 7px; }
  .pr-demo-stage { min-height: 52px; }
  .pr-demo-ticker { font-size: 0.52rem; gap: 6px; flex-wrap: wrap; }
  .pr-hash-row span { font-size: 10px; padding: 5px 8px; }
  .pr-panel-actions { gap: 6px; }
  .pr-tab-action { flex: 1 1 auto; min-height: 36px; font-size: 0.72rem; padding: 8px 10px; }
  .pr-tab-action.is-landscape::after { min-width: 31px; font-size: 0.52rem; }
  .pr-demo-viewer-shell { width: min(100%, calc(100vw - 16px)); padding: 12px; border-radius: 16px; gap: 10px; }
  .pr-demo-viewer-head { align-items: flex-start; }
  .pr-demo-viewer-title { font-size: 0.96rem; }
  .pr-demo-viewer-close { min-height: 36px; padding: 8px 11px; font-size: 0.72rem; }
  .pr-demo-viewer-frame { border-radius: 14px; }
  .pr-demo-viewer-frame.is-fallback { padding: 10px; }
  .pr-demo-viewer-fallback { gap: 10px; }
  .pr-demo-viewer-fallback .pr-demo-preview,
  .pr-demo-viewer-placeholder { min-height: min(48vw, 250px); }
  .pr-demo-viewer-copy,
  .pr-demo-viewer-note { font-size: 0.7rem; line-height: 1.45; }
  .pr-demo-viewer-actions { align-items: stretch; }
  .pr-demo-viewer-actions .pr-tab-action { width: 100%; }
}

/* ---------- Contact Norris Clean Layout ---------- */
.norris-contact-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.no-contact-norris {
  min-height: 70vh;
  justify-content: center;
  align-items: center;
}

.no-contact-norris a.norris {
  --font-size: clamp(2rem, 8vw, 5.2rem);
  display: inline-block;
}

/* ---------- Certificates Clean Layout ---------- */
.cert-shell {
  display: grid;
  gap: 16px;
}

.cert-shell-head p {
  color: var(--secondary-color);
}

.cert-card {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.cert-meta {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.cert-meta h3 {
  font-size: 14px;
  line-height: 1.35;
}

.cert-meta a {
  color: #9ec0ff;
  font-size: 12px;
}


/* ---------- Global Audio Toggle ---------- */
.audio-toggle-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 16, 19, 0.72);
  color: var(--primary-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  font-weight: 600;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.audio-toggle-btn:hover {
  transform: translateY(-1px);
  background: rgba(26, 28, 34, 0.82);
  border-color: rgba(255, 255, 255, 0.4);
}

.audio-toggle-btn:focus-visible {
  outline: 2px solid rgba(108, 138, 255, 0.8);
  outline-offset: 2px;
}

.audio-toggle-btn i {
  font-size: 14px;
}

@media (max-width: 640px) {
  .audio-toggle-btn {
    right: 14px;
    bottom: 14px;
    padding: 9px 12px;
    font-size: 12px;
  }
}


/* ---------- Mobile Projects Top Category Bar (Chrome/Safari/Phone) ---------- */
@media (max-width: 900px) {
  .projects-reactive {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }

  .pr-sidebar {
    order: -1;
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    min-height: auto;
    overflow: visible;
    padding: 10px;
    border-radius: 14px;
    z-index: 6;
  }

  .pr-user {
    display: none;
  }

  .pr-side-tabs {
    display: -webkit-box !important;
    display: flex !important;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: 100%;
    gap: 7px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .pr-side-tabs::-webkit-scrollbar {
    display: none;
  }

  .pr-side-tab {
    width: auto;
    min-width: max-content;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    display: inline-flex !important;
    text-align: center;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 7px 11px;
  }

  .pr-main {
    padding: 14px;
    border-radius: 14px;
  }

  .pr-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pr-card {
    min-height: 280px;
  }
}
