/* Keeps the cinematic story and its gallery as separate visual states. */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 0;
}

.home-nav-link {
  position: relative;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 180ms ease;
}

.home-nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, #e8c374, transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-nav-link:hover,
.home-nav-link:focus-visible {
  color: #e8c374;
  outline: none;
}

.home-nav-link:hover::after,
.home-nav-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

#story-spacer {
  height: 540vh;
  pointer-events: none;
}

body.gallery-is-open {
  overflow: hidden;
}

#gallery-section {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

#gallery-section.gallery-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 260ms ease;
}

#gallery-section #orbit-canvas {
  width: 100%;
  height: 100%;
  cursor: grab !important;
}

#gallery-section #orbit-canvas:active {
  cursor: grabbing !important;
}

#home-content {
  position: relative;
  z-index: 50;
  background: #050505;
  color: #f4ecde;
}

.home-section {
  position: relative;
  padding: clamp(80px, 11vw, 160px) clamp(24px, 7vw, 112px);
  border-top: 1px solid rgba(244, 236, 222, 0.16);
  scroll-margin-top: 80px;
}

.home-section__inner {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.home-section--intro {
  display: grid;
  min-height: 92svh;
  align-items: center; /* Vertically centers the content */
  justify-content: center; /* Horizontally centers the content */
  background: #15110c;
}

.home-intro {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers all child elements (text, buttons) perfectly */
  text-align: center; /* Centers the actual text lines */
  margin: 0 auto;
}

.home-eyebrow {
  margin: 0 0 22px;
  color: #e6bf6e;
  font: 600 11px/1.2 Outfit, sans-serif;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.home-section h2 {
  margin: 0;
  color: #f6eddb;
  font-family: Italiana, serif;
  font-size: clamp(42px, 6.2vw, 92px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.home-lede,
.section-heading--split > p,
.fit-copy > p {
  max-width: 620px;
  margin: 32px 0 0;
  color: rgba(244, 236, 222, 0.82);
  font: 300 clamp(18px, 1.9vw, 25px)/1.5 Outfit, sans-serif;
}

.home-command {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
  padding-bottom: 10px;
  border-bottom: 1px solid currentColor;
  color: #f4ecde;
  font: 600 12px/1 Outfit, sans-serif;
  letter-spacing: 1.8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, gap 180ms ease;
}

.home-command:hover,
.home-command:focus-visible {
  gap: 24px;
  color: #e6bf6e;
  outline: none;
}

.section-heading {
  display: grid;
  max-width: 860px;
  gap: 20px;
}

.section-heading--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr);
  align-items: end;
}

.section-heading--split > p {
  margin: 0;
}

.discipline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 72px;
}

.discipline-item {
  min-height: 270px;
  padding: 30px 36px 34px 0;
}

.discipline-item:nth-child(odd) {
  padding-right: 72px;
}

.discipline-item:nth-child(even) {
  padding-left: 36px;
}

.discipline-item span,
.work-card__meta,
.process-list > li > span {
  color: #e6bf6e;
  font: 600 11px/1 Outfit, sans-serif;
  letter-spacing: 1.8px;
}

.discipline-item h3,
.process-list h3 {
  margin: 54px 0 12px;
  color: #f6eddb;
  font: 400 clamp(25px, 2.7vw, 40px)/1.1 Italiana, serif;
}

.discipline-item p,
.process-list p {
  max-width: 380px;
  margin: 0;
  color: rgba(244, 236, 222, 0.7);
  font: 300 15px/1.65 Outfit, sans-serif;
}

.home-section--work {
  background: #e8e1d1;
  color: #121212;
}

.home-section--work h2,
.home-section--work .home-eyebrow,
.home-section--work .section-heading--split > p,
.home-section--work .home-command {
  color: #121212;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 72px;
}

.work-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #242424;
}

.work-card--wide {
  grid-row: span 2;
  min-height: 900px;
}

.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.work-card:hover img {
  transform: scale(1.035);
}

.work-card__meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.44);
}

.home-command--dark:hover,
.home-command--dark:focus-visible {
  color: #7a4c1f;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
  margin: 72px 0 0;
  list-style: none;
}

.process-list > li {
  min-height: 300px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 236, 222, 0.35);
}

.process-list h3 {
  margin-top: 70px;
}

.home-section--fit {
  background: #19343b;
}

.fit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: clamp(40px, 10vw, 150px);
  align-items: start;
}

.fit-copy > p {
  margin-top: 0;
}

#slide-1 {
  top: 63%;
  width: min(40vw, 540px);
  max-width: 540px;
}

#slide-1 .slide-title {
  font-size: clamp(56px, 6.4vw, 92px);
  line-height: 0.98;
}

#slide-2 {
  left: 8vw;
  right: auto;
  width: min(32vw, 480px);
  max-width: 480px;
}

#slide-3 {
  left: auto;
  right: 8vw;
  width: min(32vw, 480px);
  max-width: 480px;
}

#slide-4 {
  right: 10vw;
  width: min(32vw, 480px);
  max-width: 480px;
}

#slide-4 .slide-title {
  font-size: clamp(52px, 5.5vw, 80px);
  line-height: 0.96;
}

.cinematic-progress {
  z-index: 120;
}

