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

:root {
  --sage-green: #88a088;
  --dusty-purple: #9a8bb0;
  --terracotta: #c08a6f;
  --charcoal: #121412;
  --surface: #1a1d1a;
  --surface-light: #222622;
  --text-primary: #e0e2e0;
  --text-secondary: #a0a2a0;
  --white: #ffffff;
  --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: 16/9;
  --hero-full-width: 80vw;
  --hero-full-gap: 60px;
  --hero-small-width: 70vw;
  --hero-small-overlap: 180px;
}



@font-face {
  font-family: 'Bondko_Fontko';
  src: url('assets/Bondko_Fontko_v2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


* {
  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: "Outfit", sans-serif;
  background-color: #0a0c0a;
  /* Darker base for hexagons */
  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: "Bondko_Fontko", sans-serif;
  font-weight: 700;
}


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

/* Header & Navigation */
header {
  padding: 1.2rem 0 0.8rem;
  /* 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;
}

:root {
  /* --- Logo Shape & Animation Controls --- */
  --corner-bg: #121412;
  --corner-slant: 15deg;
  /* Replaced px with deg for perfect uniform slanted walls */
  --corner-radius: 30px;
  /* Smooth bottom corner rounding */
  --corner-height: 85px;
  /* Fixed height */
  --logo-text-gap: 5px;
  /* Distance between icon and text (can be negative!) */
  --corner-flare: 35px;
  /* The "flare" out where it meets the header */
  --corner-width-collapsed: 150px;
  /* Width when only the icon is visible */
  --corner-width-expanded: 250px;
  /* Width when icon and text are visible on hover */
}

.logo-corner {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--corner-height);
  min-width: var(--corner-width-collapsed);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: logoEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  /* Soft shadow for depth, applies beautifully to combined pseudo-elements */
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Left Slanted Wall */
.logo-corner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 49%;
  background: var(--corner-bg);
  transform-origin: top left;
  transform: skewX(var(--corner-slant));
  border-bottom-left-radius: var(--corner-radius);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

/* Right Slanted Wall */
.logo-corner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 49%;
  right: 0;
  background: var(--corner-bg);
  transform-origin: top right;
  /* Skew inverted for mirroring */
  transform: skewX(calc(var(--corner-slant) * -1));
  border-bottom-right-radius: var(--corner-radius);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

/* Connection Mask to hide header border */
.logo-corner-connection {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--corner-bg);
  z-index: 5;
}

/* Left Flare (Inverted Curve) */
.logo-corner-connection::before {
  content: "";
  position: absolute;
  top: 1px;
  right: calc(100% - 1px);
  /* Added 1px overlap to eliminate gap */
  width: var(--corner-flare);
  height: var(--corner-flare);
  transform-origin: top right;
  transform: skewX(var(--corner-slant));
  background: radial-gradient(circle at 0% 100%, transparent calc(var(--corner-flare) - 1px), var(--corner-bg) var(--corner-flare));
}

/* Right Flare (Inverted Curve) */
.logo-corner-connection::after {
  content: "";
  position: absolute;
  top: 1px;
  left: calc(100% - 1px);
  /* Added 1px overlap to eliminate gap */
  width: var(--corner-flare);
  height: var(--corner-flare);
  transform-origin: top left;
  transform: skewX(calc(var(--corner-slant) * -1));
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--corner-flare) - 1px), var(--corner-bg) var(--corner-flare));
}

.logo-corner:hover {
  min-width: var(--corner-width-expanded);
}

.logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 40px;
  /* Safe padding for slants */
}

.logo-icon {
  height: 48px;
  width: auto;
  transition: all 0.5s ease;
  z-index: 3;
}

