/* ═══════════════════════════════════════════════════════════
   NAKA — Court Jester Theme
   Venetian purple/silver × Gothic crimson/black
   ═══════════════════════════════════════════════════════════ */

:root {
  --crimson: #8b0a1a;
  --crimson-bright: #c41e3a;
  --crimson-glow: #ff1744;
  --blood: #4a0008;
  --purple-deep: #1a0a2e;
  --purple-royal: #4a148c;
  --purple-venetian: #6a1b9a;
  --blue-venetian: #1565c0;
  --blue-electric: #2979ff;
  --silver: #c0c0c0;
  --silver-bright: #e8e8f0;
  --gold: #d4af37;
  --parchment: #f5f0e1;
  --black: #050508;
  --charcoal: #0f0f14;
  --mask-white: #faf8f5;

  --font-display: 'Cinzel Decorative', serif;
  --font-gothic: 'UnifrakturMaguntia', cursive;
  --font-body: 'EB Garamond', Georgia, serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--crimson-bright) var(--black);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--parchment);
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

::selection {
  background: var(--crimson-bright);
  color: var(--mask-white);
}

a {
  color: var(--silver-bright);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--crimson-glow);
}

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

/* ─── Icon system ─── */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-sm { width: 18px; height: 18px; color: var(--gold); }
.icon-lg { width: 36px; height: 44px; }
.icon-btn { width: 22px; height: 26px; }
.icon-card { width: 48px; height: 48px; color: var(--gold); margin-bottom: 1.5rem; animation: iconBob 4s ease-in-out infinite; }

@keyframes iconBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.icon-suit { width: 20px; height: 20px; color: var(--gold); }

.logo-mark {
  animation: spinSlow 12s linear infinite;
}

/* ─── Loader ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mask {
  width: 120px;
  height: 80px;
  background: var(--mask-white);
  border-radius: 50% 50% 45% 45%;
  position: relative;
  animation: maskPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(196, 30, 58, 0.5);
}

.loader-eye {
  position: absolute;
  top: 35%;
  width: 12px;
  height: 16px;
  background: var(--purple-deep);
  border-radius: 50%;
  animation: blink 2s infinite;
}

.loader-eye:first-child { left: 30%; }
.loader-eye:last-child { right: 30%; }

.loader-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  animation: textFlicker 2s infinite;
}

.loader-bells .icon-bell {
  animation: jingleLoader 0.6s ease-in-out infinite;
}

.loader-bells .icon-bell:nth-child(2) { animation-delay: 0.2s; }
.loader-bells .icon-bell:nth-child(3) { animation-delay: 0.4s; }

@keyframes maskPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes textFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
  52% { opacity: 1; }
  54% { opacity: 0.4; }
}

@keyframes jingleLoader {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}

/* ─── Custom Cursor ─── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--crimson-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(196, 30, 58, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
}

.cursor.hover .cursor-ring,
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--gold);
}

.cursor-trail-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--purple-venetian);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  animation: trailFade 0.8s forwards;
}

@keyframes trailFade {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(0); }
}

/* ─── Canvas & Overlays ─── */
#particles, #confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noiseShift 0.5s steps(2) infinite;
}

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

.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 30%),
    rgba(196, 30, 58, 0.08) 0%,
    rgba(106, 27, 154, 0.04) 40%,
    transparent 70%
  );
  transition: background 0.1s ease;
}

.damask {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(212,175,55,0.3) 20px, rgba(212,175,55,0.3) 21px),
    repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(106,27,154,0.3) 20px, rgba(106,27,154,0.3) 21px);
}

