/* ==========================================================================
   SCALEWOVEN TRY ON STUDIO · LANDING & STUDIOS HUB STYLESHEET
   Zero-Bloat, High-Performance, Luxury Editorial Dark Mode Aesthetic
   ========================================================================== */

:root {
  --bg-deep: #0a090e;
  --bg-surface: #13101b;
  --bg-card: rgba(23, 19, 32, 0.72);
  --bg-card-hover: rgba(33, 27, 46, 0.88);
  --bg-elevated: #1a1626;

  --gold-primary: #d8b870;
  --gold-light: #f3e5b8;
  --gold-glow: rgba(216, 184, 112, 0.28);
  --gold-border: rgba(216, 184, 112, 0.22);
  --gold-border-bright: rgba(216, 184, 112, 0.65);

  --rose-glow: rgba(229, 164, 164, 0.22);
  --plum-glow: rgba(136, 57, 85, 0.25);
  --teal-glow: rgba(45, 212, 191, 0.22);
  --violet-glow: rgba(167, 139, 250, 0.22);

  --text-main: #fbf9f5;
  --text-muted: #aba2b3;
  --text-subtle: #736b7c;
  --border-line: rgba(255, 255, 255, 0.08);

  --font-display: 'Italiana', 'Didot', 'Playfair Display', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(216, 184, 112, 0.12), transparent 70%),
    radial-gradient(circle 600px at 85% 30%, rgba(136, 57, 85, 0.09), transparent 60%),
    radial-gradient(circle 500px at 15% 70%, rgba(45, 212, 191, 0.06), transparent 50%),
    var(--bg-deep);
}

/* --------------------------------------------------------------------------
   Atmospheric Lighting & Vignettes
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  transition: transform 0.8s var(--ease-out);
}
.glow-gold {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  background: rgba(10, 9, 14, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-line);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: 0.16em;
  color: var(--text-main);
  text-transform: uppercase;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.wordmark-dot {
  color: var(--gold-primary);
  text-shadow: 0 0 10px var(--gold-primary);
  margin-left: 2px;
}

.brand-separator {
  width: 1px;
  height: 20px;
  background: var(--border-line);
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perf-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.24);
  color: #5eead4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.perf-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
  animation: pulse-ring 2s infinite var(--ease-in-out);
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.help-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.help-pill-btn:hover {
  background: rgba(216, 184, 112, 0.12);
  border-color: var(--gold-border);
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(48px, 8vw, 84px) clamp(20px, 5vw, 64px) clamp(32px, 5vw, 56px);
  max-width: 1040px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  background: rgba(216, 184, 112, 0.08);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-sparkle {
  color: var(--gold-primary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 78px);
  line-height: 1.08;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #fff 20%, var(--gold-light) 65%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 auto;
  max-width: 860px;
}

.stat-item {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  background: rgba(216, 184, 112, 0.04);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Filter Category Tabs
   -------------------------------------------------------------------------- */
.filter-section {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px 32px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(19, 16, 27, 0.85);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
}

.filter-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
  background: var(--gold-primary);
  color: #0a090e;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   Studio Cards Grid
   -------------------------------------------------------------------------- */
.studios-container {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 72px;
  width: 100%;
}

.studios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* Studio Card */
.studio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  padding: 30px 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
  overflow: hidden;
}

.studio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.studio-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--gold-border-bright);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.65), 0 0 28px -6px var(--card-glow, var(--gold-glow));
}

.studio-card.is-hidden {
  display: none !important;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-index {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--card-accent, var(--gold-primary));
  font-weight: 600;
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-line);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

/* Visual Illustration Showcase Box */
.card-visual-box {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.3));
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.studio-card:hover .card-visual-box {
  border-color: rgba(216, 184, 112, 0.28);
}

.card-visual-bg-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  background: var(--card-glow, var(--gold-glow));
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}

.studio-card:hover .card-visual-bg-glow {
  opacity: 0.65;
  transform: scale(1.2);
}

.card-svg-icon {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  transition: transform 0.4s var(--ease-out);
}

.studio-card:hover .card-svg-icon {
  transform: scale(1.08) translateY(-2px);
}

/* Animated SVG Elements */
.shimmer-pulse {
  animation: shine-sweep 3s infinite linear;
}
@keyframes shine-sweep {
  0% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-3px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.3; }
}

.flutter-eye {
  transform-origin: center;
  animation: flutter-subtle 4s infinite ease-in-out;
}
@keyframes flutter-subtle {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.92); }
}

.gem-twinkle {
  animation: twinkle-spark 2.5s infinite ease-in-out;
}
@keyframes twinkle-spark {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.3) rotate(90deg); opacity: 1; }
}

/* Card Content */
.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.18;
  color: #fff;
  font-weight: 400;
  margin-bottom: 6px;
}

.card-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--card-accent, var(--gold-primary));
  margin-bottom: 12px;
}

