:root {
  --site-shell-bg: rgba(7, 7, 9, 0.82);
  --site-shell-bg-solid: #09090b;
  --site-shell-surface: rgba(255, 255, 255, 0.04);
  --site-shell-line: rgba(255, 255, 255, 0.1);
  --site-shell-line-strong: rgba(255, 255, 255, 0.18);
  --site-shell-text: #f5f7fb;
  --site-shell-muted: rgba(226, 232, 240, 0.72);
  --site-shell-accent: #7dd3fc;
  --site-shell-accent-strong: #0ea5e9;
  --site-shell-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --site-shell-radius: 20px;
  --site-shell-nav-height: 64px;
  --site-shell-max-width: 1600px;
  --site-shell-gutter: clamp(4px, 1vw, 12px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-shell-nav-height) + 24px);
}

body.has-site-shell {
  padding-top: var(--site-shell-nav-height);
}

body.site-menu-open {
  overflow: hidden;
}

.site-shell-hidden {
  display: none !important;
}

.site-shell-container {
  width: min(calc(100% - (var(--site-shell-gutter) * 2)), var(--site-shell-max-width));
  max-width: var(--site-shell-max-width);
  margin: 0 auto;
  padding: 0;
}

.site-shell-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.74) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.site-shell-nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.38), transparent);
}

.site-shell-nav-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: var(--site-shell-nav-height);
  position: relative;
}

.site-shell-nav-left,
.site-shell-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-shell-nav-left {
  justify-self: start;
}

.site-shell-nav-right {
  justify-self: end;
}

.site-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--site-shell-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-shell-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-shell-brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 26px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.site-shell-brand-wordmark .site-shell-brand-x {
  background: linear-gradient(90deg, var(--site-shell-accent-strong), var(--site-shell-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-shell-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  justify-self: center;
}

.site-shell-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--site-shell-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.site-shell-nav-link:hover,
.site-shell-nav-link:focus-visible {
  color: var(--site-shell-text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.site-shell-nav-link.is-active {
  color: var(--site-shell-text);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.2), rgba(14, 165, 233, 0.11));
  border-color: rgba(125, 211, 252, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-shell-nav-link.is-accent {
  color: #0b0b0b;
  background: #f5f0eb;
  border-color: rgba(245, 240, 235, 0.25);
  box-shadow: 0 4px 16px rgba(245, 240, 235, 0.12);
}

.site-shell-nav-link.is-accent:hover,
.site-shell-nav-link.is-accent:focus-visible {
  color: #0b0b0b;
  background: #fff;
}

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

.site-shell-subscription-pill,
.site-shell-account-btn,
.site-shell-credits-pill,
.site-shell-buy-btn {
  border: 1px solid var(--site-shell-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--site-shell-text);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.site-shell-subscription-pill,
.site-shell-buy-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-shell-subscription-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  overflow: hidden;
}

.site-shell-subscription-pill .subscription-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}

.site-shell-subscription-pill.hidden {
  display: none !important;
}

.site-shell-subscription-pill.status-active {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.site-shell-subscription-pill.status-cancelled,
.site-shell-subscription-pill.status-past_due,
.site-shell-subscription-pill.status-suspended {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.site-shell-account-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

/* Account status colors */
.site-shell-account-btn[data-status="anonymous"] i {
  color: #f87171;
  filter: drop-shadow(0 0 3px rgba(248, 113, 113, 0.4));
}

.site-shell-account-btn[data-status="unverified"] i {
  color: #fbbf24;
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.4));
}

.site-shell-account-btn[data-status="verified"] i {
  color: #34d399;
  filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.3));
}

/* Tooltip on hover */
.site-shell-account-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(10, 10, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--site-shell-muted);
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1001;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.site-shell-account-btn:hover::after {
  opacity: 1;
  transform: translateY(0);
}

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

.site-shell-credits-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.site-shell-credits-value {
  min-width: 1.8ch;
}

.site-shell-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-shell-subscription-pill:hover,
.site-shell-account-btn:hover,
.site-shell-account-btn:focus-visible,
.site-shell-credits-pill:hover,
.site-shell-buy-btn:hover,
.site-shell-buy-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--site-shell-line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.site-shell-credits-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(10, 10, 12, 0.96);
  box-shadow: var(--site-shell-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.site-shell-credits-pill:hover .site-shell-credits-tooltip,
.site-shell-credits-pill:focus-within .site-shell-credits-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-shell-credits-tooltip-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--site-shell-muted);
}