/* ─── Floating Bells ─── */
.bell-field {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.floating-bell {
  position: absolute;
  top: -50px;
  left: var(--x);
  width: 28px;
  height: 34px;
  opacity: 0.2;
  animation: floatBell 12s linear infinite;
  animation-delay: var(--d);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

@keyframes floatBell {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: linear-gradient(to bottom, rgba(5,5,8,0.95), transparent);
  backdrop-filter: blur(8px);
  transform: translateY(-100%);
  animation: navSlide 1s var(--ease-out-expo) 2.5s forwards;
}

@keyframes navSlide {
  to { transform: translateY(0); }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
}

.logo-jester,
.logo-mark {
  color: var(--gold);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.nav-link span {
  display: inline-block;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--crimson-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-link:hover span {
  transform: translateY(-2px);
  color: var(--gold);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active span {
  color: var(--gold);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
  background: rgba(26, 10, 46, 0.5);
}

.badge-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── Glitch Text ─── */
.glitch, .glitch-heavy {
  position: relative;
}

.glitch::before,
.glitch::after,
.glitch-heavy::before,
.glitch-heavy::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch1 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  color: var(--blue-electric);
  opacity: 0.8;
}

.glitch::after {
  animation: glitch2 2s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  color: var(--crimson-glow);
  opacity: 0.8;
}

.glitch-heavy::before {
  animation: glitch1 1.5s infinite linear alternate-reverse;
  color: var(--purple-venetian);
}

.glitch-heavy::after {
  animation: glitch2 1s infinite linear alternate-reverse;
  color: var(--gold);
}

@keyframes glitch1 {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 1px); }
  100% { transform: translate(0); }
}

@keyframes glitch2 {
  0% { transform: translate(0); }
  25% { transform: translate(3px, -1px); }
  50% { transform: translate(-3px, 2px); }
  75% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 7rem;
  z-index: 10;
  overflow: visible;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: max(118vh, 880px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-backdrop-slide {
  position: absolute;
  inset: -8% 0 0;
  background-size: cover;
  background-position: center 24%;
  background-repeat: no-repeat;
  will-change: transform, opacity;
}

.hero-backdrop-a {
  background-image: url('assets/hero-venetian.jpg');
  animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero-backdrop-b {
  background-image: url('assets/hero-gothic.jpg');
  opacity: 0;
  animation: heroCrossfade 28s ease-in-out infinite alternate;
}

.hero-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 85% 55% at 50% 12%, rgba(106, 27, 154, 0.16), transparent 62%),
    radial-gradient(ellipse 60% 45% at 88% 42%, rgba(196, 30, 58, 0.1), transparent 58%),
    linear-gradient(
      to bottom,
      rgba(5, 5, 8, 0.78) 0%,
      rgba(5, 5, 8, 0.42) 28%,
      rgba(5, 5, 8, 0.18) 52%,
      rgba(5, 5, 8, 0.52) 74%,
      rgba(5, 5, 8, 0.96) 94%,
      rgba(5, 5, 8, 1) 100%
    );
}

.hero-backdrop::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(5, 5, 8, 0.35) 30%,
    rgba(5, 5, 8, 0.82) 68%,
    rgba(5, 5, 8, 1) 100%
  );
}

@keyframes heroDrift {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes heroCrossfade {
  0% { opacity: 0; transform: scale(1.06); }
  45% { opacity: 0.55; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.06); }
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: titleReveal 1s var(--ease-out-expo) forwards;
}

.title-line[data-reveal-delay="1"] { animation-delay: 2.8s; }
.title-line[data-reveal-delay="2"] { animation-delay: 3.1s; }
.title-line[data-reveal-delay="3"] { animation-delay: 3.4s; }

.title-accent {
  font-family: var(--font-gothic);
  font-size: 1.3em;
  background: linear-gradient(135deg, var(--crimson-bright), var(--gold), var(--purple-venetian));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: titleReveal 1s var(--ease-out-expo) forwards, gradientShift 4s ease infinite;
  animation-delay: 3.1s, 0s;
}

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

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(245, 240, 225, 0.8);
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 3.7s forwards;
}

.hero-desc strong {
  color: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 4s forwards;
}

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-elastic), box-shadow 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-bright));
  color: var(--mask-white);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 30px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 40px rgba(196, 30, 58, 0.5);
}

.btn-bells {
  animation: jingleBtn 0.5s ease-in-out infinite;
}

@keyframes jingleBtn {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: btnShine 3s infinite;
}