.card-description {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Tech Spec Badges */
.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.spec-badge {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-line);
  color: var(--text-subtle);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Card Actions */
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.btn-enter-studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #0a090e;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 3px 14px var(--gold-glow);
  transition: all 0.25s var(--ease-out);
}

.btn-enter-studio:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 184, 112, 0.45);
  filter: brightness(1.08);
}

.btn-quick-tryon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn-quick-tryon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-border);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Performance Architecture Assurance Banner
   -------------------------------------------------------------------------- */
.architecture-section {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto 80px;
  padding: 0 clamp(16px, 4vw, 48px);
}

.architecture-card {
  padding: 36px clamp(20px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(19, 16, 27, 0.95), rgba(10, 9, 14, 0.9));
  border: 1px solid var(--border-line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  align-items: center;
  backdrop-filter: blur(20px);
}

.arch-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 10px;
  color: #fff;
}

.arch-header p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.arch-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pillar-item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-line);
}

.pillar-icon {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}

.pillar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   Quick-Launch Dynamic Modal Container
   -------------------------------------------------------------------------- */
.quick-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  z-index: 1000;
}

.quick-dialog::backdrop {
  background: rgba(4, 3, 6, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.quick-dialog-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
}

.quick-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(19, 16, 27, 0.95);
  border-bottom: 1px solid var(--border-line);
}

.quick-header-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quick-studio-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
}

.quick-badge-sandbox {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #5eead4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quick-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-open-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(216, 184, 112, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.btn-open-fullscreen:hover {
  background: var(--gold-primary);
  color: #0a090e;
}

.btn-close-dialog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-close-dialog:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: rotate(90deg);
}

/* Quick Frame Sandbox */
.quick-frame-sandbox {
  flex-grow: 1;
  position: relative;
  width: 100%;
  height: calc(100% - 64px);
  background: #000;
}

.quick-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  z-index: 10;
  gap: 16px;
  transition: opacity 0.4s var(--ease-out);
}

.loading-spinner-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(216, 184, 112, 0.18);
  border-top-color: var(--gold-primary);
  animation: spin 0.9s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.loading-sublabel {
  font-size: 12px;
  color: var(--text-subtle);
}

.studio-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --------------------------------------------------------------------------
   Info & Architecture Modal
   -------------------------------------------------------------------------- */
.info-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 92vw);
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--text-main);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  z-index: 1100;
}

.info-dialog::backdrop {
  background: rgba(4, 3, 6, 0.75);
  backdrop-filter: blur(8px);
}

.info-dialog-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.info-dialog-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.info-dialog-body p {
  margin-bottom: 14px;
}

.info-dialog-close {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--gold-primary);
  color: #0a090e;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.info-dialog-close:hover {
  filter: brightness(1.1);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-line);
  background: rgba(10, 9, 14, 0.95);
  padding: 36px clamp(16px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--text-main);
  text-decoration: none;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-subtle);
}

.footer-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-line);
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

/* --------------------------------------------------------------------------
   Responsive Design & Mobile Tuning
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .site-header {
    padding: 14px 18px;
  }
  .brand-separator, .brand-tagline {
    display: none;
  }
  .perf-pill span:not(.perf-pulse) {
    display: none;
  }
  .studios-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .architecture-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 36px;
  }
  .stats-ribbon {
    grid-template-columns: 1fr 1fr;
  }
  .card-actions {
    grid-template-columns: 1fr;
  }
  .btn-enter-studio, .btn-quick-tryon {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   View Transitions Support
   -------------------------------------------------------------------------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
  animation-timing-function: var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* Studio hub: a calm catalog built around choosing a studio. */
