/* ===========================
   ROYAL FLUSH — Static Sample LP
   lp-studio / samples / static
=========================== */

:root {
  /* Charcoal base + cyber blue (lines) + royal gold (accents) */
  --navy-deep: #18181e;   /* body: deep charcoal */
  --navy: #20202a;        /* section alt bg */
  --navy-2: #292933;      /* card bg */
  --navy-3: #343440;      /* elevated surface */
  --blue: #5a8ae8;        /* cyber blue — lines, borders, small text */
  --blue-light: #8fb8ff;  /* brighter blue — hover, subtle neon */
  --blue-dim: #2e4d88;    /* muted blue */
  --gold: #ffd700;        /* classic bright gold — CTA fills, warm accents */
  --gold-light: #ffeb66;  /* highlight gold — hover */
  --gold-dim: #b88a1a;    /* muted gold */
  --ivory: #eef0f5;       /* primary text, cool white */
  --ivory-dim: #a5abb5;   /* secondary text */
  --gray: #6e727d;        /* muted */
  --white: #ffffff;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-display: 'Oswald', sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', 'Consolas', monospace;
  --transition: all 0.3s ease;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
  --glow-blue: 0 0 20px rgba(143, 184, 255, 0.5), 0 0 60px rgba(90, 138, 232, 0.25);
  --glow-gold: 0 0 20px rgba(255, 235, 102, 0.45), 0 0 60px rgba(255, 215, 0, 0.22);
  --max-w: 1200px;
}

/* Subtle grain overlay globally to break flatness */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--navy-deep);
  background-image:
    url('images/retro-bg.svg'),
    linear-gradient(135deg, rgba(58, 58, 58, 0.18) 0%, rgba(24, 24, 30, 0) 50%, rgba(58, 58, 58, 0.14) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 120px 120px, 100% 100%;
  background-attachment: fixed, fixed;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Helper modifier for sections: .flat (opaque, hides pattern) vs .patterned (translucent, shows pattern) */
.section.flat {
  background: var(--navy-deep);
}
.section.patterned {
  background: rgba(32, 32, 42, 0.45);
}
/* Restore smooth rendering for non-bg elements */
img, iframe, svg:not(.contact-icon) {
  image-rendering: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-top: 40px;
}

/* Oversized bracketed numeral behind each section title — cyber HUD feel */
.section-head::before {
  content: "[ " attr(data-num) " ]";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(90, 138, 232, 0.18);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}
.section-head > * {
  position: relative;
  z-index: 1;
}

/* ===== CORNER BRACKETS (reusable marker class) ===== */
.corners {
  position: relative;
}
.corners::after {
  content: '';
  position: absolute;
  inset: 6px;
  pointer-events: none;
  background:
    linear-gradient(var(--blue), var(--blue)) top left     / 20px 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) top left     / 1px 20px no-repeat,
    linear-gradient(var(--blue), var(--blue)) top right    / 20px 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) top right    / 1px 20px no-repeat,
    linear-gradient(var(--blue), var(--blue)) bottom left  / 20px 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) bottom left  / 1px 20px no-repeat,
    linear-gradient(var(--blue), var(--blue)) bottom right / 20px 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) bottom right / 1px 20px no-repeat;
  opacity: 0.45;
  transition: opacity 0.5s ease, inset 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 3;
}
.corners:hover::after {
  opacity: 1;
  inset: 2px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 12px;
  display: inline-block;
  position: relative;
}

/* Gold line that slides in next to the eyebrow */
.section-eyebrow.line-reveal {
  padding-left: 0;
}
.section-eyebrow.line-reveal::before,
.section-eyebrow.line-reveal::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--blue);
  vertical-align: middle;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s;
}
.section-eyebrow.line-reveal::before {
  margin-right: 14px;
}
.section-eyebrow.line-reveal::after {
  margin-left: 14px;
}
.revealed .section-eyebrow.line-reveal::before,
.revealed .section-eyebrow.line-reveal::after,
.section-eyebrow.line-reveal.revealed::before,
.section-eyebrow.line-reveal.revealed::after {
  width: 44px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.subsection-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--blue-light);
  margin: 48px 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(90, 138, 232, 0.3);
  position: relative;
}
.subsection-title::before {
  content: '// ';
  color: var(--blue);
  opacity: 0.7;
  margin-right: 4px;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(24, 24, 30, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(90, 138, 232, 0.15);
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(24, 24, 30, 0.98);
  border-bottom-color: rgba(90, 138, 232, 0.35);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--ivory);
}

