/*Tiempos Fine Test Fonts !!!! NEED LICENSE*/
@font-face {
  font-family: 'Tiempos Fine';
  src: url('../assets/Test Tiempos Fine/test-tiempos-fine-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tiempos Fine';
  src: url('../assets/Test Tiempos Fine/test-tiempos-fine-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tiempos Fine';
  src: url('../assets/Test Tiempos Fine/test-tiempos-fine-regular-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Tiempos Fine';
  src: url('../assets/Test Tiempos Fine/test-tiempos-fine-bold-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


/* ===== Base ===== */
:root { color-scheme: light; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.55 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #fff;
  background: #000;
}

/* Use Open Sans for body, Tiempos Fine for headings */

h1, h2, h3 {
  font-family: 'Tiempos Fine', serif;
  font-weight: 700;
}

#enable-sound-s1 {
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 1em;
  padding: 0.75em 2em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.sound-button-container {
  position: fixed;
  top: 32px;
  left: 32px;
  transform: none;
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#enable-sound-s1:hover {
  border-color: #ccc;
  color: #ccc;
}

#enable-sound-sticky {
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.5em;
  padding: 0.75em 2em;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#enable-sound-sticky:hover {
  background: #222;
  border-color: #fff;
  color: #fff;
} 

#scene1-circle-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
  background: #000;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0, transparent 150px, black 151px);
  mask-image: radial-gradient(circle at 50% 50%, transparent 0, transparent 150px, black 151px);
  transition: mask-image 0.4s, -webkit-mask-image 0.4s;
}

#scroll-arrow {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrow-icon {
  margin-bottom: 8px;
}

.arrow-bar {
  width: 8px;
  height: 0vw; /* initial height, will grow with scroll */
  background: #fff;
  border-radius: 4px;
  transition: height 0.3s;
}

/* Provide scroll space for 3 steps */
.scrolly { min-height: 300vh; }

/* Pinned full-viewport stage */
.stage {
  position: sticky; 
  top: 0;
  height: 100vh; 
  overflow: hidden; 
  isolation:isolate;
}

/* Background layers (images) */
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 700ms ease;
}
.layer.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/*LOGO*/

.copy[data-scene="s1"] {
  margin-top: -25vh;   /* Moves it above the default top of the step */
  font-size: 2em;
  max-width: 30vw;
  
}

.layer[data-scene="s1"] {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.opening-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 75vw;
  max-height: 75vh;
  object-fit: contain;
  z-index: 1;
}

.overlay-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 10vw;    /* Adjust size as needed */
  max-height: 10vh;
  object-fit: contain;
  z-index: 2;          /* Higher than opening-image */
  pointer-events: none; /* So it doesn't block clicks */
}

/*OPENER REEL STYLES*/
.stage .layer[data-scene="s2"] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/*OPENER REEL STYLES*/
.stage .layer[data-scene="s2"] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/*HANDS IMAGE STYLES*/
.stage .layer[data-scene="s3"] {
  position: absolute;
  left: 40vw;           /* Start 40vw from the left */
  top: 50%;
  transform: translate(0, -50%); /* Only center vertically */
  width: auto;
  height: auto;
  max-width: calc(55vw - 5vw);   /* 55vw wide minus 5vw right margin */
  max-height: 80vh;
  object-fit: contain;  /* Maintain aspect ratio */
  margin-right: 5vw;    /* Ensure at least 5vw margin on the right */
  background: #000;     /* Optional: fills space if aspect ratio doesn't match */
}

