/*
  Sensorium Studio - Stylesheet (Dark Mode)
  Aesthetic: Clean, minimalist, organic, premium dark theme.
*/

:root {
  --sage-green: #d12b2b;
  --dusty-purple: #cc0000;
  --terracotta: #ff3333;
  --charcoal: #0a0a0a;
  --surface: #111111;
  --surface-light: #1a1a1a;
  --text-primary: #e6e6e6;
  --text-secondary: #cccccc;
  --white: #e6e6e6;
  --accent-red: #d12b2b;
  --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);

  /* === Hero Animation Controls ===
     --hero-aspect-ratio: The ratio of your image (e.g. 16/9 or 1.777).
     --hero-full-width:   Width of the "Big" (fullscreen) image (e.g. 92vw).
     --hero-full-gap:     Gaps below the "Big" image (e.g. 60px).
     --hero-small-width:  Width of the "Small" (scrolled) image (e.g. 70vw).
     --hero-small-overlap: How much the text box overlaps the image (e.g. 120px).
  */
  --hero-aspect-ratio: 21/9;
  --hero-full-width: 100vw;
  --hero-full-gap: 0px;
  --hero-small-width: 100vw;
  --hero-small-overlap: 120px;
}





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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  /* Keeps layout from jumping when scroll lock triggers */
}


@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #050505;
  /* Darker base */
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
  padding-right: 0;
  /* To prevent shift if scrollbar disappears, or use scrollbar-gutter */
}


#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}



h1,
h2,
h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: var(--accent-red);
}


.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* Header & Navigation */
header {
  padding: 1.5rem 0 1.5rem;
  /* Tightened around links */
  background: #121412;
  /* Slightly more opaque */
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* The "red line" boundary */
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
  width: 100%;
  position: relative;
}

.logo-display {
  position: absolute;
  left: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.logo-display:hover {
  transform: scale(1.05);
  border-color: var(--sage-green);
}

.logo-icon {
  height: 40px;
  width: auto;
  display: block;
}


nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

nav {
  position: relative;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  transition: var(--transition);
  opacity: 0.8;
  position: relative;
  padding-bottom: 5px;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sage-green);
  transition: width 0.3s ease;
  box-shadow: 0 0 4px var(--sage-green);
}

nav a:hover {
  opacity: 1;
  color: var(--white);
  text-shadow: 0 0 6px rgba(136, 160, 136, 0.3);
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  width: 100%;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  height: 100%;
  position: relative;
}



.hero-content {
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 6rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.8rem;
  text-transform: uppercase;
}

.tagline {
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.4rem;
  color: var(--sage-green);
  text-transform: uppercase;
  opacity: 0.8;
}

.pitch-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* === COVER WRAPPER ===
   The wrapper is always 100vw wide. In fullscreen mode it fills the viewport.
   In scrolled mode we use transform: scale() to shrink it in place.
   This means NO width/height change ever happens — pure scale = no snap.
*/
.cover-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}







.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 1.5s cubic-bezier(0.23, 1, 0.32, 1), transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.pitch-visible .cover-image {
  filter: blur(8px);
  transform: scale(1.05);
}

@keyframes blurBg {
  from {
    filter: blur(0);
    transform: scale(1);
  }

  to {
    filter: blur(8px);
    transform: scale(1.05);
    /* Slight zoom for immersion */
  }
}






.pitch {
  max-width: 900px;
  width: 90%;
  padding: 5rem;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  text-align: center;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.pitch-visible .pitch {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-info-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 25;
  transition: all 0.5s ease;
  backdrop-filter: blur(5px);
}

.hero-info-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.pitch-visible .hero-info-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.close-pitch-btn {
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 300;
  margin-top: 3rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  visibility: hidden;
  z-index: 30;
}

.close-pitch-btn:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  transform: scale(1.1) rotate(90deg);
}

.pitch-visible .close-pitch-btn {
  opacity: 1;
  visibility: visible;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.pitch h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
}

.pitch p {
  font-size: 1.7rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  text-align: justify;
  hyphens: none;
}

/* Gallery Section */
.gallery {
  padding: 10rem 0;
  background-color: transparent;
  scroll-margin-top: 250px;
  /* Further increased to provide extra clearance */
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
}

