/* ============================================================
   CANVAS VAULT - ULTRA 3D EDITION
   ============================================================ */

:root {
  --bg-main: #F7F4EF;
  --nav-bg: #050505;
  --card-bg: #FFFFFF;
  --text-main: #111111;
  --text-muted: #6B6B6B;
  --border-soft: #E2DDD3;
  --shadow-soft: rgba(0, 0, 0, 0.14);
  --brand-red: #5A0F0F;
  --brand-red-hover: #7A1818;
  --brand-red-light: #A83232;
  --brand-red-soft: #F3E6E6;
  --accent-gold: #C8A24A;
  --accent-gold-dark: #8B6F2E;
  --viewer-bg: #FFFFFF;
  --viewer-light: #FFF8EA;
  --viewer-border: #D9C7A3;
  --viewer-text: #111111;
  --input-bg: #FFFFFF;
  --input-bg-focus: #FFFDF9;
  --input-text: #111111;
  --input-placeholder: #77716A;
  --input-border: #D8D0C4;
  --input-focus-ring: rgba(90, 15, 15, 0.12);

  --black:          var(--nav-bg);
  --ink:            var(--text-main);
  --muted:          var(--text-muted);
  --line:           var(--border-soft);
  --white:          #ffffff;
  --paper:          var(--card-bg);
  --gallery-field:  var(--bg-main);
  --gold:           var(--accent-gold);
  --gold-light:     #E8C76B;
  --gold-rgb:       200, 162, 74;
  --teal:           var(--brand-red-light);
  --teal-rgb:       168, 50, 50;
  --scene-accent-rgb: 90, 15, 15;
  --scene-accent-2-rgb: var(--gold-rgb);
  --dot-x:          0px;
  --dot-y:          0px;
  --dot-x-rev:      0px;
  --dot-y-rev:      0px;
  --dot-drift-x:    0px;
  --dot-drift-y:    0px;
  --scene-rotate-x: 0deg;
  --scene-rotate-y: 0deg;
  --scene-shift-x:  0px;
  --scene-shift-y:  0px;
  --nav-rotate-x:   0deg;
  --nav-rotate-y:   0deg;
  --nav-shift-x:    0px;
  --nav-shift-y:    0px;
  --bg-shift-x:     0px;
  --bg-shift-y:     0px;
  --anime-shift-x:  0px;
  --anime-shift-y:  0px;
  --scroll-progress: 0;
  --scroll-progress-y: 0%;
  --hero-scroll: 0;
  --hero-copy-y: 0px;
  --hero-copy-opacity: 1;
  --hero-art-y: 0px;
  --hero-art-scale: 1;
  --gallery-focus: 0;
  --gallery-ambient-opacity: 0.24;
  --gallery-ambient-y: 34px;
  --gallery-ambient-scale: 1;
  --gallery-grid-y: 0px;
  --gallery-grid-scale: 1;
  --gallery-heading-y: 16px;
  --gallery-grid-rotate: 2.2deg;
  --gallery-grid-main-y: 12px;
  --radius-card:    8px;
  --site-width:     1380px;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-main);
}

:root[data-theme="dark"] {
  --bg-main: #080706;
  --nav-bg: #050505;
  --card-bg: #141210;
  --text-main: #F7F4EF;
  --text-muted: #B9B2A8;
  --border-soft: #332D24;
  --shadow-soft: rgba(0, 0, 0, 0.42);
  --brand-red: #C8A24A;
  --brand-red-hover: #E3C96B;
  --brand-red-light: #1F9B96;
  --brand-red-soft: rgba(200, 162, 74, 0.14);
  --accent-gold: #C8A24A;
  --accent-gold-dark: #8B6F2E;
  --viewer-bg: #171512;
  --viewer-light: #2B2419;
  --viewer-border: #6C5730;
  --viewer-text: #F7F4EF;
  --input-bg: #11100E;
  --input-bg-focus: #171512;
  --input-text: #F7F4EF;
  --input-placeholder: #A69E92;
  --input-border: #4B4030;
  --input-focus-ring: rgba(200, 162, 74, 0.18);
  --black: var(--nav-bg);
  --ink: var(--text-main);
  --muted: var(--text-muted);
  --line: var(--border-soft);
  --paper: var(--card-bg);
  --gallery-field: var(--bg-main);
  --teal: var(--brand-red-light);
  --teal-rgb: 31, 155, 150;
  --scene-accent-rgb: 200, 162, 74;
  --scene-accent-2-rgb: 31, 155, 150;
  --gallery-ambient-opacity: 0.18;
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-main);
  color: var(--text-main);
}

/* Subtle animated gallery field behind the content */
body::before {
  position: fixed;
  inset: -22%;
  z-index: 0;
  content: '';
  background:
    radial-gradient(circle at 16% 18%, rgba(200,162,74,0.13), transparent 24rem),
    radial-gradient(circle at 82% 12%, rgba(90,15,15,0.10), transparent 26rem),
    radial-gradient(circle at 50% 88%, rgba(168,50,50,0.07), transparent 30rem),
    linear-gradient(115deg, rgba(255,255,255,0.16), transparent 44%, rgba(200,162,74,0.08));
  filter: blur(2px);
  mix-blend-mode: multiply;
  opacity: 0.62;
  pointer-events: none;
  transform: translate3d(0,0,0) scale(1);
  animation: ambientGalleryField 22s ease-in-out infinite alternate;
}
:root[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(200,162,74,0.14), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(31,155,150,0.10), transparent 26rem),
    radial-gradient(circle at 48% 84%, rgba(164,134,69,0.09), transparent 30rem),
    linear-gradient(115deg, rgba(255,255,255,0.035), transparent 42%, rgba(31,155,150,0.045));
  mix-blend-mode: screen;
  opacity: 0.52;
}

/* Ambient lighting layer that drifts with the scene instead of sticking to the cursor. */
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: '';
  background:
    radial-gradient(
      circle at calc(74% + var(--bg-shift-x)) calc(18% + var(--bg-shift-y)),
      rgba(90,15,15,0.05),
      transparent 17rem
    ),
    radial-gradient(
      circle at calc(16% - var(--bg-shift-x)) calc(82% - var(--bg-shift-y)),
      rgba(200,162,74,0.05),
      transparent 19rem
    );
  mix-blend-mode: multiply;
  opacity: 0.75;
  pointer-events: none;
  transition: background 180ms ease-out;
}

.scroll-progress {
  position: fixed;
  top: 50%;
  right: clamp(12px, 2vw, 28px);
  z-index: 60;
  width: 18px;
  height: min(46vh, 380px);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
  pointer-events: none;
}
.scroll-progress::before {
  position: absolute;
  inset: 0;
  content: '';
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 3px, rgba(255,255,255,0.28) 0 1px, transparent 2.5px),
    radial-gradient(circle at 50% 12px, rgba(200,162,74,0.34) 0 1.4px, transparent 3px);
  background-size: 100% 22px, 100% 34px;
  opacity: 0.42;
}
.scroll-progress span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: var(--scroll-progress-y);
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 4px, rgba(255,255,255,0.86) 0 1.6px, transparent 3.4px),
    radial-gradient(circle at 50% 14px, rgba(200,162,74,0.82) 0 2px, transparent 4px),
    radial-gradient(circle at 50% 25px, rgba(var(--scene-accent-2-rgb),0.56) 0 1.6px, transparent 3.6px);
  background-size: 100% 28px, 100% 42px, 100% 54px;
  box-shadow: 0 0 16px rgba(200,162,74,0.28);
  transform: translateX(-50%);
}
.scroll-progress i {
  position: absolute;
  top: var(--scroll-progress-y);
  left: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 50%;
  background: radial-gradient(circle, var(--white), var(--gold) 48%, transparent 52%);
  box-shadow: 0 0 18px rgba(200,162,74,0.54), 0 0 28px rgba(var(--scene-accent-2-rgb),0.22);
  transform: translate(-50%, -50%);
}
.route-transition {
  --route-x: 50vw;
  --route-y: 50vh;
  position: fixed;
  inset: 0;
  z-index: 85;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.route-transition::before {
  position: absolute;
  left: var(--route-x);
  top: var(--route-y);
  width: max(140vw, 140vh);
  aspect-ratio: 1;
  border-radius: 50%;
  content: '';
  background:
    radial-gradient(circle, rgba(255,244,214,0.62) 0%, rgba(216,161,58,0.34) 14%, rgba(126,22,24,0.2) 34%, transparent 64%);
  filter: blur(1px);
  transform: translate(-50%, -50%) scale(0);
}
.route-transition::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    radial-gradient(circle at 18% 34%, rgba(255,248,220,0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 62%, rgba(200,162,74,0.34) 0 2px, transparent 4px),
    radial-gradient(circle at 78% 28%, rgba(var(--scene-accent-2-rgb),0.28) 0 1px, transparent 3px),
    radial-gradient(circle at 34% 78%, rgba(255,255,255,0.24) 0 1px, transparent 3px);
  background-size: 140px 140px, 210px 210px, 170px 170px, 240px 240px;
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.98);
}
.route-transition__burst {
  position: absolute;
  left: var(--route-x);
  top: var(--route-y);
  width: min(42vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,248,220,0.82) 0 2px, transparent 4px),
    radial-gradient(circle at 28% 36%, rgba(200,162,74,0.62) 0 3px, transparent 6px),
    radial-gradient(circle at 70% 30%, rgba(var(--scene-accent-2-rgb),0.44) 0 2px, transparent 5px),
    radial-gradient(circle at 62% 72%, rgba(255,255,255,0.48) 0 2px, transparent 5px),
    radial-gradient(circle at 36% 70%, rgba(var(--scene-accent-rgb),0.36) 0 2px, transparent 6px);
  filter: drop-shadow(0 0 24px rgba(200,162,74,0.44));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.22) rotate(-8deg);
}
.route-transition__spark {
  position: absolute;
  left: var(--route-x);
  top: var(--route-y);
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255,245,214,0.82);
  border-radius: 50%;
  box-shadow:
    0 0 22px rgba(216,161,58,0.86),
    0 0 42px rgba(31,155,150,0.42);
  transform: translate(-50%, -50%) scale(0);
}
.route-transition.is-active {
  animation: routeLayerFade 900ms cubic-bezier(0.22,1,0.36,1) both;
}
.route-transition.is-active::before {
  animation: routePortalBloom 900ms cubic-bezier(0.16,1,0.3,1) both;
}
.route-transition.is-active::after {
  animation: routeParticleMist 780ms cubic-bezier(0.22,1,0.36,1) both;
}
.route-transition.is-active .route-transition__burst {
  animation: routeParticleBurst 820ms cubic-bezier(0.22,1,0.36,1) both;
}
.route-transition.is-active .route-transition__spark {
  animation: routeSparkPop 760ms cubic-bezier(0.16,1,0.3,1) both;
}
.route-transition.is-mobile-route {
  mix-blend-mode: screen;
}
.route-transition.is-mobile-route::before {
  background:
    radial-gradient(circle, rgba(255,244,214,0.46) 0%, rgba(200,162,74,0.24) 18%, rgba(31,155,150,0.12) 36%, transparent 66%);
}
.route-transition.is-mobile-route::after {
  background:
    radial-gradient(circle at 22% 36%, rgba(255,255,255,0.18) 0 1px, transparent 3px),
    radial-gradient(circle at 56% 62%, rgba(200,162,74,0.16) 0 1.5px, transparent 4px),
    radial-gradient(circle at 80% 30%, rgba(var(--scene-accent-2-rgb),0.14) 0 1px, transparent 3px);
  background-size: 130px 130px, 180px 180px, 150px 150px;
}
.route-transition.is-mobile-route .route-transition__burst {
  width: min(58vw, 300px);
  filter: drop-shadow(0 0 14px rgba(200,162,74,0.32));
}
.route-transition.is-mobile-route .route-transition__spark {
  width: 12px;
  height: 12px;
}
body.is-route-travelling main {
  filter: saturate(1.08) contrast(1.02);
}

img { display: block; max-width: 100%; }
a   { color: inherit; }

