* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0d11;
  --bg-soft: #11151d;
  --panel: rgba(255,255,255,0.05);
  --panel-strong: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.10);
  --text: #f6f1e8;
  --muted: rgba(246,241,232,0.74);
  --soft: rgba(246,241,232,0.50);
  --gold: #e2c37a;
  --amber: #cc8a2f;
  --system: #bdd7ff;
  --city1: #ff4fb1;
  --city2: #43bfff;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --shadow: 0 22px 60px rgba(0,0,0,0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(226,195,122,0.10), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(67,191,255,0.08), transparent 16%),
    linear-gradient(180deg, #12141a 0%, #0b0d11 55%, #0a0c10 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

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

.particle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle-layer span {
  position: absolute;
  color: rgba(255,255,255,0.14);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  15%  { opacity: 0.24; }
  60%  { opacity: 0.45; }
  100% { transform: translateY(-180px) rotate(20deg); opacity: 0; }
}

.site-header,
.hero,
.section {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.brand-block {
  display: flex;
  flex-direction: column;
}

.brand-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--soft);
  margin-bottom: 6px;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.main-nav a {
  font-size: 14px;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--text);
}

.hero {
  max-width: 1240px;
  margin: 0 auto;
  min-height: calc(100vh - 92px);
  padding: 30px 24px 80px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 12px;
}

.hero h1,
.section-head h2,
.final-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3.4rem, 6vw, 6.4rem);
  max-width: 820px;
}

.hero-lead,
.hero-sub,
.section-head p,
.demo-card p,
.world-card p,
.character-card p,
.design-point p,
.final-panel p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 17px;
}

.hero-lead {
  max-width: 760px;
  margin-top: 20px;
}

.hero-sub {
  max-width: 720px;
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-gold {
  color: #171717;
  background: linear-gradient(180deg, #f4e3bb 0%, #e2c37a 100%);
}

.btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-stage-card {
  width: min(100%, 520px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-stage-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 30% 16%, rgba(226,195,122,0.22), transparent 18%),
    linear-gradient(180deg, #181411 0%, #120f14 50%, #0c0c10 100%);
}

.hero-columns {
  position: absolute;
  inset: 26px 28px 130px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,190,90,0.00) 0,
      rgba(255,190,90,0.00) 36px,
      rgba(255,200,120,0.16) 36px,
      rgba(255,200,120,0.26) 58px,
      rgba(255,190,90,0.00) 58px,
      rgba(255,190,90,0.00) 96px
    );
  filter: blur(0.2px);
}

.hero-floor {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 26px;
  height: 120px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.08)),
    linear-gradient(90deg, rgba(226,195,122,0.14), rgba(255,255,255,0.03), rgba(226,195,122,0.09));
}

.hero-piano {
  position: absolute;
  width: 110px;
  height: 56px;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  border-radius: 100px 100px 16px 16px;
  background: #0d0d10;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.hero-piano::after {
  content: "";
  position: absolute;
  left: 84px;
  top: 10px;
  width: 18px;
  height: 30px;
  background: #0d0d10;
  transform: skew(-10deg);
}

.hero-notes span {
  position: absolute;
  color: rgba(255,255,255,0.26);
  font-size: 22px;
  animation: pulseFloat 5.8s ease-in-out infinite;
}

.hero-notes span:nth-child(1) { left: 22%; top: 24%; animation-delay: 0s; }
.hero-notes span:nth-child(2) { left: 62%; top: 18%; animation-delay: 1s; }
.hero-notes span:nth-child(3) { left: 36%; top: 40%; animation-delay: 2s; }
.hero-notes span:nth-child(4) { left: 74%; top: 46%; animation-delay: 1.4s; }

@keyframes pulseFloat {
  0%,100% { transform: translateY(0); opacity: 0.18; }
  50%     { transform: translateY(-14px); opacity: 0.48; }
}

.hero-caption {
  margin-top: 16px;
  padding: 0 4px 4px;
}

.hero-caption span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin-bottom: 8px;
}

.hero-caption strong {
  font-size: 22px;
  font-weight: 600;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 980px;
  margin-bottom: 34px;
}

.section-head h2,
.final-panel h2 {
  font-size: clamp(2.5rem, 4.2vw, 4.8rem);
}

.section-head p {
  margin-top: 18px;
}

.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: end;
}

.section-intro {
  max-width: 900px;
}