.logo-sub {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--blue);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--ivory-dim);
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--blue-light);
}

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

.nav-cta {
  padding: 8px 16px !important;
  border: 1px solid var(--blue);
  color: var(--blue-light) !important;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  background: var(--gold);
  color: var(--navy-deep) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--navy-deep);
  padding: 120px 40px 80px;
}

/* Hero metadata corner strips for technical/editorial density */
.hero-meta {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  font-size: 0.68rem;
  color: var(--ivory-dim);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: metaFade 1.5s ease-out 0.5s forwards;
}
.hero-meta .hud-plus {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 0;
  text-shadow: 0 0 8px rgba(143, 184, 255, 0.6);
}
.hero-meta .blink {
  color: var(--blue);
  animation: blinkCaret 1s step-end infinite;
}
@keyframes blinkCaret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes metaFade {
  to { opacity: 1; }
}
.hero-meta::before,
.hero-meta::after {
  content: '';
  height: 1px;
  background: var(--blue);
  display: inline-block;
  width: 24px;
  opacity: 0.6;
}
.hero-meta-tl { top: 100px; left: 40px; }
.hero-meta-tr { top: 100px; right: 40px; }
.hero-meta-bl { bottom: 30px; left: 40px; }
.hero-meta-br { bottom: 30px; right: 40px; }
.hero-meta-tl::before,
.hero-meta-bl::before { display: none; }
.hero-meta-tr::after,
.hero-meta-br::after { display: none; }
.hero-meta span.dot {
  color: var(--blue);
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .hero-meta { font-size: 0.6rem; letter-spacing: 0.2em; }
  .hero-meta-tl, .hero-meta-bl { left: 20px; }
  .hero-meta-tr, .hero-meta-br { right: 20px; }
}

.hero-bg {
  position: absolute;
  inset: -5%;
  background:
    url('images/hero-photo.webp') center/cover no-repeat,
    var(--navy-deep);
  will-change: transform;
  animation: heroBgDrift 24s ease-in-out infinite alternate;
  /* Soft blur + tonal shift to mask AI generation tells */
  filter: blur(0.3px) saturate(0.7) brightness(0.85) contrast(1.1);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* SVG noise grain to break the smooth AI gradients */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='nn'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23nn)'/></svg>"),
    /* Scanlines — cyber CRT texture */
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgba(0, 0, 0, 0.25) 2px,
      rgba(0, 0, 0, 0.25) 3px
    ),
    /* Blue rim glow + darken for legibility */
    radial-gradient(ellipse at 50% 40%, rgba(90, 138, 232, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, rgba(24, 24, 30, 0.15) 0%, rgba(24, 24, 30, 0.55) 100%);
  background-blend-mode: overlay, normal, normal, normal;
  mix-blend-mode: normal;
  pointer-events: none;
  opacity: 0.95;
}

@keyframes heroBgDrift {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(90, 138, 232, 0.16), transparent 55%),
    linear-gradient(180deg,
      rgba(24, 24, 30, 0.95) 0%,
      rgba(24, 24, 30, 0.7) 20%,
      rgba(24, 24, 30, 0.35) 50%,
      rgba(24, 24, 30, 0.6) 85%,
      var(--navy-deep) 100%),
    repeating-linear-gradient(
      45deg,
      transparent 0 40px,
      rgba(90, 138, 232, 0.02) 40px 80px
    );
  pointer-events: none;
}

.hero-suits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}