/* ── CANVASES ─────────────────────────────────── */
.motion-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  opacity: 0.68;
  filter: saturate(1.45) contrast(1.16);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-three-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
.trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.webgl-unavailable .motion-canvas { display: none; }

/* ── ANIMATED BACKDROP ───────────────────────── */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  transform: translate3d(var(--bg-shift-x), var(--bg-shift-y), 0) scale(1.035);
  transform-origin: center;
  transition: transform 180ms ease-out;
  will-change: transform;
}
.ambient-backdrop::before {
  position: absolute;
  inset: -12%;
  z-index: 1;
  content: '';
  background:
    radial-gradient(circle, rgba(90,15,15,0.46) 0 1.4px, transparent 2.1px),
    radial-gradient(circle, rgba(200,162,74,0.38) 0 1.1px, transparent 1.9px);
  background-position:
    var(--dot-x) var(--dot-y),
    calc(24px + var(--dot-x-rev)) calc(22px + var(--dot-y-rev));
  background-size: 44px 44px, 68px 68px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.86) 54%, transparent 88%);
  mix-blend-mode: multiply;
  opacity: 0.86;
  animation: dotMatrixDrift 32s linear infinite;
}
.ambient-backdrop__grid,
.ambient-backdrop__wash,
.ambient-backdrop__grain,
.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ambient-backdrop__grid {
  inset: -24%;
  background:
    linear-gradient(rgba(90,15,15,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,162,74,0.10) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.68), transparent 72%);
  opacity: 0.26;
  transform: perspective(900px) rotateX(62deg) translate3d(0, 10%, 0) scale(1.12);
  transform-origin: center bottom;
  animation: ambientGridDrift 26s linear infinite;
}
.ambient-backdrop__wash {
  inset: -18%;
  background:
    conic-gradient(from 160deg at 22% 26%, transparent 0 24%, rgba(90,15,15,0.13) 30%, transparent 42% 100%),
    conic-gradient(from 18deg at 76% 58%, transparent 0 18%, rgba(200,162,74,0.18) 26%, transparent 44% 100%),
    linear-gradient(118deg, transparent 16%, rgba(255,255,255,0.22) 44%, transparent 68%);
  filter: blur(16px);
  mix-blend-mode: multiply;
  opacity: 0.52;
  animation: ambientWashMove 18s ease-in-out infinite alternate;
}
.ambient-backdrop__grain {
  background-image:
    radial-gradient(circle at 12% 24%, rgba(200,162,74,0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 68%, rgba(90,15,15,0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 32%, rgba(200,162,74,0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 78%, rgba(90,15,15,0.20) 0 1px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 340px 340px, 260px 260px;
  opacity: 0.22;
  animation: ambientGrainFloat 20s linear infinite;
}
.particle-field {
  inset: -8%;
  z-index: 2;
  opacity: 0.84;
  mix-blend-mode: multiply;
}
.particle-field span {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.96) 0 22%, rgba(200,162,74,0.86) 42%, rgba(90,15,15,0.12) 70%, transparent 72%);
  box-shadow:
    0 0 16px rgba(200,162,74,0.42),
    0 0 34px rgba(90,15,15,0.12);
  opacity: 0.72;
  transform: translate3d(0, 0, 0);
  animation: particleFloat var(--speed) ease-in-out infinite;
  animation-delay: var(--delay);
}
.particle-field span:nth-child(3n) {
  background: radial-gradient(circle, rgba(255,255,255,0.92) 0 20%, rgba(168,50,50,0.62) 44%, transparent 74%);
}
.particle-field span:nth-child(4n) {
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0 18%, rgba(31,155,150,0.38) 48%, transparent 75%);
}
.anime-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.42;
  mix-blend-mode: multiply;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(var(--anime-shift-x), var(--anime-shift-y), 0) scale(1.025);
  transform-origin: center;
  transition: transform 180ms ease-out;
  will-change: transform;
}
.anime-backdrop::before {
  position: absolute;
  inset: -8%;
  z-index: 0;
  content: '';
  background:
    radial-gradient(circle, rgba(90,15,15,0.38) 0 1.1px, transparent 1.9px),
    radial-gradient(circle, rgba(200,162,74,0.34) 0 1px, transparent 1.7px);
  background-position:
    calc(12px + var(--dot-x-rev)) calc(8px + var(--dot-y-rev)),
    calc(42px + var(--dot-x)) calc(38px + var(--dot-y));
  background-size: 42px 42px, 74px 74px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8), transparent 84%);
  mix-blend-mode: multiply;
  opacity: 0.42;
  animation: dotMatrixDrift 26s linear infinite reverse;
}
.anime-girl-bg {
  --anime-tilt: -1deg;
  --anime-tilt-active: 0.8deg;
  position: absolute;
  z-index: 1;
  height: auto;
  max-width: none;
  border: 0;
  filter: saturate(0.98) contrast(1) brightness(0.98);
  transform: translate3d(0, 0, 0) rotate(var(--anime-tilt));
  animation: animeImageFloat 18s ease-in-out infinite;
}
.anime-girl-bg--right {
  right: max(-150px, -7vw);
  top: 8vh;
  width: min(42vw, 640px);
  height: min(42vw, 640px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 62% 50%;
  border-radius: 50%;
  opacity: 0.94;
  filter: saturate(1) contrast(1.02) brightness(0.98);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.82) 48%, transparent 76%);
  transform-origin: 58% 42%;
}
.anime-girl-bg--left {
  --anime-tilt: 1.6deg;
  --anime-tilt-active: -0.6deg;
  left: max(-180px, -10vw);
  bottom: -128px;
  width: min(34vw, 460px);
  opacity: 0.92;
  filter: saturate(0.95) contrast(0.98) brightness(0.95);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.78) 42%, transparent 76%);
  transform-origin: 30% 70%;
  animation-duration: 22s;
  animation-delay: -8s;
}
.japanese-corner {
  position: absolute;
  z-index: 4;
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: rgba(90,15,15,0.82);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
  font-size: clamp(1.4rem, 2.25vw, 2.65rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-shadow:
    0 0 14px rgba(255,248,234,0.94),
    0 0 28px rgba(200,162,74,0.32),
    0 0 42px rgba(90,15,15,0.16);
  opacity: 0.78;
  mix-blend-mode: multiply;
  animation:
    japaneseTextFloat 16s ease-in-out infinite,
    japaneseGlitchJitter 2.4s steps(2,end) infinite;
}
.japanese-corner::before,
.japanese-corner::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  pointer-events: none;
  opacity: 0;
  writing-mode: inherit;
  text-orientation: inherit;
  mix-blend-mode: multiply;
}
.japanese-corner::before {
  color: rgba(168,50,50,0.92);
  animation: japaneseGlitchRed 1.65s steps(2,end) infinite;
}
.japanese-corner::after {
  color: rgba(200,162,74,0.94);
  animation: japaneseGlitchGold 1.65s steps(2,end) infinite;
  animation-delay: -0.34s;
}
.japanese-corner.is-glitching::before {
  animation: glitchBurstRed 560ms steps(2,end) both;
}
.japanese-corner.is-glitching::after {
  animation: glitchBurstGold 560ms steps(2,end) both;
}
.japanese-corner--top-left {
  left: clamp(18px, 3vw, 48px);
  top: clamp(100px, 13vh, 150px);
}
.japanese-corner--bottom-right {
  right: clamp(24px, 4vw, 62px);
  bottom: clamp(42px, 8vh, 92px);
  animation-delay: -7s;
}
:root[data-theme="dark"] .ambient-backdrop__grid {
  background:
    linear-gradient(rgba(200,162,74,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,155,150,0.10) 1px, transparent 1px);
  opacity: 0.20;
}
:root[data-theme="dark"] .ambient-backdrop::before {
  background:
    radial-gradient(circle, rgba(200,162,74,0.6) 0 1.4px, transparent 2.1px),
    radial-gradient(circle, rgba(31,155,150,0.44) 0 1.1px, transparent 1.9px);
  mix-blend-mode: screen;
  opacity: 0.58;
}
:root[data-theme="dark"] .ambient-backdrop__wash {
  background:
    conic-gradient(from 160deg at 20% 24%, transparent 0 22%, rgba(200,162,74,0.16) 31%, transparent 44% 100%),
    conic-gradient(from 22deg at 80% 60%, transparent 0 18%, rgba(31,155,150,0.12) 27%, transparent 45% 100%),
    linear-gradient(118deg, transparent 18%, rgba(255,255,255,0.045) 44%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.48;
}
:root[data-theme="dark"] .ambient-backdrop__grain {
  background-image:
    radial-gradient(circle at 12% 24%, rgba(200,162,74,0.44) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 68%, rgba(31,155,150,0.26) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 32%, rgba(200,162,74,0.30) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 78%, rgba(31,155,150,0.22) 0 1px, transparent 2px);
  opacity: 0.24;
}
:root[data-theme="dark"] .particle-field {
  opacity: 0.74;
  mix-blend-mode: screen;
}
:root[data-theme="dark"] .particle-field span {
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0 20%, rgba(200,162,74,0.78) 42%, rgba(31,155,150,0.22) 70%, transparent 74%);
  box-shadow:
    0 0 18px rgba(200,162,74,0.38),
    0 0 34px rgba(31,155,150,0.16);
}
:root[data-theme="dark"] .anime-backdrop {
  opacity: 0.34;
  mix-blend-mode: screen;
}
:root[data-theme="dark"] .anime-backdrop::before {
  background:
    radial-gradient(circle, rgba(200,162,74,0.62) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(31,155,150,0.44) 0 1px, transparent 1.8px);
  mix-blend-mode: screen;
  opacity: 0.5;
}
:root[data-theme="dark"] .anime-girl-bg--right {
  opacity: 0.82;
  filter: saturate(0.72) contrast(0.9) brightness(0.74);
}
:root[data-theme="dark"] .anime-girl-bg--left {
  display: block;
  opacity: 0.52;
  filter: saturate(0.68) contrast(0.9) brightness(0.68);
}
:root[data-theme="dark"] .japanese-corner {
  color: rgba(200,162,74,0.88);
  opacity: 0.76;
  mix-blend-mode: screen;
  text-shadow:
    0 0 16px rgba(200,162,74,0.42),
    0 0 34px rgba(31,155,150,0.22),
    0 0 48px rgba(255,255,255,0.08);
}
:root[data-theme="dark"] .japanese-corner::before,
:root[data-theme="dark"] .japanese-corner::after {
  mix-blend-mode: screen;
}
:root[data-theme="dark"] .japanese-corner::before {
  color: rgba(31,155,150,0.92);
}
:root[data-theme="dark"] .japanese-corner::after {
  color: rgba(200,162,74,0.96);
}

/* ── FLOATING ORBS ──────────────────────────── */
.floating-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  animation: orbFloat linear infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(119,19,23,0.32), transparent 70%);
  animation-duration: 22s;
}
.orb-2 {
  width: 500px; height: 500px;
  top: 30%; right: -150px;
  background: radial-gradient(circle, rgba(31,155,150,0.15), transparent 70%);
  animation-duration: 18s;
  animation-delay: -9s;
}
.orb-3 {
  width: 400px; height: 400px;
  bottom: 10%; left: 20%;
  background: radial-gradient(circle, rgba(105,12,18,0.22), transparent 70%);
  animation-duration: 25s;
  animation-delay: -6s;
}
.orb-4 {
  width: 300px; height: 300px;
  top: 60%; right: 30%;
  background: radial-gradient(circle, rgba(162,42,36,0.16), transparent 70%);
  animation-duration: 20s;
  animation-delay: -12s;
}

@keyframes orbFloat {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(30px,-40px) scale(1.05); }
  50%  { transform: translate(-20px,20px) scale(0.95); }
  75%  { transform: translate(40px,30px) scale(1.08); }
  100% { transform: translate(0,0) scale(1); }
}

/* ── NAV ──────────────────────────────────────── */
main, .site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(var(--site-width), calc(100% - 32px));
  margin: 14px auto 0;
  transform:
    perspective(1600px)
    rotateX(var(--nav-rotate-x))
    rotateY(var(--nav-rotate-y))
    translate3d(var(--nav-shift-x), var(--nav-shift-y), 0);
  transform-origin: center top;
  transition: transform 180ms ease-out;
  will-change: transform;
}