.demo-grid,
.world-grid,
.character-grid,
.design-points {
  display: grid;
  gap: 22px;
}

.demo-grid {
  grid-template-columns: repeat(4, 1fr);
}

.demo-card,
.world-card,
.character-card,
.design-point,
.final-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}

.demo-card {
  padding: 24px;
}

.demo-label,
.world-label,
.char-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(226,195,122,0.12);
  border: 1px solid rgba(226,195,122,0.22);
  color: #f2d89c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.demo-card h3,
.world-card h3,
.character-card h3,
.design-point h3 {
  margin: 18px 0 0;
  font-size: 24px;
}

.demo-sub {
  color: var(--gold);
  margin-top: 8px;
  font-size: 14px;
}

.audio-btn {
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  background: rgba(226,195,122,0.16);
  color: var(--text);
  border: 1px solid rgba(226,195,122,0.22);
  cursor: pointer;
}

.audio-btn:hover {
  background: rgba(226,195,122,0.24);
}

.demo-card audio {
  width: 100%;
  margin-top: 14px;
  display: none;
}

.demo-card.open audio {
  display: block;
}

.world-grid {
  grid-template-columns: repeat(2, 1fr);
}

.world-card {
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.world-card-inner {
  position: relative;
  z-index: 2;
  padding: 28px;
  max-width: 78%;
}

.archive-card {
  background:
    radial-gradient(circle at 24% 22%, rgba(226,195,122,0.24), transparent 18%),
    repeating-linear-gradient(
      90deg,
      rgba(255,210,120,0.00) 0,
      rgba(255,210,120,0.00) 40px,
      rgba(255,205,120,0.14) 40px,
      rgba(255,205,120,0.22) 60px,
      rgba(255,210,120,0.00) 60px,
      rgba(255,210,120,0.00) 94px
    ),
    linear-gradient(180deg, #181411 0%, #120f14 50%, #0c0c10 100%);
}

.system-card {
  background:
    linear-gradient(180deg, rgba(189,215,255,0.10), transparent 20%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 2px,
      transparent 2px,
      transparent 74px
    ),
    linear-gradient(180deg, #111621 0%, #0c1019 55%, #090b11 100%);
}

.rooftop-card {
  background:
    radial-gradient(circle at 50% 10%, rgba(95,140,255,0.20), transparent 16%),
    linear-gradient(180deg, rgba(255,196,110,0.10), transparent 24%),
    linear-gradient(180deg, #191f2a 0%, #121722 55%, #0d1017 100%);
}

.city-card {
  background:
    radial-gradient(circle at 22% 18%, rgba(255,79,177,0.18), transparent 20%),
    radial-gradient(circle at 78% 12%, rgba(67,191,255,0.18), transparent 18%),
    linear-gradient(180deg, #151828 0%, #101322 52%, #0b0e16 100%);
}

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

.character-card,
.design-point {
  padding: 24px;
}

.design-points {
  grid-template-columns: repeat(4, 1fr);
}

.final-section {
  padding-bottom: 110px;
}

.final-panel {
  padding: 34px;
  border-radius: var(--radius-xl);
  max-width: 980px;
}

.closing-line {
  margin-top: 24px;
  color: var(--gold);
  font-size: 21px;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .hero,
  .section-head.split {
    grid-template-columns: 1fr;
  }

  .demo-grid,
  .design-points {
    grid-template-columns: repeat(2, 1fr);
  }

  .world-grid {
    grid-template-columns: 1fr;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .demo-grid,
  .design-points {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .hero-stage-frame {
    min-height: 420px;
  }

  .world-card-inner {
    max-width: 100%;
  }
}

/* ==========================================
   TRANSFORM REVEAL SECTION — IMAGE VERSION
   ========================================== */

.transform-section {
  padding-top: 40px;
}

.transform-head {
  margin-bottom: 28px;
}

.transform-wrap {
  position: relative;
}

.transform-stage {
  position: relative;
  min-height: 680px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1016;
  box-shadow: var(--shadow);
  isolation: isolate;
}

/* BACK WORLD: ARCHIVE IMAGE */
.transform-bg {
  position: absolute;
  inset: 0;
}

.archive-bg {
  background:
    linear-gradient(180deg, rgba(15,12,10,0.18), rgba(8,8,10,0.35)),
    url("images/archive.jpg") center center / cover no-repeat;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(.22,.8,.24,1);
}

.archive-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(226,195,122,0.18), transparent 18%),
    radial-gradient(circle at 70% 20%, rgba(255,225,160,0.10), transparent 20%);
  pointer-events: none;
}

.archive-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30,16,6,0.10), rgba(10,8,10,0.28));
  pointer-events: none;
}

/* FRONT WORLD: SYSTEM IMAGE PANELS */
.transform-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.front-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  transition:
    transform 1.2s cubic-bezier(.22,.8,.24,1),
    opacity 0.8s ease,
    filter 0.8s ease;
  background-image:
    linear-gradient(180deg, rgba(10,14,22,0.18), rgba(6,8,12,0.40)),
    url("images/system.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

.front-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(189,215,255,0.10), transparent 18%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 2px,
      transparent 2px,
      transparent 74px
    );
  opacity: 0.55;
  pointer-events: none;
}

.front-panel::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: rgba(255,255,255,0.16);
  box-shadow:
    0 0 18px rgba(189,215,255,0.28),
    0 0 44px rgba(189,215,255,0.10);
}