.gallery-is-open .cinematic-progress {
  visibility: hidden;
  opacity: 0;
}

#footer-section {
  position: relative;
  top: auto;
  left: auto;
  z-index: 50;
  width: 100%;
  min-height: 82svh;
  height: auto;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  #story-spacer {
    height: 540vh;
  }

  .home-nav-link {
    font-size: 10px;
  }

  .home-section {
    padding: 78px 24px;
  }

  .home-section--intro {
    min-height: 80svh;
  }

  .home-section h2 {
    font-size: clamp(40px, 12vw, 62px);
  }

  .section-heading--split,
  .fit-layout,
  .discipline-list,
  .work-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .discipline-list,
  .work-grid,
  .process-list {
    margin-top: 48px;
  }

  .discipline-item,
  .discipline-item:nth-child(odd),
  .discipline-item:nth-child(even) {
    min-height: 0;
    padding: 26px 0 34px;
    border-right: 0;
  }

  .discipline-item h3,
  .process-list h3 {
    margin-top: 38px;
  }

  .work-card,
  .work-card--wide {
    min-height: 440px;
  }

  .process-list > li {
    min-height: 0;
    padding-bottom: 24px;
  }

  .process-list h3 {
    margin-top: 46px;
  }

  #slide-1 {
    top: 60%;
    width: calc(100vw - 72px);
    max-width: none;
  }

  #slide-2,
  #slide-3,
  #slide-4 {
    left: 28px;
    right: auto;
    width: calc(100vw - 72px);
    max-width: none;
  }

  #slide-1 .slide-title {
    font-size: clamp(40px, 11.8vw, 60px);
    line-height: 1;
  }

  #slide-4 .slide-title {
    font-size: clamp(42px, 12.8vw, 64px);
    line-height: 1;
  }

  #footer-section {
    min-height: 72svh;
  }
}

/* Scroll reveal text styles */
.scroll-reveal-text {
  display: inline-block;
}

.reveal-word {
  display: inline-block;
  margin-right: 0.23em;
  opacity: 0.25;
  transform: translateY(5px);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
  color: #e0d8d0 !important; /* Force high contrast for paragraphs */
}

.reveal-char {
  display: inline-block;
  opacity: 0.15;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
  color: #f6eddb !important; /* Force high contrast for headings */
}

.reveal-space {
  width: 0.22em;
}

/* 3D Video Background & Parallax (Sticky & Persistent) */
.fixed-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.video-3d-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.video-3d-element {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translateZ(0px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.15s ease-out;
  /* Make video super crisp and vibrant (8k feel) */
  filter: contrast(1.15) saturate(1.3) brightness(1.1);
}

.video-3d-overlay {
  position: absolute;
  inset: 0;
  /* Reduced darkening overlay so the vibrant video shines through clearly */
  background: radial-gradient(circle at center, rgba(12, 12, 12, 0.25) 0%, rgba(5, 5, 5, 0.7) 100%);
  z-index: 2;
}

.home-section {
  position: relative;
  z-index: 2;
  background: transparent !important;
}

.home-intro {
  position: relative;
  z-index: 3;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Full screen footer */
#footer-section {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100svh !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 50 !important;
  background: radial-gradient(circle at center, #161009, #050302) !important;
  padding: 40px 60px !important;
  margin: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  perspective: 1200px;
  overflow: hidden;
}

#footer-section::before {
  display: none !important;
}

.footer-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 1;
}

.footer-video-wrap.video-ended {
  opacity: 0;
}

.footer-video-element {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translateZ(0px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.15s ease-out;
}

.footer-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.75) 100%);
  z-index: 2;
}

.footer-center {
  position: relative;
  z-index: 4 !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.footer-bottom {
  position: relative;
  z-index: 4 !important;
}

/* Hover Image Reveal Layout */
.hover-reveal-container {
  position: relative;
  width: 100%;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible !important;
}

.hover-reveal-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.reveal-item {
  overflow: hidden;
  cursor: pointer;
  padding: 4px 0;
}

.reveal-item-inner {
  position: relative;
  display: block;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item:hover .reveal-item-inner {
  transform: translateY(-100%);
}

.reveal-item-text {
  display: block;
  font-family: Outfit, sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 5.2vw, 68px);
  line-height: 0.9em;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15); /* Very dim base color */
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item-text-clone {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

/* Dim other text items slightly more on list hover */
.hover-reveal-list:hover .reveal-item-text {
  color: rgba(255, 255, 255, 0.05);
}

.reveal-item:hover .reveal-item-text {
  color: #ffffff !important; /* Bright white when hovered! */
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Floating Follower Image Box */
.hover-reveal-image-box {
  position: absolute;
  width: 290px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  background: #111;
}

.hover-reveal-image-box.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hover-reveal-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.reveal-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.reveal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OVERRIDES: Position Slide 1 (Demand In Motion) vertically */
#slide-1 {
  left: 8vw !important; /* Restore left alignment */
  top: 55% !important; /* A little lower than absolute center to avoid Velora header */
  transform: translateY(-50%) !important; /* Only transform Y, keep X intact */
  text-align: left !important;
  display: block; /* Remove flex centering */
  max-width: 560px !important;
}