.top-nav {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(18,3,4,0.86);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.06) inset;
  transition: background 300ms ease;
}
body.is-scrolled .top-nav {
  background: rgba(13,2,3,0.94);
  box-shadow: 0 14px 42px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.08) inset;
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-left: 10px;
  text-decoration: none;
}
.nav-mark-cv {
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(216,161,58,0.5));
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3.5vw, 64px);
}
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 200ms ease;
}
.nav-links a::after {
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:is(:hover,:focus-visible,.is-active) { color: var(--white); }
.nav-links a:is(:hover,:focus-visible,.is-active)::after { transform: scaleX(1); }
.nav-mark:active,
.nav-mark.is-route-clicked,
.nav-links a:active,
.nav-links a.is-route-clicked,
.button:active,
.button.is-route-clicked {
  animation: buttonPortalPress 700ms cubic-bezier(0.16,1,0.3,1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.86);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(200,162,74,0.62);
  background: rgba(200,162,74,0.13);
  color: var(--white);
  box-shadow: 0 0 22px rgba(200,162,74,0.2);
  transform: translateY(-1px);
}
.theme-toggle__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-red-light);
  box-shadow: 0 0 12px rgba(168,50,50,0.55);
}
:root[data-theme="dark"] .theme-toggle__dot {
  background: var(--teal);
  box-shadow: 0 0 14px rgba(31,155,150,0.58);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: 10px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MAIN WRAPPER ─────────────────────────────── */
main {
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto;
}
section[id] { scroll-margin-top: 128px; }
.scroll-section {
  --section-focus: 0;
  --section-drift: 0px;
  transform: translate3d(0, var(--section-drift), 0);
  transition: box-shadow 320ms ease;
  will-change: transform;
}
.scroll-section.is-section-active {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 34px 110px rgba(0,0,0,0.22);
}
section[id]:target,
section[id].is-route-target {
  animation: sectionFocusFlash 980ms ease both;
}
section[id]:target .section-heading,
section[id]:target .hero-copy,
section[id]:target .featured-grid,
section[id]:target .art-grid,
section[id]:target .about-copy,
section[id]:target .about-tags,
section[id]:target .contact-inner,
section[id]:target .contact-form,
section[id].is-route-target .section-heading,
section[id].is-route-target .hero-copy,
section[id].is-route-target .featured-grid,
section[id].is-route-target .art-grid,
section[id].is-route-target .about-copy,
section[id].is-route-target .about-tags,
section[id].is-route-target .contact-inner,
section[id].is-route-target .contact-form {
  animation: sectionContentLand 820ms cubic-bezier(0.16,1,0.3,1);
}
.section-shell, .white-panel {
  border-right: 1px solid rgba(255,255,255,0.1);
  border-left:  1px solid rgba(255,255,255,0.1);
}
.dark-section {
  background: var(--bg-main);
  color: var(--text-main);
  backdrop-filter: none;
}
.white-panel {
  background: var(--bg-main);
  color: var(--text-main);
}

/* ── SECTION LABELS ────────────────────────────── */
.section-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(216,161,58,0.5);
  border-radius: 100px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-label.light {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  min-height: min(680px, calc(100vh - 90px));
  padding: clamp(48px, 7vw, 96px) clamp(36px, 6vw, 96px);
  overflow: hidden;
  --hero-scroll: 0;
}
.hero-copy {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(126,22,24,0.16);
  border-radius: var(--radius-card);
  background:
    linear-gradient(160deg, #f1e7dc 0%, #e2d2c4 100%);
  box-shadow:
    0 28px 74px rgba(0,0,0,0.36),
    0 0 0 1px rgba(255,238,220,0.42) inset;
  color: var(--ink);
  transform:
    perspective(1400px)
    rotateX(var(--scene-rotate-x))
    rotateY(var(--scene-rotate-y))
    translate3d(var(--scene-shift-x), calc(var(--hero-copy-y) + var(--scene-shift-y)), 0);
  transform-style: preserve-3d;
  opacity: var(--hero-copy-opacity);
  will-change: transform, opacity;
  transition: transform 180ms ease-out;
}

/* Glitch title */
.glitch-title {
  position: relative;
  margin: 0 0 18px;
  font-family: 'Bebas Neue', Georgia, serif;
  font-size: clamp(4rem, 7.5vw, 7.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(200,162,74,0.12);
  animation: glitchTitleJitter 2.4s steps(2,end) infinite;
}
.glitch-title::before,
.glitch-title::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
}
.glitch-title::before {
  color: rgba(90,15,15,0.82);
  clip-path: polygon(0 8%, 100% 8%, 100% 28%, 0 28%);
  animation: glitchIdleRed 1.65s steps(2,end) infinite;
}
.glitch-title::after {
  color: rgba(200,162,74,0.82);
  clip-path: polygon(0 58%, 100% 58%, 100% 76%, 0 76%);
  animation: glitchIdleGold 1.65s steps(2,end) infinite;
  animation-delay: -0.34s;
}
.glitch-title.is-glitching::before {
  animation: glitchBurstRed 520ms steps(2,end) both;
}
.glitch-title.is-glitching::after {
  animation: glitchBurstGold 520ms steps(2,end) both;
}

.glitch-layer {
  position: absolute;
  inset: 0;
  display: block;
}
.glitch-layer-1 {
  color: rgba(126,22,24,0.86);
  mix-blend-mode: multiply;
  animation: glitch1 1.7s steps(2,end) infinite;
  clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
}
.glitch-layer-2 {
  color: rgba(216,161,58,0.9);
  mix-blend-mode: multiply;
  animation: glitch2 1.7s steps(2,end) infinite;
  animation-delay: 0.5s;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}

@keyframes glitch1 {
  0%,18%,42%,68%,100% { transform: translate(0); opacity: 0; }
  20%  { transform: translate(-4px, 1px); opacity: 0.82; }
  22%  { transform: translate(4px, -1px); opacity: 0.74; }
  44%  { transform: translate(-2px, 2px); opacity: 0.68; }
  70%  { transform: translate(3px, -2px); opacity: 0.72; }
}
@keyframes glitch2 {
  0%,24%,52%,80%,100% { transform: translate(0); opacity: 0; }
  26%  { transform: translate(3px, 2px); opacity: 0.78; }
  28%  { transform: translate(-4px, -1px); opacity: 0.7; }
  54%  { transform: translate(2px, -2px); opacity: 0.62; }
  82%  { transform: translate(-3px, 2px); opacity: 0.68; }
}

:root[data-theme="dark"] .glitch-title {
  text-shadow:
    0 0 18px rgba(200,162,74,0.2),
    0 0 34px rgba(31,155,150,0.08);
}
:root[data-theme="dark"] .glitch-title::before,
:root[data-theme="dark"] .glitch-title::after,
:root[data-theme="dark"] .glitch-layer-1,
:root[data-theme="dark"] .glitch-layer-2 {
  mix-blend-mode: screen;
}
:root[data-theme="dark"] .glitch-layer-1,
:root[data-theme="dark"] .glitch-title::before {
  color: rgba(31,155,150,0.82);
}
:root[data-theme="dark"] .glitch-layer-2,
:root[data-theme="dark"] .glitch-title::after {
  color: rgba(200,162,74,0.9);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(22,8,8,0.58);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 8px var(--gold); }
  50%      { box-shadow: 0 0 20px var(--gold), 0 0 40px rgba(216,161,58,0.4); }
}
.eyebrow-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(126,22,24,0.45), rgba(216,161,58,0.45), transparent);
}

.hero-sub {
  margin: 0 0 32px;
  color: rgba(22,8,8,0.68);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: 'Bebas Neue', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(22,8,8,0.52);
}
.stat-div {
  width: 1px;
  height: 36px;
  background: rgba(22,8,8,0.14);
}

/* ── HERO ART FRAME ──────────────────────────── */
.hero-art {
  position: relative;
  perspective: 1200px;
  align-self: center;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(216,161,58,0.18);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 50% 40%, var(--viewer-light) 0%, var(--viewer-bg) 56%, #F2E8D8 100%);
  box-shadow:
    0 28px 76px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255,220,188,0.08) inset,
    0 0 68px rgba(126,22,24,0.26);
  transform:
    perspective(1400px)
    rotateX(var(--scene-rotate-x))
    rotateY(var(--scene-rotate-y))
    translate3d(var(--scene-shift-x), calc(var(--hero-art-y) + var(--scene-shift-y)), 0)
    scale(var(--hero-art-scale));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 180ms ease-out;
}
.hero-art-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  transform-style: preserve-3d;
  animation: heroFloat 7s ease-in-out infinite;
  will-change: transform;
  cursor: pointer;
  transition: transform 350ms cubic-bezier(0.22,1,0.36,1);
}
@keyframes heroFloat {
  0%,100% { transform: perspective(1200px) rotateX(2deg) rotateY(-4deg) translateY(0px); }
  33%      { transform: perspective(1200px) rotateX(-1deg) rotateY(3deg) translateY(-12px); }
  66%      { transform: perspective(1200px) rotateX(3deg) rotateY(-2deg) translateY(8px); }
}

.hero-art-inner {
  position: relative;
  width: 100%; height: 100%;
  border: 1px solid rgba(255,220,188,0.16);
  border-radius: 4px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow:
    0 26px 70px rgba(0,0,0,0.34),
    0 14px 34px rgba(126,22,24,0.16),
    inset 0 0 60px rgba(0,0,0,0.2);
}
.hero-art-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.95);
  transform: scale(1.04);
  transform-origin: center;
  transition: transform 6s ease-in-out;
}
.hero-art-frame:hover .hero-art-inner img { transform: scale(1.08); }

/* Scanlines overlay */
.hero-art-scanlines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 48%, transparent 52%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.09) 2px, rgba(0,0,0,0.09) 4px);
  background-size: 220% 100%, 100% 4px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.72;
  mix-blend-mode: overlay;
  animation: scanlineSweep 3.8s linear infinite;
}

/* Corner brackets */
.hero-art-corner {
  position: absolute;
  width: 24px; height: 24px;
  z-index: 3;
  pointer-events: none;
}
.hero-art-corner.tl { top: 8px; left: 8px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.hero-art-corner.tr { top: 8px; right: 8px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.hero-art-corner.bl { bottom: 8px; left: 8px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.hero-art-corner.br { bottom: 8px; right: 8px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

/* Floating rings */
.hero-art-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: ringPulse 4s ease-in-out infinite;
}
.hero-art-ring-1 {
  inset: -20px;
  border: 1px solid rgba(216,161,58,0.22);
  animation-delay: 0s;
}
.hero-art-ring-2 {
  inset: -42px;
  border: 1px solid rgba(31,155,150,0.14);
  animation-delay: -2s;
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.04); opacity: 1; }
}

.hero-art-shadow {
  position: absolute;
  bottom: -30px;
  left: 10%; right: 10%;
  height: 40px;
  background: rgba(0,0,0,0.5);
  filter: blur(24px);
  border-radius: 50%;
  animation: shadowPulse 7s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%,100% { transform: scale(1); opacity: 0.6; }
  33%      { transform: scale(0.9) translateY(-8px); opacity: 0.4; }
  66%      { transform: scale(1.1) translateY(4px); opacity: 0.7; }
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: scrollCueFade 2.5s ease-in-out infinite;
}
.scroll-line {
  width: 12px;
  height: 40px;
  background:
    radial-gradient(circle at 50% 3px, rgba(255,255,255,0.42) 0 1px, transparent 2.8px),
    radial-gradient(circle at 50% 17px, rgba(200,162,74,0.38) 0 1.4px, transparent 3px),
    radial-gradient(circle at 50% 31px, rgba(var(--scene-accent-2-rgb),0.24) 0 1.2px, transparent 3px);
  background-size: 100% 40px;
  filter: drop-shadow(0 0 10px rgba(200,162,74,0.24));
}
@keyframes scrollCueFade {
  0%,100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ── BUTTONS ──────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  position: relative;
  overflow: hidden;
}
.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 500ms ease;
}
.button:hover::after { transform: translateX(100%); }
.button:hover, .button:focus-visible {
  transform: translateY(-3px);
}