.hero-suit {
  position: absolute;
  font-size: 18rem;
  color: rgba(140, 180, 255, 0.55);
  mix-blend-mode: screen;
  text-shadow: 0 0 40px rgba(90, 138, 232, 0.35);
  font-family: var(--font-serif);
  line-height: 1;
}

.hero-suit-spade {
  top: 10%;
  left: -4%;
  animation: heroFloatA 14s ease-in-out infinite;
}

.hero-suit-diamond {
  bottom: 8%;
  right: -4%;
  animation: heroFloatB 16s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes heroFloatA {
  0%   { transform: translate(0, 0) rotate(-18deg); }
  33%  { transform: translate(20px, -30px) rotate(-12deg); }
  66%  { transform: translate(-10px, -10px) rotate(-22deg); }
  100% { transform: translate(0, 0) rotate(-18deg); }
}
@keyframes heroFloatB {
  0%   { transform: translate(0, 0) rotate(20deg); }
  33%  { transform: translate(-20px, 20px) rotate(14deg); }
  66%  { transform: translate(10px, -10px) rotate(24deg); }
  100% { transform: translate(0, 0) rotate(20deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* Hero entrance: each child fades up with stagger after load */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
              filter 1.1s ease;
}
.hero-content.hero-loaded > *:nth-child(1) { transition-delay: 0.10s; }
.hero-content.hero-loaded > *:nth-child(2) { transition-delay: 0.30s; }
.hero-content.hero-loaded > *:nth-child(3) { transition-delay: 0.70s; }
.hero-content.hero-loaded > *:nth-child(4) { transition-delay: 0.95s; }
.hero-content.hero-loaded > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 24px;
  text-shadow: 0 0 10px rgba(90, 138, 232, 0.4);
}

/* Typing animation overrides the default hero stagger for this child only */
.hero-content > .hero-eyebrow {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}
.hero-eyebrow .typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  border-right: 2px solid var(--blue-light);
  width: 0;
  animation:
    eyebrowTyping 1.6s steps(29, end) 0.3s forwards,
    eyebrowCaret 0.7s step-end 0.3s 12 forwards;
}
@keyframes eyebrowTyping {
  to { width: calc(29ch + 9em); }
}
@keyframes eyebrowCaret {
  0%, 100% { border-right-color: transparent; }
  50% { border-right-color: var(--blue-light); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--ivory);
  margin-bottom: 32px;
}

/* ROYAL: white text with gold backlight only — no gradient fill */
.hero-title .ht-1 {
  color: #ffffff;
  display: inline-block;
  filter:
    drop-shadow(0 0 18px rgba(255, 215, 60, 0.55))
    drop-shadow(0 0 50px rgba(255, 200, 50, 0.35))
    drop-shadow(0 0 90px rgba(255, 180, 30, 0.22));
  animation: royalPulse 6s ease-in-out infinite;
}
@keyframes royalPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 18px rgba(255, 215, 60, 0.55))
      drop-shadow(0 0 50px rgba(255, 200, 50, 0.35))
      drop-shadow(0 0 90px rgba(255, 180, 30, 0.22));
  }
  50% {
    filter:
      drop-shadow(0 0 24px rgba(255, 230, 110, 0.75))
      drop-shadow(0 0 65px rgba(255, 215, 70, 0.5))
      drop-shadow(0 0 110px rgba(255, 195, 40, 0.3));
  }
}
.hero-title .ht-2 {
  color: var(--blue-light);
  display: inline-block;
  position: relative;
  text-shadow:
    0 0 14px rgba(143, 184, 255, 0.55),
    0 0 40px rgba(90, 138, 232, 0.35),
    0 0 80px rgba(90, 138, 232, 0.2);
  animation: neonPulse 5s ease-in-out infinite;
}

