/* ============ MOONER.SOL ============ */
:root {
  --bg: #0c0a09;
  --bg-soft: #171310;
  --card: #1c1713;
  --line: #2c241d;
  --text: #f2ece4;
  --muted: #9c907f;
  --accent: #e8862f;        /* bucket hat orange */
  --accent-soft: #f4a95c;
  --accent-glow: rgba(232, 134, 47, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.mono { font-family: "Space Mono", monospace; }
.accent { color: var(--accent); }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- bubbles ---------- */
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bubble {
  position: absolute;
  bottom: -60px;
  border: 1px solid rgba(232, 134, 47, 0.25);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), rgba(232,134,47,0.04));
  animation: rise linear infinite;
}
@keyframes rise {
  to { transform: translateY(-115vh) translateX(6vw); opacity: 0; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.1rem; letter-spacing: 0.04em; color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.45rem 1rem; border-radius: 999px; font-weight: 700;
}
.nav-cta:hover { background: var(--accent-soft); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  min-height: 100svh; /* stable on mobile — ignores URL-bar show/hide */
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 2rem 0;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem; align-items: center; flex: 1;
}
.hero-kicker { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.12em; margin-bottom: 1rem; }
.hero-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.0; letter-spacing: -0.01em;
  text-shadow: 0 0 60px var(--accent-glow);
}
.hero-sub { font-size: 1.25rem; color: var(--muted); margin-top: 1.2rem; max-width: 34rem; }
.hero-sub a { font-weight: 700; }
.hero-tags { display: flex; gap: 0.6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero-tags span {
  border: 1px solid var(--line); color: var(--muted);
  padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.75rem; letter-spacing: 0.08em;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.85rem 1.8rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-soft); color: var(--bg); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* pfp */
.hero-pfp { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.pfp-ring {
  position: relative;
  width: min(320px, 70vw); aspect-ratio: 1;
  border-radius: 50%; padding: 6px;
}
/* only the gradient ring rotates — the image stays static to avoid mobile jitter */
.pfp-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 40%, var(--accent) 70%, var(--accent-soft));
  animation: spin 10s linear infinite;
  will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pfp-ring img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--bg); display: block;
}
.pfp-fallback {
  display: none; position: absolute; inset: 6px; z-index: 1;
  border-radius: 50%; background: var(--card); border: 4px solid var(--bg);
  color: var(--muted); font-size: 0.8rem; text-align: center;
  align-items: center; justify-content: center;
}
.pfp-missing img { display: none; }
.pfp-missing .pfp-fallback { display: flex; }
.pfp-badge {
  font-size: 0.75rem; letter-spacing: 0.1em; color: var(--accent);
  border: 1px dashed var(--accent); padding: 0.35rem 0.9rem; border-radius: 999px;
}

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 4rem; }
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  padding: 0.7rem 0; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.15em;
  animation: scroll 28s linear infinite;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 6rem 2rem 0; }
.section-kicker { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.15em; margin-bottom: 0.6rem; }
.section-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 2.2rem; letter-spacing: -0.01em;
}

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
.about-copy p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.08rem; }
.about-copy strong { color: var(--text); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem 1.2rem; transition: border-color 0.2s, transform 0.2s;
}
.stat:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-num { font-family: "Archivo Black", sans-serif; font-size: 2rem; }
.stat-label { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; margin-top: 0.3rem; }

/* oora */
.live-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  vertical-align: middle; margin-left: 0.6rem;
  font-size: 0.7rem; letter-spacing: 0.12em; color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4); border-radius: 999px;
  padding: 0.35rem 0.9rem; background: rgba(74, 222, 128, 0.06);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}
.oora-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden;
}
.oora-tape {
  background: var(--accent); color: var(--bg);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em;
  padding: 0.5rem 1.5rem; text-align: center;
}
.oora-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; padding: 2.5rem; align-items: center; }
.oora-copy h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.oora-formula { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 1rem; }
.oora-copy p { color: var(--muted); margin-bottom: 1rem; }
.oora-actions { margin-top: 1.5rem; }
.oora-visual pre {
  color: var(--accent-soft); font-size: 0.85rem; line-height: 1.5;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem; overflow-x: auto;
}

