/* ============================================================
   DEV DEGREE HYPE HOUSE — styles.css
   Dark cyber-neon theme · CODE. BUILD. FLEX. REPEAT.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Backgrounds */
  --bg:        #0a0a0f;
  --panel:     #14141f;
  --panel-2:   #1b1b2b;
  --panel-3:   #22223a;

  /* Neon palette */
  --purple:    #a855f7;
  --purple-2:  #7c3aed;
  --cyan:      #22d3ee;
  --cyan-2:    #06b6d4;
  --pink:      #ec4899;

  /* Text */
  --text:      #e8e8f0;
  --muted:     #9a9ab0;

  /* Effects */
  --grad:      linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
  --grad-pink: linear-gradient(135deg, #ec4899 0%, #a855f7 55%, #22d3ee 100%);
  --border:    rgba(168, 85, 247, 0.22);
  --border-2:  rgba(34, 211, 238, 0.22);
  --glass:     rgba(27, 27, 43, 0.55);
  --glow-purple: 0 0 24px rgba(168, 85, 247, 0.55);
  --glow-cyan:   0 0 24px rgba(34, 211, 238, 0.5);

  /* Type */
  --font-display: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;
  --font-head:    'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Fira Code', monospace;

  /* Layout */
  --maxw: 1200px;
  --nav-h: 68px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 12% -8%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(55vw 55vw at 100% 12%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(50vw 50vw at 50% 110%, rgba(236, 72, 153, 0.12), transparent 60%);
  pointer-events: none;
}

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

a { color: var(--cyan); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--purple); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 0.5em; }

p { margin: 0 0 1em; }

.mono { font-family: var(--font-mono); }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* Utility gradient text */
.grad-text {
  background: var(--grad-pink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.35));
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--purple-2);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --btn-bg: var(--panel-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--btn-bg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}
.btn--primary:hover { box-shadow: 0 12px 40px rgba(34, 211, 238, 0.5), var(--glow-purple); color: #fff; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-2);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); color: var(--text); }

.btn--discord {
  background: linear-gradient(135deg, #5865F2 0%, #7c3aed 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.4);
}
.btn--discord:hover { box-shadow: 0 12px 40px rgba(88, 101, 242, 0.65); color: #fff; }

.btn--big {
  font-size: 1.15rem;
  padding: 1.1em 2.2em;
}
.btn__discord-icon { font-size: 1.2em; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.14);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.85);
  border-bottom-color: rgba(168, 85, 247, 0.3);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
  animation: logoPulse 2.4s ease-in-out infinite;
}
.brand__name {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 10px rgba(34, 211, 238, 0.5); opacity: 0.92; }
  50%      { transform: scale(1.14); text-shadow: 0 0 22px rgba(34, 211, 238, 1), 0 0 34px rgba(168, 85, 247, 0.7); opacity: 1; }
}

/* Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav__menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__menu a:not(.btn):hover { color: var(--cyan); }
.nav__menu a:not(.btn):hover::after,
.nav__menu a.is-active:not(.btn)::after { transform: scaleX(1); }
.nav__menu a.is-active:not(.btn) { color: var(--cyan); }
.nav__cta { color: #fff !important; }

/* Hamburger */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__bars::before { transform: translate(-50%, -8px); }
.nav__bars::after  { transform: translate(-50%, 6px); }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 6rem) 0 0;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(40vw 40vw at 20% 20%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(38vw 38vw at 82% 30%, rgba(34, 211, 238, 0.24), transparent 60%),
    radial-gradient(30vw 30vw at 60% 80%, rgba(236, 72, 153, 0.18), transparent 60%);
  filter: blur(6px);
  animation: heroFloat 14s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes heroFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 85%);
  z-index: -1;
}

.hero__inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
}
.eyebrow .mono { color: var(--pink); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  letter-spacing: 0.01em;
  margin: 0 0 0.35em;
  text-shadow: 0 0 32px rgba(168, 85, 247, 0.35);
}
.hero__tagline {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
  margin: 0 0 1rem;
}
.hero__sub {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.05rem;
}
.hero__sub strong { color: var(--text); }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* Hero art */
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__art-glow {
  position: absolute;
  inset: 6% 6% 2%;
  background: var(--grad);
  filter: blur(60px);
  opacity: 0.4;
  border-radius: 50%;
  z-index: 0;
  animation: heroFloat 10s ease-in-out infinite alternate;
}
.hero__img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.hero__badge {
  position: absolute;
  top: 4%; right: 6%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  background: var(--grad-pink);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: bob 6s ease-in-out infinite reverse;
}

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), rgba(34, 211, 238, 0.12));
  padding: 0.7rem 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
  padding-right: 1rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; position: relative; }