.site-shell-credits-tooltip-row i {
  color: var(--site-shell-accent);
}

.site-shell-credits-tooltip-val {
  font-weight: 700;
  color: var(--site-shell-text);
}

/* ---- Burger button (matches index.html nav-burger) ---- */
.site-shell-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.site-shell-burger:hover,
.site-shell-burger:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.06);
}

.site-shell-burger span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--site-shell-text);
  transition: all 0.45s cubic-bezier(0.77, 0, 0.18, 1);
  transform-origin: center;
}

.site-shell-burger span:nth-child(1) { width: 18px; }
.site-shell-burger span:nth-child(2) { width: 12px; transition-delay: 0.05s; }
.site-shell-burger span:nth-child(3) { width: 18px; }

.site-shell-burger:hover span { background: #0EA5E9; }
.site-shell-burger:hover span:nth-child(2) { width: 18px; }

/* Open state — X morph */
.site-shell-burger.is-open {
  border-color: rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.08);
}

.site-shell-burger.is-open span:nth-child(1) {
  width: 18px;
  transform: translateY(7px) rotate(45deg);
  background: #0EA5E9;
}

.site-shell-burger.is-open span:nth-child(2) {
  width: 0;
  opacity: 0;
}

.site-shell-burger.is-open span:nth-child(3) {
  width: 18px;
  transform: translateY(-7px) rotate(-45deg);
  background: #0EA5E9;
}

/* ---- Full-screen editorial mobile menu (matches index.html) ---- */
.site-shell-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 8, 8, 0.96);
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  backdrop-filter: blur(30px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-shell-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-shell-mobile-panel {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--site-shell-nav-height, 64px) + 48px) clamp(20px, 5vw, 40px) 40px;
  width: 100%;
  max-width: none;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* ---- Nav links: editorial numbered (same as index) ---- */
.site-shell-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  counter-reset: ssnl;
}

.site-shell-mobile-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0 20px 44px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  background: none;
  position: relative;
  counter-increment: ssnl;
  opacity: 0;
  transition:
    opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Alternating slide direction */
.site-shell-mobile-link:nth-child(odd)  { transform: translateX(-30px); }
.site-shell-mobile-link:nth-child(even) { transform: translateX(30px);  }

