/*
Theme Name: Beyond Earth
Theme URI: https://beyond-earth.org
Author: Beyond Earth Collective
Author URI: https://beyond-earth.org
Description: International multidisciplinary artist collective — exploring new frontiers of art, space, and biology.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beyond-earth
Tags: custom-menu, custom-logo, full-width-template, threaded-comments, translation-ready
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --be-black:      #010f1a;
  --be-dark:       #011627;
  --be-mid:        #0a2540;
  --be-accent:     #3fa3c1;
  --be-accent-h:   #5bbdd8;
  --be-white:      #ffffff;
  --be-white-75:   rgba(255,255,255,0.75);
  --be-white-50:   rgba(255,255,255,0.5);
  --be-text-dark:  rgba(1,22,39,0.85);
  --be-light-bg:   #f7f6f2;

  --be-font-main: 'Montserrat', sans-serif;
  --be-font-slab: 'Roboto Slab', serif;

  --be-radius: 100px;
  --be-transition: 0.3s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--be-dark);
  color: var(--be-white);
  font-family: var(--be-font-main);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--be-accent);
  text-decoration: none;
  transition: color var(--be-transition);
}
a:hover, a:focus { color: var(--be-accent-h); }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--be-font-main);
  font-weight: 600;
  line-height: 1.2;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.be-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.be-section-light   { background: var(--be-light-bg); color: var(--be-text-dark); }
.be-section-dark    { background: var(--be-dark);     color: var(--be-white); }
.be-section-darker  { background: var(--be-black);    color: var(--be-white); }
.be-section-mid     { background: var(--be-mid);      color: var(--be-white); }

.be-center { text-align: center; }

/* =============================================
   BUTTONS
   ============================================= */
.be-btn {
  display: inline-block;
  padding: 11px 34px;
  border: 1px solid var(--be-accent);
  color: var(--be-accent);
  font-family: var(--be-font-main);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--be-radius);
  background: transparent;
  cursor: pointer;
  transition: background var(--be-transition), color var(--be-transition), box-shadow var(--be-transition);
}
.be-btn:hover, .be-btn:focus {
  background: var(--be-accent);
  color: var(--be-white);
  box-shadow: 0 0 28px rgba(63,163,193,0.35);
}
.be-btn--light {
  border-color: var(--be-accent);
  color: var(--be-accent);
}
.be-btn--light:hover { color: var(--be-white); }

/* =============================================
   SECTION LABELS
   ============================================= */
.be-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--be-accent);
  margin-bottom: 18px;
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.be-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.be-reveal.be-visible { opacity: 1; transform: translateY(0); }
.be-reveal-d1 { transition-delay: 0.1s; }
.be-reveal-d2 { transition-delay: 0.2s; }
.be-reveal-d3 { transition-delay: 0.3s; }
.be-reveal-d4 { transition-delay: 0.4s; }

/* =============================================
   HEADER / NAV
   ============================================= */
#be-masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  transition: background 0.4s, box-shadow 0.4s;
}
#be-masthead.be-scrolled {
  background: rgba(1, 15, 26, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.be-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.be-logo { display: flex; align-items: center; }
.be-logo img {
  height: 52px;
  width: auto;
  transition: opacity var(--be-transition);
}
.be-logo:hover img { opacity: 0.85; }
.be-logo-text {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--be-white);
}
.be-logo-text:hover { color: var(--be-white); }

/* Primary Nav */
.be-primary-nav ul {
  display: flex;
  gap: 36px;
}
.be-primary-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--be-transition);
}
.be-primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--be-accent);
  transition: width 0.3s;
}
.be-primary-nav a:hover,
.be-primary-nav .current-menu-item > a,
.be-primary-nav .current_page_item > a {
  color: var(--be-white);
}
.be-primary-nav a:hover::after,
.be-primary-nav .current-menu-item > a::after { width: 100%; }

/* Mobile Toggle */
.be-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.be-mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--be-white);
  border-radius: 2px;
  transition: all 0.3s;
}
.be-mobile-toggle.be-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.be-mobile-toggle.be-open span:nth-child(2) { opacity: 0; }
.be-mobile-toggle.be-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   FOOTER
   ============================================= */