.button-gold {
  background: linear-gradient(135deg, var(--gold), #b8822a);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(216,161,58,0.35);
}
.button-gold:hover {
  box-shadow: 0 16px 40px rgba(216,161,58,0.5);
}
.button-ghost {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.button-ghost:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
}
.hero-copy .button-ghost {
  border-color: rgba(22,8,8,0.22);
  background: rgba(22,8,8,0.035);
  color: var(--ink);
  backdrop-filter: none;
}
.hero-copy .button-ghost:hover {
  border-color: rgba(22,8,8,0.42);
  background: rgba(22,8,8,0.075);
}
.button-dark {
  background: var(--black);
  color: var(--white);
}
.button-dark-solid {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  color: var(--white);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.button-dark-solid:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}
.button-light {
  background: var(--white);
  color: var(--black);
}

/* ── GALLERY ──────────────────────────────────── */
.gallery-section {
  position: relative;
  padding: clamp(80px, 8vw, 120px) clamp(32px, 5vw, 80px) clamp(72px, 7vw, 110px);
  background: var(--bg-main);
  color: var(--text-main);
  overflow: hidden;
  isolation: isolate;
  --gallery-focus: 0;
}
.gallery-section::before {
  position: absolute;
  inset: -22% -10%;
  z-index: 0;
  content: '';
  background:
    radial-gradient(circle at 20% 22%, rgba(216,161,58,0.18), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(126,22,24,0.34), transparent 32%),
    conic-gradient(from 130deg at 50% 50%, transparent, rgba(216,161,58,0.08), transparent, rgba(92,8,12,0.12), transparent);
  opacity: var(--gallery-ambient-opacity);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateY(var(--gallery-ambient-y)) scale(var(--gallery-ambient-scale));
  transition: opacity 260ms ease;
}
.gallery-bg-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(90,15,15,0.28) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(200,162,74,0.24) 0 1px, transparent 1.8px);
  background-position: 0 0, 24px 24px;
  background-size: 48px 48px, 72px 72px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
  mix-blend-mode: multiply;
  transform: translate3d(0, var(--gallery-grid-y), 0) scale(var(--gallery-grid-scale));
  will-change: transform, opacity;
}
.gallery-section .section-heading {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: clamp(48px, 5vw, 72px);
  transform: translate3d(0, var(--gallery-heading-y), 0);
  transition: transform 300ms ease;
}
.featured-section {
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(58px, 6vw, 88px);
}
.featured-section .section-heading {
  margin-bottom: clamp(34px, 4vw, 52px);
}
.featured-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.featured-grid .image-shell {
  height: clamp(300px, 28vw, 420px);
}
.gallery-section .section-heading h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.heading-accent-line {
  width: 64px;
  height: 3px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 2px;
}

.art-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 52px);
  perspective: 2000px;
  transform:
    perspective(2000px)
    rotateX(var(--gallery-grid-rotate))
    rotateY(var(--scene-rotate-y))
    translateY(var(--gallery-grid-main-y));
  transform-origin: center top;
  transition: transform 320ms cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}

/* ── ART CARDS ──────────────────────────────── */
.art-card {
  min-width: 0;
  outline: none;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Per-card color themes */
.art-card:nth-child(6n+1) { --accent: #e4a51f; --accent-rgb: 228,165,31; --accent-2: #009c9c; --accent-2-rgb: 0,156,156; }
.art-card:nth-child(6n+2) { --accent: #c4492d; --accent-rgb: 196,73,45;  --accent-2: #6f8b3c; --accent-2-rgb: 111,139,60; }
.art-card:nth-child(6n+3) { --accent: #6fa7b2; --accent-rgb: 111,167,178;--accent-2: #d5a866; --accent-2-rgb: 213,168,102;}
.art-card:nth-child(6n+4) { --accent: #d66f52; --accent-rgb: 214,111,82; --accent-2: #4f9ca3; --accent-2-rgb: 79,156,163; }
.art-card:nth-child(6n+5) { --accent: #a48645; --accent-rgb: 164,134,69; --accent-2: #596f39; --accent-2-rgb: 89,111,57;  }
.art-card:nth-child(6n+6) { --accent: #7b4fb5; --accent-rgb: 123,79,181; --accent-2: #9fb7c8; --accent-2-rgb: 159,183,200;}

.motion-ready .art-card {
  opacity: 0;
  transform: translateY(48px) rotateX(8deg) scale(0.96);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .art-card.is-visible {
  opacity: 1;
  transform: translateY(var(--card-scroll-y, 0px)) rotateX(var(--card-scroll-rotate, 0deg)) scale(1);
}
.gallery-section.is-gallery-focus .art-card.is-visible .art-tilt {
  box-shadow:
    0 28px 64px rgba(0,0,0,0.42),
    0 16px 48px rgba(var(--accent-rgb),0.12);
}

.art-tilt {
  position: relative;
  height: 100%;
  padding: clamp(14px, 1.4vw, 20px) clamp(14px, 1.4vw, 20px) clamp(18px, 1.6vw, 24px);
  border: 1px solid rgba(126,22,24,0.13);
  border-radius: var(--radius-card);
  background: linear-gradient(165deg, #f2e8dc 0%, #e6d6c8 100%);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.4),
    0 6px 16px rgba(69,19,20,0.16),
    0 0 0 1px rgba(255,241,224,0.28) inset;
  transform: perspective(900px)
    rotateX(var(--image-rotate-x,0deg))
    rotateY(var(--image-rotate-y,0deg));
  transform-style: preserve-3d;
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1), box-shadow 300ms ease;
  overflow: hidden;
}
.art-tilt::before {
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 240ms ease;
}
.art-card:is(:hover,:focus-within) .art-tilt {
  transform: perspective(900px) rotateX(var(--image-rotate-x,-2deg)) rotateY(var(--image-rotate-y,3deg)) translateZ(12px);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    0 24px 64px rgba(var(--accent-rgb),0.22),
    0 4px 16px rgba(0,0,0,0.2);
}
.art-card:is(:hover,:focus-within) .art-tilt::before { opacity: 1; }
.art-card.is-launching .art-tilt {
  animation: cardLaunchPulse 680ms cubic-bezier(0.16,1,0.3,1);
}
.art-card.is-launching .image-shell img {
  animation: sourcePaintingFlash 620ms cubic-bezier(0.16,1,0.3,1);
}

/* Image shell */
.image-shell {
  position: relative;
  width: 100%;
  height: clamp(280px, 24vw, 370px);
  background:
    radial-gradient(circle at 18% 18%, rgba(var(--accent-rgb),0.28), transparent 32%),
    radial-gradient(circle at 84% 84%, rgba(var(--accent-2-rgb),0.22), transparent 32%),
    #0a0a0a;
  overflow: hidden;
  isolation: isolate;
  border-radius: 4px;
  transform-style: preserve-3d;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.art-card:is(:hover,:focus-within) .image-shell {
  transform: translateZ(20px);
  box-shadow: 0 20px 50px rgba(var(--accent-rgb),0.2);
}
.image-shell img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transform:
    rotateX(var(--image-rotate-x,0deg))
    rotateY(var(--image-rotate-y,0deg))
    translateZ(20px)
    scale(1.12)
    translate3d(var(--image-shift-x,0px),var(--image-shift-y,0px),0);
  filter: contrast(1.05) saturate(1.05);
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1), filter 260ms ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.art-card:is(:hover,:focus-within) .image-shell img {
  filter: contrast(1.12) saturate(1.18);
}

/* Glare effect — follows cursor via JS-set CSS vars on image-shell */
.card-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(
    circle at var(--image-light-x,50%) var(--image-light-y,50%),
    rgba(255,255,255,0.28),
    transparent 52%
  );
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 260ms ease;
}
.art-card:is(:hover,:focus-within) .card-glare { opacity: 1; }

/* 3D shadow under card */
.card-3d-shadow {
  position: absolute;
  bottom: -16px;
  left: 8%; right: 8%;
  height: 20px;
  background: rgba(0,0,0,0.3);
  filter: blur(16px);
  border-radius: 50%;
  z-index: -1;
  transition: transform 300ms ease, opacity 300ms ease;
}
.art-card:is(:hover,:focus-within) .card-3d-shadow {
  transform: translateY(8px) scaleX(0.85);
  opacity: 0.6;
}

.fallback-art {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #4c4c4c;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}
.image-shell.is-broken img { display: none; }
.image-shell.is-broken .fallback-art { display: flex; }

.art-info {
  padding-top: 16px;
  transform: translateZ(10px);
}
.art-info h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.art-price {
  margin: 0 0 10px;
  color: #333;
  font-size: 1rem;
  font-weight: 700;
}
.art-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(var(--accent-rgb),0.4);
  border-radius: 100px;
  color: rgb(var(--accent-rgb));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.placeholder-note {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  color: rgba(255,240,224,0.6);
  font-size: 0.82rem;
  text-align: center;
}

/* ── REVIEWS ─────────────────────────────────── */
.reviews-section {
  position: relative;
  padding: clamp(58px, 7vw, 96px) clamp(32px, 6vw, 96px);
  overflow: hidden;
}
.reviews-section::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: '';
  background:
    radial-gradient(circle at 16% 14%, rgba(var(--gold-rgb),0.18), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(var(--teal-rgb),0.14), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.035), transparent 42%, rgba(255,255,255,0.025));
  pointer-events: none;
}
.reviews-section::after {
  position: absolute;
  inset: 18px;
  z-index: 0;
  content: '';
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.reviews-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.52fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.reviews-heading h2 {
  margin: 0;
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  line-height: 0.98;
}
.reviews-heading p {
  margin: 0;
  max-width: 420px;
  color: rgba(255,255,255,0.68);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}
.reviews-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.review-card {
  position: relative;
  min-height: 260px;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
    rgba(9,9,9,0.76);
  box-shadow:
    0 26px 70px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 360ms ease, background 360ms ease, box-shadow 360ms ease;
}
.review-card::before {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(135deg, rgba(var(--gold-rgb),0.16), transparent 36%, rgba(var(--teal-rgb),0.12));
  opacity: 0;
  transition: opacity 360ms ease;
  pointer-events: none;
}
.review-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--gold-rgb),0.38);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045)),
    rgba(9,9,9,0.82);
  box-shadow:
    0 34px 92px rgba(0,0,0,0.38),
    0 0 44px rgba(var(--gold-rgb),0.12),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.review-card:hover::before { opacity: 1; }
.review-stars {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(var(--gold-rgb),0.42);
}
.review-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.84);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.58;
}
.review-card span {
  position: absolute;
  right: clamp(24px, 2.6vw, 34px);
  bottom: clamp(22px, 2.4vw, 30px);
  z-index: 1;
  color: rgba(255,255,255,0.48);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── ABOUT ────────────────────────────────────── */
.about-section {
  position: relative;
  padding: clamp(60px, 7vw, 100px) clamp(36px, 6vw, 96px);
  overflow: hidden;
}
.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.about-noise-canvas {
  width: 100%; height: 100%;
  opacity: 0.04;
}
.about-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.68fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
  width: min(1120px, 100%);
  margin: 0 auto;
}
.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(340px, 34vw, 460px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42)),
    var(--card-bg);
  box-shadow:
    0 24px 64px var(--shadow-soft),
    0 0 0 1px rgba(255,255,255,0.56) inset;
}
.about-copy h2 {
  margin: 0 0 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
}
.about-copy h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-copy p {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.68);
  font-size: 1.02rem;
  line-height: 1.65;
}

.about-tags {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-self: center;
  width: 100%;
}
.about-tag {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}
.about-tag:hover {
  transform: translateX(8px);
  border-color: rgba(216,161,58,0.35);
  background: rgba(216,161,58,0.06);
}
.tag-num {
  font-family: 'Bebas Neue', serif;
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
  min-width: 36px;
  opacity: 0.7;
}
.tag-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
}

