/*
Theme Name: Devorielle 3D Hub
Theme URI: https://patreon.com/Devorielle
Author: Devorielle (@Devorielle3D)
Author URI: https://twitter.com/Devorielle3D
Description: Architectural Studio & Cinema Edition (v3.0) — Original YoRHa / Titanium-Obsidian 3D Environment Artist Portfolio & 18+ NSFW Commissions Hub with FOT-Rodin Pro L typography, Widescreen Cinema Stage, Filmstrip Dispatches, Studio Pricing Showroom, Live Invoice Terminal, and full visual no-code WordPress management.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: devorielle-hub
*/

@font-face {
  font-family: 'FOT-Rodin Pro L';
  src: url('assets/fonts/FOT-Rodin-Pro-L.otf') format('opentype'),
       url('assets/fonts/FOT-Rodin Pro L.otf') format('opentype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-base:          #06070a;
  --bg-elevated:      #0c0e14;
  --bg-card:          #10131b;
  --bg-card-hover:    #151924;
  --bg-subtle:        #181d29;
  --bg-glass:         rgba(12, 14, 20, 0.86);

  --border-subtle:    rgba(226, 232, 240, 0.07);
  --border-default:   rgba(226, 232, 240, 0.13);
  --border-hover:     rgba(103, 232, 249, 0.38);
  --border-accent:    rgba(103, 232, 249, 0.55);
  --border-champagne: rgba(214, 199, 169, 0.28);

  --accent-primary:   #eef2f8;
  --accent-ice:       #67e8f9;
  --accent-cerulean:  #38bdf8;
  --accent-champagne: #d6c7a9;
  --accent-dim:       rgba(103, 232, 249, 0.11);
  --accent-plat-dim:  rgba(238, 242, 248, 0.08);
  --accent-glow:      rgba(103, 232, 249, 0.20);

  --status-green:     #34d399;
  --status-green-bg:  rgba(52, 211, 153, 0.12);
  --status-amber:     #fbbf24;
  --status-amber-bg:  rgba(251, 191, 36, 0.12);
  --status-rose:      #fb7185;
  --status-rose-bg:   rgba(251, 113, 133, 0.14);
  --status-purple:    #c084fc;
  --status-purple-bg: rgba(192, 132, 252, 0.12);

  --text-primary:     #f3f6fc;
  --text-secondary:   #9ca6ba;
  --text-muted:       #616b80;
  --text-dark:        #06070a;

  --font-main:        'FOT-Rodin Pro L', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:     'FOT-Rodin Pro L', 'Space Grotesk', sans-serif;
  --font-mono:        'JetBrains Mono', 'Space Mono', monospace;

  --max-width:        1420px;
  --nav-height:       68px;
  --radius-xs:        3px;
  --radius-sm:        5px;
  --radius-md:        7px;
  --radius-lg:        10px;
  --radius-pill:      4px;

  --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
  --transition:       0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #232938;
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-ice);
}

/* ─── Architectural Studio Atmosphere ─── */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 45% at 22% 18%, rgba(103, 232, 249, 0.075) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 82% 72%, rgba(214, 199, 169, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #06070a 0%, #090b10 50%, #06070a 100%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 25%, transparent 100%);
}

#atmosphere-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.25rem;
  position: relative;
  z-index: 1;
}

/* ─── Real WordPress Image Support ─── */
.wp-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s var(--ease-out);
}

.catalogue-card:hover .wp-card-img,
.bento-item:hover .wp-card-img,
.recent-card:hover .wp-card-img,
.hero-showcase-card:hover .wp-card-img {
  transform: scale(1.05);
}

/* ─── Floating Architectural Command Dock Header ─── */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 0 2.25rem;
  margin-top: 12px;
}

body.admin-bar .topbar {
  top: 44px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .topbar {
    top: 54px;
  }
}

.topbar-inner {
  max-width: var(--max-width);
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  background: rgba(11, 13, 19, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-default);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.2) 0%, rgba(214, 199, 169, 0.15) 100%);
  border: 1px solid var(--accent-ice);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.2);
}

.brand-mark-inner {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--accent-primary);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-champagne);
}