.section__head { max-width: 62ch; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  text-shadow: 0 0 26px rgba(168, 85, 247, 0.25);
}
.section__lede { color: var(--muted); font-size: 1.08rem; }

/* ============================================================
   THE HOUSE
   ============================================================ */
.house { overflow: hidden; }
.house__bg {
  position: absolute;
  inset: 0;
  background: url('../images/miku/miku-house-bg.png') center / cover no-repeat;
  opacity: 0.14;
  filter: saturate(1.1);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  z-index: -1;
}
.house__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.6), rgba(10,10,15,0.85));
}

.house__showcase {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}
.house__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}
.house__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.house__photo:hover img { transform: scale(1.05); }
.house__photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 10, 15, 0.85));
}

.house__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.spec {
  padding: 1.3rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.spec:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.spec__icon { font-size: 1.8rem; display: block; margin-bottom: 0.4rem; }
.spec h3 { font-size: 1.05rem; margin: 0 0 0.25em; }
.spec p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* House tour */
.house__tour {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.house__tour-art { position: relative; display: grid; place-items: center; }
.house__tour-art.is-missing { display: none; }
.house__tour-glow {
  position: absolute; inset: 10%;
  background: var(--grad); filter: blur(40px); opacity: 0.35; border-radius: 50%;
}
.house__tour-art img {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius);
  filter: drop-shadow(0 16px 34px rgba(0,0,0,0.5));
}
.house__quote { margin: 0; }
.house__quote p {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.4;
  font-weight: 500;
}
.house__quote cite {
  font-family: var(--font-mono);
  font-style: normal;
  color: var(--cyan);
  font-size: 0.9rem;
}

/* ============================================================
   MASCOT
   ============================================================ */
.mascot__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(1.6rem, 5vw, 4rem);
}
.mascot__art { position: relative; display: grid; place-items: center; }
.mascot__ring {
  position: absolute;
  width: min(84%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--purple), var(--cyan), var(--pink), var(--purple));
  filter: blur(40px);
  opacity: 0.45;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mascot__art img {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius);
  filter: drop-shadow(0 22px 44px rgba(0,0,0,0.55));
}
.mascot__facts {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.mascot__facts li {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.7rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.mascot__facts .mono { color: var(--cyan); margin-right: 0.4rem; }
.mascot__facts strong { color: var(--text); }

/* ============================================================
   THE VIBE
   ============================================================ */
.vibe__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  padding: 1.8rem 1.6rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), var(--glow-purple);
}
.card:hover::before { opacity: 1; }
.card__icon {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.4));
}
.card h3 { font-size: 1.2rem; position: relative; }
.card p { color: var(--muted); margin: 0; position: relative; }

/* ============================================================
   THE CREW
   ============================================================ */
.crew__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.crew__card {
  position: relative;
  text-align: center;
  padding: 2.4rem 1.4rem 1.6rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* funky alternating sticker tilt */
.crew__card:nth-child(odd)  { transform: rotate(-1.6deg); }
.crew__card:nth-child(even) { transform: rotate(1.6deg); }
.crew__card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  border-color: var(--pink);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 26px rgba(236, 72, 153, 0.5);
  z-index: 2;
}
.crew__num {
  position: absolute;
  top: 0.7rem; right: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.6;
}
.crew__avatar {
  display: grid; place-items: center;
  width: 78px; height: 78px;
  margin: 0 auto 0.9rem;
  font-size: 2.4rem;
  border-radius: 50%;
  background: var(--grad-pink);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.18);
  animation: bob 6s ease-in-out infinite;
}
.crew__card:nth-child(even) .crew__avatar { animation-delay: -3s; }
.crew__name { font-size: 1.18rem; margin: 0 0 0.1em; }
.crew__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.8em;
}
.crew__stat {
  display: inline-block;
  margin: 0 0 0.9em;
  padding: 0.28em 0.75em;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
}
.crew__bio { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.9em; }
.crew__handle { font-size: 0.82rem; color: var(--pink); text-decoration: none; transition: color 0.2s var(--ease); }
a.crew__handle:hover { color: var(--cyan); text-decoration: underline; }