/* 3D CSS cube in about */
.about-3d-frame {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px; height: 180px;
  perspective: 800px;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}
.about-frame-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: cubeRotate 14s linear infinite;
}
@keyframes cubeRotate {
  0%   { transform: rotateX(20deg) rotateY(0deg); }
  100% { transform: rotateX(20deg) rotateY(360deg); }
}
.about-frame-face {
  position: absolute;
  width: 180px; height: 180px;
  border: 2px solid var(--gold);
  background: rgba(216,161,58,0.03);
}
.face-front  { transform: translateZ(90px); }
.face-back   { transform: translateZ(-90px) rotateY(180deg); }
.face-left   { transform: translateX(-90px) rotateY(-90deg); }
.face-right  { transform: translateX(90px) rotateY(90deg); }
.face-top    { transform: translateY(-90px) rotateX(90deg); }
.face-bottom { transform: translateY(90px) rotateX(-90deg); }

/* ── CONTACT ──────────────────────────────────── */
.contact-section {
  position: relative;
  padding: clamp(56px, 6vw, 90px) clamp(32px, 5vw, 80px);
  background: var(--bg-main);
  color: var(--text-main);
  overflow: hidden;
}
.contact-section::before {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.18;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-left h2 {
  margin: 0 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}
.contact-desc {
  margin: 0 0 28px;
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.55;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cinfo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.76);
}
.cinfo-icon { color: var(--gold); font-size: 0.7rem; }
.contact-section .section-label {
  border-color: rgba(216,161,58,0.54);
  color: var(--gold-light);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(216,161,58,0.22);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 16% 12%, rgba(216,161,58,0.12), transparent 36%),
    linear-gradient(160deg, rgba(67,10,13,0.96) 0%, rgba(28,4,5,0.98) 100%);
  box-shadow:
    0 28px 82px rgba(0,0,0,0.48),
    0 0 0 1px rgba(255,220,188,0.07) inset,
    0 0 64px rgba(126,22,24,0.24);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.field-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,221,204,0.72);
  transition: color 200ms ease;
}
.form-field:focus-within .field-label { color: var(--gold-light); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(245,221,204,0.18);
  border-radius: 6px;
  background: rgba(255,248,239,0.88);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  outline: none;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: rgba(255,250,243,0.98);
  box-shadow: 0 0 0 3px rgba(216,161,58,0.18), 0 4px 18px rgba(0,0,0,0.2);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(69,19,20,0.34); }

.field-focus-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 1px;
  transition: width 300ms cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.form-field:focus-within .field-focus-line { width: 100%; }