/* Chromatic aberration glitch layers on the neon word */
.hero-title .ht-2::before,
.hero-title .ht-2::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.hero-title .ht-2::before {
  color: #ff3b5c;
  animation: glitchR 7s infinite;
  mix-blend-mode: screen;
}
.hero-title .ht-2::after {
  color: #3bf0ff;
  animation: glitchB 7s infinite;
  mix-blend-mode: screen;
}
@keyframes glitchR {
  0%, 94%, 100% { opacity: 0; transform: translate(0); }
  95% { opacity: 0.55; transform: translate(-2px, 1px); }
  96% { opacity: 0.4;  transform: translate(1px, -1px); }
  97% { opacity: 0.6;  transform: translate(-1px, -2px); }
  98% { opacity: 0.3;  transform: translate(2px, 1px); }
}
@keyframes glitchB {
  0%, 94%, 100% { opacity: 0; transform: translate(0); }
  95% { opacity: 0.55; transform: translate(2px, -1px); }
  96% { opacity: 0.4;  transform: translate(-1px, 1px); }
  97% { opacity: 0.6;  transform: translate(1px, 2px); }
  98% { opacity: 0.3;  transform: translate(-2px, -1px); }
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow:
      0 0 14px rgba(143, 184, 255, 0.55),
      0 0 40px rgba(90, 138, 232, 0.35),
      0 0 80px rgba(90, 138, 232, 0.2);
  }
  50% {
    text-shadow:
      0 0 18px rgba(143, 184, 255, 0.75),
      0 0 55px rgba(90, 138, 232, 0.5),
      0 0 100px rgba(90, 138, 232, 0.3);
  }
}

.hero-tagline {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--ivory-dim);
  margin-bottom: 48px;
}

.hero-sample-notice {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ivory-dim);
  opacity: 0.85;
  margin: -8px auto 28px;
  padding: 6px 16px;
  border: 1px dashed rgba(90, 138, 232, 0.45);
  display: inline-block;
  background: rgba(24, 24, 30, 0.5);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 20px rgba(255, 215, 0, 0.45);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: -1;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 6px 30px rgba(255, 215, 0, 0.6),
    0 0 60px rgba(255, 235, 120, 0.35);
}

.btn-primary:hover::before {
  transform: translateX(110%);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory-dim);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: -1;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--navy-deep);
}

.btn-outline:hover::before {
  transform: scaleY(1);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--blue);
  animation: scrollFadeBounce 3s ease-in-out infinite;
}

@keyframes scrollFadeBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.8; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--blue), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(var(--blue-light), transparent);
  animation: scrollLineDrop 2.2s ease-in infinite;
}
@keyframes scrollLineDrop {
  0%   { top: -20px; opacity: 1; }
  80%  { top: 48px; opacity: 0; }
  100% { top: 48px; opacity: 0; }
}

/* ===== ABOUT ===== */
.about {
  /* patterned — pattern visible */
  background: rgba(32, 32, 42, 0.5);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* ===== ART FRAMES (image containers) ===== */
.art-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(90, 138, 232, 0.25);
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  margin: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.6s ease,
              border-color 0.6s ease;
}

.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              filter 0.6s ease;
  /* Muted monochrome-ish, not pushed fully blue — lets accents do the talking */
  filter: saturate(0.55) brightness(0.85) contrast(1.12);
}

.art-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      transparent 0%,
      transparent 60%,
      rgba(24, 24, 30, 0.65) 100%),
    linear-gradient(135deg,
      rgba(42, 74, 138, 0.2),
      rgba(15, 26, 58, 0.15));
  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 1;
}

.art-frame::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 235, 102, 0.15) 50%,
    transparent 100%);
  transition: left 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}

.art-frame:hover img {
  transform: scale(1.04);
  filter: saturate(0.75) brightness(0.95) contrast(1.15);
}
.art-frame:hover {
  border-color: rgba(255, 215, 0, 0.7);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(255, 215, 0, 0.2);
}
.art-frame:hover::after {
  left: 130%;
}

.art-frame-sm {
  aspect-ratio: 4 / 3;
  max-width: 60%;
  margin: -60px 0 0 auto;
  position: relative;
  z-index: 2;
  border-color: rgba(90, 138, 232, 0.4);
}

.art-frame-square {
  aspect-ratio: 1 / 1;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--ivory);
  margin-bottom: 24px;
  line-height: 1.9;
}