/* Segmented Center Navigation Track */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  background: rgba(6, 7, 10, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.nav-item {
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: var(--text-dark);
  background: linear-gradient(135deg, #f3f6fc 0%, #bae6fd 100%);
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(103, 232, 249, 0.25);
}

.nav-item.active .nav-idx {
  color: #090c14;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--accent-ice);
  border-color: var(--accent-ice);
  background: rgba(103, 232, 249, 0.08);
}

.nsfw-toggle-pill {
  height: 36px;
  padding: 0 0.8rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nsfw-toggle-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.nsfw-toggle-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--status-amber);
  transition: var(--transition);
}

.nsfw-toggle-pill.uncensored {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}

.nsfw-toggle-pill.uncensored .dot {
  background: var(--status-rose);
  box-shadow: 0 0 8px var(--status-rose);
}

.pill-btn {
  height: 36px;
  padding: 0 0.95rem;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
  white-space: nowrap;
}

.pill-btn-outline {
  border: 1px solid var(--border-champagne);
  color: var(--accent-champagne);
  background: rgba(214, 199, 169, 0.05);
}

.pill-btn-outline:hover {
  background: rgba(214, 199, 169, 0.14);
  border-color: var(--accent-champagne);
  color: #fff;
}

.pill-btn-solid {
  background: var(--accent-ice);
  color: var(--text-dark);
  font-weight: 800;
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.25);
}

.pill-btn-solid:hover {
  background: #a5f3fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 22px rgba(103, 232, 249, 0.42);
}

.mobile-menu-btn {
  display: none;
}

/* ─── Page Views & Section Typography ─── */
.view-section {
  display: none;
  padding-bottom: 5rem;
  animation: viewFadeIn 0.35s var(--ease-out);
}

.view-section.active {
  display: block;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.overline-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-champagne);
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.overline-label::before {
  content: '//';
  color: var(--accent-ice);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.page-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.65;
}

.studio-banner-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

/* ─── Hero Cinema Stage (Widescreen Viewport + Briefing Console) ─── */
.hero-showcase {
  padding: 1.8rem 0 2.5rem;
}

.hero-cinema-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.32fr 0.88fr;
  gap: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  overflow: hidden;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.72);
  min-height: 510px;
}

.hero-ambient-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 35% 50%, rgba(103, 232, 249, 0.16), rgba(214, 199, 169, 0.05) 55%, transparent 75%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
  transition: background 0.5s ease;
}

.hero-right {
  position: relative;
  z-index: 1;
  border-right: 1px solid var(--border-default);
  min-height: 510px;
}

.hero-showcase-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 510px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}

/* Architectural HUD Reticle Corners */
.hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 4;
  pointer-events: none;
  border-color: rgba(103, 232, 249, 0.65);
  border-style: solid;
}
.hud-corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.hero-viewport-top-bar {
  position: absolute;
  top: 1.15rem;
  left: 1.35rem;
  right: 1.35rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.hero-card-badge-top {
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-xs);
  background: rgba(6, 7, 10, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.hero-viewport-coords {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(243, 246, 252, 0.65);
  background: rgba(6, 7, 10, 0.55);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
}

.hero-card-tag-right {
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-xs);
  background: rgba(103, 232, 249, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.42);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-ice);
}

.hero-card-art {
  width: 100%;
  height: 100%;
  min-height: 510px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.22) 0%, rgba(6, 7, 10, 0.15) 50%, rgba(6, 7, 10, 0.92) 100%);
  z-index: 1;
}

.hero-card-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card-caption-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.hero-card-caption-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-champagne);
}

.hero-viewport-inspect-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-ice);
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: rgba(103, 232, 249, 0.08);
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

/* Right Briefing Console inside Hero Shell */
.hero-left {
  position: relative;
  z-index: 1;
  padding: 2.4rem 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, rgba(16, 19, 27, 0.94) 0%, rgba(10, 12, 18, 0.98) 100%);
}