@keyframes btnShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.btn-ghost {
  background: rgba(26, 10, 46, 0.6);
  color: var(--parchment);
  border: 1px solid rgba(192, 192, 192, 0.2);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

/* ─── Hero Visual ─── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.portrait-frame {
  position: relative;
  width: 280px;
  height: 280px;
  z-index: 2;
  animation: portraitFloat 6s ease-in-out infinite;
}

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

.frame-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--gold);
  border-style: solid;
  animation: cornerPulse 2s ease-in-out infinite;
}

.frame-tl { top: -10px; left: -10px; border-width: 2px 0 0 2px; }
.frame-tr { top: -10px; right: -10px; border-width: 2px 2px 0 0; animation-delay: 0.5s; }
.frame-bl { bottom: -10px; left: -10px; border-width: 0 0 2px 2px; animation-delay: 1s; }
.frame-br { bottom: -10px; right: -10px; border-width: 0 2px 2px 0; animation-delay: 1.5s; }

@keyframes cornerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.portrait-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.4), rgba(106, 27, 154, 0.2), transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 60px rgba(196, 30, 58, 0.4);
}

.portrait-mask-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 60%, rgba(106, 27, 154, 0.2));
  pointer-events: none;
}

/* ─── Marquee ─── */
.footer-marquee {
  position: relative;
  bottom: auto;
  margin-bottom: 1rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: rgba(192, 192, 192, 0.3);
  white-space: nowrap;
  padding-right: 4rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ─── Sections ─── */
.section {
  position: relative;
  z-index: 10;
  padding: 8rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section.about {
  max-width: none;
  width: 100%;
  margin-top: -12vh;
  padding-top: calc(6rem + 12vh);
  padding-bottom: 6rem;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.section.about > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.section.about::before {
  content: '';
  position: absolute;
  top: -8vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(100% + 8vh);
  z-index: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(5, 5, 8, 0.55) 6vh,
    rgba(5, 5, 8, 0.88) 16vh,
    rgba(5, 5, 8, 0.98) 26vh,
    var(--black) 36vh
  );
  mask-image: radial-gradient(
    ellipse 88% 92% at 50% 38%,
    black 42%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 88% 92% at 50% 38%,
    black 42%,
    transparent 100%
  );
  pointer-events: none;
}

.section.about::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    rgba(106, 27, 154, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.section-header {
  margin-bottom: 4rem;
}

.section-num {
  font-family: var(--font-gothic);
  font-size: 1.5rem;
  color: var(--crimson-bright);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.section-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson-bright), var(--gold), transparent);
  animation: lineGrow 1.5s var(--ease-out-expo) forwards;
  transform-origin: left;
  transform: scaleX(0);
}

.section-line.visible {
  transform: scaleX(1);
}

@keyframes lineGrow {
  to { transform: scaleX(1); }
}

.section-sub {
  font-size: 1.1rem;
  color: rgba(245, 240, 225, 0.6);
  margin-top: 1rem;
}

/* ─── Reveal animations ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.15s; }
[data-reveal-delay="2"] { transition-delay: 0.3s; }
[data-reveal-delay="3"] { transition-delay: 0.45s; }
[data-reveal-delay="4"] { transition-delay: 0.6s; }
[data-reveal-delay="5"] { transition-delay: 0.75s; }

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-intro {
  max-width: 780px;
  margin-bottom: 4rem;
}

.about-intro p {
  font-size: 1.2rem;
  line-height: 1.85;
  color: rgba(245, 240, 225, 0.82);
  margin-bottom: 1.5rem;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.about-card, .product-card, .social-card {
  background: linear-gradient(145deg, rgba(26, 10, 46, 0.45), rgba(15, 15, 20, 0.55));
  border: 1px solid rgba(192, 192, 192, 0.08);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  backdrop-filter: blur(6px);
}

.about-card::after,
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.04), transparent 55%);
  pointer-events: none;
}

.card-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.about-card:hover .card-shimmer,
.product-card:hover .card-shimmer {
  transform: translateX(100%);
}

.about-card:hover,
.product-card:hover,
.social-card:hover {
  box-shadow: 0 20px 60px rgba(196, 30, 58, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.card-icon {
  display: none;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.about-card p {
  line-height: 1.7;
  color: rgba(245, 240, 225, 0.75);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  text-align: center;
  padding: 3rem 0;
  background: none;
  border: none;
  position: relative;
}

.stats-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, 100%);
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(74, 0, 8, 0.2) 0%, transparent 70%);
  mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 82%, transparent 100%);
  pointer-events: none;
}

.stats-row::after {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.22), transparent);
}

.stat {
  position: relative;
  z-index: 1;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--crimson-bright), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 0.5rem;
  display: block;
}

/* ─── Section Dividers ─── */
.section-divider {
  position: relative;
  z-index: 10;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.divider-suits {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.divider-suits .icon-suit {
  opacity: 0.5;
  animation: diamondDance 2s ease-in-out infinite;
}

.divider-suits .icon-suit:nth-child(1) { animation-delay: 0s; color: var(--crimson-bright); }
.divider-suits .icon-suit:nth-child(2) { animation-delay: 0.2s; }
.divider-suits .icon-suit:nth-child(3) { animation-delay: 0.4s; color: var(--purple-venetian); }
.divider-suits .icon-suit:nth-child(4) { animation-delay: 0.6s; }
.divider-suits .icon-suit:nth-child(5) { animation-delay: 0.8s; color: var(--crimson-bright); }
.divider-suits .icon-suit:nth-child(6) { animation-delay: 1s; }
.divider-suits .icon-suit:nth-child(7) { animation-delay: 1.2s; color: var(--purple-venetian); }
.divider-suits .icon-suit:nth-child(8) { animation-delay: 1.4s; }

@keyframes diamondDance {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.4; }
  50% { transform: translateY(-8px) rotate(180deg) scale(1.3); opacity: 1; }
}

.divider-line {
  width: min(600px, 80vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--crimson-bright), var(--gold), transparent);
  animation: lineShimmer 3s ease-in-out infinite;
}

@keyframes lineShimmer {
  0%, 100% { opacity: 0.5; filter: blur(0); }
  50% { opacity: 1; filter: blur(0.5px); }
}

.ink-drip {
  position: relative;
  height: 80px;
  z-index: 10;
  overflow: hidden;
}

.drip {
  position: absolute;
  top: 0;
  left: 30%;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--crimson-bright), transparent);
  border-radius: 0 0 50% 50%;
  animation: inkDrip 4s ease-in infinite;
}