/* services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem 1.6rem; transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--muted); font-size: 0.97rem; }
.service-clients { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.1em; margin-top: 1.2rem; }

/* work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.work-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-4px); color: var(--text); }
.work-thumb {
  position: relative; overflow: hidden;
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-family: "Archivo Black", sans-serif; font-size: 1.3rem; letter-spacing: 0.1em;
  text-align: center; padding: 0 1rem;
}
.work-thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.7s ease;
  pointer-events: none;
}
.work-thumb video.active { opacity: 1; }
.work-thumb span {
  position: relative; z-index: 1;
  padding: 0.3rem 0.9rem; border-radius: 10px;
  background: rgba(12, 10, 9, 0.55); backdrop-filter: blur(4px);
}
.work-thumb-oora { background: linear-gradient(135deg, #1a1208, #3a2410); color: var(--accent); }
.work-thumb-sa { background: linear-gradient(135deg, #0d1420, #1c2f4a); color: #7fb3ff; }
.work-thumb-ch { background: linear-gradient(135deg, #0a1a14, #17453a); color: #6fe3b8; }
.work-info { padding: 1.3rem 1.5rem; }
.work-info h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.work-info p { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; }
.work-note { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; margin-top: 1.5rem; }
.work-open {
  padding: 0 1.5rem 1.3rem; color: var(--accent);
  font-size: 0.72rem; letter-spacing: 0.12em;
}

/* ---------- portfolio pages ---------- */
.portfolio-hero {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 9rem 2rem 1rem;
}
.portfolio-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05;
  text-shadow: 0 0 60px var(--accent-glow);
}
.portfolio-sub { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; max-width: 36rem; }
.portfolio-x {
  display: inline-block; margin-top: 1.2rem;
  font-size: 0.78rem; letter-spacing: 0.1em; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1.1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.portfolio-x:hover { border-color: var(--accent); color: var(--accent-soft); transform: translateY(-2px); }
.portfolio-main {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem 0;
  min-height: 40vh;
}
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.video-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.video-media { background: #000; }
.video-media iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: none;
}
/* every card shares the same 16:9 frame — vertical videos are pillarboxed
   inside it; fullscreen still plays them at full size */
.video-media video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  object-fit: contain; background: #000;
}
.video-media blockquote { margin: 0 auto; padding: 0.5rem; }
.video-title { padding: 1rem 1.4rem; }
.video-title h3 { font-size: 1rem; }
.video-empty {
  border: 1px dashed var(--line); border-radius: 18px;
  padding: 4rem 2rem; text-align: center; color: var(--muted);
  font-size: 1rem; letter-spacing: 0.1em;
}
.video-empty-sub { font-size: 0.75rem; margin-top: 0.8rem; opacity: 0.7; }
@media (max-width: 820px) {
  .video-grid { grid-template-columns: 1fr; }
  .portfolio-hero { padding-top: 7rem; }
}

/* contact */
.section-contact { text-align: center; padding-bottom: 2rem; }
.contact-sub { color: var(--muted); font-size: 1.15rem; margin-bottom: 2rem; }
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* footer */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line); margin-top: 6rem;
  padding: 2rem; text-align: center; color: var(--muted); font-size: 0.8rem;
}
.footer-disclaimer { margin-top: 0.4rem; font-size: 0.7rem; opacity: 0.7; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- motion & mobile perf ---------- */
@media (prefers-reduced-motion: reduce) {
  .pfp-ring::before, .marquee-track, .bubble, .live-dot { animation: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 600px) {
  .hero-title { text-shadow: 0 0 30px var(--accent-glow); }
  .portfolio-title { text-shadow: 0 0 30px var(--accent-glow); }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(12,10,9,0.97); padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--line); gap: 1.2rem; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav-simple .nav-links {
    display: flex; position: static; flex-direction: row;
    background: none; border: none; padding: 0; gap: 1rem;
  }
  .hero { padding-top: 6rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-pfp { order: -1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-tags, .hero-actions { justify-content: center; }
  .about-grid, .oora-body, .work-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .section { padding-top: 4.5rem; }
}