/* Number counter */
.site-shell-mobile-link::before {
  content: "0" counter(ssnl);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--site-shell-accent-strong, #0EA5E9);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* Gradient accent bar */
.site-shell-mobile-link::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 24px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--site-shell-accent-strong, #0EA5E9), rgba(139, 92, 246, 0.6));
  transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-shell-mobile-link-label {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.site-shell-mobile-link-sub {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.3s ease;
}

/* ---- Open state: staggered reveal ---- */
.site-shell-mobile-menu.is-open .site-shell-mobile-link {
  transform: translateX(0);
  opacity: 1;
}

.site-shell-mobile-menu.is-open .site-shell-mobile-link:nth-child(1) { transition-delay: 0.08s; }
.site-shell-mobile-menu.is-open .site-shell-mobile-link:nth-child(2) { transition-delay: 0.14s; }
.site-shell-mobile-menu.is-open .site-shell-mobile-link:nth-child(3) { transition-delay: 0.20s; }
.site-shell-mobile-menu.is-open .site-shell-mobile-link:nth-child(4) { transition-delay: 0.26s; }
.site-shell-mobile-menu.is-open .site-shell-mobile-link:nth-child(5) { transition-delay: 0.32s; }
.site-shell-mobile-menu.is-open .site-shell-mobile-link:nth-child(6) { transition-delay: 0.38s; }

/* ---- Hover / focus ---- */
.site-shell-mobile-link:hover,
.site-shell-mobile-link:focus {
  background: none;
  border-color: rgba(14, 165, 233, 0.15);
  outline: none;
}

.site-shell-mobile-link:hover .site-shell-mobile-link-label,
.site-shell-mobile-link:focus .site-shell-mobile-link-label {
  color: #fff;
  letter-spacing: 0.06em;
}

.site-shell-mobile-link:hover .site-shell-mobile-link-sub,
.site-shell-mobile-link:focus .site-shell-mobile-link-sub {
  color: rgba(14, 165, 233, 0.6);
}

.site-shell-mobile-link:hover::before,
.site-shell-mobile-link:focus::before {
  opacity: 1;
}

.site-shell-mobile-link:hover::after,
.site-shell-mobile-link:focus::after {
  width: 10px;
}

/* ---- Active link ---- */
.site-shell-mobile-link.is-active .site-shell-mobile-link-label {
  color: #fff;
}

.site-shell-mobile-link.is-active::before {
  color: var(--site-shell-accent, #7dd3fc);
  opacity: 1;
}

/* ---- Mobile menu footer ---- */
.site-shell-mobile-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease;
}

.site-shell-mobile-menu.is-open .site-shell-mobile-footer {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.44s;
}

.site-shell-mobile-footer-text {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Body scroll lock when menu is open */
body.site-menu-open {
  overflow: hidden;
}

.site-shell-context-nav {
  position: sticky;
  top: var(--site-shell-nav-height);
  z-index: 900;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 7, 10, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-shell-context-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
}

.site-shell-context-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--site-shell-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-shell-context-link:hover,
.site-shell-context-link:focus-visible {
  color: var(--site-shell-text);
  border-color: rgba(255, 255, 255, 0.14);
}

.site-shell-footer {
  margin-top: clamp(24px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(14, 165, 233, 0.08), transparent 40%),
    rgba(7, 7, 9, 0.78);
}

.site-shell-footer-inner {
  padding: clamp(34px, 6vw, 56px) 0 30px;
}

.site-shell-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr);
  gap: 36px;
}

.site-shell-footer-brand {
  display: grid;
  gap: 14px;
}

.site-shell-footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--site-shell-text);
  text-decoration: none;
}