.form-status {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  min-height: 1.4em;
}
.form-status.is-error  { color: #c0392b; }
.form-status.is-success { color: #27ae60; }

.guardian-note {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding: 14px 20px;
  border: 1px solid rgba(216,161,58,0.16);
  border-radius: 6px;
  background: rgba(45,6,8,0.52);
  color: rgba(244,225,207,0.72);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── REFERENCES ───────────────────────────────── */
.references-section {
  padding: clamp(52px, 7vw, 90px) clamp(36px, 7vw, 96px);
}
.references-copy { max-width: 860px; }
.references-copy h2 {
  margin: 0 0 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
}
.references-copy p {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.58);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ── FOOTER ───────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-mark {
  font-family: 'Bebas Neue', serif;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-footer p {
  margin: 0;
  color: rgba(255,255,255,0.38);
  font-size: 0.82rem;
  text-align: center;
  flex: 1;
}
.footer-year {
  color: rgba(255,255,255,0.28);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── PREMIUM GALLERY PALETTE OVERRIDES ───────── */
.top-nav {
  background: var(--nav-bg);
  box-shadow: 0 12px 34px rgba(5,5,5,0.24), 0 1px 0 rgba(255,255,255,0.08) inset;
}
body.is-scrolled .top-nav {
  background: var(--nav-bg);
  box-shadow: 0 16px 42px rgba(5,5,5,0.34), 0 1px 0 rgba(255,255,255,0.08) inset;
}
.nav-mark-cv {
  background: linear-gradient(135deg, var(--accent-gold), #F2D985);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(200,162,74,0.34));
}
.nav-links a::after,
.heading-accent-line,
.field-focus-line {
  background: linear-gradient(90deg, var(--brand-red), var(--accent-gold));
}
.nav-links a:is(:hover,:focus-visible,.is-active)::after {
  transform: scaleX(1);
}
.section-shell,
.white-panel {
  border-color: var(--border-soft);
}
.dark-section,
.white-panel,
.gallery-section,
.reviews-section,
.about-section,
.contact-section,
.references-section {
  background: var(--bg-main);
  color: var(--text-main);
  backdrop-filter: none;
}
.gallery-section::before,
.reviews-section::before {
  background:
    radial-gradient(circle at 14% 12%, rgba(200,162,74,0.16), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(90,15,15,0.08), transparent 36%);
  mix-blend-mode: multiply;
  opacity: 1;
}
.contact-section::before {
  display: none;
}
.gallery-bg-grid {
  display: block;
}
.hero-copy {
  border-color: var(--border-soft);
  background: var(--card-bg);
  box-shadow:
    0 26px 62px var(--shadow-soft),
    0 0 0 1px rgba(255,255,255,0.7) inset;
}
.glitch-title,
.hero-sub,
.stat-label,
.reviews-heading h2,
.reviews-heading p,
.about-copy h2,
.about-copy p,
.references-copy h2,
.references-copy p,
.contact-left h2,
.contact-desc,
.site-footer p,
.footer-year {
  color: var(--text-main);
}
.hero-eyebrow,
.section-label,
.section-label.light,
.contact-section .section-label {
  border-color: rgba(90,15,15,0.2);
  color: var(--brand-red);
}
.eyebrow-dot {
  background: var(--brand-red-light);
  box-shadow: 0 0 10px rgba(168,50,50,0.32);
}
.hero-art {
  border-color: var(--viewer-border);
  background:
    radial-gradient(circle at 50% 40%, var(--viewer-light) 0%, var(--viewer-bg) 56%, #F2E8D8 100%);
  box-shadow:
    0 24px 58px rgba(90,15,15,0.14),
    0 0 0 1px rgba(255,255,255,0.8) inset;
}
.hero-art-inner {
  border-color: var(--viewer-border);
  background: var(--viewer-bg);
  box-shadow:
    0 24px 60px rgba(90,15,15,0.16),
    0 12px 28px rgba(0,0,0,0.12);
}
.hero-art-ring-1,
.hero-art-ring-2 {
  border-color: rgba(90,15,15,0.18);
}
.gallery-section .section-heading h2 {
  color: var(--text-main);
}
.placeholder-note {
  color: var(--text-muted);
}
.art-card {
  --accent: var(--brand-red);
  --accent-rgb: 90,15,15;
  --accent-2: var(--accent-gold);
  --accent-2-rgb: 200,162,74;
}
.art-tilt {
  border-color: var(--border-soft);
  background: var(--card-bg);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.10),
    0 0 0 1px rgba(255,255,255,0.82) inset;
}
.gallery-section.is-gallery-focus .art-card.is-visible .art-tilt,
.art-card:is(:hover,:focus-within) .art-tilt {
  box-shadow:
    0 24px 58px rgba(90,15,15,0.18),
    0 8px 24px rgba(0,0,0,0.10);
}
.image-shell {
  border: 1px solid var(--viewer-border);
  background: radial-gradient(circle at center, var(--viewer-light) 0%, var(--viewer-bg) 55%, #F2E8D8 100%);
  box-shadow: 0 18px 45px rgba(90,15,15,0.12);
}
.image-shell img {
  filter: brightness(1.12) contrast(1.08) saturate(1.12);
}
.art-card:is(:hover,:focus-within) .image-shell {
  border-color: var(--accent-gold);
  box-shadow: 0 22px 60px rgba(90,15,15,0.24);
}
.art-card:is(:hover,:focus-within) .image-shell img {
  filter: brightness(1.22) contrast(1.1) saturate(1.18);
}
.art-info h3,
.art-price {
  color: var(--text-main);
}
.art-tag {
  border-color: rgba(90,15,15,0.22);
  color: var(--brand-red);
  background: var(--brand-red-soft);
}
.button-gold,
.button-dark,
.button-dark-solid {
  background: var(--brand-red);
  color: var(--white);
  border-color: var(--brand-red);
  box-shadow: 0 8px 24px rgba(90,15,15,0.22);
}
.button-gold:hover,
.button-dark:hover,
.button-dark-solid:hover {
  background: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  box-shadow: 0 16px 40px rgba(90,15,15,0.32);
}
.button-ghost {
  border-color: rgba(90,15,15,0.22);
  background: rgba(90,15,15,0.04);
  color: var(--brand-red);
  backdrop-filter: none;
}
.button-ghost:hover,
.hero-copy .button-ghost:hover {
  border-color: var(--brand-red);
  background: var(--brand-red-soft);
}
.reviews-section::after {
  border-color: var(--border-soft);
}
.review-card,
.about-tag,
.contact-form {
  border-color: var(--border-soft);
  background: var(--card-bg);
  box-shadow: 0 18px 44px rgba(0,0,0,0.08);
}
.review-card:hover,
.about-tag:hover {
  border-color: rgba(90,15,15,0.22);
  background: var(--card-bg);
  box-shadow: 0 24px 62px rgba(90,15,15,0.15);
}
.review-stars,
.tag-num,
.cinfo-icon {
  color: var(--accent-gold);
  text-shadow: none;
}
.review-card p,
.review-card span,
.tag-text,
.cinfo-row,
.field-label {
  color: var(--text-muted);
}
.contact-form {
  box-shadow:
    0 24px 62px rgba(90,15,15,0.12),
    0 0 0 1px rgba(255,255,255,0.8) inset;
}
.form-field input,
.form-field textarea {
  border-color: var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  caret-color: var(--brand-red);
  color-scheme: light;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brand-red);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 3px var(--input-focus-ring), 0 4px 18px rgba(0,0,0,0.08);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--input-placeholder);
  opacity: 1;
}
.form-field input[list],
.form-field input:-webkit-autofill {
  color: var(--input-text);
  -webkit-text-fill-color: var(--input-text);
}
datalist,
option {
  background: var(--input-bg);
  color: var(--input-text);
}
.guardian-note {
  border-color: var(--border-soft);
  background: var(--brand-red-soft);
  color: var(--brand-red);
}
.site-footer {
  border-top-color: var(--border-soft);
}
.footer-mark,
.stat-num,
.about-copy h2 em {
  background: linear-gradient(135deg, var(--brand-red), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.reviews-heading p,
.about-copy p,
.references-copy p,
.contact-desc,
.site-footer p,
.footer-year {
  color: var(--text-muted);
}

/* ── PRODUCT VIEWER ───────────────────────────── */
.product-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  perspective: 1600px;
  transition: opacity 360ms ease;
  --viewer-start-x: 0px;
  --viewer-start-y: 34px;
  --viewer-start-scale: 0.82;
  --viewer-origin-x: 50%;
  --viewer-origin-y: 50%;
}
.product-viewer::before {
  position: absolute;
  inset: -20%;
  content: '';
  background:
    radial-gradient(circle at var(--viewer-origin-x) var(--viewer-origin-y), rgba(var(--viewer-accent-rgb,216,161,58),0.32), transparent 24%),
    conic-gradient(from 130deg, transparent, rgba(255,255,255,0.08), rgba(var(--viewer-accent-2-rgb,31,155,150),0.16), transparent);
  opacity: 0;
  transform: scale(0.82) rotate(-8deg);
  pointer-events: none;
}
.product-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.product-viewer.is-opening::before {
  animation: viewerLightBloom 900ms cubic-bezier(0.16,1,0.3,1) both;
}
.product-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px) saturate(0.8);
  -webkit-backdrop-filter: blur(12px) saturate(0.8);
}
.product-viewer__chrome {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: 100%;
  max-width: min(1160px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: clamp(24px, 3vw, 48px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(8,8,8,0.96);
  box-shadow: 0 60px 140px rgba(0,0,0,0.8), 0 0 0 1px rgba(var(--viewer-accent-rgb,216,161,58),0.1);
  overflow: hidden;
  opacity: 0;
  filter: blur(14px) saturate(0.88);
  transform:
    translate3d(var(--viewer-start-x), var(--viewer-start-y), 0)
    scale(var(--viewer-start-scale))
    rotateX(12deg)
    rotateY(-8deg);
  transform-origin: var(--viewer-origin-x) var(--viewer-origin-y);
  transition:
    opacity 420ms ease,
    filter 620ms ease,
    transform 780ms cubic-bezier(0.16,1,0.3,1);
}
.product-viewer.is-open .product-viewer__chrome {
  opacity: 1;
  filter: blur(0) saturate(1);
  transform: translate3d(0, 0, 0) scale(1) rotateX(0) rotateY(0);
}
.product-viewer__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 200ms, color 200ms, transform 200ms;
}
.product-viewer__close:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  transform: rotate(90deg);
}
.product-viewer__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(64vh, 640px);
  perspective: 1400px;
  cursor: grab;
}
.product-viewer__stage.is-dragging { cursor: grabbing; }
.product-viewer__art-object {
  position: relative;
  width: min(88%, 640px);
  max-height: min(62vh, 620px);
  transform-style: preserve-3d;
  transform:
    perspective(1200px)
    rotateX(var(--viewer-rotate-x,0deg))
    rotateY(var(--viewer-rotate-y,0deg))
    rotateZ(var(--viewer-rotate-z,0deg))
    translate3d(var(--viewer-shift-x,0px),var(--viewer-shift-y,0px),0);
  transition: transform 240ms cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}
.product-viewer.is-opening .product-viewer__art-object {
  animation: paintingObjectReveal 980ms cubic-bezier(0.16,1,0.3,1) both;
}
.product-viewer__art-object img {
  display: block;
  width: 100%;
  max-height: min(62vh, 620px);
  object-fit: contain;
  filter: contrast(1.08) saturate(1.08);
  box-shadow:
    0 50px 120px rgba(0,0,0,0.75),
    0 24px 80px rgba(var(--viewer-accent-rgb),0.2);
  user-select: none;
  -webkit-user-drag: none;
}
.product-viewer.is-opening .product-viewer__art-object img {
  animation: paintingSurfaceReveal 980ms cubic-bezier(0.16,1,0.3,1) both;
}
.viewer-glare {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--viewer-light-x,50%) var(--viewer-light-y,46%),
      rgba(255,255,255,0.18), transparent 50%),
    linear-gradient(125deg, transparent 42%, rgba(255,255,255,0.18) 49%, transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}

.product-viewer__orbit {
  position: absolute;
  bottom: 8%; left: 10%; right: 10%;
  height: 22%;
  border: 1px solid rgba(var(--viewer-accent-rgb),0.6);
  border-radius: 50%;
  transform: rotateX(74deg) translateY(32%);
  pointer-events: none;
  animation: orbitSweep 5.5s linear infinite;
}
.product-viewer__orbit span {
  position: absolute;
  top: 50%; right: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgb(var(--viewer-accent-rgb));
  box-shadow: 0 0 18px rgba(var(--viewer-accent-rgb),0.8);
  transform: translateY(-50%);
}
@keyframes orbitSweep {
  0%   { transform: rotateX(74deg) translateY(32%) rotateZ(0deg); }
  100% { transform: rotateX(74deg) translateY(32%) rotateZ(360deg); }
}

/* 3D Pedestal */
.product-viewer__pedestal {
  position: absolute;
  bottom: -8px;
  left: 50%; transform: translateX(-50%);
  width: 60%; height: 8px;
  background: linear-gradient(180deg, rgba(var(--viewer-accent-rgb),0.4), rgba(var(--viewer-accent-rgb),0.1));
  filter: blur(8px);
  border-radius: 50%;
  pointer-events: none;
  animation: pedestalGlow 4s ease-in-out infinite;
}
@keyframes pedestalGlow {
  0%,100% { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 1; transform: translateX(-50%) scaleX(1.1); }
}

.product-viewer__info {
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: clamp(12px, 3vw, 40px);
}
.product-viewer.is-opening .product-viewer__info > * {
  animation: viewerInfoRise 720ms cubic-bezier(0.16,1,0.3,1) both;
}
.product-viewer.is-opening .product-viewer__info > *:nth-child(2) { animation-delay: 90ms; }
.product-viewer.is-opening .product-viewer__info > *:nth-child(3) { animation-delay: 150ms; }
.product-viewer.is-opening .product-viewer__info > *:nth-child(4) { animation-delay: 210ms; }
.product-viewer__info > p {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-viewer__info > p::after {
  display: block;
  width: 52px; height: 2px;
  margin-top: 12px;
  content: '';
  background: linear-gradient(90deg, rgb(var(--viewer-accent-rgb)), rgb(var(--viewer-accent-2-rgb)));
}
.product-viewer__info h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 0.94;
  color: var(--white);
}
.product-viewer__info span {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.product-viewer__info .button-gold {
  align-self: flex-start;
}

/* Bright full-screen 360 product modal */
.product-modal.product-viewer {
  z-index: 9999;
  padding: 32px;
}
.product-viewer__backdrop {
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(10px) saturate(0.9);
  -webkit-backdrop-filter: blur(10px) saturate(0.9);
}
.product-modal-content.product-viewer__chrome {
  width: min(1200px, 100%);
  height: min(850px, calc(100vh - 64px));
  max-width: min(1200px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 4vw, 58px);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--viewer-border);
  border-radius: 24px;
  background: var(--viewer-bg);
  color: var(--viewer-text);
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  overflow-x: hidden;
}
.modal-close.product-viewer__close {
  top: 18px;
  right: 22px;
  width: auto;
  height: auto;
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-red);
  color: var(--white);
  font-size: 18px;
  line-height: 1;
}
.modal-close.product-viewer__close:hover {
  background: var(--brand-red-hover);
  color: var(--white);
  transform: rotate(90deg);
}
.viewer-360.product-viewer__stage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 70%;
  min-height: min(68vh, 620px);
  padding: 24px;
  border: 1px solid var(--viewer-border);
  border-radius: 18px;
  background: radial-gradient(circle at center, var(--viewer-light) 0%, var(--viewer-bg) 55%, #F2E8D8 100%);
  box-shadow: 0 22px 70px rgba(90,15,15,0.35);
  cursor: grab;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.viewer-360.product-viewer__stage:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 26px 78px rgba(90,15,15,0.32);
}
.viewer-360.product-viewer__stage.is-dragging {
  cursor: grabbing;
}
.product-viewer__art-object {
  width: min(92%, 680px);
  max-width: 100%;
}
.product-viewer__art-object img {
  filter: brightness(1.12) contrast(1.08) saturate(1.12);
  box-shadow:
    0 34px 82px rgba(90,15,15,0.24),
    0 18px 44px rgba(0,0,0,0.12);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.viewer-360:hover .product-viewer__art-object img {
  filter: brightness(1.22) contrast(1.1) saturate(1.18);
}
.viewer-glare {
  background:
    radial-gradient(circle at var(--viewer-light-x,50%) var(--viewer-light-y,46%),
      rgba(255,255,255,0.42), transparent 46%),
    linear-gradient(125deg, transparent 40%, rgba(255,248,234,0.36) 49%, transparent 58%);
  opacity: 0.78;
}
.product-viewer__orbit {
  border-color: rgba(200,162,74,0.62);
}
.product-viewer__orbit span {
  background: var(--brand-red);
  box-shadow: 0 0 18px rgba(90,15,15,0.52);
}
.product-viewer__pedestal {
  background: linear-gradient(180deg, rgba(90,15,15,0.24), rgba(200,162,74,0.16));
}
.product-viewer__info {
  color: var(--viewer-text);
}
.product-viewer__info > p {
  color: var(--brand-red);
}
.product-viewer__info > p::after {
  background: linear-gradient(90deg, var(--brand-red), var(--accent-gold));
}
.product-viewer__info h2 {
  color: var(--viewer-text);
}
.product-viewer__info span {
  color: var(--text-main);
}
.product-viewer__description {
  max-width: 42ch;
  margin: 4px 0 10px;
  color: var(--text-muted) !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.6;
  text-transform: none !important;
}
.product-viewer__description::after {
  display: none !important;
}

/* ── LIGHT / DARK THEME REFINEMENTS ─────────── */
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% 8%, rgba(200,162,74,0.08), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(31,155,150,0.07), transparent 30rem),
    var(--bg-main);
  color: var(--text-main);
}
:root[data-theme="dark"] body::after {
  background:
    radial-gradient(
      circle at calc(78% + var(--bg-shift-x)) calc(20% + var(--bg-shift-y)),
      rgba(200,162,74,0.07),
      transparent 19rem
    ),
    radial-gradient(
      circle at calc(18% - var(--bg-shift-x)) calc(78% - var(--bg-shift-y)),
      rgba(31,155,150,0.055),
      transparent 20rem
    );
  mix-blend-mode: screen;
  opacity: 0.58;
}
:root[data-theme="dark"] .top-nav {
  background: rgba(5,5,5,0.94);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 14px 42px rgba(0,0,0,0.58), 0 1px 0 rgba(255,255,255,0.08) inset;
}
:root[data-theme="dark"] .dark-section,
:root[data-theme="dark"] .white-panel,
:root[data-theme="dark"] .gallery-section,
:root[data-theme="dark"] .reviews-section,
:root[data-theme="dark"] .about-section,
:root[data-theme="dark"] .contact-section,
:root[data-theme="dark"] .references-section {
  background: var(--bg-main);
  color: var(--text-main);
}
:root[data-theme="dark"] .hero-copy,
:root[data-theme="dark"] .review-card,
:root[data-theme="dark"] .about-copy,
:root[data-theme="dark"] .contact-panel,
:root[data-theme="dark"] .reference-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    var(--card-bg);
  border-color: var(--border-soft);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.38),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
