:root {
  --bg-color: #0b0d11; /* Darker sampled background to match image edges */
  --brand-blue: #1438c7; 
  --text-active: rgba(223, 175, 20, 0.9); /* Gold/Amber headings */
  --text-body: rgba(255, 255, 255, 0.6);
  --accent-gold: #c9a24d;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-body);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-content {
  text-align: center;
  width: 320px;
}

.loader-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.6rem;
  margin-bottom: 2.5rem;
  color: var(--text-active);
  opacity: 1;
}

.loader-bar-container {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

#loader-bar {
  width: 0%;
  height: 100%;
  background: var(--text-active);
  transition: width 0.3s ease;
}

#loader-percentage {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2rem;
  color: var(--text-body);
  text-transform: uppercase;
}

/* Scrolly Container */
#scrolly-container {
  height: 400vh;
  position: relative;
}

.canvas-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1a2332 0%, #0b0d11 100%);
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Scroll Sections */
.scroll-section {
  position: relative;
  height: 100vh;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.content {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-40%);
  padding: 0 10%;
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.content.active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: all;
}

.content.centered {
  text-align: center;
}

.content.left {
  text-align: left;
  max-width: 600px;
}

.content.right {
  text-align: right;
  margin-left: auto;
  max-width: 600px;
}

h1, h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-active); /* Industrial Gold */
  text-transform: uppercase;
}

.reveal-subtext {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--text-body);
  max-width: 500px;
  line-height: 1.6;
}

.content.centered .reveal-subtext {
  margin: 0 auto;
}

.content.right .reveal-subtext {
  margin-left: auto;
}

.cta-button {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 1.2rem 3rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gold);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.cta-button:hover {
  color: var(--bg-color);
}

.cta-button:hover::before {
  left: 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .content.left,
  .content.right {
    max-width: 90%;
    margin-left: 5%;
    text-align: center;
  }
  
  .content.right .reveal-subtext {
    margin: 0 auto;
  }
  
  h1, h2 {
    font-size: 2.2rem;
  }
}