/* The Advisor — caution-tape disclaimer card */
.advisor {
  position: relative;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin-top: 2.4rem;
  padding: 1.6rem 1.9rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.09), rgba(236, 72, 153, 0.06));
  border: 1px dashed rgba(251, 191, 36, 0.55);
  border-radius: var(--radius);
  overflow: hidden;
}
.advisor__avatar {
  flex: none;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  font-size: 2.1rem;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.14);
  border: 2px solid rgba(251, 191, 36, 0.4);
}
.advisor__body { min-width: 0; }
.advisor__role {
  margin: 0 0 0.45em;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fbbf24;
}
.advisor__quote { margin: 0; color: var(--text); font-size: 1.02rem; line-height: 1.55; }
.advisor__quote strong { color: #fbbf24; }
.advisor__stamp {
  position: absolute;
  top: 16px; right: -42px;
  transform: rotate(19deg);
  background: #fbbf24;
  color: #1a1400;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  padding: 0.35em 3.2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
@media (max-width: 620px) {
  .advisor { flex-direction: column; text-align: center; }
  .advisor__stamp { top: 12px; right: -46px; }
}

/* ============================================================
   FLOOR PLAN
   ============================================================ */
.fp-wrap {
  margin: 0;
  padding: 1.4rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fp-svg { display: block; width: 100%; height: auto; }
.fp-house { fill: rgba(10, 10, 15, 0.55); stroke: rgba(34, 211, 238, 0.55); stroke-width: 2; }
.fp-roof { fill: rgba(168, 85, 247, 0.14); stroke: var(--purple); stroke-width: 2; stroke-linejoin: round; }
.fp-chimney { fill: rgba(168, 85, 247, 0.35); stroke: var(--purple); stroke-width: 1.5; }
.fp-roof-label { fill: #cbb6ff; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 3px; text-anchor: middle; }
.fp-slab { stroke: rgba(168, 85, 247, 0.30); stroke-width: 2; }
.fp-ground { stroke: rgba(34, 211, 238, 0.65); stroke-width: 3; }
.fp-grass { stroke: rgba(74, 222, 128, 0.5); stroke-width: 2; stroke-dasharray: 6 6; }
.fp-floor { fill: var(--cyan); font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-anchor: middle; }
.fp-ground-tag { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.fp-fun { fill: #eef; font-family: var(--font-head); font-weight: 700; font-size: 15px; text-anchor: middle; }
.fp-fun.sm { font-size: 12px; }
.fp-real { fill: var(--muted); font-family: var(--font-mono); font-size: 10px; text-anchor: middle; }
.room rect { fill: rgba(124, 58, 237, 0.10); stroke: rgba(34, 211, 238, 0.45); stroke-width: 1.5; transition: fill 0.22s var(--ease), stroke 0.22s var(--ease); }
.room:hover rect { fill: rgba(236, 72, 153, 0.20); stroke: var(--pink); }
.room:hover .fp-fun { fill: #fff; }
.room .fp-fun, .room .fp-real { pointer-events: none; }
.fp-pool { fill: rgba(34, 211, 238, 0.22) !important; stroke: var(--cyan) !important; }
.room.pool:hover rect { fill: rgba(34, 211, 238, 0.38) !important; }
.fp-caption { margin-top: 1rem; text-align: center; color: var(--muted); font-size: 0.82rem; font-family: var(--font-mono); }
@media (max-width: 620px) {
  .fp-fun { font-size: 19px; }
  .fp-fun.sm { font-size: 16px; }
  .fp-real { font-size: 13px; }
  .fp-floor { font-size: 16px; }
}

/* ============================================================
   3D TOUR / DOLLHOUSE
   ============================================================ */
.tour__wrap {
  padding: 1.2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tour__stage {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 420px;
  max-height: 700px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(90% 80% at 50% 100%, rgba(34, 211, 238, 0.12), transparent 60%),
    #0a0a12;
  border: 1px solid var(--border);
}
#tourCanvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.tour__loading, .tour__fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  margin: 0; padding: 1.5rem; text-align: center;
  color: var(--muted); font-family: var(--font-mono); font-size: 0.95rem;
}
.tour__fallback a { color: var(--cyan); }
.tour__tip {
  position: absolute;
  pointer-events: none;
  transform: translate(14px, -50%);
  max-width: 240px;
  padding: 0.5rem 0.7rem;
  background: rgba(10, 10, 18, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 10px;
  z-index: 4;
  line-height: 1.35;
}
.tour__tip strong { display: block; font-size: 0.88rem; color: #eef; }
.tour__tip span { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.tour__controls {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: space-between; align-items: center;
  margin-top: 1rem;
}
.tour__floors, .tour__toggles { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tour__btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4em 0.9em;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tour__btn:hover { border-color: var(--cyan); color: #fff; }
.tour__btn.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.5);
}
.tour__hint { text-align: center; color: var(--muted); font-size: 0.78rem; margin: 0.9rem 0 0; }
@media (max-width: 620px) {
  .tour__controls { justify-content: center; }
  .tour__stage { height: 56vh; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background:
    linear-gradient(180deg, rgba(20,20,31,0.6), rgba(20,20,31,0.6)),
    linear-gradient(90deg, rgba(124,58,237,0.1), rgba(34,211,238,0.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  text-align: center;
}
.stat { padding: 1rem 0.5rem; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  padding: 0;
  background: var(--panel-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gallery__item:nth-child(4n+1) { grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: "⤢";
  position: absolute;
  top: 10px; right: 12px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(10,10,15,0.65);
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  font-size: 0.9rem;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: left;
  color: #fff;
  background: linear-gradient(transparent, rgba(10,10,15,0.9));
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.gallery__item:hover .gallery__caption { transform: translateY(0); }

.gallery__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--glow-cyan);
  object-fit: contain;
}
.lightbox__caption {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
  text-align: center;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(20,20,31,0.8);
  border: 1px solid var(--border);
  color: var(--text);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--cyan); color: var(--cyan); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.1); }

/* ============================================================
   JOIN
   ============================================================ */
.join { overflow: hidden; }
.join__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40vw 40vw at 20% 30%, rgba(88, 101, 242, 0.22), transparent 60%),
    radial-gradient(38vw 38vw at 85% 70%, rgba(168, 85, 247, 0.22), transparent 60%);
  z-index: -1;
  animation: heroFloat 16s ease-in-out infinite alternate;
}
.join__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(1.6rem, 5vw, 4rem);
}
.join__art { position: relative; display: grid; place-items: center; }
.join__art-glow {
  position: absolute; inset: 8%;
  background: linear-gradient(135deg, #5865F2, var(--purple));
  filter: blur(50px); opacity: 0.5; border-radius: 50%;
  animation: spin 20s linear infinite;
}
.join__art img {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  filter: drop-shadow(0 22px 44px rgba(0,0,0,0.55));
  animation: bob 7s ease-in-out infinite;
}
.join__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4rem);
  text-shadow: 0 0 30px rgba(88, 101, 242, 0.4);
  margin-bottom: 0.4em;
}
.join__sub { color: var(--muted); font-size: 1.1rem; max-width: 42ch; margin-bottom: 1.8rem; }
.join__fine { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.join__proof { margin: 1.8rem 0 0; }
.join__proof img {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(88, 101, 242, 0.18);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.6);
  padding: clamp(2rem, 5vw, 3rem) 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.brand--footer { font-size: 1.4rem; }
.footer__addr { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}
.footer__social a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}
.footer__social a:hover { color: var(--cyan); text-shadow: 0 0 12px rgba(34,211,238,0.6); }
.footer__meta { text-align: right; }
.footer__meta p { margin: 0; font-size: 0.9rem; }
.footer__meta .mono { color: var(--cyan); }
.footer__disclaimer { color: var(--muted); font-size: 0.78rem !important; margin-top: 0.3rem !important; }

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--grad);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.to-top:hover { box-shadow: 0 10px 30px rgba(34, 211, 238, 0.6); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .stats__grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
  /* Nav → mobile drawer */
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    width: min(80vw, 320px);
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 2rem 1.6rem;
    background: rgba(15, 15, 24, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(110%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { font-size: 1.1rem; }
  .nav__cta { margin-top: 0.5rem; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__art { order: 1; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .eyebrow { text-align: center; }

  .house__showcase { grid-template-columns: 1fr; }
  .house__tour { grid-template-columns: 1fr; text-align: center; }
  .house__tour-art img { max-width: 240px; }

  .mascot__inner { grid-template-columns: 1fr; text-align: center; }
  .mascot__facts { text-align: left; max-width: 420px; margin-inline: auto; }

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

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

  .stats__grid { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }

  .join__inner { grid-template-columns: 1fr; text-align: center; }
  .join__sub { margin-inline: auto; }
}

@media (max-width: 640px) {
  .house__specs { grid-template-columns: 1fr; }
  .vibe__grid { grid-template-columns: 1fr; }
  .crew__grid { grid-template-columns: 1fr; }
  .crew__card:nth-child(odd), .crew__card:nth-child(even) { transform: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-auto-rows: 200px; }
  .gallery__item:nth-child(4n+1) { grid-row: span 1; }
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
  .footer__meta { text-align: center; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.4rem; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