.hero-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-console-header .overline-label {
  margin-bottom: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.hero-meta-chip {
  padding: 0.22rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

.hero-meta-chip.accent {
  color: var(--accent-ice);
  border-color: rgba(103, 232, 249, 0.25);
  background: rgba(103, 232, 249, 0.07);
}

.hero-meta-divider {
  color: var(--text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--border-champagne);
  background: rgba(214, 199, 169, 0.08);
  color: var(--accent-champagne);
}

.status-badge .pulse-dot,
.comm-status-val .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
  display: inline-block;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.65rem;
  line-height: 1.68;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.cta-btn {
  height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.cta-btn-primary {
  background: linear-gradient(135deg, #f3f6fc 0%, #a5f3fc 100%);
  color: #06070a;
  box-shadow: 0 4px 20px rgba(103, 232, 249, 0.2);
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(103, 232, 249, 0.36);
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-subtle);
}

.slider-label-mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.slider-nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-arrow {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-arrow:hover {
  border-color: var(--accent-ice);
  color: var(--accent-ice);
  background: rgba(103, 232, 249, 0.08);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slider-dot {
  height: 6px;
  width: 14px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.16);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.slider-dot.active {
  width: 32px;
  background: var(--accent-ice);
  box-shadow: 0 0 10px rgba(103, 232, 249, 0.5);
}

/* ─── Latest Dispatches (4-Column Widescreen Filmstrip Cards) ─── */
.section-block {
  margin-top: 3.5rem;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.section-index-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-champagne);
}

.section-heading-accent {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: -0.01em;
}

.section-link-more {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ice);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.section-link-more:hover {
  gap: 0.55rem;
  color: var(--text-primary);
}

.archive-counter-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-champagne);
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-champagne);
  background: rgba(214, 199, 169, 0.06);
  border-radius: var(--radius-xs);
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.recent-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.recent-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.recent-thumb {
  width: 100%;
  height: 150px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.7rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.recent-meta-tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.14rem 0.45rem;
  background: rgba(6, 7, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

.recent-info {
  padding: 0.85rem 1rem;
}

.badge-mini {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  position: relative;
  z-index: 2;
}

.badge-mini.cyan {
  background: rgba(103, 232, 249, 0.16);
  color: var(--accent-ice);
  border: 1px solid rgba(103, 232, 249, 0.35);
}

.badge-mini.green {
  background: var(--status-green-bg);
  color: var(--status-green);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.badge-mini.rose {
  background: var(--status-rose-bg);
  color: var(--status-rose);
  border: 1px solid rgba(251, 113, 133, 0.38);
}

.badge-mini.amber {
  background: var(--status-amber-bg);
  color: var(--status-amber);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.recent-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.recent-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Unified Studio Command Filter & Search Console ─── */
.studio-filter-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-pill {
  height: 34px;
  padding: 0 0.85rem;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

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

.filter-pill.active {
  background: rgba(103, 232, 249, 0.12);
  color: var(--accent-ice);
  border-color: rgba(103, 232, 249, 0.4);
  font-weight: 700;
}

.search-toolbar {
  flex: 1;
  min-width: 250px;
  max-width: 390px;
}

.search-input-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 0.85rem;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 0.9rem 0 2.35rem;
  border-radius: var(--radius-xs);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-ice);
  box-shadow: 0 0 0 2px rgba(103, 232, 249, 0.12);
}

/* ─── Architectural Catalogue & Environment Cards ─── */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.env-widescreen-grid {
  grid-template-columns: repeat(2, 1fr);
}

.env-widescreen-grid .catalogue-thumb {
  height: 290px;
}

.catalogue-card {
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.catalogue-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

.catalogue-thumb {
  height: 235px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalogue-thumb-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.catalogue-ver-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background: rgba(6, 7, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  color: var(--accent-champagne);
}

.catalogue-body {
  padding: 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}

.catalogue-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.catalogue-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

.catalogue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.catalogue-inspect-btn {
  color: var(--accent-ice);
  font-weight: 700;
  white-space: nowrap;
}

/* ─── Studio Pillars Matrix (Environments View) ─── */
.studio-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}

.studio-pillar-card {
  padding: 1.35rem 1.45rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent-ice);
  border-radius: var(--radius-sm);
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-champagne);
  margin-bottom: 0.35rem;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.pillar-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── Exhibition Bento Gallery ─── */
.page-header {
  padding: 2.2rem 0 1.5rem;
}

.bento-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 325px;
  gap: 1.1rem;
}

.bento-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: var(--transition);
}

.bento-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
}

.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }
.bento-span-3 { grid-column: span 3; }
.bento-span-5 { grid-column: span 5; }
.bento-span-7 { grid-column: span 7; }

.bento-art {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.5s var(--ease-out), filter 0.35s ease;
}

.bento-top-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
}

body.nsfw-blur-active .nsfw-blurrable .bento-art,
body.nsfw-blur-active .nsfw-blurrable .catalogue-art-inner {
  filter: blur(20px) brightness(0.6);
}

