/* Reset & Global Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  /* Ambient glowing mesh anchored towards the bottom */
  background-image: 
    /* Primary soft glow anchored slightly lower on the right */
    radial-gradient(ellipse 55% 40% at 95% 86%, rgba(154, 212, 223, 0.38), transparent 70%),
    /* Soft grounding glow directly around the bottom right corner */
    radial-gradient(ellipse 45% 30% at 65% 95%, rgba(186, 230, 238, 0.28), transparent 65%),
    /* Subtle touch on the bottom left */
    radial-gradient(ellipse 35% 25% at 10% 90%, rgba(204, 240, 245, 0.18), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: #1a1a1a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Top Hero Banner Hitbox */
.hero-banner {
  width: 100%;
  height: 480px;
  background-color: #18181b; /* Dark neutral placeholder */
  background-image: url('banner.jpg');
  background-size: cover;
  background-position: center calc(50% - 45px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay & Banner Title */
.banner-overlay {
  text-align: center;
  padding: 0 20px;
  transform: translateY(-45px);
}

.banner-title {
  color: #ffffff;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}

/* Page Container */
.page-container {
  max-width: 680px;
  margin: 0px auto 100px auto;
  padding: 0 20px;
}

/* Manifesto Styling */
.tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  font-weight: 600;
  margin-bottom: 12px;
}

.manifesto h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: #09090b;
  margin-bottom: 28px;
}

.lead-paragraph {
  font-size: 1.25rem;
  line-height: 1.65;
  color: #27272a;
  font-weight: 400;
  margin-bottom: 24px;
}

.entry-body p {
  margin-bottom: 24px;
  color: #3f3f46;
}

/* Gateway Portal Section */
.gateway-container {
  margin-top: 60px;
  width: 100%;
}

.gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Individual Portal Card */
.gateway-card {
  position: relative;
  height: 400px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  background-color: #1c1c1f;
  isolation: isolate;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Placeholder Artworks (Clear, distinct tones so you can see shading) */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* Placeholder for Journal: Warm slate gradient */
.card-log .card-bg {
  background-image: url(discussions.jpg);
  /* When you have an image: background-image: url('images/journal.jpg'); */
}

/* Placeholder for Workshop: Deep indigo/charcoal gradient */
.card-builds .card-bg {
  background-image: url(workshop.jpg);
  /* When you have an image: background-image: url('images/workshop.jpg'); */
}

/* Dynamic Bottom Shading Vignette */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0.0) 0%, 
    rgba(0, 0, 0, 0.3) 45%, 
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 2;
  transition: background 0.6s ease;
}

/* Card Content Container */
.card-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

/* Card Tag - Hidden at rest, wipes from left and rises on hover */
.card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 6px;
  
  /* Initial hidden state */
  opacity: 0;
  transform: translate(-12px, 8px); /* slightly left and down */
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%); /* collapsed mask on the left */
  
  /* Smooth transition out */
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* On Hover: Wipe open from left to right and settle into place */
.gateway-card:hover .card-tag {
  opacity: 1;
  transform: translate(0, 0);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* full unmask */
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

/* Slower, Smooth Text Reveal */
.card-reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(16px);
  /* Slower 0.75s cinematic curve */
  transition: max-height 1.75s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-reveal p {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e5e7eb;
  margin: 14px 0 16px 0;
}

/* Hover States */
.gateway-card:hover .card-bg {
  transform: scale(1.06);
}

.gateway-card:hover .card-overlay {
  background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0.1) 0%, 
    rgba(0, 0, 0, 0.55) 35%, 
    rgba(0, 0, 0, 0.95) 100%
  );
}

.gateway-card:hover .card-reveal {
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 650px) {
  .gateway-grid {
    grid-template-columns: 1fr;
  }
  
  .gateway-card {
    height: 340px;
  }
  
  .card-reveal {
    max-height: 160px;
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-divider {
  width: 100%;
  height: 1px;
  background-color: #e4e4e7;
  margin-bottom: 30px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #71717a;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #09090b;
  font-weight: 600;
}