.about-points {
  margin-top: 32px;
  border-top: 1px solid rgba(90, 138, 232, 0.2);
  padding-top: 24px;
}

.about-points li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--ivory-dim);
}

.about-points li::before {
  content: '♠';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ===== GAMES ===== */
.games {
  /* flat — content heavy, pattern would compete */
  background: var(--navy-deep);
  position: relative;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Horizontal tournament slider */
.slider-wrap {
  position: relative;
  margin-bottom: 40px;
}

.game-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 6px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.game-slider::-webkit-scrollbar { display: none; }

.game-slider > .game-card {
  flex: 0 0 calc(50% - 12px);
  scroll-snap-align: start;
  min-width: 0;
}

@media (max-width: 820px) {
  .game-slider > .game-card {
    flex: 0 0 86%;
  }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  background: rgba(24, 24, 30, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--blue-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 3;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.slider-arrow:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
  transform: translateY(-50%) scale(1.06);
}
.slider-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.slider-arrow-prev { left: -18px; }
.slider-arrow-next { right: -18px; }

@media (max-width: 820px) {
  .slider-arrow { width: 40px; height: 40px; }
  .slider-arrow-prev { left: -6px; }
  .slider-arrow-next { right: -6px; }
}

.game-card {
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid rgba(90, 138, 232, 0.2);
  padding: 36px 32px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              background 0.4s ease;
  overflow: hidden;
}

/* Subtle diagonal wash on each card */
.game-card > * {
  position: relative;
  z-index: 2;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--blue);
}

.game-card:hover {
  border-color: var(--gold);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 215, 0, 0.45),
    0 0 60px rgba(255, 215, 0, 0.18);
}

.game-card-head {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(90, 138, 232, 0.15);
}

.game-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--ivory);
  margin-bottom: 4px;
}

.game-card-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue);
  letter-spacing: 0.1em;
}

.game-card-body {
  color: var(--ivory-dim);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

/* Price table embedded in game card */
.game-card-price {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
}
.game-card-price th,
.game-card-price td {
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  border-bottom: 1px dashed rgba(90, 138, 232, 0.2);
}
.game-card-price th {
  text-align: left;
  color: var(--ivory-dim);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.game-card-price td {
  text-align: right;
  color: var(--blue-light);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.game-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-card-badges li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  background: rgba(32, 32, 42, 0.5);
  border: 1px solid rgba(90, 138, 232, 0.3);
  color: var(--blue-light);
}
.game-card-badges li::before {
  content: '>';
  color: var(--blue);
  margin-right: 6px;
  opacity: 0.7;
}

.vip-room {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  border: 1px solid var(--blue);
  padding: 40px;
  color: var(--ivory);
  text-align: center;
  font-size: 1rem;
  line-height: 1.9;
}

/* ===== PRICING ===== */
.pricing {
  /* patterned — data tables benefit from texture behind */
  background: rgba(32, 32, 42, 0.5);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-block {
  background:
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  border: 1px solid rgba(90, 138, 232, 0.2);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.pricing-block:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 215, 0, 0.15);
}

.pricing-block-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--blue);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(90, 138, 232, 0.3);
}

.pricing-table {
  width: 100%;
  margin-bottom: 20px;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 0;
  font-size: 1.1rem;
  border-bottom: 1px dotted rgba(90, 138, 232, 0.15);
}

/* Typing caret used by script.js on [data-typing] elements */
.typing-caret {
  display: inline-block;
  width: 0.12em;
  height: 0.9em;
  background: currentColor;
  vertical-align: -0.08em;
  margin-left: 3px;
  animation: typingCaretBlink 0.65s step-end infinite;
  box-shadow: 0 0 6px currentColor;
}
@keyframes typingCaretBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}


.pricing-table th {
  text-align: left;
  color: var(--ivory-dim);
  font-weight: 400;
}

.pricing-table td {
  text-align: right;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 16px;
}