.drip-2 {
  left: 55%;
  animation-delay: 1.3s;
  width: 6px;
}

.drip-3 {
  left: 78%;
  animation-delay: 2.6s;
  width: 3px;
}

@keyframes inkDrip {
  0% { height: 0; opacity: 0; }
  10% { opacity: 1; }
  100% { height: 120px; opacity: 0; }
}

/* ─── Products ─── */
.products {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.products .section-header {
  padding: 0 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 3rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.products-grid::before {
  content: '';
  position: absolute;
  inset: -2rem;
  background:
    repeating-conic-gradient(from 45deg, rgba(196, 30, 58, 0.03) 0deg 90deg, transparent 90deg 180deg);
  animation: harlequinSpin 30s linear infinite;
  pointer-events: none;
  z-index: -1;
}

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

.product-card {
  padding: 2rem;
}

.product-status {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 200, 100, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  animation: statusPulse 2s ease-in-out infinite;
}

.product-status.wip {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.3);
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.3); }
  50% { box-shadow: 0 0 15px 2px rgba(74, 222, 128, 0.2); }
}

.product-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.product-card:hover .product-glow {
  opacity: 0.08;
}

.product-glow-red { background: radial-gradient(circle, var(--crimson-glow), transparent 50%); }
.product-glow-green { background: radial-gradient(circle, #4ade80, transparent 50%); }
.product-glow-blue { background: radial-gradient(circle, var(--blue-electric), transparent 50%); }
.product-glow-gold { background: radial-gradient(circle, var(--gold), transparent 50%); }
.product-glow-yellow { background: radial-gradient(circle, #fbbf24, transparent 50%); }
.product-glow-purple { background: radial-gradient(circle, var(--purple-venetian), transparent 50%); }

.product-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  transition: transform 0.3s var(--ease-elastic);
}

.product-card:hover .product-name {
  transform: translateX(5px);
  color: var(--gold);
}

.product-desc {
  line-height: 1.75;
  color: rgba(245, 240, 225, 0.75);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid rgba(212, 175, 55, 0.35);
  font-size: 0.9rem;
  color: rgba(245, 240, 225, 0.65);
}

.meta-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-tags span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  background: rgba(106, 27, 154, 0.2);
  border: 1px solid rgba(106, 27, 154, 0.3);
  color: var(--silver);
}

.product-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.product-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  position: relative;
}

.product-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--crimson-glow);
  transition: width 0.3s var(--ease-out-expo);
}