.nsfw-lock-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-xs);
  background: rgba(6, 7, 10, 0.88);
  border: 1px solid rgba(251, 113, 133, 0.5);
  color: #fecdd3;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: none;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  white-space: nowrap;
}

body.nsfw-blur-active .nsfw-blurrable .nsfw-lock-badge {
  display: inline-flex;
}

.bento-bottom-bar {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.1rem 0.95rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 7, 10, 0.94) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 3;
}

.bento-item-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bento-item-specs {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.bento-open-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 7, 10, 0.65);
  color: var(--accent-ice);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.bento-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--accent-ice);
  flex-shrink: 0;
}

.bento-tag-dot.nsfw {
  background: var(--status-rose);
}

/* ─── Commissions Showroom (3-Col Matrix + Split Calculator Terminal) ─── */
.comm-status-box {
  padding: 1.1rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  min-width: 270px;
}

.comm-status-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.comm-status-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--status-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.pricing-matrix-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.pricing-box {
  padding: 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
}

.pricing-box.featured-tier {
  border-color: rgba(103, 232, 249, 0.42);
  background: linear-gradient(160deg, rgba(16, 22, 33, 0.95) 0%, rgba(12, 15, 22, 0.98) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.pricing-tier-index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-champagne);
  margin-bottom: 0.3rem;
}

.pricing-box-header {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.pricing-box-sub {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  line-height: 1.5;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.price-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-ice);
}

/* Split Interactive Calculator & Live Receipt */
.calc-split-terminal {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.75rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  margin-bottom: 2.75rem;
  align-items: start;
}

.calc-left-controls .pricing-box-header {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-champagne);
  margin-bottom: 0.75rem;
}

.calc-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.calc-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 0.86rem;
  transition: var(--transition);
}

.calc-option strong {
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

.calc-option:hover {
  border-color: var(--border-hover);
}

.calc-option.selected {
  background: rgba(103, 232, 249, 0.11);
  border-color: var(--accent-ice);
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 var(--accent-ice);
}

.calc-right-receipt {
  padding: 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-top: 3px solid var(--accent-ice);
}

.receipt-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-champagne);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.receipt-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.receipt-row.highlight {
  padding: 0.85rem 0.9rem;
  margin: 0.5rem 0 1rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-xs);
}

.calc-num-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.calc-num-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-num-value.deposit {
  color: var(--status-green);
}

.receipt-perks {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* 5-Stage Horizontal Workflow Grid */
.workflow-section-block {
  margin-bottom: 2.5rem;
}

.workflow-5grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.workflow-step-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid rgba(103, 232, 249, 0.35);
}

.workflow-step-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-ice);
  margin-bottom: 0.4rem;
}

.workflow-step-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.workflow-step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.unowned-credit-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(214, 199, 169, 0.1) 0%, rgba(16, 19, 27, 0.95) 100%);
  border: 1px solid var(--border-champagne);
}

.unowned-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.55rem 0.9rem;
  background: rgba(214, 199, 169, 0.16);
  border: 1px solid var(--accent-champagne);
  color: var(--accent-champagne);
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.unowned-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.unowned-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.docs-h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.docs-p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
  line-height: 1.7;
}

/* ─── Pipeline Workstation Telemetry Grid (2-Column Cards) ─── */
.tracker-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.tracker-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  transition: var(--transition);
}

.tracker-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.tracker-row-left {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  min-width: 0;
}

.tracker-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-xs);
  background: var(--bg-elevated);
  border: 1px solid var(--border-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--accent-champagne);
  flex-shrink: 0;
}

.tracker-main {
  min-width: 0;
  flex: 1;
}

.tracker-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.tracker-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tracker-sub-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tracker-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.14rem 0.55rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.tracker-status-pill.green { background: var(--status-green-bg); color: var(--status-green); }
.tracker-status-pill.cyan { background: rgba(103, 232, 249, 0.14); color: var(--accent-ice); }
.tracker-status-pill.amber { background: var(--status-amber-bg); color: var(--status-amber); }
.tracker-status-pill.purple { background: var(--status-purple-bg); color: var(--status-purple); }
.tracker-status-pill.rose { background: var(--status-rose-bg); color: var(--status-rose); }

.tracker-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-ice);
  width: 100%;
}

.skill-meter {
  flex: 1;
  height: 6px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.skill-meter-fill {
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent-champagne), var(--accent-ice));
}