/* ===== ACCESS ===== */
.access {
  /* flat — map is visual, keep surrounding calm */
  background: var(--navy-deep);
  position: relative;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.access-list dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-top: 20px;
}
.access-list dt::before {
  content: '> ';
  color: var(--blue-light);
  opacity: 0.7;
}

.access-list dt:first-child { margin-top: 0; }

.access-list dd {
  color: var(--ivory);
  padding: 8px 0 16px;
  border-bottom: 1px solid rgba(90, 138, 232, 0.1);
}

.access-map .art-frame {
  aspect-ratio: 1 / 1;
}

.map-embed {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(90, 138, 232, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  transition:
    border-color 0.6s ease,
    box-shadow 0.6s ease;
}

.map-embed:hover {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(255, 215, 0, 0.18);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.55) contrast(1.1) brightness(0.88);
}

/* ===== SCHEDULE ===== */
.schedule {
  /* patterned — simple table, decoration welcome */
  background: rgba(32, 32, 42, 0.5);
  position: relative;
}

.schedule-table {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(90, 138, 232, 0.2);
}

.schedule-table th {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--blue);
  text-align: left;
  width: 30%;
}
.schedule-table td {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.schedule-table td {
  color: var(--ivory);
  text-align: right;
}

/* ===== CONTACT ===== */
.contact {
  /* flat — icons and CTAs are the focus */
  background: var(--navy-deep);
  text-align: center;
  position: relative;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--ivory-dim);
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.contact-links a:hover .contact-icon {
  transform: rotate(-5deg) scale(1.1);
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid rgba(90, 138, 232, 0.4);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--ivory);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: -1;
}

.contact-links a:hover {
  border-color: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.45);
}

.contact-links a:hover::before {
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
  background: #0f0f13;
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(90, 138, 232, 0.15);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.footer-logo .logo-main {
  font-size: 1.4rem;
}

.footer-logo .logo-sub {
  font-size: 0.7rem;
  margin-top: 4px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--gray);
  opacity: 0.7;
}

.footer-credit {
  font-size: 0.7rem;
  color: var(--gray);
  opacity: 0.5;
  margin-top: 16px;
}

.footer-credit a {
  color: var(--blue);
  opacity: 0.9;
  border-bottom: 1px dotted var(--blue);
}

