<style>
    /* =========================================================================
       CINEMATOGRAPHIC DESIGN TOKENS: OBSIDIAN CINEMA (DARK) & DAYLIGHT (LIGHT)
       ========================================================================= */
    :root[data-theme="light"] {
      --bg-main: #f4f7fa;
      --bg-header: rgba(255, 255, 255, 0.86);
      --bg-card: rgba(255, 255, 255, 0.9);
      --bg-card-sub: #edf2f7;
      --bg-input: #ffffff;
      --bg-footer: #e8eef5;
      --text-main: #0f172a;
      --text-muted: #475569;
      --text-heading: #090d16;
      --border-color: rgba(15, 23, 42, 0.1);
      --border-highlight: rgba(217, 119, 6, 0.42);
      --specular-edge: rgba(255, 255, 255, 0.9);
      --accent-primary: #059669;
      --accent-hover: #047857;
      --accent-blue: #0284c7;
      --accent-amber: #d97706;
      --rim-glow: rgba(245, 158, 11, 0.25);
      --hero-overlay: radial-gradient(circle at 50% 45%, rgba(244, 247, 250, 0.22) 0%, rgba(244, 247, 250, 0.92) 100%);
      --center-bg: rgba(255, 255, 255, 0.88);
      --shadow-color: rgba(15, 23, 42, 0.12);
      --grain-opacity: 0.025;
      --vignette-color: rgba(245, 158, 11, 0.08);
    }

    :root[data-theme="dark"] {
      --bg-main: #070b11;
      --bg-header: rgba(7, 11, 17, 0.84);
      --bg-card: rgba(15, 23, 36, 0.84);
      --bg-card-sub: #111927;
      --bg-input: #141e30;
      --bg-footer: #05080d;
      --text-main: #e2e8f0;
      --text-muted: #94a3b8;
      --text-heading: #f8fafc;
      --border-color: rgba(255, 255, 255, 0.09);
      --border-highlight: rgba(251, 191, 36, 0.36);
      --specular-edge: rgba(255, 255, 255, 0.16);
      --accent-primary: #34d399;
      --accent-hover: #10b981;
      --accent-blue: #38bdf8;
      --accent-amber: #fbbf24;
      --rim-glow: rgba(251, 191, 36, 0.22);
      --hero-overlay: radial-gradient(circle at 50% 42%, rgba(7, 11, 17, 0.22) 0%, rgba(7, 11, 17, 0.92) 100%);
      --center-bg: rgba(11, 17, 28, 0.88);
      --shadow-color: rgba(228, 244, 228, 0.58);
      --grain-opacity: 0.045;
      --vignette-color: rgba(24, 108, 44, 0.68);
    }

    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
    }

    body {
      background:
        radial-gradient(ellipse 80% 45% at 50% -8%, var(--rim-glow), transparent 70%),
        var(--bg-main);
      color: var(--text-main);
      overflow-x: hidden;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      transition: background 0.4s ease, color 0.35s ease;
      position: relative;
    }

    /* Subtle Cinematographic Film Grain & Vignette Overlay */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9990;
      opacity: var(--grain-opacity);
      background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.5px, transparent 0.5px);
      background-size: 3px 3px;
    }

    body::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9989;
      box-shadow: inset 0 0 120px var(--vignette-color);
    }

    h1, h2, h3, h4, .strategy-title, .link-card h3, .card h3 {
      font-family: 'Space Grotesk', 'Inter', sans-serif;
      letter-spacing: -0.02em;
    }

    .impact-metric-value,
    .sim-box span,
    .stat-box h3,
    #liveClock,
    .badge-tag,
    .link-badge,
    code {
      font-family: 'JetBrains Mono', monospace;
      font-variant-numeric: tabular-nums;
    }

    /* =========================================================================
       CINEMATOGRAPHIC HEADER & NAVIGATION
       ========================================================================= */
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      background: var(--bg-header);
      backdrop-filter: blur(20px) saturate(150%);
      -webkit-backdrop-filter: blur(20px) saturate(150%);
      border-bottom: 1px solid var(--border-color);
      padding: 0.7rem 1.25rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      transition: background 0.3s ease, border-color 0.3s ease;
    }

    .header-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      max-width: 1240px;
      gap: 0.75rem;
    }

    .header-right-controls {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      flex-wrap: wrap;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .logo a {
      text-decoration: none;
      display: inline-block;
    }

    .logo h1 {
      letter-spacing: 0.16em;
      font-weight: 800;
      font-size: clamp(1.1rem, 2.6vw, 1.65rem);
      text-transform: uppercase;
      background: linear-gradient(120deg, var(--accent-amber) 0%, var(--accent-primary) 55%, var(--accent-blue) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .logo h2 {
      color: var(--text-muted);
      letter-spacing: 0.18em;
      font-weight: 600;
      font-size: clamp(0.6rem, 0.95vw, 0.74rem);
      text-transform: uppercase;
    }

    .logo img {
      border-radius: 10px;
      border: 1px solid var(--border-highlight);
      box-shadow: 0 0 14px var(--rim-glow);
      object-fit: cover;
    }

    /* Theme & Language Switchers */
    .theme-toggle-btn {
      background: var(--bg-card-sub);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      padding: 0.32rem 0.75rem;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      transition: all 0.25s ease;
      user-select: none;
    }

    .theme-toggle-btn:hover {
      transform: translateY(-1px);
      border-color: var(--accent-amber);
      box-shadow: 0 4px 14px var(--rim-glow);
    }

    .lang-switcher {
      display: flex;
      align-items: center;
      background: var(--bg-card-sub);
      border: 1px solid var(--border-color);
      border-radius: 999px;
      padding: 2px;
      cursor: pointer;
      user-select: none;
    }

    .lang-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      padding: 0.25rem 0.62rem;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.76rem;
      font-weight: 700;
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .lang-btn.active {
      background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
      color: #070b11;
      box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
    }

    nav {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.4rem;
      width: 100%;
      max-width: 1220px;
    }

    nav a {
      color: var(--text-main);
      text-decoration: none;
      padding: 0.34rem 0.78rem;
      border-radius: 999px;
      background: var(--bg-card-sub);
      border: 1px solid var(--border-color);
      transition: all 0.22s ease;
      font-size: clamp(0.72rem, 1vw, 0.8rem);
      white-space: nowrap;
      font-weight: 500;
    }

    nav a:hover, nav a.active-link {
      background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
      color: #070b11;
      border-color: transparent;
      font-weight: 700;
      box-shadow: 0 0 14px var(--rim-glow);
    }

    .menu-toggle {
      display: none;
      background: var(--bg-card-sub);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      font-size: 1.35rem;
      padding: 0.2rem 0.6rem;
      border-radius: 8px;
      cursor: pointer;
    }

    /* =========================================================================
       CINEMATOGRAPHIC HERO WITH 3D WEBGL OBSERVATORY & ORBITAL GALLERY
       ========================================================================= */
    .hero {
      position: relative;
      width: 100%;
      min-height: 92vh;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      padding: max(124px, 14vh) 1rem 2.5rem;
    }

    .hero video {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: cover;
      top: 0;
      left: 0;
      z-index: -4;
      filter: brightness(0.55) contrast(1.12) saturate(1.15);
    }

    #heroHorizonCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: -3;
      pointer-events: none;
    }

    #heroWebGLContainer {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: -2;
      pointer-events: none;
    }

    #heroWebGLContainer canvas {
      display: block;
      width: 100%;
      height: 100%;
    }

    .overlay {
      position: absolute;
      inset: 0;
      background: var(--hero-overlay);
      z-index: -1;
    }

    /* Anamorphic Lens Flare Accent Across Horizon */
    .anamorphic-flare {
      position: absolute;
      top: 46%;
      left: -10%;
      width: 120%;
      height: 2px;
      background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.25) 25%, rgba(251, 191, 36, 0.75) 50%, rgba(52, 211, 153, 0.25) 75%, transparent 100%);
      filter: blur(1.5px);
      box-shadow: 0 0 24px rgba(251, 191, 36, 0.45);
      pointer-events: none;
      z-index: 2;
    }

    .circle-wrapper {
      position: relative;
      width: min(86vw, 37rem);
      aspect-ratio: 1 / 1;
      z-index: 5;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: auto;
    }

    /* Orbital Telemetry Ring */
    .orbital-ring {
      position: absolute;
      inset: 6%;
      border-radius: 50%;
      border: 1px dashed var(--border-highlight);
      animation: rotateReverse 90s linear infinite;
      pointer-events: none;
    }

    .circle-gallery {
      position: absolute;
      width: 100%;
      height: 100%;
      animation: rotate 54s linear infinite;
    }

    .circle-gallery:hover {
      animation-play-state: paused;
    }

    .circle-gallery a {
      position: absolute;
      display: block;
      width: 21.5%;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
      text-decoration: none;
    }

    .circle-gallery img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
      border: 2.5px solid var(--accent-amber);
      box-shadow: 0 10px 28px var(--shadow-color), 0 0 18px var(--rim-glow);
      transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
    }

    .circle-gallery img:hover {
      transform: scale(1.22);
      border-color: var(--accent-primary);
      box-shadow: 0 0 28px rgba(52, 211, 153, 0.65);
      z-index: 10;
    }

    .i1 { top: 0%; left: 39.25%; }
    .i2 { top: 18%; right: 3.5%; }
    .i3 { bottom: 18%; right: 3.5%; }
    .i4 { bottom: 0%; left: 39.25%; }
    .i5 { bottom: 18%; left: 3.5%; }
    .i6 { top: 18%; left: 3.5%; }

    .center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: min(50vw, 272px);
      height: min(50vw, 272px);
      padding: 1.35rem;
      border-radius: 50%;
      background: var(--center-bg);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
      border: 1px solid var(--border-highlight);
      box-shadow: inset 0 1px 1px var(--specular-edge), 0 0 50px var(--shadow-color), 0 0 26px var(--rim-glow);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      z-index: 6;
    }

    .center h2 {
      font-family: 'Instrument Serif', Georgia, serif;
      font-style: italic;
      font-size: clamp(1.35rem, 2.6vw, 1.95rem);
      color: var(--text-heading);
      font-weight: 400;
      letter-spacing: 0.02em;
    }

    .center p {
      color: #f59e0b;
      font-size: clamp(0.64rem, 1.15vw, 0.78rem);
      line-height: 1.3;
      margin-top: 0.25rem;
    }

    .center a {
      margin-top: 0.7rem;
      padding: 0.45rem 1rem;
      background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
      color: #070b11;
      text-decoration: none;
      border-radius: 999px;
      font-size: clamp(0.66rem, 1.1vw, 0.78rem);
      font-weight: 800;
      transition: all 0.25s ease;
      box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    }

    .center a:hover {
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 8px 24px rgba(52, 211, 153, 0.5);
    }

    /* =========================================================================
       GENERAL SECTIONS, GLASS PANELS & CINEMATIC TYPOGRAPHY
       ========================================================================= */
    section {
      padding: clamp(44px, 6vw, 84px) clamp(1rem, 4vw, 3rem);
      max-width: 1320px;
      margin: 0 auto;
    }

    section h2 {
      text-align: center;
      font-size: clamp(1.55rem, 3vw, 2.35rem);
      margin-bottom: 2.2rem;
      color: var(--text-heading);
      position: relative;
    }

    section h2::after {
      content: '';
      display: block;
      width: 72px;
      height: 3px;
      background: linear-gradient(90deg, var(--accent-amber), var(--accent-primary), var(--accent-blue));
      margin: 0.55rem auto 0;
      border-radius: 999px;
      box-shadow: 0 0 12px var(--rim-glow);
    }

    .app-card {
      background: var(--bg-card);
      backdrop-filter: blur(18px) saturate(140%);
      -webkit-backdrop-filter: blur(18px) saturate(140%);
      border-radius: 24px;
      border: 1px solid var(--border-color);
      border-top: 1px solid var(--specular-edge);
      padding: clamp(1.3rem, 3vw, 2.35rem);
      box-shadow: 0 20px 50px var(--shadow-color), 0 0 1px var(--border-highlight);
      margin-bottom: 2.5rem;
      transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    }

    .app-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: 1.5rem;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 1.05rem;
    }

    .app-title-badge {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    .badge-icon {
      font-size: 1.75rem;
      filter: drop-shadow(0 0 8px var(--rim-glow));
    }

    .badge-tag {
      background: rgba(251, 191, 36, 0.12);
      color: var(--accent-amber);
      border: 1px solid var(--border-highlight);
      padding: 0.24rem 0.68rem;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    /* LIVE SOLAR IMPACT DATA GRID */
    .impact-sync-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
      gap: 1rem;
      margin-top: 1rem;
    }

    .impact-metric-card {
      background: var(--bg-card-sub);
      border: 1px solid var(--border-color);
      border-top: 1px solid var(--specular-edge);
      border-radius: 16px;
      padding: 1.2rem;
      display: flex;
      flex-direction: column;
      gap: 0.28rem;
      transform-style: preserve-3d;
      will-change: transform;
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .impact-metric-card:hover {
      transform: perspective(900px) rotateX(2.5deg) rotateY(-2.5deg) translateY(-4px);
      border-color: var(--border-highlight);
      box-shadow: 0 16px 34px var(--shadow-color), 0 0 18px var(--rim-glow);
    }

    .impact-metric-label {
      font-size: 0.74rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
    }

    .impact-metric-value {
      font-size: 1.7rem;
      font-weight: 800;
      color: var(--text-heading);
      line-height: 1.2;
    }

    .impact-metric-sub {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .impact-actions-bar {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
      margin-top: 1.2rem;
      padding-top: 0.95rem;
      border-top: 1px solid var(--border-color);
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    .mini-btn {
      background: var(--bg-card-sub);
      color: var(--text-main);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 0.42rem 0.85rem;
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: all 0.22s ease;
    }

    .mini-btn:hover {
      background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
      color: #070b11;
      border-color: transparent;
      box-shadow: 0 6px 16px var(--rim-glow);
    }

    /* SOURCE SEGMENTED TOGGLE BAR FOR EQUIVALENTS CONVERTER */
    .source-pill-group {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.25rem;
    }

    .source-pill-btn {
      background: var(--bg-card-sub);
      color: var(--text-main);
      border: 1px solid var(--border-color);
      border-radius: 999px;
      padding: 0.45rem 0.95rem;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.22s ease;
    }

    .source-pill-btn.active {
      background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
      color: #070b11;
      border-color: transparent;
      box-shadow: 0 6px 18px var(--rim-glow);
    }

    /* GRID & FORMS */
    .form-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.25rem;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.42rem;
    }

    .form-group label {
      font-weight: 600;
      color: var(--text-main);
      font-size: 0.86rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .form-group select, .form-group input, .form-group textarea {
      padding: 0.72rem 0.92rem;
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      color: var(--text-main);
      font-size: 0.94rem;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
    }

    .form-group select:focus, .form-group input:focus, .form-group textarea:focus {
      border-color: var(--accent-amber);
      box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    }

    .action-btn {
      width: 100%;
      padding: 0.9rem 1.2rem;
      background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
      color: #070b11;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1rem;
      font-weight: 800;
      border: none;
      border-radius: 14px;
      cursor: pointer;
      transition: transform 0.22s, box-shadow 0.22s;
      margin-top: 1.3rem;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
    }

    .action-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(251, 191, 36, 0.38);
    }

    /* EXPERT STRATEGY COMPARISON CARDS */
    .strategy-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.25rem;
      margin-top: 1.5rem;
    }

    .strategy-card {
      background: var(--bg-card-sub);
      border-radius: 16px;
      padding: 1.3rem;
      border: 1px solid var(--border-color);
      border-top: 1px solid var(--specular-edge);
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      transition: border-color 0.3s, background 0.3s, transform 0.25s;
    }

    .strategy-card:hover {
      transform: translateY(-3px);
    }

    .strategy-card.recommended {
      border: 2px solid var(--accent-primary);
      background: rgba(52, 211, 153, 0.06);
      box-shadow: 0 12px 30px rgba(16, 185, 129, 0.14);
    }

    .strategy-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.5rem;
    }

    .strategy-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-heading);
    }

    .pros-cons {
      list-style: none;
      font-size: 0.88rem;
    }

    .pros-cons li {
      margin-bottom: 0.45rem;
      display: flex;
      align-items: flex-start;
      gap: 0.45rem;
    }

    .pro { color: var(--accent-primary); font-weight: 700; }
    .con { color: #f87171; font-weight: 700; }
    .warn { color: var(--accent-amber); font-weight: 700; }

    /* CHARTS & SIMULATION CANVAS */
    .sim-results-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
      gap: 1rem;
      margin: 1.5rem 0;
    }

    .sim-box {
      background: var(--bg-card-sub);
      padding: 1.05rem;
      border-radius: 14px;
      text-align: center;
      border: 1px solid var(--border-color);
      border-top: 1px solid var(--specular-edge);
      transform-style: preserve-3d;
      will-change: transform;
      transition: background 0.3s ease, transform 0.25s ease, border-color 0.25s ease;
    }

    .sim-box:hover {
      transform: perspective(800px) rotateX(3deg) rotateY(2deg) translateY(-3px);
      border-color: var(--border-highlight);
    }

    .sim-box span {
      display: block;
      font-size: 1.38rem;
      font-weight: 800;
      color: var(--accent-blue);
    }

    .sim-box small {
      color: var(--text-muted);
      font-size: 0.78rem;
    }

    .canvas-wrapper {
      position: relative;
      width: 100%;
      height: 245px;
      background: var(--bg-card);
      border-radius: 14px;
      padding: 0.6rem;
      border: 1px solid var(--border-color);
    }

    .canvas-wrapper canvas {
      width: 100% !important;
      height: 100% !important;
    }

    /* =========================================================================
       3D SPATIAL ENERGY RIG STAGE (#solar-expert)
       ========================================================================= */
    .rig-3d-stage {
      margin-top: 1.5rem;
      background: var(--bg-card-sub);
      border: 1px solid var(--border-highlight);
      border-radius: 20px;
      padding: 1.05rem;
      box-shadow: inset 0 1px 1px var(--specular-edge), 0 18px 40px var(--shadow-color);
    }

    .rig-3d-toolbar {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 0.65rem;
      margin-bottom: 0.85rem;
    }

    .rig-3d-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-heading);
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }

    .rig-3d-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .rig-cam-btn {
      background: var(--bg-input);
      color: var(--text-main);
      border: 1px solid var(--border-color);
      border-radius: 999px;
      padding: 0.32rem 0.72rem;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.7rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .rig-cam-btn:hover,
    .rig-cam-btn.active {
      background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
      color: #070b11;
      border-color: transparent;
      box-shadow: 0 4px 14px var(--rim-glow);
    }

    .rig-3d-viewport {
      position: relative;
      width: 100%;
      height: 330px;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border-color);
      background: radial-gradient(circle at 50% 25%, rgba(251, 191, 36, 0.14), rgba(7, 11, 17, 0.92) 75%);
      cursor: grab;
      touch-action: none;
    }

    :root[data-theme="light"] .rig-3d-viewport {
      background: radial-gradient(circle at 50% 20%, rgba(251, 191, 36, 0.22), rgba(244, 247, 250, 0.95) 80%);
    }

    .rig-3d-viewport:active {
      cursor: grabbing;
    }

    .rig-3d-viewport canvas {
      display: block;
      width: 100%;
      height: 100%;
    }

    .rig-3d-hud {
      position: absolute;
      left: 0.75rem;
      right: 0.75rem;
      bottom: 0.75rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 0.5rem;
      pointer-events: none;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.7rem;
    }

    .rig-hud-pill {
      background: rgba(7, 11, 17, 0.74);
      color: #f8fafc;
      border: 1px solid rgba(251, 191, 36, 0.35);
      backdrop-filter: blur(8px);
      padding: 0.28rem 0.65rem;
      border-radius: 999px;
    }

    /* MEDIA & CONTENT CARDS */
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
      gap: 1.5rem;
    }

    .card {
      background: var(--bg-card);
      backdrop-filter: blur(14px);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 14px 35px var(--shadow-color);
      border: 1px solid var(--border-color);
      border-top: 1px solid var(--specular-edge);
      display: flex;
      flex-direction: column;
      transform-style: preserve-3d;
      will-change: transform;
      transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
    }

    .card:hover {
      transform: perspective(1000px) rotateX(2.5deg) rotateY(-2.5deg) translateY(-6px);
      box-shadow: 0 22px 48px var(--shadow-color), 0 0 24px var(--rim-glow);
      border-color: var(--border-highlight);
    }

    .card-img-wrapper {
      width: 100%;
      aspect-ratio: 4 / 3;
      overflow: hidden;
      background: var(--bg-card-sub);
    }

    .card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.45s ease;
    }

    .card:hover img {
      transform: scale(1.06);
    }

    .card h3 {
      padding: 1rem 1.15rem 0.3rem;
      font-size: 1.06rem;
      color: var(--text-heading);
    }

    .card p {
      padding: 0 1.15rem 1.15rem;
      color: var(--text-muted);
      font-size: 0.88rem;
    }

    .card video {
      width: 100%;
      border-radius: 10px;
      margin: 0.5rem 0;
      background: #000;
    }

    /* STATS STRIP */
    .stats-container {
      background: var(--bg-card);
      backdrop-filter: blur(14px);
      border-top: 1px solid var(--border-color);
      border-bottom: 1px solid var(--border-color);
      padding: 42px 1.5rem;
      transition: background 0.3s ease;
    }

    .stats {
      max-width: 1240px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 1.5rem;
      text-align: center;
    }

    .stat-box h3 {
      font-size: clamp(1.75rem, 3.4vw, 2.55rem);
      color: var(--accent-amber);
      font-weight: 800;
    }

    .stat-box p {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    /* FAQ ACCORDION */
    .faq-container {
      max-width: 920px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
    }

    .faq-item {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-top: 1px solid var(--specular-edge);
      border-radius: 14px;
      overflow: hidden;
      transition: background 0.3s ease, border-color 0.25s ease;
    }

    .faq-item:hover {
      border-color: var(--border-highlight);
    }

    .faq-question {
      padding: 1.1rem 1.4rem;
      width: 100%;
      text-align: left;
      background: none;
      border: none;
      color: var(--text-heading);
      font-size: 1rem;
      font-weight: 600;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
    }

    .faq-answer {
      padding: 0 1.4rem 1.15rem;
      color: var(--text-muted);
      font-size: 0.9rem;
      display: none;
      line-height: 1.6;
    }

    .faq-item.active .faq-answer {
      display: block;
    }

    .faq-question span:last-child {
      color: var(--accent-primary);
      transition: transform 0.3s;
    }

    /* LINK HUB & CARDS GRID */
    main.hub-main {
      padding: clamp(24px, 4vw, 48px) clamp(1rem, 4vw, 3rem) 2rem;
      max-width: 1320px;
      margin: 0 auto;
    }

    .page-banner {
      text-align: center;
      margin-bottom: 2rem;
    }

    .page-banner h3 {
      font-size: clamp(1.55rem, 2.8vw, 2.2rem);
      color: var(--text-heading);
      font-weight: 800;
    }

    .page-banner h3::after {
      content: '';
      display: block;
      width: 64px;
      height: 3px;
      background: linear-gradient(90deg, var(--accent-amber), var(--accent-primary));
      margin: 0.6rem auto 0;
      border-radius: 2px;
    }

    .page-banner p {
      color: var(--text-muted);
      max-width: 720px;
      margin: 0.8rem auto 0;
      font-size: 0.95rem;
    }

    .search-bar-wrap {
      max-width: 560px;
      margin: 0 auto 2.2rem;
      position: relative;
    }

    .search-bar-wrap input {
      width: 100%;
      padding: 0.85rem 1.25rem;
      background: var(--bg-card);
      border: 1px solid var(--border-highlight);
      border-radius: 999px;
      color: var(--text-main);
      font-size: 0.95rem;
      outline: none;
      box-shadow: 0 10px 28px var(--shadow-color);
      transition: box-shadow 0.25s, border-color 0.25s;
    }

    .search-bar-wrap input:focus {
      border-color: var(--accent-amber);
      box-shadow: 0 0 20px var(--rim-glow);
    }

    .category-title {
      font-size: 1.18rem;
      font-weight: 700;
      color: var(--accent-primary);
      margin: 2.2rem 0 1.05rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 0.45rem;
    }

    .links-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.3rem;
    }

    .link-card {
      background: var(--bg-card);
      backdrop-filter: blur(14px);
      border: 1px solid var(--border-color);
      border-top: 1px solid var(--specular-edge);
      border-radius: 20px;
      padding: 1.45rem;
      text-decoration: none;
      color: var(--text-main);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 0.8rem;
      box-shadow: 0 14px 35px var(--shadow-color);
      transform-style: preserve-3d;
      will-change: transform;
      transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .link-card:hover {
      transform: perspective(1000px) rotateX(2.5deg) rotateY(2.5deg) translateY(-6px);
      border-color: var(--accent-amber);
      box-shadow: 0 22px 46px var(--shadow-color), 0 0 24px var(--rim-glow);
    }

    .link-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .link-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: var(--bg-card-sub);
      border: 1px solid var(--border-highlight);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.35rem;
      flex-shrink: 0;
    }

    .link-badge {
      background: rgba(251, 191, 36, 0.12);
      color: var(--accent-amber);
      border: 1px solid var(--border-highlight);
      padding: 0.22rem 0.65rem;
      border-radius: 999px;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    .link-card h3 {
      font-size: 1.06rem;
      color: var(--text-heading);
      font-weight: 700;
    }

    .link-card p {
      font-size: 0.86rem;
      color: var(--text-muted);
      line-height: 1.48;
    }

    .link-action {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--accent-blue);
      display: flex;
      align-items: center;
      gap: 0.3rem;
      margin-top: 0.25rem;
    }

    /* FLOATING CONTROL & FOOTER */
    .social {
      position: fixed;
      right: 18px;
      bottom: 18px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 1001;
    }

    .social a {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--bg-card-sub);
      color: var(--text-main);
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-size: 20px;
      box-shadow: 0 8px 22px var(--shadow-color), 0 0 14px var(--rim-glow);
      border: 1px solid var(--border-highlight);
      transition: transform 0.25s, box-shadow 0.25s;
    }

    .social a:hover {
      transform: scale(1.12);
      box-shadow: 0 0 22px var(--accent-primary);
    }

    footer {
      background: var(--bg-footer);
      color: var(--text-main);
      text-align: center;
      padding: 2.8rem 1.5rem;
      border-top: 1px solid var(--border-color);
      transition: background 0.3s ease;
    }

    /* SCROLL REVEAL CHOREOGRAPHY */
    .reveal-ready {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-visible {
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    @keyframes rotateReverse {
      from { transform: rotate(360deg); }
      to { transform: rotate(0deg); }
    }

    @media (max-width: 900px) {
      .menu-toggle { display: block; }
      nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 0.5rem;
      }
      nav.active { display: flex; }
      nav a { width: 100%; text-align: center; }
      .circle-wrapper { width: min(90vw, 325px); }
      .rig-3d-viewport { height: 270px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .circle-gallery, .orbital-ring, .reveal-ready {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
      }
    }
  </style>