/*CAROUSEL STYLES*/
.stage .layer[data-scene="s4"] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/*Map Styles*/
.stage .layer[data-scene="s5"] {
   position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/* About Us Video Styles */
.stage .layer[data-scene="s7"] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/*BOULDERING IMAGE STYLES*/
.stage .layer[data-scene="s8"] {
  position: absolute;
  left: 40vw;           /* Start 40vw from the left */
  top: 50%;
  transform: translate(0, -50%); /* Only center vertically */
  width: auto;
  height: auto;
  max-width: calc(55vw - 5vw);   /* 55vw wide minus 5vw right margin */
  max-height: 80vh;
  object-fit: contain;  /* Maintain aspect ratio */
  margin-right: 5vw;    /* Ensure at least 5vw margin on the right */
  background: #000;     /* Optional: fills space if aspect ratio doesn't match */
}

/*Tailgating IMAGE STYLES*/
.stage .layer[data-scene="s9"] {
  position: absolute;
  left: 40vw;           /* Start 40vw from the left */
  top: 50%;
  transform: translate(0, -50%); /* Only center vertically */
  width: auto;
  height: auto;
  max-width: calc(55vw - 5vw);   /* 55vw wide minus 5vw right margin */
  max-height: 80vh;
  object-fit: contain;  /* Maintain aspect ratio */
  margin-right: 5vw;    /* Ensure at least 5vw margin on the right */
  background: #000;     /* Optional: fills space if aspect ratio doesn't match */
}

/*Animted map styles*/
.stage .layer[data-scene="s10"] {
 position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/* Testimonial Video Styles */
.stage .layer[data-scene="s11"] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/*Flywheel animation styles*/
.stage .layer[data-scene="s12"] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/*mountain climbing IMAGE STYLES*/
.stage .layer[data-scene="s13a"] {
  position: absolute;
  left: 40vw;           /* Start 40vw from the left */
  top: 50%;
  transform: translate(0, -50%); /* Only center vertically */
  width: auto;
  height: auto;
  max-width: calc(55vw - 5vw);   /* 55vw wide minus 5vw right margin */
  max-height: 80vh;
  object-fit: contain;  /* Maintain aspect ratio */
  margin-right: 5vw;    /* Ensure at least 5vw margin on the right */
  background: #000;     /* Optional: fills space if aspect ratio doesn't match */
}

/*Pinarello Video Styles*/
.stage .layer[data-scene="s14"] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/*Route image*/
.stage .layer[data-scene="s15"] {
  position: absolute;
  left: 40vw;           /* Start 40vw from the left */
  top: 50%;
  transform: translate(0, -50%); /* Only center vertically */
  width: auto;
  height: auto;
  max-width: calc(55vw - 5vw);   /* 55vw wide minus 5vw right margin */
  max-height: 80vh;
  object-fit: contain;  /* Maintain aspect ratio */
  margin-right: 5vw;    /* Ensure at least 5vw margin on the right */
  background: #000;     /* Optional: fills space if aspect ratio doesn't match */
}

/*Data graphic Video Styles*/
.stage .layer[data-scene="s16"] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/*Bikes image*/
.stage .layer[data-scene="s18"] {
  position: absolute;
  left: 40vw;           /* Start 40vw from the left */
  top: 50%;
  transform: translate(0, -50%); /* Only center vertically */
  width: auto;
  height: auto;
  max-width: calc(55vw - 5vw);   /* 55vw wide minus 5vw right margin */
  max-height: 80vh;
  object-fit: contain;  /* Maintain aspect ratio */
  margin-right: 5vw;    /* Ensure at least 5vw margin on the right */
  background: #000;     /* Optional: fills space if aspect ratio doesn't match */
}

.stage .layer[data-scene="s20"] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.stage-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-height: 50vh;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-image img {
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.stage-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: auto;
  text-align: center;
  pointer-events: auto;
}

/* Text blocks scroll with page */
.copy {
  position: static;
  max-width: 30vw;
  margin-left: 5vw;
  margin-right: auto;
  text-align: left;
}

/* MOBILE AND TABLET*/
@media (max-width: 900px) {
  .copy {
    margin-left: auto;
    margin-right: auto;
    max-width: 70vw;
  }

  /*make a new class for text blocks!!!!*/
  .copy p {
    background: black;
    padding: 1em;
    margin-left: auto;
    margin-right: auto;
  }
}

.sticky-copy {
  position: sticky;
  top: 20vw;
  z-index: 10;
}

/*******************************VISUALIZER FOR STEPS*****************************************/


/* .step{
   border: solid white 1px;
}

article {
  border: solid pink 1px;
} */

/*******************************************************************************************/

.dictionary {
  font-size: 2.5em;
}

.dictionary h2 {
  font-size: 0.8em;
}

.dictionary span {
  font-size: 0.5em;
}

.copy.is-active {/*opacity: 1; transform: translateY(0);*/ }

.copy h1 {
  margin: 0 0 .35em; 
  font-weight: 700; 
  letter-spacing: .3px;
  font-size: clamp(28px, 4vw, 48px); 
  line-height: 1.1; 
  color: #fff;
}

.numbers-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.numbers-line {
  opacity: 0;
  font-size: 2em;
  margin: 0.2em 0;
  transition: opacity 0.4s, transform 0.4s;
}

/* .copy .pull-quote {
  text-align: center;
} */

.copy h2 {
  margin: 0 0 .35em; 
  font-weight: 700; 
  letter-spacing: .3px;
  font-size: clamp(24px, 3.5vw, 36px); 
  line-height: 1.5; 
  color: #fff;
}

.copy p { 
  margin: 0; 
  letter-spacing: .3px;
  font-size: clamp(15px, 1.6vw, 20px); 
  color: #fff; 
  line-height: 1.7;
}

/* Scroll “steps” (invisible triggers that create scroll space) */
.steps { position: relative; z-index: 1; }

.step  { height: 100vh; }/*display: flex; align-items: flex-end; */

.long-read-step {
  height: 150vh;
}

.short-step {
  height: 50vh;
}

.center-content {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  /* padding: 2em 4vw;         Use viewport width for horizontal padding */
  width: 100%;
  max-width: 700px;         /* Prevent it from getting too wide */
  min-width: 260px;         /* Prevent it from getting too narrow */
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;   /* Prevent overflow on long words */
}

.top-padding {
  padding-top: 5em;
}

/* Progress indicator (optional) */
.progress {
  position: fixed; right: 16px; bottom: 16px; z-index: 6;
  font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #c9d1d9; background: rgba(12,14,18,.6);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 6px 10px; user-select: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .layer, .copy { transition: none !important; transform: none !important; }
}