.footer-credit a:hover {
  opacity: 1;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal.reveal-left  { transform: translateX(-48px) translateY(0); }
.reveal.reveal-right { transform: translateX(48px)  translateY(0); }
.reveal.reveal-left.revealed,
.reveal.reveal-right.revealed {
  transform: translate(0, 0);
}

/* Stagger children inside reveal-stagger */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
  will-change: opacity, transform;
}
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion: skip all entrance animations */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .hero-content > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .hero-bg, .hero-suit, .hero-scroll, .scroll-line::after {
    animation: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  /* --- Layout --- */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-deep);
    border-top: 1px solid rgba(90, 138, 232, 0.2);
    padding: 24px 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-links.nav-links-open { max-height: 400px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 0; }

  .about-grid,
  .access-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .art-frame-sm {
    max-width: 75%;
    margin: -40px 0 0 auto;
  }

  .container { padding: 0 18px; }
  .nav-inner { padding: 14px 18px; }  /* align with .container gutter */
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; padding-top: 28px; }
  .section-head::before { font-size: clamp(3rem, 14vw, 5rem); top: -6px; }
  .section-title { font-size: 1.8rem; }

  .hero-title { margin-bottom: 24px; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-tagline { margin-bottom: 28px; }

  /* Hide corner HUD text on mobile — clutter on narrow screens */
  .hero-meta { display: none; }

  /* Suit watermarks: smaller and static */
  .hero-suit { font-size: 9rem; opacity: 0.45; }

  /* Cards tighten padding for better content width */
  .game-card { padding: 28px 22px; }
  .pricing-block { padding: 32px 22px; }
  .vip-room { padding: 28px 22px; }

  /* Tables: still readable but not oversized */
  .pricing-table th,
  .pricing-table td { padding: 12px 0; font-size: 1rem; }
  .pricing-table td { font-size: 1.1rem; }

  .game-card-price th,
  .game-card-price td { padding: 9px 0; font-size: 0.95rem; }
  .game-card-price td { font-size: 1.05rem; }

  .schedule-table th,
  .schedule-table td { padding: 14px 12px; font-size: 0.95rem; }

  /* --- Performance: kill expensive effects on mobile --- */
  #navbar,
  .slider-arrow {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Global grain overlay (mix-blend-mode is GPU-expensive) */
  body::before { display: none; }

  /* Hero background: no filter, no drift animation */
  .hero-bg {
    filter: none;
    animation: none;
    will-change: auto;
  }
  .hero-bg::after { display: none; }

  /* ROYAL title: single shadow layer, no pulse */
  .hero-title .ht-1 {
    animation: none;
    filter: drop-shadow(0 0 18px rgba(255, 215, 60, 0.55));
  }

  /* FLUSH title: static neon, no pulse, no chromatic glitch */
  .hero-title .ht-2 {
    animation: none;
    text-shadow:
      0 0 14px rgba(143, 184, 255, 0.5),
      0 0 35px rgba(90, 138, 232, 0.3);
  }
  .hero-title .ht-2::before,
  .hero-title .ht-2::after { display: none; }

  /* Suit float, scroll-line drop: disable */
  .hero-suit { animation: none; }
  .scroll-line::after { display: none; }

  /* Drop 3D card tilt context (still no mousemove on touch but saves compositing) */
  .game-card { transform-style: flat; }

  /* Reduce heavy image filters */
  .art-frame img,
  .about-image img { filter: saturate(0.85) brightness(0.95); }

  /* Typing caret glow: lighten */
  .typing-caret { box-shadow: none; }

  /* Disable ALL entrance/reveal animations on mobile (mirrors prefers-reduced-motion) */
  .reveal,
  .reveal-stagger > *,
  .hero-content > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  /* Kill CSS typing animation on hero-eyebrow (was width-based expand with caret) */
  .hero-eyebrow .typed {
    animation: none !important;
    width: auto !important;
    border-right: 0 !important;
  }

  /* Tournament slider on mobile: horizontal swipe with edge-to-edge feel, no arrows */
  .slider-wrap {
    margin: 0 -18px 28px;   /* cancel container padding for full-bleed look */
    padding: 0 18px;         /* restore visual alignment for the first card */
    position: static;
  }
  .game-slider {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 0 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .game-slider::-webkit-scrollbar { display: none; }
  .game-slider > .game-card {
    flex: 0 0 88%;
    scroll-snap-align: center;
    min-width: 0;
    width: auto;
  }
  .slider-arrow { display: none; }

  /* Disable hero entrance blur/translate on mobile (hero-content stagger) */
  .hero-content > *,
  .hero-content.hero-loaded > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  /* Meta fade-in on hero-meta no longer applies since hidden, but be explicit */
  .hero-meta { animation: none; }

  /* Typing caret completely static (no pulse) for any leftover */
  .typing-caret { animation: none; display: none; }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .schedule-table th,
  .schedule-table td { padding: 12px 10px; font-size: 0.9rem; }

  /* Even tighter on phones */
  .container { padding: 0 14px; }
  .nav-inner { padding: 12px 14px; }
  .section { padding: 52px 0; }
  .section-title { font-size: 1.55rem; }
  .game-card { padding: 22px 16px; }
  .pricing-block { padding: 26px 16px; }
  .vip-room { padding: 22px 16px; }

  /* Slider wrap: match ≤600 container */
  .slider-wrap { margin: 0 -14px 22px; padding: 0 14px; }
  .game-slider { gap: 12px; }
  .game-slider > .game-card { flex: 0 0 90%; }

  /* Tighter body text per card for fewer line breaks within */
  .game-card-body { font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
  .game-card-title { font-size: 1.3rem; }
  .game-card-sub { font-size: 0.75rem; }

  /* Nav logo smaller on very narrow screens */
  .logo-main { font-size: 1rem; }
  .logo-sub { font-size: 0.7rem; }
}