:root {
  --bg-deep: #f6f1eb;
  --bg-card: #fffdf9;
  --bg-card-hover: #fff;
  --text-main: #292323;
  --text-muted: #625b58;
  --text-subtle: #6f6662;
  --border-line: #ded5cb;
  --gold-primary: #7c2948;
  --gold-light: #7c2948;
  --gold-border: #ccb6bf;
  --gold-border-bright: #a96b83;
}
html, body { background: #f6f1eb; color: var(--text-main); }
body { background: radial-gradient(circle at 90% 4%, #efe3df 0, transparent 30%), #f6f1eb; }
.ambient-glow { display: none; }
.site-header { background: #fffaf5; border-color: #ded5cb; backdrop-filter: none; padding: 17px clamp(18px, 4vw, 56px); }
.brand-group { gap: 12px; }
.wordmark { color: #2b2225; letter-spacing: .1em; }
.brand-separator { background: #cfc3b9; }
.brand-tagline { color: #655753; }
.perf-pill { background: #f4e8e8; border-color: #e8d2d7; color: #78324b; text-transform: none; letter-spacing: 0; }
.perf-pulse { background: #a85d72; box-shadow: none; animation: none; }
.help-pill-btn { color: #46383b; background: #fff; border-color: #d6c9c1; }
.help-pill-btn:hover { color: #702944; background: #f7edf0; }
.hero { max-width: 1320px; text-align: left; padding: clamp(54px, 7vw, 96px) clamp(20px, 5vw, 64px) 55px; margin: 0 auto; }
.hero-eyebrow { padding: 0; border: 0; background: none; color: #7c2948; font-size: 12px; letter-spacing: .14em; margin-bottom: 20px; }
.hero-sparkle { color: #9d5470; }
.hero-title { max-width: 790px; color: #2b2225; font-size: clamp(55px, 7.7vw, 106px); line-height: .94; letter-spacing: -.035em; margin-bottom: 25px; }
.hero-title em { color: #7c2948; background: none; -webkit-text-fill-color: currentColor; }
.hero-lede { max-width: 610px; margin: 0; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; color: #625b58; }
.stats-ribbon { display: none; }
.filter-section { justify-content: flex-start; max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px) 28px; }
.filter-bar { width: 100%; border: 0; border-bottom: 1px solid #d8cbc3; border-radius: 0; background: transparent; padding: 0; gap: 7px; backdrop-filter: none; }
.filter-btn { border-radius: 0; padding: 12px 15px; color: #625854; font-size: 13px; border-bottom: 2px solid transparent; }
.filter-btn:hover { background: #efe4df; color: #61283e; }
.filter-btn.active { background: transparent; color: #70263f; border-bottom-color: #7c2948; box-shadow: none; }
.studios-container { max-width: 1320px; padding: 0 clamp(20px, 5vw, 64px) 86px; }
.studios-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.studio-card { min-width: 0; padding: 22px; border-radius: 6px; background: #fffdf9; border: 1px solid #ded5cb; backdrop-filter: none; box-shadow: 0 3px 12px rgba(52, 32, 36, .035); transition: border-color .2s, box-shadow .2s, transform .2s; }
.studio-card::before { display: none; }
.studio-card:hover { background: #fff; border-color: #b68c9b; box-shadow: 0 10px 25px rgba(52, 32, 36, .09); transform: translateY(-2px); }
.card-header { align-items: center; gap: 8px; margin-bottom: 15px; }
.card-index { color: #7c2948; font-size: 10px; letter-spacing: .1em; }
.card-status-badge { display: none; }
.card-visual-box { height: 110px; border: 0; border-radius: 4px; background: #f6eee9; margin-bottom: 18px; }
.card-visual-bg-glow { opacity: .12; }
.card-svg-icon { width: 67px; height: 67px; }
.card-title { color: #2d2525; font-size: 27px; margin-bottom: 7px; }
.card-tagline { color: #7c2948; font-size: 12px; line-height: 1.4; margin-bottom: 8px; }
.card-description { color: #655d59; font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; }
.card-specs { display: none; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.btn-enter-studio { flex: 1 1 125px; border-radius: 4px; background: #7c2948; color: #fff; box-shadow: none; font-size: 12px; padding: 11px 12px; }
.btn-enter-studio:hover { background: #622039; box-shadow: none; filter: none; transform: none; }
.btn-quick-tryon { flex: 1 1 105px; border-radius: 4px; background: #fff; color: #73304a; border-color: #d7bdc6; padding: 10px 9px; font-size: 11px; }
.btn-quick-tryon:hover { background: #f9f0f2; color: #622039; border-color: #ae8797; transform: none; }
.architecture-section { display: none; }
.site-footer { border-color: #ded5cb; color: #625b58; }
.footer-wordmark { color: #2b2225; }
.footer-telemetry { background: #fffaf5; border-color: #ded5cb; }
:is(.filter-btn, .btn-enter-studio, .btn-quick-tryon, .help-pill-btn):focus-visible { outline: 3px solid #9f5871; outline-offset: 3px; }
@media (max-width: 1150px) { .studios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .site-header { gap: 12px; }
  .brand-tagline, .brand-separator, .perf-pill { display: none; }
  .hero { padding-top: 48px; padding-bottom: 38px; }
  .hero-title { font-size: clamp(48px, 13vw, 68px); }
  .filter-section { padding-bottom: 20px; }
  .filter-bar { overflow-x: auto; }
  .studios-grid { grid-template-columns: 1fr; gap: 14px; }
  .studio-card { padding: 20px; }
  .card-visual-box { height: 100px; }
  .card-description { -webkit-line-clamp: 2; }
}

/* Keep tenant branding readable on the hub's ivory canvas. */
.site-header.store-branded-header .store-brand-name { color: #2b2225; }
.site-header.store-branded-header .store-powered-by { color: #655753; }
.site-header .store-tenant-pill { color: #403438; background: #fff; border-color: #d6c9c1; }
.site-header .store-subdomain-tag { color: #655753; }
.site-footer { background: #eee5dd; }
.site-footer .footer-wordmark { color: #2b2225; }
.site-footer .footer-copy { color: #625b58; }
.card-description { display: block; overflow: visible; -webkit-line-clamp: unset; }
