/* ============================================================
   Blind Dragon Studios – Modern AAA Stylesheet
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --fg: #f5f5f0;
  --gold: #d4af37;
  --gold-light: #e6c65a;

  --muted: rgba(245, 245, 240, 0.68);
  --muted-2: rgba(245, 245, 240, 0.5);

  --border: rgba(212, 175, 55, 0.18);
  --panel: rgba(245, 245, 240, 0.04);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --nav-height: 78px;

  --container: 1200px;

  --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 4px 40px rgba(212, 175, 55, 0.12);
  --shadow-heavy: 0 30px 80px rgba(0, 0, 0, 0.7);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays for child elements */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.15s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.25s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Keyframe Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dash {
  to { stroke-dashoffset: 0; }
}

.gold {
  color: var(--gold);
}

.text-shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 40%, #fff 50%, var(--gold-light) 60%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ---------- Grain / Noise overlay ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.04);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(5, 5, 5, 0.92);
  border-bottom-color: rgba(212, 175, 55, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand img {
  height: 40px;
  width: 40px;
  transition: transform 0.4s var(--ease-out-expo);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.brand span {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn)[aria-current="page"]::after {
  width: 100%;
  left: 0;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  transition: transform 0.25s var(--ease-out-expo),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 35px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--fg);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(245, 245, 240, 0.03);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(245, 245, 240, 0.06);
}

.nav-toggle:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.55);
  outline-offset: 3px;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  top: -250px;
  right: -250px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite 2s;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.kicker::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.06;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.1s both;
}

.lede {
  color: var(--muted);
  max-width: 54ch;
  font-size: 1.08rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.25s both;
}

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.4s both;
}

/* Hero art panel */
.hero-art {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: linear-gradient(145deg, rgba(245, 245, 240, 0.04), rgba(245, 245, 240, 0.01));
  box-shadow: var(--shadow-heavy);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  animation: fade-in-up 1s var(--ease-out-expo) 0.3s both;
}

.hero-art::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(212, 175, 55, 0.04) 25%, transparent 50%);
  animation: rotate-slow 20s linear infinite;
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.6));
  transition: transform 0.6s var(--ease-out-expo);
}

.hero-art:hover img {
  transform: scale(1.03) translateY(-4px);
}

.hero-note {
  margin-top: 1.25rem;
  color: rgba(245, 245, 240, 0.45);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ---------- Featured Project (Home) ---------- */
.featured-project {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

.featured-project::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.04) 0%, transparent 100%);
  pointer-events: none;
}

.featured-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.featured-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.14);
  box-shadow: var(--shadow-heavy);
  position: relative;
  aspect-ratio: 16 / 9;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.featured-media:hover img {
  transform: scale(1.05);
}

.featured-media .overlay-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.featured-info .kicker {
  margin-bottom: 0.8rem;
}

.featured-info h2 {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}

.featured-info p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.featured-info .btn-row {
  margin-top: 1.8rem;
  animation: none;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.feature-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(212, 175, 55, 0.04);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.feature-list li:hover {
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--fg);
}

.feature-list li svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-text {
  color: var(--muted);
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.8;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.08);
  background: linear-gradient(145deg, rgba(245, 245, 240, 0.03), rgba(245, 245, 240, 0.008));
  padding: 2.4rem 2rem;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 175, 55, 0.04);
}

.card:hover::before {
  opacity: 1;
}

.card-num {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: 2.4rem;
  color: rgba(212, 175, 55, 0.12);
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.card:hover .card-num {
  color: rgba(212, 175, 55, 0.3);
}

.card h3 {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Update Schedule ---------- */
.update-schedule {
  padding: 4rem 0 2rem;
}

.schedule-banner {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(245, 245, 240, 0.02));
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}

.schedule-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}

.schedule-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-icon svg {
  width: 36px;
  height: 36px;
  color: var(--gold);
}

.schedule-content {
  flex: 1;
}