.site-shell-footer-mark img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.site-shell-footer-name {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.site-shell-footer-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.site-shell-footer-desc {
  max-width: 420px;
  margin: 0;
  color: var(--site-shell-muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-shell-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.site-shell-footer-heading {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-shell-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-shell-footer-links a {
  color: var(--site-shell-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s ease;
}

.site-shell-footer-links a:hover,
.site-shell-footer-links a:focus-visible {
  color: var(--site-shell-text);
}

.site-shell-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
}

.site-shell-footer-bottom span:last-child {
  margin-left: auto;
  max-width: min(46vw, 440px);
  text-align: right;
}

/* ==========================================================================
   RESPONSIVE — ordered from largest to smallest
   Breakpoints: 1280, 1120, 1024, 960, 820, 768, 640, 540, 480, 430, 390, 360, 344
   ========================================================================== */

@media (max-width: 1280px) {
  .site-shell-nav-links {
    gap: 6px;
  }

  .site-shell-nav-link {
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 1120px) {
  .site-shell-nav-links {
    gap: 4px;
  }

  .site-shell-nav-link {
    padding: 0 10px;
    font-size: 11px;
  }

  .site-shell-footer-main {
    grid-template-columns: 1fr;
  }

  .site-shell-footer-bottom span:last-child {
    margin-left: 0;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 1024px) {
  /* ---- Swap to burger mode (covers iPad Pro portrait @ 1024px) ----
     Previously kicked in at 960px which left "OPEN WORKSPACE" + utility
     chrome overflowing on iPad-class viewports. Burger-and-mobile-menu
     UI/UX is identical to the existing small-screen experience. */
  .site-shell-nav-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .site-shell-nav-links {
    display: none;
  }

  .site-shell-burger {
    display: inline-flex;
  }

  .site-shell-nav-right {
    gap: 8px;
  }

  .site-shell-utility {
    gap: 6px;
  }

  .site-shell-subscription-pill,
  .site-shell-buy-btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .site-shell-account-btn {
    width: 32px;
    height: 32px;
  }

  .site-shell-credits-pill {
    font-size: 11px;
  }

  .site-shell-footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .site-shell-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .site-shell-footer-main {
    gap: 28px;
  }

  .site-shell-footer-inner {
    padding: clamp(28px, 5vw, 44px) 0 24px;
  }

  .site-shell-footer-desc {
    font-size: 13px;
    max-width: none;
  }

  .site-shell-footer-name {
    font-size: 24px;
  }

  .site-shell-footer-links a {
    font-size: 13px;
  }

  .site-shell-footer-heading {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .site-shell-footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
  }
}

@media (max-width: 768px) {
  :root {
    --site-shell-nav-height: 60px;
  }

  .site-shell-brand img {
    width: 34px;
    height: 34px;
  }

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

  .site-shell-burger {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .site-shell-utility {
    gap: 5px;
  }

  .site-shell-subscription-pill {
    max-width: 120px;
    padding: 0 8px;
    font-size: 10px;
    min-height: 30px;
  }

  .site-shell-subscription-pill .subscription-text {
    max-width: 70px;
  }

  .site-shell-buy-btn {
    min-height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }

  .site-shell-account-btn {
    width: 30px;
    height: 30px;
  }

  .site-shell-credits-pill {
    font-size: 10px;
    padding: 0 8px;
  }

  .site-shell-context-nav-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }

  .site-shell-context-link {
    min-height: 30px;
    padding: 0 11px;
    font-size: 10px;
    white-space: nowrap;
  }

  .site-shell-mobile-link {
    padding: 18px 0 18px 40px;
  }

  .site-shell-mobile-link-label {
    font-size: clamp(26px, 7vw, 36px);
  }

  .site-shell-mobile-link::before {
    font-size: 13px;
    top: 20px;
  }

  .site-shell-mobile-link::after {
    top: 22px;
  }

  .site-shell-footer-inner {
    padding: clamp(28px, 5vw, 42px) 0 24px;
  }

  .site-shell-footer-desc {
    font-size: 13px;
  }

  .site-shell-footer-links a {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  :root {
    --site-shell-nav-height: 56px;
  }

  body.has-site-shell {
    padding-top: var(--site-shell-nav-height);
  }

  .site-shell-brand img {
    width: 32px;
    height: 32px;
  }

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

  .site-shell-subscription-pill,
  .site-shell-buy-btn {
    display: none;
  }

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

  .site-shell-account-btn {
    width: 28px;
    height: 28px;
  }

  .site-shell-credits-pill {
    font-size: 10px;
    padding: 0 6px;
    min-height: 28px;
  }

  .site-shell-context-nav-inner {
    gap: 6px;
    padding: 8px 0;
  }

  .site-shell-context-link {
    min-height: 28px;
    padding: 0 10px;
    font-size: 9px;
  }

  .site-shell-burger {
    width: 38px;
    height: 38px;
    gap: 4px;
    border-radius: 11px;
  }

  .site-shell-burger span {
    width: 16px;
  }

  .site-shell-mobile-panel {
    padding: calc(var(--site-shell-nav-height, 56px) + 40px) clamp(16px, 4vw, 32px) 32px;
  }

  .site-shell-mobile-link {
    padding: 16px 0 16px 38px;
  }

  .site-shell-mobile-link-label {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  .site-shell-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .site-shell-footer-inner {
    padding: clamp(24px, 4vw, 36px) 0 20px;
  }

  .site-shell-footer-name {
    font-size: 22px;
  }

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

  .site-shell-footer-links a {
    font-size: 12px;
  }

  .site-shell-footer-heading {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .site-shell-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 24px;
    padding-top: 16px;
  }

  .site-shell-footer-bottom span:last-child {
    max-width: none;
    text-align: left;
  }

  .site-shell-footer-bottom span {
    font-size: 11px;
  }
}

@media (max-width: 540px) {
  .site-shell-mobile-panel {
    padding: calc(var(--site-shell-nav-height, 56px) + 36px) 16px 28px;
  }

  .site-shell-mobile-link {
    padding: 15px 0 15px 36px;
  }

  .site-shell-mobile-link-label {
    font-size: clamp(22px, 6vw, 28px);
  }

  .site-shell-mobile-link-sub {
    font-size: 10px;
  }

  .site-shell-footer-name {
    font-size: 24px;
  }

  .site-shell-footer-tag {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  :root {
    --site-shell-nav-height: 52px;
    --site-shell-gutter: 6px;
  }

  .site-shell-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .site-shell-brand-wordmark {
    font-size: 20px;
    letter-spacing: 0.06em;
  }

  .site-shell-burger {
    width: 36px;
    height: 36px;
    gap: 4px;
    border-radius: 10px;
  }

  .site-shell-burger span {
    width: 15px;
    height: 1.5px;
  }

  .site-shell-mobile-panel {
    padding: calc(var(--site-shell-nav-height, 52px) + 32px) 14px 24px;
  }

  .site-shell-mobile-link {
    padding: 14px 0 14px 34px;
  }

  .site-shell-mobile-link-label {
    font-size: clamp(20px, 5.5vw, 26px);
  }

  .site-shell-mobile-link-sub {
    font-size: 10px;
  }

  .site-shell-mobile-link::before {
    font-size: 12px;
    top: 16px;
  }

  .site-shell-mobile-link::after {
    top: 18px;
    left: 26px;
  }

  .site-shell-context-nav-inner {
    gap: 5px;
    padding: 7px 0;
  }

  .site-shell-context-link {
    min-height: 26px;
    padding: 0 8px;
    font-size: 9px;
  }

  .site-shell-footer-inner {
    padding: 24px 0 20px;
  }

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

  .site-shell-footer-heading {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .site-shell-footer-links a {
    font-size: 12px;
  }

  .site-shell-footer-links {
    gap: 6px;
  }

  .site-shell-footer-bottom {
    font-size: 11px;
    gap: 8px;
    margin-top: 24px;
    padding-top: 14px;
  }
}

@media (max-width: 430px) {
  .site-shell-utility {
    display: none;
  }

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

  .site-shell-brand {
    gap: 10px;
  }

  .site-shell-mobile-link {
    padding: 13px 0 13px 32px;
  }

  .site-shell-mobile-link-label {
    font-size: clamp(19px, 5vw, 24px);
  }

  /* Footer — 430px */
  .site-shell-footer-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-shell-footer-inner {
    padding: clamp(20px, 3vh, 28px) 0 16px;
  }

  .site-shell-footer-desc {
    font-size: 11px;
  }

  .site-shell-footer-heading {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .site-shell-footer-links a {
    font-size: 11px;
  }

  .site-shell-footer-links {
    gap: 5px;
  }

  .site-shell-footer-bottom {
    font-size: 10px;
    gap: 6px;
    margin-top: 16px;
    padding-top: 10px;
  }

  .site-shell-footer-name {
    font-size: 18px;
  }

  .site-shell-footer-tag {
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .site-shell-context-nav-inner {
    gap: 4px;
    padding: 6px 0;
  }

  .site-shell-context-link {
    min-height: 24px;
    padding: 0 7px;
    font-size: 8px;
  }

  .site-shell-brand img {
    width: 28px;
    height: 28px;
  }

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

  .site-shell-brand {
    gap: 8px;
  }

  .site-shell-burger {
    width: 34px;
    height: 34px;
  }

  .site-shell-burger span {
    width: 14px;
  }

  .site-shell-mobile-link {
    padding: 12px 0 12px 30px;
  }

  .site-shell-mobile-link-label {
    font-size: clamp(18px, 4.8vw, 22px);
  }

  .site-shell-mobile-link-sub {
    font-size: 9px;
  }

  .site-shell-mobile-link::before {
    font-size: 11px;
    top: 14px;
  }

  .site-shell-mobile-link::after {
    top: 16px;
    left: 24px;
  }

  /* Footer — 390px */
  .site-shell-footer-inner {
    padding: clamp(18px, 2.5vh, 24px) 0 14px;
  }

  .site-shell-footer-desc {
    font-size: 11px;
    max-width: 100%;
  }

  .site-shell-footer-heading {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .site-shell-footer-links a {
    font-size: 10px;
  }

  .site-shell-footer-links {
    gap: 4px;
  }

  .site-shell-footer-bottom {
    font-size: 9px;
    gap: 5px;
    margin-top: 14px;
    padding-top: 8px;
  }

  .site-shell-footer-mark img {
    width: 24px;
    height: 24px;
  }

  .site-shell-footer-name {
    font-size: 16px;
  }

  .site-shell-footer-tag {
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  :root {
    --site-shell-gutter: 4px;
  }

  .site-shell-brand-wordmark {
    font-size: 17px;
    letter-spacing: 0.04em;
  }

  .site-shell-burger {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    gap: 3px;
  }

  .site-shell-burger span {
    width: 13px;
    height: 1.5px;
  }

  .site-shell-mobile-panel {
    padding: calc(var(--site-shell-nav-height, 52px) + 28px) 12px 20px;
  }

  .site-shell-mobile-link {
    padding: 11px 0 11px 28px;
  }

  .site-shell-mobile-link-label {
    font-size: clamp(17px, 4.5vw, 20px);
  }

  .site-shell-mobile-footer-text {
    font-size: 11px;
  }

  .site-shell-footer-bottom {
    font-size: 10px;
  }
}

@media (max-width: 344px) {
  .site-shell-brand-wordmark {
    font-size: 16px;
  }

  .site-shell-brand img {
    width: 26px;
    height: 26px;
  }

  .site-shell-burger {
    width: 30px;
    height: 30px;
  }

  .site-shell-mobile-link {
    padding: 10px 0 10px 26px;
  }

  .site-shell-mobile-link-label {
    font-size: 16px;
  }

  .site-shell-mobile-link-sub {
    font-size: 9px;
  }

  .site-shell-mobile-link::before {
    font-size: 10px;
  }

  /* Footer — 344px */
  .site-shell-footer-inner {
    padding: clamp(16px, 2vh, 20px) 0 12px;
  }

  .site-shell-footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-shell-footer-desc {
    font-size: 10px;
    max-width: none;
  }

  .site-shell-footer-heading {
    font-size: 8px;
    margin-bottom: 5px;
  }

  .site-shell-footer-links a {
    font-size: 10px;
  }

  .site-shell-footer-links {
    gap: 4px;
  }

  .site-shell-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    font-size: 8px;
    gap: 4px;
    margin-top: 12px;
    padding-top: 8px;
  }

  .site-shell-footer-bottom span:last-child {
    max-width: none;
    text-align: left;
  }

  .site-shell-footer-mark img {
    width: 22px;
    height: 22px;
  }

  .site-shell-footer-name {
    font-size: 14px;
  }

  .site-shell-footer-tag {
    font-size: 8px;
  }
}

/* ==========================================================================
   Footer Consistency Overrides
   ========================================================================== */

.site-shell-footer {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 9, 0.78);
}

.site-shell-footer-inner.site-shell-container {
  width: min(calc(100% - 56px), 1400px);
}

.site-shell-footer-inner {
  padding: clamp(28px, 4vw, 44px) 0 clamp(18px, 3vw, 26px);
}

.site-shell-footer-main {
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.9fr);
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
}

.site-shell-footer-brand {
  gap: 8px;
}

.site-shell-footer-mark {
  gap: 8px;
}

.site-shell-footer-mark img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.site-shell-footer-name {
  font-size: 22px;
  letter-spacing: 0.06em;
}

.site-shell-footer-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
}

.site-shell-footer-desc {
  max-width: 360px;
  color: rgba(226, 232, 240, 0.48);
  font-size: 13px;
  line-height: 1.62;
}

.site-shell-footer-cols {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 28px);
}

.site-shell-footer-heading {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-shell-footer-links {
  gap: 8px;
}

.site-shell-footer-links a {
  font-size: 13px;
}

.site-shell-footer-bottom {
  gap: 8px;
  margin-top: clamp(18px, 3vw, 28px);
  padding-top: clamp(14px, 2vw, 18px);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.site-shell-footer-bottom span:last-child {
  max-width: none;
}

@media (max-width: 900px) {
  .site-shell-footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-shell-footer-desc {
    max-width: 100%;
  }

  .site-shell-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }
}

@media (max-width: 520px) {
  .site-shell-footer-inner.site-shell-container {
    width: min(calc(100% - 36px), 1400px);
  }

  .site-shell-footer-inner {
    padding: 28px 0 18px;
  }

  .site-shell-footer-main {
    gap: 22px;
  }

  .site-shell-footer-cols {
    gap: 18px 16px;
  }

  .site-shell-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-shell-footer-bottom span:last-child {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .site-shell-footer-cols {
    grid-template-columns: 1fr;
  }
}