#be-footer {
  background: var(--be-black);
  color: var(--be-white);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.be-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.be-footer-col h5 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--be-accent);
  margin-bottom: 20px;
}

/* Footer About */
.be-footer-about p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
  max-width: 380px;
}

/* Footer Nav */
.be-footer-nav ul li {
  padding: 5px 0;
}
.be-footer-nav ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--be-transition);
}
.be-footer-nav ul li a:hover { color: var(--be-white); }
.be-footer-nav ul li::before {
  /* Dot handled via CSS in li */
}
.be-footer-nav ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.be-footer-nav ul li::before {
  content: '●';
  font-size: 0.38rem;
  color: var(--be-accent);
  flex-shrink: 0;
}

/* Footer Locations */
.be-footer-locations ul { list-style: none; }
.be-footer-locations ul li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.be-footer-locations ul li::before {
  content: '●';
  font-size: 0.38rem;
  color: var(--be-accent);
  flex-shrink: 0;
}

/* Social Icons */
.be-footer-connect p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.be-social-icons { display: flex; gap: 12px; }
.be-social-icons a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: border-color var(--be-transition), color var(--be-transition), background var(--be-transition);
}
.be-social-icons a:hover {
  border-color: var(--be-accent);
  color: var(--be-white);
  background: rgba(63,163,193,0.1);
}

/* Footer Bottom */
.be-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}
.be-footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin: 0;
}

/* =============================================
   FRONT PAGE — HERO
   ============================================= */
.be-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.be-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(63,163,193,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(63,163,193,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #000810 0%, #010f1a 50%, #011627 100%);
}

.be-hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 8%  12%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 38% 8%,  rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 57% 22%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 73% 48%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 83% 18%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 91% 62%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 14% 68%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 53% 78%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 29% 88%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 83%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 44% 52%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 4%  42%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 96% 38%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 49% 4%,  rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 61% 95%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 7%,  rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 33% 58%, rgba(255,255,255,0.4) 0%, transparent 100%);
}

.be-hero-earth {
  position: absolute;
  bottom: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%,
    rgba(63,163,193,0.14) 0%,
    rgba(10,50,80,0.07) 50%,
    transparent 70%);
  pointer-events: none;
}

.be-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
  animation: beHeroIn 1.2s ease both;
}

@keyframes beHeroIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero — Featured Image as bg if set */
.be-hero.has-post-thumbnail {
  background-size: cover;
  background-position: center;
}

.be-hero-title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--be-white);
  line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 0 80px rgba(63,163,193,0.4);
}
.be-hero-subtitle {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 44px;
}

.be-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.be-scroll-hint::after {
  content: '';
  display: block;
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: beScrollLine 2s ease-in-out infinite;
}
@keyframes beScrollLine {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 0.8; transform: scaleY(0.7); }
}

/* =============================================
   FRONT PAGE — ABOUT STRIP
   ============================================= */
.be-about-section {
  padding: 120px 0;
  background: var(--be-light-bg);
  color: var(--be-text-dark);
}
.be-about-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--be-dark);
}
.be-about-section p {
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 640px;
  color: rgba(1,22,39,0.65);
}
.be-about-section .be-btn {
  margin-top: 36px;
  border-color: var(--be-accent);
  color: var(--be-dark);
}
.be-about-section .be-btn:hover { color: var(--be-white); }

/* =============================================
   FRONT PAGE — MISSION
   ============================================= */
.be-mission-section {
  padding: 120px 0;
  background: var(--be-black);
  color: var(--be-white);
}
.be-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.be-mission-left h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}
.be-mission-item { margin-bottom: 32px; }
.be-mission-item h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--be-accent);
  margin-bottom: 10px;
}
.be-mission-divider {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.18);
  margin: 14px 0;
}
.be-mission-item p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
}
.be-mission-right { display: flex; flex-direction: column; gap: 22px; }
.be-mission-right h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.be-mission-right h2:nth-child(1) { color: rgba(255,255,255,0.9); }
.be-mission-right h2:nth-child(2) { color: rgba(255,255,255,0.5); }
.be-mission-right h2:nth-child(3) { color: rgba(255,255,255,0.22); }

/* =============================================
   FRONT PAGE — PROJECTS
   ============================================= */