.product-link:hover::after {
  width: 100%;
}

.product-link-muted {
  color: rgba(245, 240, 225, 0.4);
  cursor: default;
}

/* ─── Contact ─── */
.contact {
  max-width: none;
  padding: 0;
}

.contact-curtain {
  position: relative;
  padding: 8rem 3rem;
  overflow: hidden;
}

.curtain-left, .curtain-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to bottom, var(--crimson), var(--blood));
  z-index: 0;
  transition: transform 1.5s var(--ease-out-expo);
}

.curtain-left {
  left: 0;
  transform: translateX(-100%);
  border-right: 2px solid var(--gold);
}

.curtain-right {
  right: 0;
  transform: translateX(100%);
  border-left: 2px solid var(--gold);
}

.contact-curtain.visible .curtain-left,
.contact-curtain.visible .curtain-right {
  transform: translateX(0);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-desc {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(245, 240, 225, 0.8);
  margin: 1.5rem 0 3rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(10px);
}

.social-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.social-card-primary {
  border-color: rgba(212, 175, 55, 0.35);
  background: linear-gradient(145deg, rgba(74, 0, 8, 0.35), rgba(15, 15, 20, 0.85));
}

.social-bell-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 18px;
  height: 22px;
  opacity: 0;
  transition: opacity 0.3s;
}

.social-card:hover .social-bell-icon {
  opacity: 1;
  animation: jingleHat 0.5s ease-in-out infinite;
}

@keyframes jingleHat {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}

.social-icon {
  width: 40px;
  height: 40px;
  color: var(--silver-bright);
  transition: transform 0.4s var(--ease-elastic), color 0.3s;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-icon-text {
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.1em;
}

.social-card:hover .social-icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--gold);
}

.social-handle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.social-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 3rem;
  border-top: 1px solid rgba(192, 192, 192, 0.1);
  color: rgba(245, 240, 225, 0.5);
  font-size: 0.85rem;
}

/* ─── Magnetic hover helper ─── */
.magnetic {
  will-change: transform;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero {
    padding: 7rem 2rem 5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-desc {
    margin: 0 auto;
    max-width: 560px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
    order: -1;
  }

  .portrait-frame {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }

  .section.about {
    margin-top: -8vh;
    padding-top: calc(5rem + 8vh);
  }

  .about-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .social-grid-three {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor, .cursor-ring {
    display: none;
  }

  .nav {
    padding: 0.85rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: center;
  }

  .nav-logo {
    font-size: 1.15rem;
  }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.75rem;
  }

  .nav-link {
    font-size: 0.68rem;
  }

  .nav-badge {
    font-size: 0.62rem;
    padding: 0.4rem 0.9rem;
  }

  .hero {
    min-height: auto;
    padding: 6.5rem 1.25rem 3.5rem;
  }

  .hero-backdrop {
    height: max(95vh, 640px);
  }

  .hero-backdrop-slide {
    background-position: center 30%;
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.28em;
  }

  .hero-title {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.85rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }

  .portrait-frame {
    width: 200px;
    height: 200px;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .section.about {
    margin-top: -6vh;
    padding-top: calc(3.5rem + 6vh);
    padding-bottom: 4rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section.about::before {
    mask-image: radial-gradient(
      ellipse 100% 95% at 50% 35%,
      black 35%,
      transparent 100%
    );
    -webkit-mask-image: radial-gradient(
      ellipse 100% 95% at 50% 35%,
      black 35%,
      transparent 100%
    );
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .about-intro {
    margin-bottom: 2.5rem;
  }

  .about-intro p {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .about-grid {
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .about-card,
  .product-card,
  .social-card {
    padding: 1.75rem;
  }

  .icon-card {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }

  .tilt-card {
    transform: none !important;
  }

  .products-grid,
  .products .section-header {
    padding: 0 1.25rem;
  }

  .social-grid,
  .social-grid-three {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    padding: 2.5rem 0;
  }

  .stat-num {
    font-size: 2.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  .contact-curtain {
    padding: 4rem 1.25rem;
  }

  .floating-bell {
    opacity: 0.12;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    margin-bottom: 0.5rem;
  }

  .nav-links {
    gap: 1.25rem;
  }
}

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

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