:root[data-theme="dark"] .gallery-section::before,
:root[data-theme="dark"] .reviews-section::before {
  background:
    radial-gradient(circle at 16% 10%, rgba(200,162,74,0.12), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(31,155,150,0.10), transparent 38%),
    conic-gradient(from 125deg at 50% 50%, transparent, rgba(200,162,74,0.055), transparent, rgba(31,155,150,0.05), transparent);
  mix-blend-mode: screen;
  opacity: 0.86;
}
:root[data-theme="dark"] .hero-art {
  background:
    radial-gradient(circle at 50% 40%, #302716 0%, #171512 58%, #0E0C0A 100%);
  border-color: var(--viewer-border);
  box-shadow:
    0 30px 78px rgba(0,0,0,0.5),
    0 0 46px rgba(200,162,74,0.08);
}
:root[data-theme="dark"] .hero-art-inner,
:root[data-theme="dark"] .image-shell {
  background:
    radial-gradient(circle at center, #2B2419 0%, #171512 56%, #0F0E0C 100%);
  border-color: var(--viewer-border);
  box-shadow:
    0 20px 56px rgba(0,0,0,0.42),
    0 0 26px rgba(200,162,74,0.08);
}
:root[data-theme="dark"] .art-card:nth-child(6n+1) { --accent: #e4a51f; --accent-rgb: 228,165,31; --accent-2: #009c9c; --accent-2-rgb: 0,156,156; }
:root[data-theme="dark"] .art-card:nth-child(6n+2) { --accent: #c4492d; --accent-rgb: 196,73,45; --accent-2: #6f8b3c; --accent-2-rgb: 111,139,60; }
:root[data-theme="dark"] .art-card:nth-child(6n+3) { --accent: #6fa7b2; --accent-rgb: 111,167,178; --accent-2: #d5a866; --accent-2-rgb: 213,168,102; }
:root[data-theme="dark"] .art-card:nth-child(6n+4) { --accent: #d66f52; --accent-rgb: 214,111,82; --accent-2: #4f9ca3; --accent-2-rgb: 79,156,163; }
:root[data-theme="dark"] .art-card:nth-child(6n+5) { --accent: #a48645; --accent-rgb: 164,134,69; --accent-2: #596f39; --accent-2-rgb: 89,111,57; }
:root[data-theme="dark"] .art-card:nth-child(6n+6) { --accent: #7b4fb5; --accent-rgb: 123,79,181; --accent-2: #9fb7c8; --accent-2-rgb: 159,183,200; }
:root[data-theme="dark"] .art-tilt {
  background:
    linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    var(--card-bg);
  border-color: var(--border-soft);
  box-shadow:
    0 22px 58px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
:root[data-theme="dark"] .gallery-section.is-gallery-focus .art-card.is-visible .art-tilt,
:root[data-theme="dark"] .art-card:is(:hover,:focus-within) .art-tilt {
  box-shadow:
    0 30px 72px rgba(0,0,0,0.56),
    0 0 38px rgba(var(--accent-rgb),0.18);
}
:root[data-theme="dark"] .image-shell img {
  filter: brightness(1.04) contrast(1.08) saturate(1.08);
}
:root[data-theme="dark"] .art-card:is(:hover,:focus-within) .image-shell {
  border-color: rgba(var(--accent-rgb),0.58);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.48),
    0 0 34px rgba(var(--accent-rgb),0.14);
}
:root[data-theme="dark"] .art-card:is(:hover,:focus-within) .image-shell img {
  filter: brightness(1.1) contrast(1.1) saturate(1.14);
}
:root[data-theme="dark"] .art-tag {
  border-color: rgba(200,162,74,0.28);
  color: var(--accent-gold);
  background: rgba(200,162,74,0.12);
}
:root[data-theme="dark"] .button-gold,
:root[data-theme="dark"] .button-dark,
:root[data-theme="dark"] .button-dark-solid,
:root[data-theme="dark"] .modal-close.product-viewer__close {
  color: #090806;
  box-shadow: 0 10px 28px rgba(200,162,74,0.18);
}
:root[data-theme="dark"] .button-gold:hover,
:root[data-theme="dark"] .button-dark:hover,
:root[data-theme="dark"] .button-dark-solid:hover,
:root[data-theme="dark"] .modal-close.product-viewer__close:hover {
  color: #090806;
  box-shadow: 0 16px 42px rgba(200,162,74,0.25);
}
:root[data-theme="dark"] .button-ghost {
  border-color: rgba(200,162,74,0.28);
  background: rgba(200,162,74,0.06);
  color: var(--accent-gold);
}
:root[data-theme="dark"] .button-ghost:hover,
:root[data-theme="dark"] .hero-copy .button-ghost:hover {
  border-color: rgba(200,162,74,0.58);
  background: rgba(200,162,74,0.12);
}
:root[data-theme="dark"] .product-viewer__backdrop {
  background: rgba(0,0,0,0.88);
}
:root[data-theme="dark"] .product-modal-content.product-viewer__chrome {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    var(--viewer-bg);
  border-color: #3A3021;
  color: var(--viewer-text);
  box-shadow:
    0 30px 92px rgba(0,0,0,0.72),
    0 0 58px rgba(200,162,74,0.08);
}
:root[data-theme="dark"] .viewer-360.product-viewer__stage {
  background: radial-gradient(circle at center, #332916 0%, #1B1712 58%, #11100E 100%);
  border-color: var(--viewer-border);
  box-shadow:
    0 24px 72px rgba(0,0,0,0.54),
    0 0 48px rgba(200,162,74,0.12);
}
:root[data-theme="dark"] .viewer-360.product-viewer__stage:hover {
  border-color: var(--accent-gold);
  box-shadow:
    0 28px 82px rgba(0,0,0,0.62),
    0 0 64px rgba(200,162,74,0.18);
}
:root[data-theme="dark"] .product-viewer__art-object img {
  filter: brightness(1.08) contrast(1.08) saturate(1.1);
  box-shadow:
    0 38px 88px rgba(0,0,0,0.52),
    0 0 40px rgba(var(--viewer-accent-rgb),0.16);
}
:root[data-theme="dark"] .viewer-360:hover .product-viewer__art-object img {
  filter: brightness(1.14) contrast(1.1) saturate(1.14);
}
:root[data-theme="dark"] .viewer-glare {
  background:
    radial-gradient(circle at var(--viewer-light-x,50%) var(--viewer-light-y,46%),
      rgba(255,232,170,0.2), transparent 48%),
    linear-gradient(125deg, transparent 42%, rgba(255,248,220,0.16) 49%, transparent 58%);
  opacity: 0.54;
}
:root[data-theme="dark"] .product-viewer__info > p,
:root[data-theme="dark"] .product-viewer__info h2,
:root[data-theme="dark"] .product-viewer__info span {
  color: var(--viewer-text);
}
:root[data-theme="dark"] .product-viewer__description {
  color: var(--text-muted) !important;
}
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field textarea {
  color-scheme: dark;
}
:root[data-theme="dark"] .form-field input:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--input-bg) inset;
  -webkit-text-fill-color: var(--input-text);
}
:root[data-theme="dark"] .field-label {
  color: var(--text-muted);
}

/* ── MOBILE PERFORMANCE MODE ─────────────────── */
:root.is-mobile-optimized .trail-canvas,
:root.is-mobile-optimized .floating-orbs {
  display: none !important;
}
:root.is-mobile-optimized .motion-canvas {
  opacity: 0.32;
  filter: saturate(1.16) contrast(1.04);
}
:root.is-mobile-optimized .ambient-backdrop,
:root.is-mobile-optimized .anime-backdrop,
:root.is-mobile-optimized main,
:root.is-mobile-optimized .site-footer,
:root.is-mobile-optimized .site-header,
:root.is-mobile-optimized .hero-copy,
:root.is-mobile-optimized .hero-art {
  transform: none;
  transition: none;
}
:root.is-mobile-optimized .ambient-backdrop::before {
  opacity: 0.62;
  background-size: 58px 58px, 88px 88px;
  animation-duration: 48s;
}
:root.is-mobile-optimized .ambient-backdrop__grid {
  opacity: 0.18;
  background-size: 112px 112px;
  animation-duration: 42s;
}
:root.is-mobile-optimized .ambient-backdrop__wash {
  opacity: 0.34;
  filter: blur(18px);
  animation-name: ambientWashMoveMobile;
  animation-duration: 28s;
}
:root.is-mobile-optimized .ambient-backdrop__grain {
  opacity: 0.15;
  animation-duration: 34s;
}
:root.is-mobile-optimized .particle-field {
  opacity: 0.68;
}
:root.is-mobile-optimized .particle-field span {
  animation-duration: 34s;
}
:root.is-mobile-optimized .particle-field span:nth-child(n+11) {
  display: none;
}
:root.is-mobile-optimized .anime-backdrop {
  opacity: 0.34;
}
:root.is-mobile-optimized .anime-girl-bg--right {
  right: -150px;
  top: 8vh;
  width: 420px;
  height: 420px;
  opacity: 0.86;
  animation-duration: 30s;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.66) 44%, transparent 73%);
}
:root.is-mobile-optimized .anime-girl-bg--left {
  left: -230px;
  bottom: -5vh;
  width: 420px;
  opacity: 0.78;
  animation-duration: 34s;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.58) 40%, transparent 72%);
}
:root.is-mobile-optimized[data-theme="dark"] .anime-girl-bg--left {
  opacity: 0.42;
}
:root.is-mobile-optimized[data-theme="dark"] .anime-backdrop {
  opacity: 0.26;
}
:root.is-mobile-optimized[data-theme="dark"] .ambient-backdrop::before {
  opacity: 0.48;
}
:root.is-mobile-optimized .japanese-corner {
  font-size: 1.22rem;
  opacity: 0.52;
  letter-spacing: 0.12em;
}
:root.is-mobile-optimized .japanese-corner--top-left {
  left: 12px;
  top: 96px;
}
:root.is-mobile-optimized .japanese-corner--bottom-right {
  right: 10px;
  bottom: 26px;
}
:root.is-mobile-optimized body::after {
  opacity: 0.2;
}
:root.is-mobile-optimized body::before {
  opacity: 0.45;
  animation-duration: 32s;
}
:root.is-mobile-optimized .scroll-section,
:root.is-mobile-optimized .hero-copy,
:root.is-mobile-optimized .hero-art,
:root.is-mobile-optimized .gallery-section::before,
:root.is-mobile-optimized .gallery-section .section-heading,
:root.is-mobile-optimized .art-grid,
:root.is-mobile-optimized .motion-ready .art-card.is-visible {
  transform: none !important;
}
:root.is-mobile-optimized .art-tilt,
:root.is-mobile-optimized .image-shell,
:root.is-mobile-optimized .product-viewer__art-object {
  transition-duration: 180ms;
  will-change: auto;
}
:root.is-mobile-optimized .review-card:hover,
:root.is-mobile-optimized .button:hover,
:root.is-mobile-optimized .button:focus-visible {
  transform: none;
}

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes ambientGridDrift {
  0% {
    background-position: 0 0, 0 0;
    transform: perspective(900px) rotateX(62deg) translate3d(0, 10%, 0) scale(1.12);
  }
  100% {
    background-position: 86px 86px, 86px 86px;
    transform: perspective(900px) rotateX(62deg) translate3d(0, 15%, 0) scale(1.16);
  }
}
@keyframes dotMatrixDrift {
  0% {
    background-position:
      var(--dot-x) var(--dot-y),
      calc(28px + var(--dot-x-rev)) calc(24px + var(--dot-y-rev));
    transform: translate3d(var(--dot-drift-x), var(--dot-drift-y), 0) rotate(0.001deg);
  }
  100% {
    background-position:
      calc(112px + var(--dot-x)) calc(72px + var(--dot-y)),
      calc(-56px + var(--dot-x-rev)) calc(108px + var(--dot-y-rev));
    transform: translate3d(calc(-1.5% + var(--dot-drift-x)), calc(1% + var(--dot-drift-y)), 0) rotate(0.001deg);
  }
}
@keyframes glitchTitleJitter {
  0%, 88%, 100% { transform: translate3d(0,0,0); }
  90% { transform: translate3d(-1px,0,0); }
  92% { transform: translate3d(1px,-1px,0); }
  94% { transform: translate3d(0,1px,0); }
}
@keyframes glitchIdleRed {
  0%, 8%, 26%, 48%, 74%, 100% { opacity: 0; transform: translate3d(0,0,0); }
  10% { opacity: 0.46; transform: translate3d(-3px, 1px, 0); }
  28% { opacity: 0.34; transform: translate3d(4px, -1px, 0); }
  50% { opacity: 0.28; transform: translate3d(-2px, 0, 0); }
  76% { opacity: 0.38; transform: translate3d(3px, 2px, 0); }
}
@keyframes glitchIdleGold {
  0%, 12%, 32%, 56%, 82%, 100% { opacity: 0; transform: translate3d(0,0,0); }
  14% { opacity: 0.42; transform: translate3d(3px, -1px, 0); }
  34% { opacity: 0.32; transform: translate3d(-4px, 1px, 0); }
  58% { opacity: 0.28; transform: translate3d(2px, 0, 0); }
  84% { opacity: 0.36; transform: translate3d(-3px, -2px, 0); }
}
@keyframes japaneseGlitchJitter {
  0%, 88%, 100% { transform: translate3d(0,0,0); }
  90% { transform: translate3d(0,-1px,0); }
  92% { transform: translate3d(1px,1px,0); }
  94% { transform: translate3d(-1px,0,0); }
}
@keyframes japaneseGlitchRed {
  0%, 8%, 26%, 48%, 74%, 100% { opacity: 0; transform: translate3d(0,0,0); }
  10% { opacity: 0.52; transform: translate3d(-3px, 1px, 0); }
  28% { opacity: 0.4; transform: translate3d(4px, -1px, 0); }
  50% { opacity: 0.36; transform: translate3d(-2px, 0, 0); }
  76% { opacity: 0.46; transform: translate3d(3px, 2px, 0); }
}
@keyframes japaneseGlitchGold {
  0%, 12%, 32%, 56%, 82%, 100% { opacity: 0; transform: translate3d(0,0,0); }
  14% { opacity: 0.5; transform: translate3d(3px, -1px, 0); }
  34% { opacity: 0.4; transform: translate3d(-4px, 1px, 0); }
  58% { opacity: 0.34; transform: translate3d(2px, 0, 0); }
  84% { opacity: 0.44; transform: translate3d(-3px, -2px, 0); }
}
@keyframes ambientWashMove {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.035);
    opacity: 0.58;
  }
  100% {
    transform: translate3d(1.2%, -2%, 0) scale(1.02);
    opacity: 0.50;
  }
}
@keyframes ambientWashMoveMobile {
  0% {
    transform: translate3d(-1.2%, -0.8%, 0) scale(1);
    opacity: 0.24;
  }
  50% {
    transform: translate3d(1.3%, 1%, 0) scale(1.02);
    opacity: 0.36;
  }
  100% {
    transform: translate3d(0.8%, -1.2%, 0) scale(1.01);
    opacity: 0.30;
  }
}
@keyframes ambientGrainFloat {
  0% { background-position: 0 0, 40px 10px, 90px 30px, 120px 50px; }
  100% { background-position: 220px 180px, -180px 220px, 260px -140px, -220px -160px; }
}
@keyframes scanlineSweep {
  0% { background-position: 130% 0, 0 0; }
  100% { background-position: -130% 0, 0 24px; }
}
@keyframes particleFloat {
  0% {
    opacity: 0.14;
    transform: translate3d(0, 24px, 0) scale(0.72);
  }
  38% {
    opacity: 0.78;
    transform: translate3d(18px, -12px, 0) scale(1);
  }
  72% {
    opacity: 0.56;
    transform: translate3d(-14px, -44px, 0) scale(1.14);
  }
  100% {
    opacity: 0.12;
    transform: translate3d(10px, -74px, 0) scale(0.84);
  }
}
@keyframes glitchBurstRed {
  0%, 100% { opacity: 0; transform: translate3d(0,0,0); filter: none; }
  12% { opacity: 0.95; transform: translate3d(-8px,2px,0); filter: blur(0); }
  24% { opacity: 0.65; transform: translate3d(7px,-2px,0); }
  38% { opacity: 1; transform: translate3d(-5px,0,0) skewX(-3deg); }
  50% { opacity: 0; transform: translate3d(0,0,0); }
  68% { opacity: 0.86; transform: translate3d(-3px,2px,0); }
}
@keyframes glitchBurstGold {
  0%, 100% { opacity: 0; transform: translate3d(0,0,0); filter: none; }
  10% { opacity: 0.88; transform: translate3d(7px,-2px,0); }
  26% { opacity: 0.72; transform: translate3d(-6px,2px,0); }
  44% { opacity: 0.95; transform: translate3d(4px,0,0) skewX(4deg); }
  56% { opacity: 0; transform: translate3d(0,0,0); }
  76% { opacity: 0.78; transform: translate3d(3px,-1px,0); }
}
@keyframes animeImageFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(var(--anime-tilt)) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotate(var(--anime-tilt-active)) scale(1.018);
  }
}
@keyframes japaneseTextFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}
@keyframes ambientGalleryField {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
    filter: blur(2px) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(1.2%, 0.8%, 0) scale(1.035);
    filter: blur(2px) hue-rotate(5deg);
  }
  100% {
    transform: translate3d(1.8%, -0.6%, 0) scale(1.02);
    filter: blur(2px) hue-rotate(-4deg);
  }
}
@keyframes heroDrift {
  0%,100% { box-shadow: 0 32px 90px rgba(0,0,0,0.42), 0 22px 78px rgba(var(--scene-accent-rgb),0.1); }
  50%      { box-shadow: 0 40px 110px rgba(0,0,0,0.5), 0 32px 96px rgba(var(--scene-accent-2-rgb),0.14); }
}
@keyframes routeLayerFade {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes routePortalBloom {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  38%  { opacity: 1; transform: translate(-50%, -50%) scale(0.72); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}
@keyframes routeParticleMist {
  0%   { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.98); background-position: 0 0, 0 0, 0 0, 0 0; }
  34%  { opacity: 0.72; }
  100% { opacity: 0; transform: translate3d(0, -18px, 0) scale(1.02); background-position: 70px -90px, -80px 60px, 120px 80px, -100px -60px; }
}
@keyframes routeParticleBurst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.18) rotate(-8deg); }
  34%  { opacity: 1; transform: translate(-50%, -50%) scale(0.86) rotate(6deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.42) rotate(18deg); }
}
@keyframes routeSparkPop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  35%  { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.8); }
}
@keyframes buttonPortalPress {
  0%   { transform: translateY(0) scale(1); filter: brightness(1); }
  32%  { transform: translateY(-2px) scale(0.96); filter: brightness(1.28); }
  68%  { transform: translateY(-5px) scale(1.04); filter: brightness(1.08); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}
@keyframes sectionFocusFlash {
  0% {
    filter: saturate(0.9) brightness(0.92);
    box-shadow: inset 0 0 0 0 rgba(200,162,74,0), 0 0 0 rgba(200,162,74,0);
  }
  38% {
    filter: saturate(1.18) brightness(1.08);
    box-shadow:
      inset 0 0 0 1px rgba(200,162,74,0.36),
      0 0 90px rgba(200,162,74,0.18);
  }
  100% {
    filter: saturate(1) brightness(1);
    box-shadow: inset 0 0 0 0 rgba(200,162,74,0), 0 0 0 rgba(200,162,74,0);
  }
}
@keyframes sectionContentLand {
  0%   { opacity: 0.1; transform: translateY(28px) scale(0.98); filter: blur(8px); }
  62%  { opacity: 1; transform: translateY(-4px) scale(1.006); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes cardLaunchPulse {
  0%   { transform: perspective(900px) rotateX(var(--image-rotate-x,0deg)) rotateY(var(--image-rotate-y,0deg)) scale(1); }
  42%  { transform: perspective(900px) rotateX(-8deg) rotateY(8deg) translateZ(34px) scale(1.035); box-shadow: 0 48px 92px rgba(0,0,0,0.58), 0 20px 70px rgba(var(--accent-rgb),0.36); }
  100% { transform: perspective(900px) rotateX(0deg) rotateY(0deg) scale(1); }
}
@keyframes sourcePaintingFlash {
  0%   { filter: contrast(1.08) saturate(1.1); transform: translateZ(20px) scale(1.12); }
  44%  { filter: contrast(1.22) saturate(1.28) brightness(1.16); transform: translateZ(52px) scale(1.18); }
  100% { filter: contrast(1.08) saturate(1.08); transform: translateZ(20px) scale(1.12); }
}
@keyframes viewerLightBloom {
  0%   { opacity: 0; transform: scale(0.82) rotate(-8deg); }
  45%  { opacity: 1; transform: scale(1.02) rotate(4deg); }
  100% { opacity: 0; transform: scale(1.12) rotate(8deg); }
}
@keyframes paintingObjectReveal {
  0%   { opacity: 0; transform: perspective(1200px) rotateX(24deg) rotateY(-28deg) rotateZ(-4deg) translate3d(0,34px,0) scale(0.62); }
  58%  { opacity: 1; transform: perspective(1200px) rotateX(-4deg) rotateY(8deg) rotateZ(1deg) translate3d(0,-6px,0) scale(1.04); }
  100% { opacity: 1; transform: perspective(1200px) rotateX(var(--viewer-rotate-x,0deg)) rotateY(var(--viewer-rotate-y,0deg)) rotateZ(var(--viewer-rotate-z,0deg)) translate3d(var(--viewer-shift-x,0px),var(--viewer-shift-y,0px),0) scale(1); }
}
@keyframes paintingSurfaceReveal {
  0%   { clip-path: inset(48% 48% 48% 48%); filter: contrast(1.2) saturate(0.65) brightness(1.8); }
  52%  { clip-path: inset(0 18% 0 18%); filter: contrast(1.18) saturate(1.28) brightness(1.18); }
  100% { clip-path: inset(0); filter: contrast(1.08) saturate(1.08); }
}
@keyframes viewerInfoRise {
  0%   { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 980px) {
  .top-nav { grid-template-columns: 64px 1fr 64px; }
  .nav-toggle { display: block; grid-column: 3; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px); right: 0; left: 0;
    display: grid; gap: 0;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(6,6,6,0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease;
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }
  .nav-links a::after { display: none; }
  .nav-links .theme-toggle {
    width: calc(100% - 32px);
    margin: 12px 16px 14px;
    min-height: 44px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  }
  .hero-art { order: -1; }
  .hero-art-frame { aspect-ratio: 1.6/1; }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-heading { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { min-height: 220px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-copy { min-height: auto; }
  .about-3d-frame { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .product-modal-content.product-viewer__chrome,
  .product-viewer__chrome {
    grid-template-columns: 1fr;
    gap: 18px;
    align-content: start;
    height: min(900px, calc(100vh - 36px));
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 36px);
    overflow: auto;
    overflow-x: hidden;
  }
  .viewer-360.product-viewer__stage,
  .product-viewer__stage {
    min-height: min(50vh, 480px);
    height: auto;
  }
  .product-viewer__art-object { width: min(100%, 640px); }
}

@media (max-width: 640px) {
  .site-header, main, .site-footer {
    width: min(100% - 16px, var(--site-width));
  }
  .site-header { margin-top: 8px; }
  .hero-copy { padding: 26px 20px; }
  .hero-art { padding: 12px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .button { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .image-shell { height: 260px; }
  .gallery-section { padding: 60px 16px 44px; }
  .reviews-section { padding: 48px 18px; }
  .reviews-section::after { inset: 10px; }
  .review-card { min-height: 230px; }
  .review-card span {
    position: static;
    display: block;
    margin-top: 20px;
  }
  .contact-section { padding: 44px 16px 36px; }
  .about-section { padding: 44px 20px; }
  .about-copy { padding: 24px 20px; }
  .product-viewer { padding: 12px; }
  .product-modal-content.product-viewer__chrome,
  .product-viewer__chrome {
    padding: 16px;
    border-radius: 18px;
  }
  .viewer-360.product-viewer__stage {
    min-height: min(48vh, 390px);
    padding: 14px;
  }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
}

/* ── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) body::before { animation: none; }
  html:not(.force-motion) .anime-backdrop::before,
  html:not(.force-motion) .ambient-backdrop__grid,
  html:not(.force-motion) .ambient-backdrop::before,
  html:not(.force-motion) .ambient-backdrop__wash,
  html:not(.force-motion) .ambient-backdrop__grain,
  html:not(.force-motion) .particle-field span,
  html:not(.force-motion) .anime-girl-bg,
  html:not(.force-motion) .japanese-corner,
  html:not(.force-motion) .japanese-corner::before,
  html:not(.force-motion) .japanese-corner::after,
  html:not(.force-motion) .glitch-title,
  html:not(.force-motion) .glitch-title::before,
  html:not(.force-motion) .glitch-title::after,
  html:not(.force-motion) .hero-art-scanlines {
    animation: none !important;
  }
  html:not(.force-motion) .motion-canvas { opacity: 0.2; }
  html:not(.force-motion) .hero-three-canvas { display: none; }
  html:not(.force-motion) .floating-orbs { display: none; }
  html:not(.force-motion) .route-transition { display: none; }
  html:not(.force-motion) .scroll-section,
  html:not(.force-motion) .hero-copy,
  html:not(.force-motion) .hero-art,
  html:not(.force-motion) .gallery-section::before,
  html:not(.force-motion) .gallery-bg-grid,
  html:not(.force-motion) .gallery-section .section-heading,
  html:not(.force-motion) .art-grid,
  html:not(.force-motion) .motion-ready .art-card.is-visible {
    transform: none !important;
  }
  html:not(.force-motion) .ambient-backdrop,
  html:not(.force-motion) .anime-backdrop,
  html:not(.force-motion) .site-header,
  html:not(.force-motion) main,
  html:not(.force-motion) .site-footer {
    transform: none !important;
  }
  html:not(.force-motion) *,
  html:not(.force-motion) *::before,
  html:not(.force-motion) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