.be-projects-section {
  padding: 120px 0;
  background: var(--be-light-bg);
  color: var(--be-text-dark);
}
.be-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--be-accent);
  margin-bottom: 48px;
}
.be-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.be-project-card {}
.be-project-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--be-mid);
}
.be-project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.be-project-card:hover .be-project-thumb img { transform: scale(1.04); }
.be-project-card h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--be-dark);
}
.be-project-card h4 a { color: inherit; }
.be-project-card h4 a:hover { color: var(--be-accent); }
.be-project-card p {
  font-size: 0.87rem;
  line-height: 1.75;
  color: rgba(1,22,39,0.58);
}

/* =============================================
   FRONT PAGE — FEATURE BAND
   ============================================= */
.be-band {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.be-band--dark {
  background: #000810;
}
.be-band--mid {
  background: var(--be-mid);
}
.be-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(63,163,193,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.be-band .be-container { position: relative; z-index: 1; }
.be-band h3 {
  font-size: clamp(1.1rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--be-white);
  margin-bottom: 18px;
}
.be-band p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* =============================================
   FRONT PAGE — EXHIBITIONS
   ============================================= */
.be-exhibitions-section {
  padding: 120px 0;
  background: var(--be-dark);
  color: var(--be-white);
}
.be-exhibitions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 56px;
}
.be-exhibition-card .be-ex-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--be-mid);
}
.be-exhibition-card .be-ex-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.be-exhibition-card:hover .be-ex-thumb img {
  transform: scale(1.04);
  filter: grayscale(0%);
}
.be-exhibition-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}
.be-exhibition-card h4 a { color: var(--be-white); }
.be-exhibition-card h4 a:hover { color: var(--be-accent); }
.be-exhibition-card p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.48);
}

/* =============================================
   FRONT PAGE — COLLABORATORS
   ============================================= */
.be-collaborators-section {
  padding: 80px 0;
  background: var(--be-light-bg);
  color: var(--be-text-dark);
}
.be-collab-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.be-collab-logos img {
  height: 40px; width: auto;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity var(--be-transition), filter var(--be-transition);
}
.be-collab-logos img:hover { opacity: 1; filter: grayscale(0%); }

/* =============================================
   INNER PAGES — GENERIC
   ============================================= */
.be-page-wrap {
  padding-top: 80px; /* header height */
}
.be-page-header {
  padding: 100px 0 60px;
  background: var(--be-black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.be-page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.be-page-content {
  padding: 80px 0;
  background: var(--be-dark);
}
.be-entry-content {
  max-width: 820px;
  font-size: 0.97rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
}
.be-entry-content h2 { color: var(--be-white); margin: 2em 0 0.6em; font-size: 1.5rem; }
.be-entry-content h3 { color: var(--be-accent); margin: 1.6em 0 0.5em; font-size: 1.1rem; letter-spacing: 0.06em; }
.be-entry-content ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.2em; }
.be-entry-content ul li { margin-bottom: 0.4em; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .be-mission-grid  { grid-template-columns: 1fr; gap: 60px; }
  .be-exhibitions-grid { grid-template-columns: 1fr 1fr; }
  .be-footer-grid   { grid-template-columns: 1fr 1fr; }
  .be-footer-about  { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .be-header-inner { padding: 0 20px; }
  .be-primary-nav  { display: none; }
  .be-primary-nav.be-open {
    display: block;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: rgba(1,15,26,0.98);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 16px 20px 24px;
  }
  .be-primary-nav.be-open ul { flex-direction: column; gap: 0; }
  .be-primary-nav.be-open ul li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .be-mobile-toggle { display: flex; }

  .be-container { padding: 0 20px; }
  .be-about-section, .be-mission-section,
  .be-projects-section, .be-exhibitions-section,
  .be-collaborators-section { padding: 80px 0; }
  .be-band { padding: 80px 0; }

  .be-projects-grid     { grid-template-columns: 1fr; }
  .be-exhibitions-grid  { grid-template-columns: 1fr; }
  .be-footer-grid       { grid-template-columns: 1fr; gap: 36px; }
  .be-footer-about      { grid-column: auto; }
  .be-collab-logos      { gap: 24px; }
  .be-hero-title        { letter-spacing: 0.1em; }
}