.logo-text {
  height: 42px;
  width: auto;
  opacity: 0;
  max-width: 0;
  margin-left: 0;
  filter: blur(8px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow: hidden;
}

.logo-corner:hover .logo-text {
  opacity: 1;
  max-width: 300px;
  /* Margin instead of flex gap to allow NEGATIVE overlap for precise distances */
  margin-left: var(--logo-text-gap);
  filter: blur(0);
}


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

nav {
  position: relative;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  transition: var(--transition);
  opacity: 0.6;
  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 {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: transparent;
  width: 100%;
  overflow: visible;
}

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



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

.hero h1 {
  font-size: 6rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.8rem;
  color: var(--text-primary);
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  overflow: visible;
  /* Allow cover-wrapper to visually break out */
}

/* === 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 {
  /* Physical space it occupies in the flow */
  width: var(--hero-full-width);
  aspect-ratio: var(--hero-aspect-ratio);
  height: auto;

  /* Touches header: no top margin. Padding at the bottom is via margin-bottom. */
  margin-top: 0;
  margin-bottom: var(--hero-full-gap);

  /* Horizontal centering handled by parent .pitch-container (flex align-items: center) */
  position: relative;
  transform: scale(1);

  z-index: 2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Corners in both states — animate from small radius (fullscreen) to larger (scrolled) */
  border-radius: 16px;

  /* ONLY animate compositor-friendly properties for zero-snap smoothness */
  transition:
    transform 1.5s cubic-bezier(0.23, 1, 0.32, 1),
    border-radius 1.5s cubic-bezier(0.23, 1, 0.32, 1),
    margin-top 1.5s cubic-bezier(0.23, 1, 0.32, 1),
    margin-bottom 1.5s cubic-bezier(0.23, 1, 0.32, 1),
    width 1.5s cubic-bezier(0.23, 1, 0.32, 1),
    height 1.5s cubic-bezier(0.23, 1, 0.32, 1),
    aspect-ratio 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}







.cover-image {
  width: 100%;
  height: 100%;
  /* cover keeps the image filling the wrapper so corners are clipped. 
     To avoid cropping, ensure the explicitly defined width/height variables match the image's aspect ratio. */
  object-fit: cover;
  border-radius: 0;
  /* Border-radius lives on the wrapper, not the image */
  border: none;
  display: block;
}






.pitch {
  max-width: 900px;
  width: 90%;
  padding: 5rem;
  /* Semi-transparent background for glassmorphic overlap */
  background: rgba(26, 29, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 40px 80px 30px 60px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 1;
  margin-top: -8rem;
  /* Tucked behind */
  opacity: 0;
  transform: translateY(150px) scale(0.95);
  transition: all 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}


.hero.scrolled {
  /* Image touches header: no top padding. */
  padding: 0 0 8rem;
}

/* Animate the physical size instead of scaling — reflows the pitch upward automatically */
.hero.scrolled .cover-wrapper {
  width: var(--hero-small-width);
  height: auto;
  /* Maintain the same aspect-ratio as defined in the base class */
  transform: scale(1);
  border-radius: 40px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Base image relies on object-fit: cover defined above */

.hero.scrolled .pitch {
  opacity: 1;
  transform: translateY(0) scale(1);
  /* Pull the box up so it overlaps the bottom of the image */
  margin-top: calc(-1 * var(--hero-small-overlap));
  position: relative;
  z-index: 3;
}






.pitch h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--terracotta);
  letter-spacing: 0.1rem;
}

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

/* 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;
  color: var(--dusty-purple);
  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: "Bondko_Fontko", sans-serif;
  font-weight: 300;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.world-card:nth-child(1) h3 {
  color: #6FB344;
}

.world-card:nth-child(2) h3 {
  color: #F8B133;
}

.world-card:nth-child(3) h3 {
  color: #26C2D1;
}

.world-card:nth-child(4) h3 {
  color: #7E57C3;
}

.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;
  color: var(--sage-green);
  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: 6rem 0;
  display: flex;
  flex-direction: column;
  gap: 6rem;
  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;
  color: var(--sage-green);
}

.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;
}

.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;
}

.post-media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* 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: center;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.member {
  text-align: center;
  padding: 3rem 2rem;
  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;
  position: relative;
  overflow: hidden;
}

.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: 2px solid rgba(136, 160, 136, 0.2);
  transition: var(--transition);
}

.member:hover .profile-pic {
  transform: scale(1.05);
  border-color: var(--terracotta);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.member h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--terracotta);
}

.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;
}

.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) {
  .logo-full {
    display: none !important;
  }

  .logo-short {
    display: block;
    height: 45px;
  }

  .logo-corner {
    top: 100%;
  }

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

  header {
    padding: 1rem 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: 4rem 0 6rem;
  }

  .pitch {
    padding: 6rem 2rem 3rem;
    margin-top: -3rem;
  }

  .cover-wrapper {
    margin-bottom: -3rem;
  }

  .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;
  }

}

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

  nav ul {
    gap: 0.8rem;
  }

  nav a {
    font-size: 0.65rem;
    letter-spacing: 0.05rem;
  }

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

  .container {
    padding: 0 1.5rem;
  }
}

/* --- Journey Bar (Roadmap) --- */
.journey-section {
  padding: 4rem 0 6rem;
  margin-bottom: 4rem;
  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-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;
    letter-spacing: 0.05rem;
  }
}