/* ─── Standard WordPress Pages & Posts (Gutenberg / Elementor) ─── */
.wp-page-wrapper {
  padding: 2.5rem 0 5rem;
}

.wp-page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 2.5rem 3rem;
}

.wp-page-content,
.wp-entry-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.wp-page-content h2,
.wp-page-content h3,
.wp-entry-content h2,
.wp-entry-content h3 {
  color: var(--text-primary);
  font-family: var(--font-display);
  margin: 1.8rem 0 0.75rem;
}

.wp-page-content p,
.wp-entry-content p {
  margin-bottom: 1.15rem;
}

.wp-page-content img,
.wp-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* ─── Modal / Lightbox ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85);
  animation: viewFadeIn 0.25s var(--ease-out);
}

.modal-art-preview {
  height: 460px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.modal-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.modal-content {
  padding: 1.75rem 2rem;
}

.modal-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.5rem;
}

.spec-chip {
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-xs);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-champagne);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border-default);
  padding: 4rem 0 3.5rem;
  margin-top: 4rem;
  background: rgba(6, 7, 10, 0.85);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0.85rem 0 1.4rem;
  max-width: 340px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-circle:hover {
  border-color: var(--accent-ice);
  color: var(--accent-ice);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-champagne);
  margin-bottom: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-ice);
}

/* ─── Legal 18+ Age Gate Overlay ─── */
body.age-gate-locked {
  overflow: hidden;
}

.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 5, 8, 0.90);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s var(--ease-out);
}

.age-gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-gate-card {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  padding: 2.6rem 2.35rem;
  text-align: center;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.88);
  position: relative;
}

.age-gate-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent-champagne);
  border-style: solid;
}
.age-gate-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.age-gate-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.age-gate-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.age-gate-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.age-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-xs);
  background: var(--status-rose-bg);
  border: 1px solid rgba(251, 113, 133, 0.45);
  color: var(--status-rose);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.age-gate-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.15;
}

.age-gate-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.age-gate-legal-box {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-xs);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-champagne);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.75rem;
  text-align: left;
}

.age-gate-Actions-row {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.75rem;
}

/* ─── Responsive Breakpoints ─── */
@media (max-width: 1180px) {
  .hero-cinema-shell {
    grid-template-columns: 1fr;
  }
  .hero-right {
    border-right: none;
    border-bottom: 1px solid var(--border-default);
    min-height: 390px;
  }
  .hero-showcase-card,
  .hero-card-art {
    min-height: 390px;
  }
  .recent-grid,
  .catalogue-grid,
  .studio-pillars-grid,
  .pricing-matrix-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-split-terminal {
    grid-template-columns: 1fr;
  }
  .workflow-5grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-span-6, .bento-span-4, .bento-span-3, .bento-span-5, .bento-span-7 {
    grid-column: span 6;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 0 1rem;
  }
  .container {
    padding: 0 1rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(var(--nav-height) + 8px);
    left: 1rem;
    right: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    flex-direction: column;
    padding: 0.85rem;
    align-items: stretch;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .recent-grid,
  .catalogue-grid,
  .env-widescreen-grid,
  .studio-pillars-grid,
  .pricing-matrix-3col,
  .calc-options,
  .workflow-5grid,
  .tracker-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-6, .bento-span-4, .bento-span-3, .bento-span-5, .bento-span-7 {
    grid-column: span 12;
  }
  .unowned-credit-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions,
  .age-gate-Actions-row {
    grid-template-columns: 1fr;
  }
  .age-gate-card,
  .wp-page-card,
  .calc-split-terminal {
    padding: 1.5rem 1.2rem;
  }
}

@media (max-width: 520px) {
  .brand-sub,
  .pill-btn-outline,
  .hero-viewport-coords {
    display: none;
  }
  .pill-btn-solid {
    padding: 0 0.7rem;
    font-size: 0.72rem;
  }
  .nsfw-toggle-pill {
    padding: 0 0.6rem;
    font-size: 0.68rem;
  }
  .hero-right,
  .hero-showcase-card,
  .hero-card-art {
    min-height: 300px;
  }
  .hero-left {
    padding: 1.5rem 1.25rem;
  }
  .bento-gallery {
    grid-auto-rows: 250px;
  }
  .modal-art-preview {
    height: 240px;
  }
  .modal-content {
    padding: 1.25rem;
  }
}