.schedule-content h3 {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.schedule-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.schedule-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.schedule-date svg {
  width: 14px;
  height: 14px;
}

/* ---------- Page Headers ---------- */
.page-header {
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 4.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 20% 20%, rgba(212, 175, 55, 0.06), transparent 55%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: clamp(2.2rem, 4.8vw, 3.9rem);
  font-weight: 400;
  animation: fade-in-up 0.8s var(--ease-out-expo) both;
}

/* ---------- About Page ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.08);
  background: linear-gradient(145deg, rgba(245, 245, 240, 0.03), rgba(245, 245, 240, 0.008));
  padding: 2rem 1.8rem;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.value-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.value-card h3 {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.55rem;
  color: var(--gold);
}

.value-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.timeline {
  margin-top: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  transition: background 0.3s ease;
}

.timeline-item:hover {
  background: rgba(212, 175, 55, 0.02);
}

.timeline-year {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold);
}

.timeline-content h3 {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.1);
  background: linear-gradient(145deg, rgba(245, 245, 240, 0.03), rgba(245, 245, 240, 0.008));
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.project-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-heavy), 0 0 60px rgba(212, 175, 55, 0.05);
}

.project-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.project-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.project-card:hover .project-card-media img {
  transform: scale(1.05);
}

.project-card-body {
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
  width: fit-content;
}

.status-dev {
  background: rgba(212, 175, 55, 0.13);
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.18);
}

.status-dev::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-coming {
  background: rgba(245, 245, 240, 0.06);
  color: rgba(245, 245, 240, 0.65);
  border-color: rgba(245, 245, 240, 0.1);
}

.project-card-body h2 {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.project-card-body p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: rgba(245, 245, 240, 0.65);
  background: rgba(245, 245, 240, 0.02);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.tag:hover {
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold);
}

/* ---------- CTA ---------- */
.cta {
  padding: 7rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 100%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.cta-text {
  color: var(--muted);
  max-width: 62ch;
  margin: 0.2rem auto 2rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.06);
  background: rgba(0, 0, 0, 0.3);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  height: 34px;
  width: 34px;
  transition: transform 0.3s var(--ease-out-expo);
}

.footer-brand:hover img {
  transform: rotate(-6deg);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.45);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.copyright {
  font-size: 0.7rem;
  color: rgba(245, 245, 240, 0.3);
}

/* ---------- Discord Popup Modal ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  background: linear-gradient(145deg, #111, #0a0a0a);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(212, 175, 55, 0.06);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s var(--ease-out-expo);
}

.popup-overlay.active .popup-modal {
  transform: translateY(0) scale(1);
}

.popup-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 240, 0.1);
  background: rgba(245, 245, 240, 0.04);
  color: var(--muted-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.popup-close:hover {
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--fg);
  background: rgba(245, 245, 240, 0.08);
}

.popup-close svg {
  width: 18px;
  height: 18px;
}

.popup-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.popup-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.popup-modal h2 {
  font-family: Cinzel, ui-serif, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.popup-modal p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.popup-modal .btn {
  width: 100%;
  justify-content: center;
}

.popup-dismiss {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-2);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.popup-dismiss:hover {
  color: var(--fg);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-art {
    order: -1;
    padding: 1.5rem;
  }

  .featured-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .featured-media {
    order: -1;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card-inner {
    grid-template-columns: 1fr;
  }

  .project-card-media {
    aspect-ratio: 16 / 9;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .schedule-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
  }

  .brand span {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-height) - 10px);
    right: 1.2rem;
    left: 1.2rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    animation: slide-down 0.3s var(--ease-out-expo);
  }

  body[data-nav-open="true"] .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-links a:hover {
    background: rgba(245, 245, 240, 0.05);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .popup-modal {
    padding: 2.5rem 1.8rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .section {
    padding: 4rem 0;
  }

  .featured-project {
    padding: 4rem 0;
  }

  .cta {
    padding: 4rem 0;
  }

  .schedule-banner {
    padding: 2rem 1.5rem;
  }

  .project-card-body {
    padding: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