.world-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.world-card {
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.world-thumb {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  aspect-ratio: 16/10;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.world-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.world-overlay {
  position: absolute;
  inset: 0;
  background: rgba(136, 160, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

.world-overlay span {
  background: var(--sage-green);
  color: var(--charcoal);
  padding: 0.6rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(15px);
  transition: var(--transition);
}

.world-card:hover .world-thumb {
  border-color: var(--sage-green);
  /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); */
}

.world-card:hover .world-thumb img {
  transform: scale(1.1);
}

.world-card:hover .world-overlay {
  opacity: 1;
}

.world-card:hover .world-overlay span {
  transform: translateY(0);
}

.world-card.active .world-thumb {
  border-color: var(--sage-green);
  /* box-shadow: 0 0 0 2px rgba(136, 160, 136, 0.2); */
}

.world-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.world-card:hover h3 {
  opacity: 0.8;
}

/* Hide core selection grid when detail is open */
body.detail-open .world-selection-grid {
  opacity: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

/* Hide world titles when detail is open */
body.detail-open .world-card h3 {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  visibility: hidden;
}



.world-detail-section {
  max-height: 0;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  margin-top: 0;
  opacity: 0;
}

.world-detail-section.visible {
  max-height: 2500px;
  margin-top: 5rem;
  opacity: 1;
}

.detail-box {
  background: rgba(18, 20, 18, 0.4);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem;
  position: relative;
}

.detail-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0.4;
}


.nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.nav-thumb:hover {
  opacity: 1;
  border-color: var(--border-hover);
}

.nav-thumb.active {
  opacity: 1;
  border-color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.nav-thumb.active img {
  transform: scale(1.1);
}


.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.detail-header h3 {
  font-size: 3rem;
  margin: 0;
}

.close-detail {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 0.8;
  padding: 0.5rem;
}

.close-detail:hover {
  color: var(--sage-green);
  transform: rotate(90deg);
}

#detailDescription {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 900px;
  margin-bottom: 4rem;
  font-weight: 300;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.detail-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.detail-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.detail-card:hover {
  transform: scale(1.05);
  border-color: rgba(136, 160, 136, 0.3);
}

@media (max-width: 1100px) {
  .world-selection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-box {
    padding: 2.5rem;
  }

  .detail-header h3 {
    font-size: 2.2rem;
  }
}

@media (max-width: 500px) {
  .world-selection-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog Section */
.blog {
  padding: 10rem 0;
  background: transparent;
}

/* Careers Section */
.careers {
  padding: 10rem 0;
  background: transparent;
  color: var(--text-primary);
  text-align: center;
  scroll-margin-top: 250px;
  /* Further increased to provide extra clearance */
}

.careers-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.careers-content:hover {
  border-color: var(--terracotta);
}

.careers p {
  margin-bottom: 2rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

.careers-cta {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 3rem;
}

.careers-cta a {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.careers-cta a:hover {
  border-bottom: 2px solid var(--terracotta);
  text-shadow: 0 0 15px rgba(192, 138, 111, 0.4);
}

/* Blog Page Specific Styles */
.blog-feed {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.blog-post {
  background: rgba(18, 20, 18, 0.4);
  backdrop-filter: blur(10px);
  padding: 4rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.blog-post h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.post-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.post-content {
  font-size: 1.15rem;
  line-height: 1.8;
  font-weight: 300;
  text-align: justify;
}

.blog-link {
  color: var(--sage-green);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(136, 160, 136, 0.3);
  transition: var(--transition);
}

.blog-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
  text-shadow: 0 0 10px rgba(136, 160, 136, 0.5);
}

.post-content p {
  margin-bottom: 0.75rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 0.75rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-media {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

/* 1 Item: Full Width */
.media-count-1 {
  grid-template-columns: 1fr;
}

/* 2 Items: 50/50 Split */
.media-count-2 {
  grid-template-columns: 1fr 1fr;
}

/* 3 Items: 1 Large, 2 Small Stacked */
.media-count-3 {
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
}

.media-count-3>*:first-child {
  grid-row: span 2;
}

/* 4 Items: 2x2 Grid */
.media-count-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* General item styling */
.post-media img,
.post-media .video-container {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

/* Ensure video container works in grid */
.video-container {
  position: relative;
  /* aspect-ratio fallback for older browsers or complex grids */
  aspect-ratio: 16 / 9;
  height: auto;
  padding-bottom: 0;
  overflow: hidden;
}

/* Override fixed padding if used before */
.media-count-1 .video-container {
  padding-bottom: 56.25%;
  aspect-ratio: auto;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.post-media>*:hover {
  transform: scale(1.02);
  z-index: 5;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .post-media {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 1rem;
  }

  .media-count-3>*:first-child {
    grid-row: span 1;
  }

  .video-container {
    padding-bottom: 56.25%;
    aspect-ratio: auto;
  }
}

/* Editor Specific Styles */
.editor-container {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-field {
  margin-bottom: 1.5rem;
}

.editor-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--sage-green);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.editor-field input,
.editor-field textarea {
  width: 100%;
  background: var(--surface-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 10px;
  font-family: inherit;
}

#quill-editor {
  background: var(--white);
  color: #333;
  /* Dark text for editor readability */
  height: 400px;
  border-radius: 10px;
}

.editor-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--sage-green);
  color: var(--charcoal);
  border: none;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(136, 160, 136, 0.3);
}

#output-json {
  margin-top: 2rem;
  background: #000;
  color: #0f0;
  padding: 1rem;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-all;
  display: none;
  width: 100%;
  height: 200px;
  border: 1px solid #333;
}


/* About Section */
.about {
  padding: 10rem 0;
  background: transparent;
  scroll-margin-top: 250px;
  /* Further increased to provide extra clearance */
}

.team-pitch {
  max-width: 800px;
  margin: 0 auto 6rem;
  text-align: justify;
  hyphens: none;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.member {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 450px;
}

.member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.025;
  z-index: 0;
  pointer-events: none;
  transition: var(--transition);
}

.member>* {
  position: relative;
  z-index: 1;
}

.member-kasa::before {
  background-image: url('assets/Crosshatch_Kasa.png');
}

.member-bondor::before {
  background-image: url('assets/Crosshatch_Bondor.png');
}

.member-samuel::before {
  background-image: url('assets/Crosshatch_Samuel.png');
}


.member:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-10px);
  border-color: var(--terracotta);
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 2rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(136, 160, 136, 0.2);
  transition: var(--transition);
}

.member:hover .profile-pic {
  transform: scale(1.05);
  border-color: var(--accent-red);
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.services-list li::before {
  content: "—";
  margin-right: 10px;
  color: var(--accent-red);
}

.member h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.member p {
  font-size: 0.85rem;
  color: var(--sage-green);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-weight: 600;
}

/* Partners Section */
.partners {
  padding: 8rem 0;
  background: transparent;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  align-items: center;
  justify-items: center;
}

.partner-logo {
  width: 100%;
  max-width: 500px;
  filter: grayscale(1) opacity(0.5);
  transition: var(--transition);
  cursor: pointer;
}

.partner-logo:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

.partner-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
footer {
  padding: 8rem 0 4rem;
  text-align: center;
  background-color: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.footer-socials {
  display: flex;
  gap: 2.5rem;
}

.social-link {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: var(--transition);
  opacity: 0.4;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link:hover {
  opacity: 1;
  color: var(--white);
  transform: translateY(-3px);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-contact {
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.05rem;
}

.footer-contact p {
  margin: 0.5rem 0;
}

.footer-contact a {
  color: var(--accent-red);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: #ff3333;
  /* Brighter Red */
  text-shadow: none;
  opacity: 1;
}

.copyright {
  margin-top: 4rem;
  font-size: 0.8rem;
  opacity: 0.3;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.5;
  letter-spacing: 0.1rem;
}

/* Responsive */
@media (max-width: 1200px) {

  .container,
  .header-container {
    padding: 0 2rem;
  }

  .hero h1 {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --hero-full-width: 95vw;
    --hero-small-width: 90vw;
  }

  .logo-icon {
    height: 24px;
  }

  .logo-display {
    left: 1.5rem;
    padding: 6px;
  }

  .header-container {
    padding: 0 1.5rem;
  }

  header {
    padding: 0.8rem 0 0.8rem;
  }



  nav ul {
    gap: 1.5rem;
    justify-content: center;
  }

  nav a {
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
  }


  .hero h1 {
    font-size: 3rem;
    letter-spacing: 0.4rem;
  }

  .hero {
    padding: 0;
  }

  .pitch {
    padding: 2rem 1.5rem;
    margin-top: 0;
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  .pitch h2 {
    font-size: 2rem;
  }

  .pitch p {
    font-size: 1.1rem;
  }

  /* Force the scrolled state of cover image on mobile */
  .cover-wrapper {
    width: var(--hero-small-width);
    height: auto;
    transform: none;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 1rem;
    transition: none !important;
  }

  .hero.scrolled .pitch {
    margin-top: 0;
    /* Consistency with base mobile styles */
  }

  .hero.scrolled {
    padding: 0 0 2rem;
  }

  .gallery {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    /* Reduced empty space under title */
  }

  .blog-post h3 {
    font-size: 1.8rem;
    /* Smaller headings on phone */
  }

  .detail-nav-grid {
    gap: 0.8rem;
    /* Tighter gap for bigger images on small screens */
    margin-bottom: 2rem;
  }

  .blog-post {
    padding: 2rem;
  }

  .blog-feed {
    gap: 3rem;
  }

  #blog-page .section-title {
    font-size: 1.5rem;
    margin-top: 3rem !important;
  }

  .post-date {
    font-size: 0.6rem;
  }

  .post-content {
    font-size: 0.85rem;
  }

  .blog-link {
    font-size: 0.85rem;
  }



}

@media (max-width: 480px) {
  .header-container {
    padding: 0 1rem;
    gap: 0.8rem;
  }

  nav ul {
    gap: 1.6rem;
  }

  nav a {
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* --- Journey Bar (Roadmap) --- */
.journey-section {
  padding: 0;
  margin-bottom: 6rem;
  width: 100%;
}

.journey-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.journey-bar-wrapper {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin: 4rem 0;
}

.journey-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
}

.journey-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  /* Animated via JS */
  height: 100%;
  background: linear-gradient(90deg, var(--sage-green), #a3e635);
  filter: drop-shadow(0 0 8px rgba(136, 160, 136, 0.4));
  transition: width 2s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

/* Glowing tip for the progress bar */
.journey-progress::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #fff;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  /* Diamond shape */
  box-shadow: 0 0 10px #fff;
  filter: drop-shadow(0 0 5px var(--sage-green));
}

.milestones {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.milestone {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.milestone-node {
  width: 20px;
  height: 22px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.milestone-node svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
  transition: all 0.5s ease;
}

.milestone-node polygon {
  fill: #1a1d1a;
  /* Matches --surface */
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.5px;
  transition: all 0.5s ease;
}

.milestone-node.active svg {
  filter: drop-shadow(0 0 10px var(--sage-green));
}

.milestone-node.active polygon {
  fill: var(--sage-green);
  stroke: #fff;
  stroke-width: 2px;
}



.milestone-node.active::before {
  opacity: 0.3;
  transform: scale(1.4);
}

.milestone-label {
  position: absolute;
  top: 35px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  white-space: nowrap;
  font-weight: 400;
  opacity: 0.6;
  transition: all 0.5s ease;
}

.milestone:nth-child(odd) .milestone-label {
  top: auto;
  bottom: 35px;
}

.milestone-node.active+.milestone-label {
  color: var(--white);
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .journey-container {
    padding: 0 3rem;
  }

  .milestone-label {
    font-size: 0.6rem;
  }
}

/* Mobile Overrides (Scale reduction by 40%) */
@media (max-width: 768px) {

  /* Header fonts previously updated to 1.1rem; 30% reduction from 0.85 original was requested before, now 40% off the current looks means we follow the "scale down by 40%" literally.
     Actually, current 1.1rem * 0.6 = 0.66rem. That's tiny. I'll use 0.8rem as a usable minimum for header links. */
  nav a {
    font-size: 0.8rem;
    gap: 1.5rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  .header-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 0;
  }

  .logo-display {
    position: static;
    margin: 0;
  }

  .logo-icon {
    height: 30px;
  }

  /* Hero Section scaling */
  .pitch {
    padding: 2.5rem 1.5rem;
    border-radius: 25px;
  }

  .pitch h2 {
    font-size: 1.8rem;
    /* 3rem * 0.6 */
  }

  .pitch p {
    font-size: 1rem;
    /* 1.7rem * 0.6 = 1.02 */
  }

  .hero-info-btn {
    padding: 0.8rem 1.5rem;
    /* ~40% reduction */
    font-size: 0.7rem;
    /* 1rem * 0.7 (practical minimum) or 0.6 */
    letter-spacing: 0.1rem;
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    white-space: nowrap;
    z-index: 30;
  }

  .cover-wrapper {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 !important;
  }

  .close-pitch-btn {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  /* Gallery scaling */
  .gallery {
    padding: 5rem 0;
  }

  .section-title {
    font-size: 1.8rem;
    /* 3rem * 0.6 */
  }

  .detail-box {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .detail-header h3 {
    font-size: 1.8rem;
    /* 3rem * 0.6 */
  }

  .close-detail {
    font-size: 1.8rem;
  }

  #detailDescription {
    font-size: 0.75rem;
    /* 1.25rem * 0.6 */
    margin-bottom: 2rem;
  }

  .detail-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    /* Single column on mobile for clarity */
    gap: 1.5rem;
  }

  .world-card h3 {
    font-size: 0.9rem;
  }

  /* Shrink image wrapper further on mobile to keep arrows outside */
  .modal-content-wrapper {
    width: 65%;
  }

  .modal-prev {
    left: 5px;
  }

  .modal-next {
    right: 5px;
  }

  .modal-prev,
  .modal-next {
    font-size: 1.8rem;
  }
}

/* Fullscreen Modal */
.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fullscreen-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
  line-height: 0.8;
  padding: 0.5rem;
}

.modal-close:hover {
  color: var(--accent-red);
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent-red);
  font-size: 2.4rem;
  /* 4rem * 0.6 */
  cursor: pointer;
  z-index: 10000;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-prev:hover,
.modal-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-content-wrapper {
  width: 75%;
  /* Reduced to allow arrows to be next to image */
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content-wrapper img,
.modal-content-wrapper video,
.modal-content-wrapper iframe {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: none;
}

.modal-content-wrapper iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}