    :root {
      --bg: #020609;
      --bg-2: #040c14;
      --panel: rgba(255,255,255,0.04);
      --line: rgba(255,255,255,0.07);
      --text: #e0eef8;
      --muted: #7da0b8;
      --accent: #5cc8f5;
      --accent-2: #7b82ff;
      --gold: #c9a76b;
      --gold-2: #e8d5a3;
      --cinnabar: #9e3d30;
      --cinnabar-2: #c84b38;
      --bronze: #4a7c6f;
      --bronze-light: #6ba394;
      --bronze-dark: #2d4a42;
      --rust: #8b5e3c;
      --max: 1280px;
      --shadow: 0 24px 80px rgba(0,0,0,0.6);
      --shadow-sm: 0 8px 28px rgba(0,0,0,0.4);
      --shadow-glow: 0 0 60px -12px rgba(92,200,245,0.15);
      --radius: 0px;
      --radius-sm: 0px;
      --mouse-x: 0px;
      --mouse-y: 0px;
      /* Font stack with system fallbacks for instant rendering */
      --pixel-font: "Press Start 2P", "Courier New", monospace;
      --terminal-font: "VT323", "Courier New", monospace;
      --display-font: "Outfit", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
      --serif-font: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
      --pixel-accent: #5cc8f5;
      --pixel-glow: rgba(92,200,245,0.35);
      --topbar-height: 72px;
      --noise-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23fff' fill-opacity='.34'%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='11' y='13' width='1' height='1'/%3E%3Crect x='19' y='3' width='1' height='1'/%3E%3Crect x='27' y='22' width='1' height='1'/%3E%3Crect x='33' y='10' width='1' height='1'/%3E%3Crect x='45' y='7' width='1' height='1'/%3E%3Crect x='53' y='18' width='1' height='1'/%3E%3Crect x='60' y='6' width='1' height='1'/%3E%3Crect x='7' y='34' width='1' height='1'/%3E%3Crect x='16' y='28' width='1' height='1'/%3E%3Crect x='24' y='41' width='1' height='1'/%3E%3Crect x='31' y='53' width='1' height='1'/%3E%3Crect x='39' y='36' width='1' height='1'/%3E%3Crect x='48' y='47' width='1' height='1'/%3E%3Crect x='56' y='30' width='1' height='1'/%3E%3Crect x='5' y='57' width='1' height='1'/%3E%3Crect x='14' y='49' width='1' height='1'/%3E%3Crect x='22' y='60' width='1' height='1'/%3E%3Crect x='36' y='59' width='1' height='1'/%3E%3Crect x='44' y='56' width='1' height='1'/%3E%3Crect x='58' y='52' width='1' height='1'/%3E%3C/g%3E%3C/svg%3E");
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      color: var(--text);
      font-family: var(--display-font);
      background: var(--bg);
      overflow-x: hidden;
      min-height: 100dvh;
      font-size: 15px;
      line-height: 1.7;
      letter-spacing: 0.005em;
    }

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

    /* Focus styles for accessibility */
    a:focus-visible,
    button:focus-visible,
    .nav-dot:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
      border-radius: 0;
    }

    .skip-link {
      position: absolute;
      top: -100%;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10000;
      padding: 12px 20px;
      background: var(--bg);
      border: 2px solid var(--accent);
      color: var(--accent);
      font-family: var(--terminal-font);
      font-size: 16px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      transition: top 0.2s ease;
    }
    .skip-link:focus { top: 20px; }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* ===================== PIXEL TECH OVERLAYS ===================== */
    /* CRT scanlines - precomputed SVG pattern avoids real-time gradient calculation */
    #crt-scanlines {
      position: fixed;
      inset: 0;
      z-index: 9999;
      pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='2' fill='%235cc8f5' opacity='0.05'/%3E%3C/svg%3E");
      background-size: 4px 4px;
      opacity: 0.5;
      contain: paint layout style;
      transform: translateZ(0);
    }

    /* CRT vignette */
    #crt-vignette {
      position: fixed;
      inset: 0;
      z-index: 9998;
      pointer-events: none;
      background: radial-gradient(ellipse 78% 72% at 50% 50%, transparent 50%, rgba(0,0,0,0.4) 100%);
      contain: paint layout style;
      transform: translateZ(0);
    }

    /* Pixel noise texture - reduce animation frequency to lower paint churn */
    #pixel-noise {
      position: fixed;
      inset: 0;
      z-index: 9997;
      pointer-events: none;
      opacity: 0.025;
      background-image: var(--noise-texture);
      background-size: 128px 128px;
      animation: noiseShift 0.3s steps(2) infinite;
      contain: paint layout style;
      transform: translateZ(0);
    }

    @keyframes noiseShift {
      0% { transform: translate(0, 0); }
      50% { transform: translate(-2px, 1px); }
      100% { transform: translate(0, 0); }
    }

    /* Digital rain canvas */
    #matrix-rain {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      opacity: 0.06;
    }

    /* ===================== PIXEL UI CLASSES ===================== */
    .pixel-border {
      position: relative;
      image-rendering: pixelated;
      outline: 1px solid rgba(92,200,245,0.18);
    }

    .pixel-corners::before,
    .pixel-corners::after {
      content: "";
      position: absolute;
      width: 14px;
      height: 14px;
      border: 2px solid var(--pixel-accent);
      opacity: 0.3;
      pointer-events: none;
    }
    .pixel-corners::before {
      top: -1px; left: -1px;
      border-right: none; border-bottom: none;
    }
    .pixel-corners::after {
      bottom: -1px; right: -1px;
      border-left: none; border-top: none;
    }

    .pixel-divider {
      height: 2px;
      margin: 0 auto;
      max-width: 120px;
      background: linear-gradient(90deg, transparent, var(--pixel-accent) 30%, var(--pixel-accent) 70%, transparent);
      opacity: 0.3;
      image-rendering: pixelated;
      box-shadow: 0 0 8px rgba(92,200,245,0.15);
    }

    .font-pixel { font-family: var(--pixel-font); }
    .font-terminal { font-family: var(--terminal-font); }

    /* LED dot decoration */
    .led-strip {
      display: flex;
      gap: 6px;
      align-items: center;
      justify-content: center;
    }
    .led-dot {
      width: 4px; height: 4px;
      border-radius: 0;
      background: var(--pixel-accent);
      opacity: 0.2;
      animation: ledBlink 2.5s ease-in-out infinite;
    }
    .led-dot:nth-child(odd) { animation-delay: 0.3s; }
    .led-dot:nth-child(3n) { animation-delay: 0.7s; }
    .led-dot.lit { opacity: 0.8; }

    @keyframes ledBlink {
      0%, 100% { opacity: 0.15; }
      50% { opacity: 0.7; }
    }

    /* ===================== CANVAS (particle bg) ===================== */
    #particle-canvas {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      opacity: 0.6;
      image-rendering: pixelated;
    }

    /* ===================== PROGRESS BAR ===================== */
    #progress-bar {
      position: fixed;
      top: 0; left: 0;
      height: 3px;
      width: 100%;
      background: linear-gradient(90deg, var(--pixel-accent), transparent);
      z-index: 200;
      transform: scaleX(0);
      transform-origin: left center;
      will-change: transform;
    }

    /* ===================== SECTION NAV DOTS ===================== */
    #section-nav {
      position: fixed;
      right: 24px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 100;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .snav-dot {
      width: 8px; height: 8px;
      border-radius: 0;
      background: rgba(92,200,245,0.12);
      cursor: pointer;
      transition: transform 0.25s ease, background 0.25s ease;
      position: relative;
      image-rendering: pixelated;
    }

    .snav-dot::before {
      content: attr(data-label);
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      font-family: var(--terminal-font);
      font-size: 16px;
      color: var(--muted);
      white-space: nowrap;
      opacity: 0;
      transition: opacity 0.2s ease;
      letter-spacing: 0.08em;
    }

    .snav-dot:hover::before { opacity: 1; }
    .snav-dot.active {
      background: var(--pixel-accent);
      transform: scale(1.4);
    }

    /* ===================== BACKGROUND LAYERS ===================== */
    .bg-layers {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-gradient {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 50% at 8% 6%, rgba(92,200,245,0.07), transparent),
        linear-gradient(180deg, #020508 0%, #030a12 35%, #040c16 70%, #030810 100%);
    }

    .grid-overlay {
      position: absolute;
      inset: 0;
      opacity: 0.06;
      background-image:
        linear-gradient(rgba(92,200,245,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92,200,245,0.07) 1px, transparent 1px);
      background-size: 32px 32px;
      mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(0,0,0,0.9), rgba(0,0,0,0.15));
      animation: driftGrid 20s linear infinite;
      image-rendering: pixelated;
    }

    @keyframes driftGrid {
      from { transform: translate3d(0, 0, 0); }
      to { transform: translate3d(-32px, -32px, 0); }
    }

    .ambient-orb {
      position: absolute;
      border-radius: 0;
      pointer-events: none;
      image-rendering: pixelated;
      filter: blur(8px);
      transform: translateZ(0);
    }
    .ao-a {
      width: 400px; height: 400px;
      top: -60px; left: -120px;
      background: radial-gradient(circle, rgba(92,200,245,0.09), transparent 70%);
      animation: breathOrb 20s ease-in-out infinite;
    }
    .ao-b {
      width: 500px; height: 500px;
      top: 8%; right: -150px;
      background: radial-gradient(circle, rgba(123,130,255,0.08), transparent 70%);
      animation: breathOrb 25s ease-in-out infinite reverse;
    }
    .ao-c {
      width: 450px; height: 450px;
      bottom: 18%; left: 38%;
      background: radial-gradient(circle, rgba(201,167,107,0.06), transparent 72%);
      animation: breathOrb 18s ease-in-out infinite;
    }

    @keyframes breathOrb {
      0%, 100% { transform: scale(1) translate(0, 0); }
      33% { transform: scale(1.08) translate(16px, -12px); }
      66% { transform: scale(0.96) translate(-12px, 16px); }
    }

    /* ===================== PERFORMANCE ADAPTIVE MODE ===================== */
    html.perf-lite #crt-scanlines {
      mix-blend-mode: normal;
      opacity: 0.12;
    }
    html.perf-lite #crt-vignette {
      opacity: 0.32;
    }
    html.perf-lite #pixel-noise {
      opacity: 0.012;
      animation-duration: 0.5s !important;
    }
    html.perf-lite #matrix-rain {
      opacity: 0.045;
    }
    html.perf-lite #particle-canvas {
      opacity: 0.3;
    }
    html.perf-lite .grid-overlay {
      opacity: 0.035;
      animation-duration: 34s !important;
    }
    html.perf-lite .ambient-orb {
      filter: blur(10px);
      opacity: 0.72;
      animation-duration: 32s !important;
    }
    html.perf-lite .moon-glow,
    html.perf-lite .mist-layer,
    html.perf-lite .red-mist,
    html.perf-lite .bronze-ring,
    html.perf-lite .bronze-ring-inner {
      animation-duration: 30s !important;
    }
    html.perf-lite .gallery-placeholder,
    html.perf-lite .led-dot {
      animation-duration: 4s !important;
    }
    html.perf-lite .feather-float:nth-child(n+3),
    html.perf-lite .ember-particle:nth-child(n+3) {
      display: none;
    }

    html.perf-stress #matrix-rain { opacity: 0.02 !important; }
    html.perf-stress #particle-canvas { opacity: 0.18 !important; }
    html.perf-stress #pixel-noise { opacity: 0.008 !important; }
    html.perf-stress .grid-overlay { opacity: 0.02 !important; animation-duration: 46s !important; }
    html.perf-stress .ambient-orb { opacity: 0.55 !important; filter: blur(8px) !important; }
    html.perf-stress .gallery-placeholder,
    html.perf-stress .led-dot { animation-duration: 6s !important; }
    html.perf-stress .feather-float:nth-child(n+3),
    html.perf-stress .ember-particle:nth-child(n+3) { display: none !important; }

    /* perf-max: agressive mode - strip all decorative animations */
    html.perf-max .feather-float,
    html.perf-max .ember-particle,
    html.perf-max .mist-layer,
    html.perf-max .red-mist,
    html.perf-max .moon-glow,
    html.perf-max .bronze-ring,
    html.perf-max .bronze-ring-inner,
    html.perf-max .grid-overlay,
    html.perf-max .ambient-orb,
    html.perf-max .orbit-rings,
    html.perf-max .mesh-perspective,
    html.perf-max #crt-scanlines,
    html.perf-max #crt-vignette,
    html.perf-max #pixel-noise {
      display: none !important;
    }
    html.perf-max .gallery-placeholder,
    html.perf-max .led-dot {
      animation: none !important;
    }

    /* Low-end: further simplify section backgrounds */
    html.perf-lite .intro-main,
    html.perf-lite .history-wrap,
    html.perf-lite .culture-wrap,
    html.perf-lite .contact-main {
      background: var(--bg-2) !important;
    }
    html.perf-stress .intro-main,
    html.perf-stress .history-wrap,
    html.perf-stress .culture-wrap,
    html.perf-stress .contact-main,
    html.perf-stress .gallery-placeholder {
      background: var(--bg) !important;
    }

    /* Initial boot phase: prioritize first paint, then release effects */
    body.booting #matrix-rain,
    body.booting #particle-canvas,
    body.booting #pixel-noise {
      display: none !important;
    }
    body.booting .grid-overlay,
    body.booting .ambient-orb,
    body.booting .moon-glow,
    body.booting .mist-layer,
    body.booting .red-mist,
    body.booting .feather-float,
    body.booting .ember-particle {
      animation-play-state: paused !important;
    }

    /* Scroll phase: keep decorative motion from competing with gesture frames */
    body.is-scrolling .feather-float,
    body.is-scrolling .ember-particle,
    body.is-scrolling .moon-glow,
    body.is-scrolling .grid-overlay,
    body.is-scrolling .ambient-orb,
    body.is-scrolling .led-dot,
    body.is-scrolling .gallery-placeholder {
      animation-play-state: paused !important;
    }
    /* Remove expensive CSS filters during scroll to free paint budget */
    body.is-scrolling .grid-overlay {
      mask-image: none !important;
    }
    body.is-scrolling .ambient-orb {
      filter: none !important;
      opacity: 0.3 !important;
    }

    body.is-scrolling #matrix-rain,
    body.is-scrolling #particle-canvas,
    body.is-scrolling #pixel-noise {
      display: none !important;
    }

    /* During user interaction, drop heavy visual layers entirely */
    html.user-interacting #matrix-rain,
    html.user-interacting #particle-canvas,
    html.user-interacting #pixel-noise,
    html.user-interacting #crt-scanlines,
    html.user-interacting #crt-vignette {
      display: none !important;
    }
    html.user-interacting .grid-overlay,
    html.user-interacting .ambient-orb {
      animation-play-state: paused !important;
    }
    html.user-interacting .grid-overlay {
      mask-image: none !important;
    }
    html.user-interacting .ambient-orb {
      filter: none !important;
      opacity: 0.3 !important;
    }
    html.user-interacting .btn,
    html.user-interacting .stat-item,
    html.user-interacting .contact-box,
    html.user-interacting .intro-mini,
    html.user-interacting .gallery-item {
      box-shadow: none !important;
    }

    /* Promote animated overlays to GPU compositor layers */
    #matrix-rain, #particle-canvas, #pixel-noise,
    #crt-scanlines, #crt-vignette {
      will-change: transform;
    }

    .nav-links a {
      position: relative;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--accent);
      opacity: 0;
      transform: scaleX(0);
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links a.active::after {
      opacity: 0.8;
      transform: scaleX(1);
    }

    .nav-links a.active,
    .drawer-link.active {
      text-shadow: 0 0 8px rgba(92,200,245,0.3);
    }

    .back-to-top {
      position: fixed;
      bottom: 32px;
      right: 32px;
      width: 48px;
      height: 48px;
      border: 1px solid rgba(92,200,245,0.3);
      background: rgba(2,6,9,0.9);
      color: var(--accent);
      font-family: var(--pixel-font);
      font-size: 16px;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: transform 0.15s ease-out, opacity 0.3s ease, visibility 0.3s ease;
      z-index: 999;
    }

    .back-to-top.show {
      opacity: 1 !important;
      visibility: visible !important;
      transform: translateY(0) !important;
    }

    .back-to-top:hover {
      border-color: var(--accent);
      box-shadow: 0 0 20px rgba(92,200,245,0.3);
      transform: translateY(-4px) !important;
    }

    .btn,
    .nav-cta,
    .drawer-cta,
    .hamburger,
    .brand {
      transition: transform 0.15s ease-out, background 0.3s, border-color 0.3s, box-shadow 0.3s;
    }

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

      .btn,
      .nav-cta,
      .drawer-cta,
      .hamburger,
      .brand {
        transition: none !important;
      }

      .back-to-top {
        transition: opacity 0.3s, visibility 0.3s !important;
      }
    }

    @supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
      html {
        scroll-behavior: smooth;
      }
    }

    /* ===================== LAYOUT ===================== */
    .site-shell { position: relative; z-index: 1; }
    .container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

    /* ===================== TOPBAR ===================== */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 90;
      background: rgba(2, 6, 9, 0.85);
      border-bottom: 1px solid rgba(92,200,245,0.04);
      transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
      will-change: transform;
    }

    .topbar.scrolled {
      background: rgba(2, 6, 9, 0.95);
      border-bottom-color: rgba(74,124,111,0.1);
      box-shadow: 0 1px 40px rgba(0,0,0,0.3);
    }

    .nav {
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .brand-logo {
      width: 42px; height: 42px;
      border-radius: 0;
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #0e2a42 0%, #081828 100%);
      border: 1.5px solid rgba(92,200,245,0.3);
      box-shadow: 0 0 10px rgba(92,200,245,0.12), inset 0 0 6px rgba(92,200,245,0.06);
      transition: box-shadow 0.3s ease;
      image-rendering: pixelated;
    }

    .brand-logo:hover {
      box-shadow: 0 0 18px rgba(92,200,245,0.25);
    }

    .brand-logo svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .brand-info strong {
      display: block;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.04em;
      color: #e0eef8;
      text-shadow: 0 0 20px rgba(92,200,245,0.06);
    }

    .brand-info em {
      display: block;
      font-style: normal;
      font-family: var(--terminal-font);
      font-size: 14px;
      letter-spacing: 0.14em;
      color: var(--pixel-accent);
      text-transform: uppercase;
      margin-top: 1px;
      opacity: 0.7;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
      font-size: 13px;
      font-weight: 400;
      color: rgba(224,238,248,0.65);
    }

    .nav-links a {
      position: relative;
      transition: color 0.2s ease;
      padding-bottom: 2px;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0; bottom: -4px;
      width: 0; height: 2px;
      background: var(--pixel-accent);
      transition: width 0.25s ease;
      image-rendering: pixelated;
    }

    .nav-links a:hover { color: #fff; }
    .nav-links a:hover::after { width: 100%; }

    .nav-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 36px;
      padding: 0 18px;
      border-radius: 0;
      background: rgba(92,200,245,0.08);
      border: 1px solid rgba(92,200,245,0.25);
      font-family: var(--terminal-font);
      font-size: 16px;
      font-weight: 400;
      color: var(--pixel-accent);
      letter-spacing: 0.08em;
      transition: all 0.25s ease;
      image-rendering: pixelated;
    }

    .nav-cta:hover {
      background: rgba(92,200,245,0.15);
      border-color: rgba(92,200,245,0.4);
    }

    /* Language Toggle */
    .lang-toggle {
      display: inline-flex;
      align-items: center;
      height: 36px;
      border-radius: 0;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      overflow: hidden;
      font-family: var(--terminal-font);
      font-size: 13px;
      letter-spacing: 0.05em;
    }
    .lang-toggle button {
      padding: 0 14px;
      height: 100%;
      background: none;
      border: none;
      color: rgba(255,255,255,0.4);
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: inherit;
      font-size: inherit;
    }
    .lang-toggle button.active {
      background: rgba(92,200,245,0.12);
      color: var(--accent);
    }
    .lang-toggle button:hover:not(.active) {
      color: rgba(255,255,255,0.7);
    }
    .nav-cta:active { transform: scale(0.97); }

    /* ===================== HAMBURGER BUTTON ===================== */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      width: 48px; height: 48px;
      border: 1px solid rgba(92,200,245,0.15);
      background: rgba(92,200,245,0.04);
      cursor: pointer;
      padding: 0;
      image-rendering: pixelated;
      transition: all 0.25s ease;
      z-index: 102;
    }
    .hamburger:hover {
      border-color: rgba(92,200,245,0.35);
      background: rgba(92,200,245,0.08);
    }
    .hb-bar {
      display: block;
      width: 18px; height: 2px;
      background: var(--pixel-accent);
      transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
      transform-origin: center;
    }
    body.drawer-open .hamburger .hb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.drawer-open .hamburger .hb-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
    body.drawer-open .hamburger .hb-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ===================== MOBILE NAV DRAWER ===================== */
    .mobile-nav-overlay {
      position: fixed;
      inset: 0;
      z-index: 98;
      background: rgba(2,6,9,0.8);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.35s ease, visibility 0.35s ease;
    }
    body.drawer-open .mobile-nav-overlay {
      opacity: 1;
      visibility: visible;
    }

    .mobile-drawer {
      position: fixed;
      top: 0; right: 0;
      width: min(320px, 85vw);
      height: 100dvh;
      z-index: 101;
      background: rgba(4,10,16,0.98);
      border-left: 1px solid rgba(92,200,245,0.08);
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 40px 32px;
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    }
    body.drawer-open .mobile-drawer {
      transform: translateX(0);
    }
    body.drawer-open {
      overflow: hidden;
    }

    .drawer-nav {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .drawer-link {
      display: block;
      padding: 18px 0;
      font-size: 22px;
      font-weight: 600;
      letter-spacing: -0.02em;
      color: rgba(224,238,248,0.65);
      border-bottom: 1px solid rgba(92,200,245,0.06);
      transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
      position: relative;
    }
    .drawer-link::before {
      content: "";
      position: absolute;
      left: 0; top: 50%;
      transform: translateY(-50%) scaleY(0);
      width: 3px; height: 60%;
      background: var(--pixel-accent);
      transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
    }
    .drawer-link:hover, .drawer-link:active {
      color: #fff;
      padding-left: 12px;
    }
    .drawer-link:hover::before, .drawer-link:active::before {
      transform: translateY(-50%) scaleY(1);
    }

    .drawer-footer {
      margin-top: 36px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .drawer-cta {
      width: 100%;
      justify-content: center;
    }
    .drawer-tagline {
      font-size: 14px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(92,200,245,0.3);
      text-align: center;
    }

    /* ===================== HERO ===================== */
    .hero {
      position: relative;
      min-height: 100dvh;
      display: flex;
      align-items: center;
      padding: 100px 0 80px;
      overflow: hidden;
    }

    .hero-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
    }

    .hero-copy { position: relative; z-index: 2; }

    .hero-tag {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 6px 14px;
      border-radius: 0;
      background: rgba(92,200,245,0.05);
      border: 1px solid rgba(92,200,245,0.18);
      font-family: var(--terminal-font);
      font-size: 16px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--pixel-accent);
      margin-bottom: 22px;
      image-rendering: pixelated;
      box-shadow: 0 0 12px rgba(74,124,111,0.06), inset 0 0 20px rgba(158,61,48,0.03);
    }

    .hero-tag .dot {
      width: 6px; height: 6px;
      border-radius: 0;
      background: var(--pixel-accent);
      box-shadow: 0 0 10px var(--pixel-accent);
      animation: pulseDot 2.5s ease-in-out infinite;
    }

    @keyframes pulseDot {
      0%, 100% { box-shadow: 0 0 8px var(--pixel-accent); transform: scale(1); }
      50% { box-shadow: 0 0 16px var(--pixel-accent); transform: scale(1.3); }
    }

    .hero-h1 {
      font-family: var(--display-font);
      font-size: clamp(48px, 6vw, 88px);
      font-weight: 900;
      line-height: 0.92;
      letter-spacing: -0.06em;
      margin-bottom: 12px;
    }

    .hero-h1 .line { display: block; overflow: hidden; }
    .hero-h1 .line span {
      display: block;
      transform: translateY(100%);
      opacity: 0;
      animation: slideLineUp 1s cubic-bezier(0.16,1,0.3,1) both;
    }
    .hero-h1 .line:nth-child(1) span { animation-delay: 0.15s; }
    .hero-h1 .line:nth-child(2) span { animation-delay: 0.3s; }
    .hero-h1 .line:nth-child(3) span { animation-delay: 0.45s; }

    @keyframes slideLineUp {
      to { transform: translateY(0); opacity: 1; }
    }

    .hero-h1 .accent-word {
      color: var(--accent);
      text-shadow: 0 0 40px rgba(92,200,245,0.2), 0 0 80px rgba(92,200,245,0.1);
    }
    .hero-h1 .gold-word {
      color: var(--gold);
      text-shadow: 0 0 40px rgba(201,167,107,0.2), 0 0 80px rgba(201,167,107,0.1);
    }

    .hero-sub {
      margin: 24px 0 0;
      font-size: 15px;
      color: var(--muted);
      max-width: 520px;
      line-height: 1.85;
      letter-spacing: 0.008em;
      opacity: 0;
      animation: fadeUp 0.8s ease 0.52s both;
    }

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

    .hero-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 20px;
      opacity: 0;
      animation: fadeUp 0.8s ease 0.65s both;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      height: 28px;
      padding: 0 12px;
      border-radius: 0;
      font-family: var(--terminal-font);
      font-size: 15px;
      letter-spacing: 0.05em;
      border: 1px solid rgba(92,200,245,0.12);
      background: rgba(92,200,245,0.04);
      color: rgba(92,200,245,0.65);
      transition: all 0.22s ease;
      image-rendering: pixelated;
    }

    .chip:hover {
      border-color: rgba(92,200,245,0.4);
      color: var(--pixel-accent);
      background: rgba(92,200,245,0.1);
      box-shadow: 0 0 10px rgba(92,200,245,0.12);
    }
    .chip:active { transform: scale(0.96); }

    .hero-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 30px;
      opacity: 0;
      animation: fadeUp 0.8s ease 0.78s both;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 46px;
      padding: 0 26px;
      border-radius: 0;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      isolation: isolate;
      border: none;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      image-rendering: pixelated;
    }

    .btn::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.15) 50%, transparent 75%);
      transform: translateX(-150%) skewX(-20deg);
      pointer-events: none;
    }

    .btn:hover::before { animation: shimmerBtn 0.9s ease; }
    .btn:hover { transform: translateY(-2px); }
    .btn:active { transform: translateY(0) scale(0.97); }

    @keyframes shimmerBtn {
      to { transform: translateX(200%) skewX(-20deg); }
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--pixel-accent), #4ab8e8);
      color: #020a10;
      box-shadow: 0 0 20px rgba(92,200,245,0.3), 0 4px 12px rgba(0,0,0,0.3);
      font-weight: 700;
    }
    .btn-primary:hover { box-shadow: 0 0 32px rgba(92,200,245,0.45), 0 6px 20px rgba(0,0,0,0.4); transform: translateY(-3px); }
    .btn-primary:active { box-shadow: 0 0 10px rgba(92,200,245,0.2); }

    .btn-ghost {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      color: rgba(224,238,248,0.8);
    }
    .btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }

    /* ===================== HERO STATS ===================== */
    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 40px;
      opacity: 0;
      animation: fadeUp 0.8s ease 0.9s both;
    }

    .stat-item {
      padding: 18px 16px;
      border-radius: 0;
      background: linear-gradient(135deg, rgba(92,200,245,0.04) 0%, rgba(92,200,245,0.01) 100%);
      border: 1px solid rgba(92,200,245,0.08);
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
      image-rendering: pixelated;
    }

    .stat-item:hover {
      transform: translateY(-4px);
      border-color: rgba(92,200,245,0.18);
      box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 20px rgba(92,200,245,0.06);
    }
    .stat-item:active { transform: translateY(-2px) scale(0.98); }

    .stat-num {
      display: block;
      font-family: var(--pixel-font);
      font-size: 20px;
      font-weight: 400;
      letter-spacing: -0.02em;
      line-height: 1;
      margin-bottom: 8px;
      color: var(--pixel-accent);
    }

    .stat-label {
      display: block;
      font-family: var(--terminal-font);
      font-size: 15px;
      color: var(--muted);
      line-height: 1.55;
      letter-spacing: 0.005em;
    }

    /* ===================== HERO VISUAL ===================== */
    .hero-visual {
      position: relative;
      height: 660px;
      opacity: 0;
      contain: layout style paint;
      animation: fadeUp 1s ease 0.35s both;
    }

    .hero-visual-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      grid-template-rows: repeat(12, 1fr);
      gap: 8px;
      height: 100%;
    }

    .vis-card {
      position: relative;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.08);
      overflow: hidden;
      transition: transform 0.35s ease, border-color 0.35s ease;
      backface-visibility: hidden;
      image-rendering: pixelated;
    }

    .vis-card:hover {
      transform: translateY(-4px);
      border-color: rgba(92,200,245,0.2);
      box-shadow: 0 0 20px rgba(92,200,245,0.08);
    }

    /* Main cinematic card */
    .vc-main {
      grid-column: 1 / span 8;
      grid-row: 1 / span 8;
      background:
        linear-gradient(to bottom, rgba(2,6,9,0.15), rgba(2,6,9,0.5) 55%, rgba(2,6,9,0.88)),
        url('assets/hero-bg.webp') center/cover no-repeat,
        radial-gradient(ellipse 50% 40% at 68% 16%, rgba(92,200,245,0.08), transparent),
        linear-gradient(155deg, #0e1a28 0%, #060d16 55%, #04080e 100%);
    }

    .vc-main .moon-glow {
      position: absolute;
      top: 8%; right: 14%;
      width: 120px; height: 120px;
      border-radius: 0;
      background: radial-gradient(circle, rgba(232,213,163,0.5), rgba(92,200,245,0.1) 46%, transparent 70%);
      animation: moonBreath 9s ease-in-out infinite;
    }

    @keyframes moonBreath {
      0%,100% { transform: scale(1); opacity: 0.6; }
      50% { transform: scale(1.06); opacity: 0.75; }
    }

    .vc-main .mountains-silhouette {
      position: absolute;
      inset: 18% 0 10% 0;
      opacity: 0.2;
      background: linear-gradient(180deg, transparent 0%, rgba(4,10,18,0.1));
      clip-path: polygon(0 75%, 8% 58%, 16% 62%, 24% 45%, 35% 52%, 47% 34%, 58% 46%, 69% 28%, 80% 42%, 91% 30%, 100% 38%, 100% 100%, 0 100%);
      transform: translate3d(0, 0, 0);
    }

    .vc-main .ruins-silhouette {
      position: absolute;
      inset: auto 0 14% 6%;
      height: 36%;
      opacity: 0.18;
      background: linear-gradient(180deg, rgba(201,167,107,0.2), rgba(255,255,255,0.03));
      clip-path: polygon(0 100%, 0 68%, 9% 68%, 12% 40%, 17% 40%, 19% 62%, 30% 62%, 33% 24%, 38% 24%, 41% 66%, 52% 66%, 54% 48%, 62% 48%, 65% 14%, 71% 14%, 74% 70%, 88% 70%, 91% 48%, 96% 48%, 100% 100%);
      transform: translate3d(0, 0, 0);
    }

    .vc-main .mist-layer {
      position: absolute;
      inset: 20% -5% -5% -5%;
      background:
        radial-gradient(ellipse 60% 30% at 20% 82%, rgba(255,255,255,0.05), transparent),
        linear-gradient(180deg, transparent, rgba(4,8,14,0.78) 78%);
      animation: driftMist 18s ease-in-out infinite;
    }

    @keyframes driftMist {
      0%, 100% { transform: translate(-2%, 0); }
      50% { transform: translate(3%, -1%); }
    }

    .vc-main .cinnabar-floor {
      position: absolute;
      bottom: -8%;
      left: -4%; right: -4%;
      height: 36%;
      background:
        radial-gradient(ellipse 40% 60% at 28% 30%, rgba(158,61,48,0.5), transparent),
        radial-gradient(ellipse 25% 40% at 72% 40%, rgba(74,124,111,0.15), transparent),
        linear-gradient(180deg, transparent, rgba(158,61,48,0.2) 50%, rgba(4,6,10,0.92));
      clip-path: polygon(0 50%, 12% 34%, 26% 42%, 40% 26%, 55% 36%, 70% 18%, 83% 25%, 100% 12%, 100% 100%, 0 100%);
      opacity: 0.75;
    }

    /* Floating feathers */
    .vc-main .feather-float {
      position: absolute;
      bottom: -28px;
      width: 10px; height: 22px;
      opacity: 0;
      animation: featherRise linear infinite;
      background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(201,167,107,0.25), transparent);
      clip-path: polygon(50% 0, 72% 18%, 85% 42%, 78% 68%, 54% 100%, 46% 100%, 22% 68%, 15% 42%, 28% 18%);
    }

    .feather-float:nth-child(1) { left:15%; animation-duration:11s; animation-delay:0s; }
    .feather-float:nth-child(2) { left:28%; width:8px; height:18px; animation-duration:14s; animation-delay:2.5s; }
    .feather-float:nth-child(3) { left:44%; animation-duration:12s; animation-delay:5s; }
    .feather-float:nth-child(4) { left:62%; width:12px; height:24px; animation-duration:16s; animation-delay:1.5s; }
    .feather-float:nth-child(5) { left:78%; width:8px; height:18px; animation-duration:10s; animation-delay:7s; }
    .feather-float:nth-child(6) { left:55%; animation-duration:13s; animation-delay:3.8s; }

    @keyframes featherRise {
      0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
      8% { opacity: 0.5; }
      90% { opacity: 0.08; }
      100% { transform: translate(40px, -480px) rotate(18deg); opacity: 0; }
    }

    .vc-main .sword-line {
      position: absolute;
      right: 32%; top: 16%;
      width: 2px; height: 50%;
      background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(92,200,245,0.3), transparent);
      border-radius: 0;
      transform: rotate(22deg);
      box-shadow: 0 0 12px rgba(92,200,245,0.25);
      opacity: 0.5;
      transform: rotate(22deg) translate3d(calc(var(--mouse-x)*-0.01), calc(var(--mouse-y)*-0.006), 0);
    }

    .vc-main .glow-horizon {
      position: absolute;
      left: 8%; right: 4%;
      top: 46%;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(92,200,245,0.4), rgba(201,167,107,0.15), transparent);
      opacity: 0.5;
    }

    /* Sacred tree silhouette (古蜀神树) */
    .vc-main .sacred-tree {
      position: absolute;
      left: 6%; bottom: 14%;
      width: 35%; height: 55%;
      opacity: 0.12;
      transform: translate3d(calc(var(--mouse-x) * -0.006), calc(var(--mouse-y) * -0.004), 0);
    }

    /* Bronze pattern overlay on main card */
    .vc-main .bronze-pattern {
      position: absolute;
      inset: 0;
      opacity: 0.03;
      background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a76b' fill-opacity='1'%3E%3Cpath d='M20 0L21 19L40 20L21 21L20 40L19 21L0 20L19 19Z'/%3E%3C/g%3E%3C/svg%3E");
      background-size: 40px 40px;
      pointer-events: none;
    }

    /* Red mist / dark fog */
    .vc-main .red-mist {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 40%;
      background:
        radial-gradient(ellipse 50% 60% at 30% 80%, rgba(158,61,48,0.12), transparent),
        radial-gradient(ellipse 40% 50% at 70% 70%, rgba(74,124,111,0.06), transparent);
      animation: driftMist 15s ease-in-out infinite reverse;
    }

    /* Ember particles CSS animation */
    .ember-particle {
      position: absolute;
      width: 3px; height: 3px;
      border-radius: 0;
      background: var(--cinnabar-2);
      box-shadow: 0 0 4px var(--cinnabar-2);
      opacity: 0;
      animation: emberRise linear infinite;
    }
    .ember-particle:nth-child(1) { left:20%; animation-duration:8s; animation-delay:0s; }
    .ember-particle:nth-child(2) { left:35%; animation-duration:10s; animation-delay:1.5s; }
    .ember-particle:nth-child(3) { left:50%; animation-duration:7s; animation-delay:3s; }
    .ember-particle:nth-child(4) { left:65%; animation-duration:9s; animation-delay:0.8s; }
    .ember-particle:nth-child(5) { left:80%; animation-duration:11s; animation-delay:4s; }
    .ember-particle:nth-child(6) { left:42%; animation-duration:8.5s; animation-delay:2.2s; }
    .ember-particle.bronze { background: var(--bronze); box-shadow: 0 0 4px var(--bronze); }

    @keyframes emberRise {
      0% { transform: translateY(0) translateX(0); opacity: 0; }
      8% { opacity: 0.7; }
      50% { opacity: 0.4; transform: translateY(-200px) translateX(15px); }
      90% { opacity: 0; }
      100% { transform: translateY(-400px) translateX(-10px); opacity: 0; }
    }

    /* Dark noise texture overlay for sections */
    .dark-texture {
      position: relative;
    }
    .dark-texture::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 0;
      opacity: 0.025;
      background-image: var(--noise-texture);
      background-size: 200px 200px;
      pointer-events: none;
      z-index: 0;
    }

    /* Rust/bronze gradient accent line */
    .accent-line-bronze {
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(74,124,111,0.4), rgba(201,167,107,0.3), rgba(74,124,111,0.4), transparent);
      box-shadow: 0 0 8px rgba(74,124,111,0.1);
    }

    /* Red glow accent line */
    .accent-line-red {
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(158,61,48,0.35), rgba(200,75,56,0.2), rgba(158,61,48,0.35), transparent);
      box-shadow: 0 0 8px rgba(158,61,48,0.08);
    }

    .vc-main .card-badge {
      position: absolute;
      top: 16px; left: 16px;
      z-index: 5;
      padding: 5px 12px;
      border-radius: 0;
      background: rgba(0,0,0,0.5);
      border: 1px solid rgba(92,200,245,0.15);
      font-family: var(--terminal-font);
      font-size: 15px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(92,200,245,0.7);
    }

    .vc-main .card-caption {
      position: absolute;
      bottom: 18px; left: 18px; right: 18px;
      z-index: 5;
    }

    .vc-main .card-caption h3 {
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.04em;
      line-height: 1.1;
      margin-bottom: 6px;
    }

    .vc-main .card-caption p {
      font-family: var(--terminal-font);
      font-size: 15px;
      color: rgba(184,200,218,0.65);
      line-height: 1.7;
      letter-spacing: 0.005em;
    }

    /* Small side cards */
    .vc-side-a {
      grid-column: 9 / span 4;
      grid-row: 1 / span 4;
      background:
        radial-gradient(ellipse at 75% 20%, rgba(92,200,245,0.14), transparent 28%),
        linear-gradient(145deg, #0b1820, #060d14);
      animation: floatCard 13s ease-in-out infinite;
    }

    .vc-side-b {
      grid-column: 9 / span 4;
      grid-row: 5 / span 4;
      background:
        radial-gradient(ellipse at 22% 22%, rgba(201,167,107,0.14), transparent 26%),
        linear-gradient(145deg, #14100a, #08090e);
      animation: floatCard 17s ease-in-out infinite reverse;
    }

    @keyframes floatCard {
      0%,100% { transform: translateY(0px); }
      50% { transform: translateY(-8px); }
    }

    .vc-side-a .mesh-perspective {
      position: absolute;
      inset: 14% 12%;
      border-radius: 0;
      background:
        linear-gradient(rgba(92,200,245,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92,200,245,0.06) 1px, transparent 1px);
      background-size: 14px 14px;
      transform: perspective(600px) rotateX(62deg);
      opacity: 0.4;
    }

    .vc-side-a .mesh-perspective::after {
      content: "";
      position: absolute;
      inset: 20% 24%;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.3);
      box-shadow: 0 0 0 12px rgba(92,200,245,0.02), 0 0 0 24px rgba(92,200,245,0.02);
    }

    .vc-side-b .orbit-rings {
      position: absolute;
      inset: 14% 14%;
      border-radius: 0;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 0 0 14px rgba(255,255,255,0.02), 0 0 0 30px rgba(201,167,107,0.04);
      animation: spinOrbit 28s linear infinite;
    }

    .vc-side-b .orbit-rings::after {
      content: "";
      position: absolute;
      inset: 30% 30%;
      border-radius: 0;
      background: radial-gradient(circle, rgba(158,61,48,0.6), rgba(74,124,111,0.2) 50%, transparent 70%);
      box-shadow: 0 0 12px rgba(158,61,48,0.3);
    }

    @keyframes spinOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

    /* Bottom strip */
    .vc-strip {
      grid-column: 1 / span 12;
      grid-row: 9 / span 4;
      background:
        rgba(92,200,245,0.03),
        linear-gradient(90deg, rgba(92,200,245,0.05), transparent 30%, transparent 70%, rgba(201,167,107,0.04));
      padding: 12px;
    }

    .strip-inner {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      height: 100%;
    }

    .strip-cell {
      padding: 12px 14px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.06);
      background: rgba(92,200,245,0.02);
      transition: all 0.25s ease;
    }

    .strip-cell:hover {
      border-color: rgba(92,200,245,0.15);
      background: rgba(92,200,245,0.05);
    }

    .strip-cell strong {
      display: block;
      font-family: var(--pixel-font);
      font-size: 7px;
      font-weight: 400;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--pixel-accent);
      margin-bottom: 6px;
    }

    .strip-cell span {
      display: block;
      font-family: var(--terminal-font);
      font-size: 15px;
      color: var(--muted);
      line-height: 1.6;
      letter-spacing: 0.005em;
    }

    /* ===================== SHOWCASE ===================== */
    .showcase-wrap {
      position: relative;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.08);
      padding: 0;
      overflow: hidden;
      box-shadow: var(--shadow), var(--shadow-glow);
    }

    .showcase-video {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background:
        radial-gradient(ellipse 60% 50% at 30% 40%, rgba(92,200,245,0.08), transparent),
        radial-gradient(ellipse 40% 60% at 70% 60%, rgba(74,124,111,0.06), transparent),
        linear-gradient(155deg, #080e14, #020609);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      image-rendering: pixelated;
    }

    .showcase-video::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.03;
      background-image: var(--noise-texture);
      background-size: 200px 200px;
      pointer-events: none;
      z-index: 1;
    }

    .showcase-grid-overlay {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(92,200,245,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92,200,245,0.03) 1px, transparent 1px);
      background-size: 60px 60px;
      z-index: 1;
      animation: driftGrid 20s linear infinite;
    }

    .showcase-content {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 40px;
    }

    .showcase-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
      padding: 6px 14px;
      border: 1px solid rgba(92,200,245,0.12);
      background: rgba(2,6,9,0.6);
      font-family: var(--pixel-font);
      font-size: 7px;
      letter-spacing: 0.18em;
      color: var(--accent);
    }

    .showcase-badge .dot {
      width: 6px;
      height: 6px;
      background: var(--cinnabar-2);
      animation: ledBlink 1.5s ease-in-out infinite;
    }

    @keyframes ledBlink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.2; }
    }

    .showcase-title {
      font-family: var(--display-font);
      font-size: clamp(24px, 3vw, 36px);
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 12px;
      color: var(--text);
    }

    .showcase-title .accent-word {
      color: var(--accent);
      text-shadow: 0 0 30px rgba(92,200,245,0.15);
    }

    .showcase-desc {
      font-size: 14px;
      color: var(--muted);
      max-width: 520px;
      margin: 0 auto 24px;
      line-height: 1.8;
    }

    .showcase-play-btn {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 14px 32px;
      border: 1px solid rgba(92,200,245,0.2);
      background: rgba(2,6,9,0.7);
      color: var(--accent);
      font-family: var(--terminal-font);
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
    }

    .showcase-play-btn:hover {
      border-color: var(--accent);
      background: rgba(92,200,245,0.08);
      box-shadow: 0 0 30px rgba(92,200,245,0.15), inset 0 0 20px rgba(92,200,245,0.04);
      transform: translateY(-2px);
    }

    .showcase-play-btn:active {
      transform: translateY(0) scale(0.97);
    }

    .showcase-play-btn .play-icon {
      width: 32px;
      height: 32px;
      border: 1px solid rgba(92,200,245,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      transition: all 0.3s ease;
    }

    .showcase-play-btn:hover .play-icon {
      border-color: var(--accent);
      box-shadow: 0 0 12px rgba(92,200,245,0.2);
    }

    .showcase-play-btn .play-label {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
    }

    .showcase-play-btn .play-label strong {
      font-family: var(--display-font);
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      letter-spacing: 0.02em;
    }

    .showcase-play-btn .play-label span {
      font-family: var(--terminal-font);
      font-size: 16px;
      color: var(--muted);
      opacity: 0.7;
    }

    .showcase-hints {
      display: flex;
      justify-content: center;
      gap: 24px;
      margin-top: 20px;
      flex-wrap: wrap;
    }

    .showcase-hint {
      display: flex;
      align-items: center;
      gap: 6px;
      font-family: var(--terminal-font);
      font-size: 15px;
      color: rgba(106,142,168,0.6);
    }

    .showcase-hint::before {
      content: "";
      width: 4px;
      height: 4px;
      background: var(--accent);
      opacity: 0.4;
    }

    /* Showcase decorative elements */
    .showcase-deco {
      position: absolute;
      z-index: 0;
      pointer-events: none;
    }

    .showcase-deco-1 {
      top: -60px;
      right: -60px;
      width: 200px;
      height: 200px;
      border: 1px solid rgba(92,200,245,0.04);
      animation: spinOrbit 40s linear infinite;
    }

    .showcase-deco-2 {
      bottom: -40px;
      left: -40px;
      width: 120px;
      height: 120px;
      border: 1px solid rgba(201,167,107,0.04);
      animation: spinOrbit 30s linear infinite reverse;
    }

    /* Showcase corner accents */
    .showcase-corner {
      position: absolute;
      width: 20px;
      height: 20px;
      z-index: 3;
    }

    .showcase-corner.tl { top: 8px; left: 8px; border-top: 2px solid rgba(92,200,245,0.15); border-left: 2px solid rgba(92,200,245,0.15); }
    .showcase-corner.tr { top: 8px; right: 8px; border-top: 2px solid rgba(92,200,245,0.15); border-right: 2px solid rgba(92,200,245,0.15); }
    .showcase-corner.bl { bottom: 8px; left: 8px; border-bottom: 2px solid rgba(92,200,245,0.15); border-left: 2px solid rgba(92,200,245,0.15); }
    .showcase-corner.br { bottom: 8px; right: 8px; border-bottom: 2px solid rgba(92,200,245,0.15); border-right: 2px solid rgba(92,200,245,0.15); }

    /* ===================== SECTIONS ===================== */
    section {
      padding: 120px 0 0;
      position: relative;
      scroll-margin-top: calc(var(--topbar-height) + 12px);
    }

    /* Sections use paint containment to isolate rendering without costly activation cycles */

    .section-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 16px;
    }

    .section-head h2 {
      font-family: var(--display-font);
      font-size: clamp(32px, 4.2vw, 56px);
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1.05;
      background: linear-gradient(135deg, #e0eef8 0%, #a8c4d8 60%, #6a8ea8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .section-head .section-en {
      font-family: var(--terminal-font);
      font-size: 16px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--pixel-accent);
      white-space: nowrap;
      padding-bottom: 6px;
      opacity: 0.6;
    }

    .section-desc {
      font-size: 15px;
      color: var(--muted);
      max-width: 600px;
      line-height: 1.85;
      letter-spacing: 0.005em;
      margin-bottom: 20px;
    }

    /* ===================== STUDIO INTRO ===================== */
    .intro-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 12px;
    }

    .intro-main {
      position: relative;
      min-height: 460px;
      padding: 36px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.08);
      background:
        radial-gradient(ellipse 55% 40% at 80% 18%, rgba(92,200,245,0.1), transparent),
        linear-gradient(155deg, #0c1820, #060d14);
      overflow: hidden;
      transition: border-color 0.4s ease, box-shadow 0.4s ease;
    }

    .intro-main:hover {
      border-color: rgba(92,200,245,0.15);
      box-shadow: var(--shadow), 0 0 80px -16px rgba(92,200,245,0.2);
    }

    /* Dark texture for intro */
    .intro-main::after {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.02;
      background-image: var(--noise-texture);
      background-size: 200px 200px;
      pointer-events: none;
    }

    .intro-main .watermark {
      position: absolute;
      right: 20px; top: 20px;
      font-family: var(--pixel-font);
      font-size: 7px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: rgba(92,200,245,0.2);
    }

    .craftsman-badge {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
      padding: 8px 16px;
      border: 1px solid rgba(201,167,107,0.2);
      background: linear-gradient(135deg, rgba(201,167,107,0.08), rgba(158,61,48,0.04));
    }

    .craftsman-label {
      font-family: var(--pixel-font);
      font-size: 7px;
      letter-spacing: 0.2em;
      color: var(--gold);
    }

    .craftsman-motto {
      font-family: var(--serif-font);
      font-size: 13px;
      font-weight: 600;
      color: rgba(224,238,248,0.9);
      letter-spacing: 0.04em;
    }

    .intro-deco {
      position: absolute;
      top: 0; right: 0;
      width: 260px; height: 260px;
    }

    .intro-deco .deco-circle {
      position: absolute;
      top: 30px; right: 20px;
      width: 120px; height: 120px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.08);
      box-shadow: 0 0 0 20px rgba(92,200,245,0.02), 0 0 0 40px rgba(201,167,107,0.03);
      animation: spinOrbit 34s linear infinite;
    }

    .intro-deco .deco-feather {
      position: absolute;
      top: 50px; right: 48px;
      width: 18px; height: 40px;
      background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(201,167,107,0.2), transparent);
      clip-path: polygon(50% 0, 72% 18%, 85% 42%, 78% 68%, 54% 100%, 46% 100%, 22% 68%, 15% 42%, 28% 18%);
      opacity: 0.3;
      animation: floatCard 6s ease-in-out infinite;
    }

    .intro-main h3 {
      position: relative;
      z-index: 1;
      font-size: 30px;
      font-weight: 700;
      letter-spacing: -0.04em;
      line-height: 1.12;
      margin-top: 150px;
      margin-bottom: 14px;
    }

    .intro-main p {
      position: relative;
      z-index: 1;
      font-size: 14px;
      color: #94aec4;
      line-height: 1.85;
      letter-spacing: 0.005em;
      max-width: 440px;
    }

    .intro-side { display: grid; gap: 12px; }

    .intro-mini {
      position: relative;
      padding: 24px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.06);
      background: linear-gradient(160deg, rgba(92,200,245,0.03) 0%, rgba(255,255,255,0.01) 100%);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }

    .intro-mini:hover { transform: translateY(-4px); border-color: rgba(92,200,245,0.15); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
    .intro-mini:active { transform: translateY(-2px) scale(0.99); }

    .intro-mini .mini-deco {
      position: absolute;
      top: 14px; right: 14px;
      width: 70px; height: 70px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.06);
      background: rgba(92,200,245,0.02);
      transition: transform 0.3s ease;
    }

    .intro-mini:hover .mini-deco { transform: translateY(-4px); }
    .intro-mini.gold .mini-deco { background: radial-gradient(circle at 35% 35%, rgba(201,167,107,0.15), transparent 60%), rgba(255,255,255,0.01); }
    .intro-mini.red .mini-deco { background: radial-gradient(circle at 35% 35%, rgba(158,61,48,0.18), transparent 60%), rgba(255,255,255,0.01); }
    .intro-mini.blue .mini-deco { background: radial-gradient(circle at 35% 35%, rgba(92,200,245,0.14), transparent 60%), rgba(255,255,255,0.01); }

    .intro-mini strong {
      display: block;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 8px;
    }

    .intro-mini span {
      display: block;
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.7;
      letter-spacing: 0.005em;
      max-width: 240px;
    }

    /* ===================== HISTORY SECTION ===================== */
    .history-wrap {
      position: relative;
      border-radius: 0;
      border: 1px solid rgba(201,167,107,0.12);
      background:
        radial-gradient(ellipse 55% 40% at 80% 18%, rgba(201,167,107,0.08), transparent),
        linear-gradient(155deg, #100c0a, #080d14);
        overflow: hidden;
      box-shadow: var(--shadow), 0 0 60px -12px rgba(201,167,107,0.1);
    }

    /* Dark texture for history */
    .history-wrap::after {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.025;
      background-image: var(--noise-texture);
      background-size: 200px 200px;
      pointer-events: none;
      z-index: 0;
    }

    .history-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
    }

    .history-left {
      padding: 44px;
      position: relative;
    }

    .history-left::after {
      content: "";
      position: absolute;
      right: 0; top: 10%; bottom: 10%;
      width: 1px;
      background: linear-gradient(180deg, transparent, rgba(201,167,107,0.15), transparent);
    }

    .history-eyebrow {
      font-family: var(--pixel-font);
      font-size: 8px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .history-eyebrow::before {
      content: "";
      display: inline-block;
      width: 20px;
      height: 2px;
      background: var(--gold);
    }

    .history-left h2 {
      font-family: var(--display-font);
      font-size: clamp(30px, 3.6vw, 42px);
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1.1;
      margin-bottom: 22px;
    }

    .history-left p {
      font-size: 14px;
      color: #94a8bc;
      line-height: 1.88;
      letter-spacing: 0.005em;
      margin-bottom: 14px;
    }

    .signal-list {
      margin-top: 28px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .signal-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 16px;
      border-radius: 0;
      border: 1px solid rgba(201,167,107,0.08);
      background: rgba(201,167,107,0.02);
      transition: all 0.25s ease;
      cursor: pointer;
    }

    .signal-item:hover {
      border-color: rgba(201,167,107,0.2);
      background: rgba(201,167,107,0.04);
    }

    .signal-icon {
      flex-shrink: 0;
      width: 32px; height: 32px;
      border-radius: 0;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(201,167,107,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    .signal-text strong {
      display: block;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 2px;
    }

    .signal-text span {
      display: block;
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.5;
    }

    .history-right {
      padding: 44px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .history-visual {
      position: relative;
      height: 260px;
      border-radius: 0;
      overflow: hidden;
      margin-bottom: 24px;
      border: 1px solid rgba(92,200,245,0.06);
      background:
        linear-gradient(to bottom, rgba(2,6,9,0.1), rgba(2,6,9,0.55) 50%, rgba(2,6,9,0.85)),
        url('assets/heritage-bg.webp') center/cover no-repeat,
        radial-gradient(ellipse at 60% 18%, rgba(92,200,245,0.08), transparent 30%),
        radial-gradient(ellipse at 24% 72%, rgba(158,61,48,0.12), transparent 30%),
        linear-gradient(155deg, #0e1824, #060c12);
    }

    .history-visual .hv-tower {
      position: absolute;
      left: 12%; bottom: 16%; width: 16%; height: 46%;
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
      clip-path: polygon(50% 0, 76% 18%, 66% 22%, 66% 100%, 34% 100%, 34% 22%, 24% 18%);
      opacity: 0.2;
    }

    .history-visual .hv-arc {
      position: absolute;
      right: 12%; top: 14%; width: 32%; height: 32%;
      border-radius: 0;
      border: 1px solid rgba(255,255,255,0.06);
      box-shadow: 0 0 0 14px rgba(255,255,255,0.02), 0 0 0 30px rgba(201,167,107,0.03);
      opacity: 0.5;
    }

    .history-visual .hv-arc::after {
      content: "";
      position: absolute;
      left: 14%; top: 10%; width: 14px; height: 32px;
      background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(201,167,107,0.2), transparent);
      clip-path: polygon(50% 0, 72% 18%, 85% 42%, 78% 68%, 54% 100%, 46% 100%, 22% 68%, 15% 42%, 28% 18%);
      transform: rotate(20deg);
      opacity: 0.5;
    }

    .history-visual .hv-mist {
      position: absolute;
      inset: 40% 0 0 0;
      background: linear-gradient(180deg, transparent, rgba(6,10,16,0.85));
    }

    .history-visual .hv-label {
      position: absolute;
      bottom: 14px; left: 14px;
      font-family: var(--pixel-font);
      font-size: 7px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(92,200,245,0.3);
    }

    .achievement-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .ach-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 32px;
      padding: 0 14px;
      border-radius: 0;
      border: 1px solid rgba(201,167,107,0.1);
      background: rgba(201,167,107,0.03);
      font-family: var(--terminal-font);
      font-size: 15px;
      color: rgba(224,238,248,0.7);
      transition: all 0.22s ease;
    }

    .ach-pill:hover {
      border-color: rgba(201,167,107,0.25);
      color: var(--gold);
      background: rgba(201,167,107,0.06);
    }

    .ach-pill::before {
      content: "";
      width: 4px; height: 4px;
      border-radius: 0;
      background: var(--gold);
      opacity: 0.5;
    }

    /* ===================== CAPABILITY CARDS ===================== */
    .service-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .service-card {
      min-height: 340px;
      padding: 22px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.06);
      background:
        rgba(92,200,245,0.02),
        linear-gradient(145deg, #0a151e, #070e14);
      box-shadow: var(--shadow-sm);
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    /* Dark texture for service cards */
    .service-card::after {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.018;
      background-image: var(--noise-texture);
      background-size: 200px 200px;
      pointer-events: none;
    }

    .service-card:hover {
      transform: translateY(-5px);
      border-color: rgba(92,200,245,0.15);
      box-shadow: 0 0 20px rgba(92,200,245,0.06);
    }
    .service-card:active { transform: translateY(-2px) scale(0.99); }

    .service-card::before {
      content: "";
      position: absolute;
      top: -20%; right: -15%;
      width: 140px; height: 140px;
      border-radius: 0;
      opacity: 0.5;
      transition: transform 0.5s ease;
    }

    .service-card:hover::before { transform: scale(1.2); }
    .service-card.s-cyan::before { background: radial-gradient(circle, rgba(92,200,245,0.14), transparent 66%); }
    .service-card.s-gold::before { background: radial-gradient(circle, rgba(201,167,107,0.14), transparent 66%); }
    .service-card.s-red::before { background: radial-gradient(circle, rgba(158,61,48,0.16), transparent 66%); }
    .service-card.s-violet::before { background: radial-gradient(circle, rgba(123,130,255,0.13), transparent 66%); }

    /* Service card background image decoration */
    .service-card .card-bg {
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 45%;
      background-size: cover;
      background-position: center;
      opacity: 0.12;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
      pointer-events: none;
    }

    .service-num {
      display: inline-flex;
      width: 36px; height: 36px;
      align-items: center;
      justify-content: center;
      border-radius: 0;
      background: rgba(92,200,245,0.04);
      border: 1px solid rgba(92,200,245,0.1);
      font-family: var(--pixel-font);
      font-size: 9px;
      font-weight: 400;
      color: var(--pixel-accent);
      margin-bottom: 100px;
      transition: transform 0.28s ease, border-color 0.28s ease;
    }

    .service-card:hover .service-num {
      transform: translateY(-3px);
      border-color: rgba(92,200,245,0.3);
    }

    .service-card h3 {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.2;
      margin-bottom: 10px;
    }

    .service-card .s-desc {
      font-size: 13px;
      color: #7a98b0;
      line-height: 1.75;
      letter-spacing: 0.005em;
      margin-bottom: 16px;
    }

    .service-card .s-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .service-card .s-tags span {
      padding: 5px 10px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.06);
      background: rgba(92,200,245,0.02);
      font-family: var(--terminal-font);
      font-size: 14px;
      color: rgba(196,218,240,0.65);
      transition: all 0.22s ease;
    }

    .service-card .s-tags span:hover {
      border-color: rgba(92,200,245,0.2);
      color: var(--pixel-accent);
    }

    /* ===================== CULTURE VISION ===================== */
    .culture-wrap {
      position: relative;
      border-radius: 0;
      border: 1px solid rgba(74,124,111,0.18);
      contain: layout style paint;
      background:
        radial-gradient(ellipse 50% 35% at 20% 15%, rgba(201,167,107,0.1), transparent),
        linear-gradient(155deg, #0c0a08, #080d14);
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    /* Dark texture for culture */
    .culture-wrap::after {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.025;
      background-image: var(--noise-texture);
      background-size: 200px 200px;
      pointer-events: none;
      z-index: 0;
    }

    .culture-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      position: relative;
      z-index: 1;
    }

    .culture-left {
      padding: 44px;
      position: relative;
    }

    .culture-left::after {
      content: "";
      position: absolute;
      right: 0; top: 10%; bottom: 10%;
      width: 1px;
      background: linear-gradient(180deg, transparent, rgba(201,167,107,0.12), transparent);
    }

    .culture-eyebrow {
      font-family: var(--pixel-font);
      font-size: 8px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .culture-eyebrow::before {
      content: "";
      display: inline-block;
      width: 20px;
      height: 2px;
      background: var(--gold);
    }

    .culture-left h2 {
      font-family: var(--display-font);
      font-size: clamp(30px, 3.6vw, 44px);
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1.1;
      margin-bottom: 22px;
    }

    .culture-left h2 .gold-word {
      color: var(--gold);
      text-shadow: 0 0 30px rgba(201,167,107,0.2);
    }

    .culture-left p {
      font-size: 14px;
      color: #94a8bc;
      line-height: 1.88;
      letter-spacing: 0.005em;
      margin-bottom: 16px;
    }

    /* Culture timeline / bridge */
    .culture-bridge {
      display: flex;
      align-items: center;
      gap: 0;
      margin: 28px 0 24px;
    }

    .bridge-node {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      flex: 1;
      position: relative;
    }

    .bridge-node .bn-icon {
      width: 48px; height: 48px;
      border-radius: 0;
      border: 1px solid rgba(201,167,107,0.15);
      background: rgba(201,167,107,0.04);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      transition: all 0.3s ease;
    }

    .bridge-node .bn-icon:hover {
      border-color: rgba(201,167,107,0.35);
      box-shadow: 0 0 16px rgba(201,167,107,0.12);
    }

    .bridge-node .bn-label {
      font-family: var(--terminal-font);
      font-size: 14px;
      color: var(--muted);
      text-align: center;
      line-height: 1.4;
    }

    .bridge-arrow {
      width: 40px;
      height: 2px;
      background: linear-gradient(90deg, rgba(201,167,107,0.2), rgba(92,200,245,0.3));
      position: relative;
      flex-shrink: 0;
    }

    .bridge-arrow::after {
      content: "";
      position: absolute;
      right: -1px;
      top: -3px;
      width: 0; height: 0;
      border-left: 6px solid rgba(92,200,245,0.3);
      border-top: 4px solid transparent;
      border-bottom: 4px solid transparent;
    }

    .culture-right {
      padding: 44px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    /* Bronze mask SVG art area */
    .bronze-art {
      position: relative;
      width: 100%;
      max-width: 320px;
      aspect-ratio: 1;
      margin-bottom: 24px;
      border-radius: 0;
      overflow: hidden;
    }

    .bronze-art::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to bottom, rgba(2,6,9,0.1), rgba(2,6,9,0.5) 50%, rgba(2,6,9,0.82)),
        url('assets/sacred-tree.webp') center/cover no-repeat;
      z-index: 0;
    }

    .bronze-art svg {
      position: relative;
      z-index: 1;
      width: 100%;
      height: 100%;
    }

    /* Glowing ring animation around mask */
    .bronze-ring {
      position: absolute;
      inset: -8%;
      border-radius: 0;
      border: 1px solid rgba(201,167,107,0.12);
      animation: spinRing 30s linear infinite;
      z-index: 2;
    }

    .bronze-ring::before {
      content: "";
      position: absolute;
      top: -2px; left: 50%;
      width: 6px; height: 6px;
      background: var(--gold);
      box-shadow: 0 0 8px var(--gold);
      opacity: 0.6;
    }

    @keyframes spinRing {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .bronze-ring-inner {
      position: absolute;
      inset: 10%;
      border-radius: 0;
      border: 1px solid rgba(201,167,107,0.06);
      animation: spinRing 20s linear infinite reverse;
      z-index: 2;
    }

    /* Culture pills */
    .culture-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
    }

    .cul-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 32px;
      padding: 0 14px;
      border-radius: 0;
      border: 1px solid rgba(201,167,107,0.1);
      background: rgba(201,167,107,0.03);
      font-family: var(--terminal-font);
      font-size: 15px;
      color: rgba(224,238,248,0.7);
      transition: all 0.22s ease;
    }

    .cul-pill:hover {
      border-color: rgba(201,167,107,0.25);
      color: var(--gold);
      background: rgba(201,167,107,0.06);
    }

    .cul-pill::before {
      content: "";
      width: 4px; height: 4px;
      border-radius: 0;
      background: var(--gold);
      opacity: 0.5;
    }

    @media (max-width: 1180px) {
      .culture-grid { grid-template-columns: 1fr; }
      .culture-left::after { display: none; }
    }

    @media (max-width: 560px) {
      .culture-left, .culture-right { padding: 24px; }
      .bridge-arrow { width: 20px; }
    }

    /* ===================== CONTACT ===================== */
    .contact-wrap {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 12px;
    }

    .contact-main {
      position: relative;
      min-height: 380px;
      padding: 44px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.08);
      background:
        radial-gradient(ellipse 55% 40% at 84% 20%, rgba(92,200,245,0.12), transparent),
        linear-gradient(155deg, #0a1a28, #050d18);
      box-shadow: var(--shadow), var(--shadow-glow);
      overflow: hidden;
    }

    .contact-main h2 {
      font-family: var(--display-font);
      font-size: clamp(28px, 3.6vw, 50px);
      font-weight: 800;
      letter-spacing: -0.05em;
      line-height: 1.05;
      max-width: 420px;
      margin-bottom: 28px;
      background: linear-gradient(135deg, #e0eef8 0%, #c0d8e8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .contact-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .contact-panel { display: grid; gap: 12px; }

    .contact-box {
      padding: 22px 24px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.06);
      background: rgba(92,200,245,0.02);
      box-shadow: var(--shadow-sm);
      transition: border-color 0.3s ease;
      cursor: pointer;
    }

    .contact-box:hover { border-color: rgba(92,200,245,0.15); }

    .contact-box strong {
      display: block;
      font-family: var(--pixel-font);
      font-size: 8px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--pixel-accent);
      opacity: 0.7;
      margin-bottom: 12px;
    }

    .contact-box .val {
      display: block;
      font-family: var(--terminal-font);
      font-size: 20px;
      font-weight: 400;
      letter-spacing: 0.02em;
      color: #e0eef8;
      word-break: break-word;
      line-height: 1.25;
    }

    .contact-box a.val {
      transition: color 0.2s ease;
    }
    .contact-box a.val:hover { color: var(--pixel-accent); }

    /* Contact form */
    .contact-form {
      padding: 22px 24px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.06);
      background: rgba(92,200,245,0.02);
      box-shadow: var(--shadow-sm);
    }

    .contact-form .form-group {
      margin-bottom: 14px;
    }

    .contact-form .form-group:last-of-type {
      margin-bottom: 16px;
    }

    .contact-form label {
      display: block;
      font-family: var(--pixel-font);
      font-size: 7px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--pixel-accent);
      opacity: 0.6;
      margin-bottom: 6px;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 10px 12px;
      border-radius: 0;
      border: 1px solid rgba(92,200,245,0.1);
      border-left: 3px solid rgba(92,200,245,0.15);
      background: rgba(2,6,9,0.6);
      color: var(--text);
      font-family: var(--terminal-font);
      font-size: 16px;
      outline: none;
      transition: border-color 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      border-color: rgba(92,200,245,0.3);
      border-left-color: var(--accent);
      box-shadow: 0 0 12px rgba(92,200,245,0.06);
    }

    .contact-form input:invalid:not(:placeholder-shown),
    .contact-form textarea:invalid:not(:placeholder-shown) {
      border-color: rgba(158,61,48,0.4);
      border-left-color: var(--cinnabar-2);
    }

    .contact-form input:valid:not(:placeholder-shown),
    .contact-form textarea:valid:not(:placeholder-shown) {
      border-color: rgba(74,124,111,0.3);
      border-left-color: var(--bronze-light);
    }

    .contact-form textarea {
      resize: vertical;
      min-height: 72px;
      max-height: 140px;
      line-height: 1.5;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
      color: rgba(106,142,168,0.4);
    }

    .contact-form .form-submit {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border: 1px solid rgba(92,200,245,0.15);
      background: rgba(92,200,245,0.06);
      color: var(--accent);
      font-family: var(--terminal-font);
      font-size: 16px;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .contact-form .form-submit:hover {
      border-color: var(--accent);
      background: rgba(92,200,245,0.1);
      box-shadow: 0 0 16px rgba(92,200,245,0.1);
      transform: translateY(-2px);
    }

    .contact-form .form-submit:active {
      transform: translateY(0) scale(0.97);
    }

    .contact-form .form-submit:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .contact-form .form-submit:disabled:hover {
      border-color: rgba(92,200,245,0.15);
      background: rgba(92,200,245,0.06);
    }

    .contact-form .form-feedback {
      font-family: var(--terminal-font);
      font-size: 14px;
      margin-top: 10px;
      min-height: 20px;
    }

    .contact-form .form-feedback.success {
      color: var(--bronze-light);
    }

    .contact-form .form-feedback.error {
      color: var(--cinnabar-2);
    }

    /* ===================== GALLERY ===================== */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 48px;
    }

    .gallery-item {
      position: relative;
      aspect-ratio: 16/10;
      border-radius: 0;
      overflow: hidden;
      border: 1px solid rgba(92,200,245,0.08);
      background: linear-gradient(135deg, rgba(92,200,245,0.05) 0%, rgba(74,124,111,0.05) 50%, rgba(201,167,107,0.05) 100%);
      transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
      cursor: pointer;
    }

    .gallery-item:hover {
      transform: translateY(-6px);
      border-color: rgba(92,200,245,0.2);
      box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px -12px rgba(92,200,245,0.15);
    }

    .webgl-ripple {
      position: absolute;
      inset: 0;
      z-index: 2;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }

    .webgl-ripple.active {
      opacity: 1;
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.45s ease, transform 0.45s ease;
      transform: scale(1.05);
    }

    .gallery-item img.loaded {
      opacity: 1;
    }

    .gallery-item:hover img {
      transform: scale(1.15);
    }

    /* Smooth link underline animation */
    .section-desc a,
    .contact-box a,
    .history-left a {
      position: relative;
      color: var(--accent);
      text-decoration: none;
    }

    .section-desc a::after,
    .contact-box a::after,
    .history-left a::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--accent);
      transition: width 0.3s ease;
    }

    .section-desc a:hover::after,
    .contact-box a:hover::after,
    .history-left a:hover::after {
      width: 100%;
    }

    /* Button press effect */
    button:active,
    .nav-cta:active,
    .pixel-btn:active {
      transform: scale(0.96) !important;
    }

    /* Card lift effect with shadow */
    .intro-mini:hover,
    .contact-box:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    }

    /* Focus ring enhancement */
    a:focus-visible,
    button:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 4px;
      border-radius: 0;
    }

    /* Placeholder gradient animation */
    .gallery-placeholder {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(92,200,245,0.15), transparent),
        linear-gradient(155deg, #0a1a28, #060d14);
      animation: galleryShimmer 4s ease-in-out infinite;
    }

    .gallery-item.loaded .gallery-placeholder {
      opacity: 0;
      animation: none;
      transition: opacity 0.5s ease;
    }

    @keyframes galleryShimmer {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.85; }
    }

    @keyframes skeletonPulse {
      0%, 100% { opacity: 0.6; }
      50% { opacity: 1; }
    }

    /* Loading skeleton animation */
    .gallery-item:not(.loaded) .gallery-placeholder {
      animation: galleryShimmer 2s ease-in-out infinite, skeletonPulse 1.5s ease-in-out infinite;
    }

    /* Error state */
    .gallery-item.error .gallery-placeholder {
      background: rgba(158,61,48,0.2);
      animation: none;
    }

    .gallery-item.error::after {
      content: '加载失败';
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--cinnabar);
      font-family: var(--terminal-font);
      font-size: 14px;
    }

    .gallery-overlay {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 18px;
      background: linear-gradient(to top, rgba(2,6,9,0.88) 0%, rgba(2,6,9,0.4) 40%, transparent 70%);
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 0.35s ease, transform 0.35s ease;
      pointer-events: none;
    }

    .gallery-item:hover .gallery-overlay {
      opacity: 1;
      transform: translateY(0);
    }

    .gallery-item:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .showcase-video:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 4px;
    }

    .gallery-label {
      font-family: var(--pixel-font);
      font-size: 8px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 6px;
    }

    .gallery-title {
      font-size: 16px;
      font-weight: 600;
      letter-spacing: -0.02em;
      color: #e0eef8;
      line-height: 1.3;
    }

    /* Gallery responsive */
    @media (max-width: 860px) {
      .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      .gallery-item {
        aspect-ratio: 16/9;
      }
    }

    /* ===================== FOOTER ===================== */
    .footer {
      margin-top: 100px;
      padding: 32px 0 56px;
    }

    .footer-line {
      padding-top: 20px;
      border-top: 1px solid transparent;
      border-image: linear-gradient(90deg, transparent, rgba(92,200,245,0.1), rgba(201,167,107,0.08), rgba(158,61,48,0.06), transparent) 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      font-family: var(--terminal-font);
      font-size: 15px;
      color: rgba(106,142,168,0.7);
    }

    .footer-tagline {
      font-family: var(--pixel-font);
      font-size: 7px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--pixel-accent);
      opacity: 0.7;
    }

    .footer-body {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr;
      gap: 32px;
      margin-bottom: 32px;
    }

    .footer-logo-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }

    .footer-logo-icon {
      width: 32px;
      height: 32px;
      flex-shrink: 0;
    }

    .footer-logo-text {
      font-family: var(--pixel-font);
      font-size: 11px;
      color: var(--accent);
      letter-spacing: 0.06em;
    }

    .footer-desc {
      font-family: var(--terminal-font);
      font-size: 15px;
      color: var(--muted);
      line-height: 1.7;
      letter-spacing: 0.005em;
      margin-bottom: 4px;
    }

    .footer-links h4 {
      font-family: var(--pixel-font);
      font-size: 8px;
      color: var(--gold);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .footer-section-title {
      font-family: var(--pixel-font);
      font-size: 8px;
      color: var(--gold);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .footer-links a {
      display: block;
      font-family: var(--terminal-font);
      font-size: 15px;
      color: var(--muted);
      text-decoration: none;
      line-height: 1.8;
      transition: color 0.2s ease;
    }

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

    /* ===================== REVEAL SYSTEM ===================== */
    [data-reveal] {
      opacity: 0;
      transform: translate3d(0, 32px, 0);
      transition:
        opacity 0.85s cubic-bezier(0.2, 0.65, 0.2, 1),
        transform 0.85s cubic-bezier(0.2, 0.65, 0.2, 1);
      backface-visibility: hidden;
    }

    [data-reveal].visible {
      opacity: 1;
      transform: none;
    }

    /* Variant: slide up from below with more distance */
    [data-reveal-up] {
      opacity: 0;
      transform: translate3d(0, 56px, 0);
      transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
      backface-visibility: hidden;
    }
    [data-reveal-up].visible {
      opacity: 1;
      transform: none;
    }

    /* Variant: scale up from center */
    [data-reveal-scale] {
      opacity: 0;
      transform: scale(0.92);
      transition:
        opacity 0.8s cubic-bezier(0.2, 0.65, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1);
      backface-visibility: hidden;
    }
    [data-reveal-scale].visible {
      opacity: 1;
      transform: scale(1);
    }

    /* Variant: slide in from left */
    [data-reveal-left] {
      opacity: 0;
      transform: translate3d(-48px, 0, 0);
      transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
      backface-visibility: hidden;
    }
    [data-reveal-left].visible {
      opacity: 1;
      transform: none;
    }

    /* Variant: clip-path reveal from bottom */
    [data-reveal-clip] {
      opacity: 0;
      clip-path: inset(100% 0 0 0);
      transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
      backface-visibility: hidden;
    }
    [data-reveal-clip].visible {
      opacity: 1;
      clip-path: inset(0 0 0 0);
    }

    /* Stagger children */
    [data-stagger] > * {
      opacity: 0;
      transform: translate3d(0, 20px, 0);
      transition:
        opacity 0.6s cubic-bezier(0.2, 0.65, 0.2, 1),
        transform 0.6s cubic-bezier(0.2, 0.65, 0.2, 1);
      backface-visibility: hidden;
    }
    [data-stagger].visible > * {
      opacity: 1;
      transform: none;
    }
    [data-stagger].visible > *:nth-child(1) { transition-delay: 0ms; }
    [data-stagger].visible > *:nth-child(2) { transition-delay: 80ms; }
    [data-stagger].visible > *:nth-child(3) { transition-delay: 160ms; }
    [data-stagger].visible > *:nth-child(4) { transition-delay: 240ms; }
    [data-stagger].visible > *:nth-child(5) { transition-delay: 320ms; }
    [data-stagger].visible > *:nth-child(6) { transition-delay: 400ms; }

    /* ===================== TILT ===================== */
    [data-tilt] {
      transform-style: preserve-3d;
      backface-visibility: hidden;
      transition: transform 0.2s ease;
    }

    /* ===================== RESPONSIVE ===================== */
    @media (max-width: 1180px) {
      .hero-inner, .intro-grid, .service-grid,
      .contact-wrap { grid-template-columns: 1fr 1fr; }
      .history-grid { grid-template-columns: 1fr; }
      .history-left::after { display: none; }
    }

    @media (max-width: 860px) {
      .hamburger { display: flex; }
      .nav-links, .nav-cta { display: none; }
      .hero-inner, .intro-grid, .service-grid,
      .contact-wrap { grid-template-columns: 1fr; }
      .hero-visual { height: 560px; }
      .vc-main { grid-column: 1 / span 12; grid-row: 1 / span 7; }
      .vc-side-a { grid-column: 1 / span 6; grid-row: 8 / span 2; }
      .vc-side-b { grid-column: 7 / span 6; grid-row: 8 / span 2; }
      .vc-strip { grid-column: 1 / span 12; grid-row: 10 / span 3; }
      .strip-inner { grid-template-columns: 1fr 1fr; }
      .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
      .footer-body { grid-template-columns: 1fr; gap: 24px; }
      #section-nav { display: none; }
    }

    @media (max-width: 560px) {
      body { font-size: 16px; }
      .container { width: calc(100% - 28px); }
      .hero-h1 { font-size: 36px; }
      .hero-visual { height: 480px; }
      .strip-inner { grid-template-columns: 1fr; }
      .hero-stats { grid-template-columns: 1fr 1fr; }
      .history-left, .history-right { padding: 24px; }
      .nav-links { gap: 14px; font-size: 12.5px; }
      section { padding-top: 64px; }
      .footer-body { grid-template-columns: 1fr; gap: 20px; }
      .footer-line { flex-direction: column; align-items: flex-start; gap: 8px; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
      }
      [data-reveal], [data-reveal-up], [data-reveal-scale], [data-reveal-left], [data-reveal-clip] {
        opacity: 1 !important; transform: none !important; clip-path: none !important;
      }
      [data-stagger] > * { opacity: 1 !important; transform: none !important; }
    }

    /* ===================== ACCESSIBILITY ===================== */
    .skip-link {
      position: fixed;
      top: -100%;
      left: 16px;
      z-index: 10000;
      padding: 8px 16px;
      background: var(--accent);
      color: var(--bg);
      font-weight: 700;
      font-size: 14px;
      text-decoration: none;
      border-radius: 0;
      transition: top 0.2s ease;
    }
    .skip-link:focus {
      top: 16px;
    }

    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    a:focus:not(:focus-visible),
    button:focus:not(:focus-visible) {
      outline: none;
    }

    /* ===================== LIGHTBOX ===================== */
    .lightbox-overlay {
      position: fixed;
      inset: 0;
      z-index: 9990;
      background: rgba(2, 6, 9, 0.92);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .lightbox-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .lightbox-overlay.open .lightbox-content {
      animation: pixelReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes pixelReveal {
      0% {
        clip-path: inset(0 0 100% 0);
        opacity: 0;
      }
      15% {
        clip-path: inset(0 30% 70% 30%);
        opacity: 0.4;
      }
      40% {
        clip-path: inset(0 10% 30% 10%);
        opacity: 0.8;
      }
      100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
      }
    }

    .lightbox-overlay.closing .lightbox-content {
      animation: pixelHide 0.3s cubic-bezier(0.55, 0, 1, 0.45) both;
    }

    @keyframes pixelHide {
      0% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
      }
      60% {
        clip-path: inset(20% 20% 20% 20%);
        opacity: 0.6;
      }
      100% {
        clip-path: inset(50% 50% 50% 50%);
        opacity: 0;
      }
    }

    .lightbox-content {
      position: relative;
      max-width: 90vw;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .lightbox-content img {
      max-width: 100%;
      max-height: 70vh;
      object-fit: contain;
      border: 1px solid rgba(92,200,245,0.15);
    }

    .lightbox-info {
      text-align: center;
      margin-top: 16px;
      padding: 12px 24px;
      border: 1px solid rgba(92,200,245,0.1);
      background: rgba(2,6,9,0.7);
    }

    .lightbox-info .lb-label {
      font-family: var(--pixel-font);
      font-size: 8px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 6px;
    }

    .lightbox-info .lb-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.02em;
    }

    .lightbox-close {
      position: absolute;
      top: -48px;
      right: 0;
      width: 40px;
      height: 40px;
      border: 1px solid rgba(92,200,245,0.2);
      background: rgba(2,6,9,0.8);
      color: var(--accent);
      font-family: var(--pixel-font);
      font-size: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      z-index: 2;
    }

    .lightbox-close:hover {
      border-color: var(--accent);
      box-shadow: 0 0 16px rgba(92,200,245,0.2);
      background: rgba(92,200,245,0.1);
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      height: 44px;
      border: 1px solid rgba(92,200,245,0.15);
      background: rgba(2,6,9,0.7);
      color: var(--accent);
      font-family: var(--terminal-font);
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      z-index: 2;
    }

    .lightbox-nav:hover {
      border-color: var(--accent);
      background: rgba(92,200,245,0.1);
      box-shadow: 0 0 16px rgba(92,200,245,0.15);
    }

    .lightbox-nav.prev { left: -60px; }
    .lightbox-nav.next { right: -60px; }

    .lightbox-counter {
      position: absolute;
      bottom: -36px;
      left: 50%;
      transform: translateX(-50%);
      font-family: var(--terminal-font);
      font-size: 15px;
      color: var(--muted);
      letter-spacing: 0.1em;
    }

    @media (max-width: 860px) {
      .lightbox-nav.prev { left: 8px; }
      .lightbox-nav.next { right: 8px; }
      .lightbox-close { top: 8px; right: 8px; }
      .lightbox-content img { max-height: 60vh; }
    }

    /* ===================== CURSOR PIXEL TRAIL ===================== */
    .cursor-trail-dot {
      position: fixed;
      width: 3px;
      height: 3px;
      pointer-events: none;
      z-index: 9998;
      opacity: 0;
      image-rendering: pixelated;
      transition: none;
    }

    /* ===================== HERO GLOW PULSE ===================== */
    .hero-h1 .accent-word {
      animation: glowPulse 3.5s ease-in-out infinite;
    }
    .hero-h1 .gold-word {
      animation: glowPulse 4s ease-in-out 0.5s infinite;
    }

    @keyframes glowPulse {
      0%, 100% {
        text-shadow: 0 0 20px rgba(92,200,245,0.15), 0 0 40px rgba(92,200,245,0.08);
      }
      50% {
        text-shadow: 0 0 40px rgba(92,200,245,0.35), 0 0 80px rgba(92,200,245,0.18), 0 0 120px rgba(92,200,245,0.06);
      }
    }

    .hero-h1 .gold-word {
      animation-name: glowPulseGold;
    }

    @keyframes glowPulseGold {
      0%, 100% {
        text-shadow: 0 0 20px rgba(201,167,107,0.15), 0 0 40px rgba(201,167,107,0.08);
      }
      50% {
        text-shadow: 0 0 40px rgba(201,167,107,0.35), 0 0 80px rgba(201,167,107,0.18), 0 0 120px rgba(201,167,107,0.06);
      }
    }

    html.perf-max .hero-h1 .accent-word,
    html.perf-max .hero-h1 .gold-word {
      animation: none;
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-h1 .accent-word,
      .hero-h1 .gold-word {
        animation: none;
      }
    }

    /* ===================== SHOWCASE SCAN LINE ===================== */
    .showcase-video::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 120px;
      height: 100%;
      background: linear-gradient(90deg,
        transparent 0%,
        rgba(92,200,245,0.03) 20%,
        rgba(92,200,245,0.08) 50%,
        rgba(92,200,245,0.03) 80%,
        transparent 100%
      );
      z-index: 2;
      pointer-events: none;
      animation: scanLine 6s linear infinite;
      opacity: 0.8;
    }

    @keyframes scanLine {
      0% { transform: translateX(-120px); }
      100% { transform: translateX(calc(100vw + 120px)); }
    }

    html.perf-max .showcase-video::after {
      animation: none;
    }

    @media (prefers-reduced-motion: reduce) {
      .showcase-video::after {
        animation: none;
      }
    }

    /* ===================== SECTION ENERGY FLOW ===================== */
    .accent-line-bronze {
      background-size: 200% 100%;
      animation: flowGradientBronze 5s linear infinite;
    }

    @keyframes flowGradientBronze {
      0% { background-position: 100% 0; }
      100% { background-position: -100% 0; }
    }

    .accent-line-red {
      background-size: 200% 100%;
      animation: flowGradientRed 5s linear infinite;
    }

    @keyframes flowGradientRed {
      0% { background-position: 100% 0; }
      100% { background-position: -100% 0; }
    }

    html.perf-max .accent-line-bronze,
    html.perf-max .accent-line-red {
      animation: none;
      background-size: 100% 100%;
    }

    @media (prefers-reduced-motion: reduce) {
      .accent-line-bronze,
      .accent-line-red {
        animation: none;
        background-size: 100% 100%;
      }
    }