.front-left {
  left: 0;
  border-right: 1px solid rgba(255,255,255,0.04);
  background-position: left center;
}

.front-left::after {
  right: 0;
}

.front-right {
  right: 0;
  border-left: 1px solid rgba(255,255,255,0.04);
  background-position: right center;
}

.front-right::after {
  left: 0;
}

/* COPY BLOCKS */
.transform-overlay-copy {
  position: absolute;
  left: 34px;
  bottom: 30px;
  width: min(520px, calc(100% - 68px));
  padding: 24px 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}

.transform-overlay-copy h3 {
  margin: 12px 0 8px;
  font-size: 34px;
  font-family: "Cormorant Garamond", serif;
}

.transform-overlay-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.system-copy {
  z-index: 5;
  background: rgba(10,14,22,0.56);
  transition: opacity 0.45s ease, transform 0.8s ease;
}

.archive-copy {
  z-index: 2;
  background: rgba(36,18,8,0.44);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s ease 0.35s, transform 0.8s ease 0.35s;
}

.transform-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.system-copy .transform-tag {
  background: rgba(189,215,255,0.12);
  border: 1px solid rgba(189,215,255,0.24);
  color: #d6e7ff;
}

.archive-copy .transform-tag {
  background: rgba(226,195,122,0.12);
  border: 1px solid rgba(226,195,122,0.22);
  color: #f2d89c;
}

/* CENTER GLOW */
.transform-center-glow {
  position: absolute;
  left: 50%;
  top: 6%;
  bottom: 6%;
  width: 220px;
  transform: translateX(-50%) scaleY(0.72);
  background: radial-gradient(
    ellipse at center,
    rgba(226,195,122,0.24) 0%,
    rgba(226,195,122,0.10) 34%,
    transparent 72%
  );
  opacity: 0;
  z-index: 2;
  transition: opacity 0.85s ease 0.2s, transform 1s ease 0.2s;
}

/* PARTICLES */
.transform-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.transform-particles span {
  position: absolute;
  color: rgba(255,235,180,0.20);
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-shadow: 0 0 16px rgba(255,220,140,0.18);
}

/* ACTIVE STATE */
.transform-stage.is-open .front-left {
  transform: translateX(-108%);
  opacity: 0.95;
  filter: brightness(1.05);
}

.transform-stage.is-open .front-right {
  transform: translateX(108%);
  opacity: 0.95;
  filter: brightness(1.05);
}

.transform-stage.is-open .system-copy {
  opacity: 0;
  transform: translateY(12px);
}

.transform-stage.is-open .archive-copy {
  opacity: 1;
  transform: translateY(0);
}

.transform-stage.is-open .archive-bg {
  transform: scale(1);
}

.transform-stage.is-open .transform-center-glow {
  opacity: 1;
  transform: translateX(-50%) scaleY(1);
}

.transform-stage.is-open .transform-particles span {
  opacity: 1;
  transform: translateY(-10px) scale(1);
}

.transform-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 760px) {
  .transform-stage {
    min-height: 520px;
  }

  .transform-overlay-copy {
    left: 18px;
    right: 18px;
    width: auto;
    bottom: 18px;
  }

  .transform-overlay-copy h3 {
    font-size: 28px;
  }
}