/* @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@300;400;500;600;700&display=swap'); */


/* =========================================
   LOCAL FONTS - SOLARSCAPE
========================================= */

/* DM Sans */

@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/DMSans.ttf') format('truetype');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* Manrope Variable */

@font-face {
  font-family: 'Manrope';
  src: url('./fonts/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* Font variables */

:root {
  --font-display: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --color-ink: #06100f;
  --color-energy: #8cc36b;
}

html {
  scroll-behavior: smooth;
  background: #06100f;
}

.info-text {
  min-width: 320px;
  color: white;
  font-family: var(--font-body);
  margin: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Existing header — intentionally preserved */
.film-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 102px;
  padding: 0 clamp(1.5rem, 4vw, 5rem);
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.2); */
  transition:
    height 400ms ease,
    background 400ms ease,
    backdrop-filter 400ms ease;
}

.film-header.is-condensed {
  height: 70px;
  background: rgba(3, 13, 13, 0.66);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 29px;
  height: 34px;
  fill: #8cc36b;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.brand-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 7px;
  letter-spacing: 0.35em;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 180px;
  height: auto;
  object-fit: contain;
}

.film-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.7rem, 3.2vw, 3.8rem);
}

.film-nav a {
  position: relative;
  padding: 11px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 250ms ease;
}

.film-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: #8cc36b;
  transition: transform 250ms ease;
}

.film-nav a:hover,
.film-nav a:focus-visible {
  color: white;
}

.film-nav a:hover::after,
.film-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none !important;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 18, 17, 0.3);
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: white;
}


/* =========================================
   CINEMATIC HERO - TWO SCROLL STAGES
========================================= */

.cinematic-hero {
  position: relative;
  height: 200vh;
  height: 200svh;
  background: #020a0a;
}

.cinematic-stage {
  --film-progress: 0;

  position: sticky;
  top: 0;

  width: 100%;
  height: 100vh;
  height: 100svh;

  overflow: hidden;
  isolation: isolate;
  background: #020a0a;
}


.scene,
.scene-poster,
.scene-video,
.film-shade,
.glass-scan,
.end-frame {
  position: absolute;
  inset: 0;
}

.scene {
  z-index: -5;
  overflow: hidden;
}

.scene-building {
  opacity: clamp(0,
      calc(1 - var(--film-progress) * 1.15),
      1);

  transform: scale(calc(1 + var(--film-progress) * 0.045));

  transition: none;
  will-change: opacity, transform;
}

.scene-detail {
  opacity: clamp(0,
      calc((var(--film-progress) - 0.08) * 2.5),
      1);

  transform: scale(calc(1.045 - var(--film-progress) * 0.045));

  transition: none;
  will-change: opacity, transform;
}

.scene-poster,
.scene-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-poster {
  z-index: -1;
}

.scene-video {
  filter: saturate(0.72) contrast(1.08);
}

.scene-detail .scene-video {
  object-position: center 58%;
  filter: saturate(0.6) contrast(1.16) brightness(0.68);
}

.film-shade {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 8, 9, 0.5), transparent 26%, transparent 56%, rgba(0, 7, 8, 0.82)),
    linear-gradient(90deg, rgba(0, 9, 10, 0.55), transparent 44%, rgba(0, 8, 9, 0.15));
}

.film-shade::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.film-coordinate {
  position: absolute;
  z-index: 5;
  top: 23%;
  left: clamp(1.5rem, 4vw, 5rem);
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: calc(1 - var(--film-progress) * 1.8);
}

.film-coordinate span {
  color: #8cc36b;
}

.cinematic-title {
  position: absolute;
  z-index: 4;
  top: 31%;
  right: 4vw;
  left: 4vw;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 11vw, 12.4rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.72;
  text-transform: uppercase;
  pointer-events: none;
  opacity: clamp(0, calc(1.3 - var(--film-progress) * 2), 1);
  transform: translateY(calc(var(--film-progress) * -12vh));
}

.cinematic-title span {
  display: block;
  overflow: hidden;

}

.title-glass {
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.96);
  animation: line-arrive 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.title-generates {
  align-self: center;
  margin-top: 0.08em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.88);
  animation: line-arrive 1.1s 150ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.title-energy {
  align-self: flex-end;
  margin-top: 0.08em;
  color: #8cc36b;
  animation: line-arrive 1.1s 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cinematic-copy {
  position: absolute;
  z-index: 6;
  bottom: 7.5%;
  left: clamp(1.5rem, 4vw, 5rem);
  display: flex;
  align-items: flex-end;
  gap: clamp(2rem, 6vw, 7rem);
  opacity: clamp(0, calc(1.2 - var(--film-progress) * 2), 1);
}

.cinematic-copy p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1vw, 1rem);
  line-height: 1.65;
}

.cinematic-cta {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  min-height: 54px;
  padding: 0 20px 0 24px;
  color: #ffffff;
  background: rgb(24, 101, 171);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    transform 250ms ease,
    background 250ms ease;
}

.cinematic-cta svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
}

.cinematic-cta:hover,
.cinematic-cta:focus-visible {
  transform: translateY(-3px);
  background: rgb(10, 52, 92);
  color: #fff;
}

.power-glass-marker {
  position: absolute;
  z-index: 4;
  top: var(--pointer-y);
  left: var(--pointer-x);
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 7px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: clamp(0, calc(1 - var(--film-progress) * 2), 0.9);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.marker-cross {
  position: relative;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(169, 245, 200, 0.55);
  border-radius: 50%;
}

.marker-cross::before,
.marker-cross::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #8cc36b;
  transform: translate(-50%, -50%);
}

.marker-cross::before {
  width: 11px;
  height: 1px;
}

.marker-cross::after {
  width: 1px;
  height: 11px;
}

.marker-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
}

.marker-copy b {
  color: #8cc36b;
  font-size: 10px;
}

.glass-scan {
  z-index: 2;
  opacity: clamp(0, calc((var(--film-progress) - 0.34) * 2.6), 0.85);
  pointer-events: none;
  background:
    linear-gradient(90deg,
      transparent 0%,
      transparent calc(var(--film-progress) * 70%),
      rgba(169, 245, 200, 0.2) calc(var(--film-progress) * 70% + 1px),
      rgba(169, 245, 200, 0.06) calc(var(--film-progress) * 70% + 7%),
      transparent calc(var(--film-progress) * 70% + 20%)),
    repeating-linear-gradient(90deg, transparent 0 11.8%, rgba(169, 245, 200, 0.08) 12% 12.1%),
    repeating-linear-gradient(0deg, transparent 0 14.8%, rgba(169, 245, 200, 0.07) 15% 15.1%);
  mask-image: linear-gradient(90deg, transparent, black 20%, black 88%, transparent);
}

.scene-progress {
  position: absolute;
  z-index: 6;
  right: clamp(1.5rem, 4vw, 5rem);
  bottom: 5%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.progress-track {
  position: relative;
  width: 100px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
}

.progress-track i {
  position: absolute;
  inset: 0;
  background: #8cc36b;
  transform: scaleX(var(--film-progress));
  transform-origin: left;
}

.cinematic-scroll {
  position: absolute;
  z-index: 6;
  right: clamp(1.5rem, 4vw, 5rem);
  top: 46%;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 83%);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: calc(1 - var(--film-progress) * 2.5);
  transform: translate(44%, -50%) rotate(90deg);
}

.cinematic-scroll:hover {
  color: rgba(255, 255, 255, 83%) !important;
}

.cinematic-scroll span {
  width: 52px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.cinematic-scroll span::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: #8cc36b;
  animation: scroll-line 2s ease-in-out infinite;
}

.end-frame {
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(1.5rem, 4vw, 5rem) 8%;
  opacity: clamp(0, calc((var(--film-progress) - 0.7) * 3.5), 1);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 25%, rgba(1, 10, 10, 0.82) 100%);
}

.end-frame span {
  margin-bottom: 16px;
  color: #8cc36b;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.end-frame strong {
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 7.2rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.cinematic-end {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 1px;
  height: 1px;
}

@keyframes line-arrive {
  from {
    opacity: 0;
    transform: translateY(70px);
  }

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

@keyframes scroll-line {
  0% {
    transform: translateX(-105%);
  }

  55%,
  100% {
    transform: translateX(105%);
  }
}

@media (max-width: 900px) {
  .cinematic-title {
    top: 27%;
    font-size: clamp(4rem, 12.8vw, 7rem);
  }

  .cinematic-copy p {
    display: none;
  }
}

@media (max-width: 720px) {
  .film-header {
    height: 82px;
    padding: 0 18px;
  }

  .film-header.is-condensed {
    height: 68px;
  }

  .brand-mark {
    width: 26px;
  }

  .brand-name {
    font-size: 13px;
  }

  .film-nav {
    position: absolute;
    top: 82px;
    right: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-9px);
    background: rgba(3, 15, 14, 0.94);
    backdrop-filter: blur(20px);
    transition:
      opacity 220ms ease,
      visibility 220ms,
      transform 220ms ease;
  }

  .film-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .film-nav a {
    padding: 14px 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle {
    display: block;
  }


  .cinematic-hero {
    height: 300vh;
    height: 300svh;
  }


  .scene-building .scene-video,
  .scene-poster {
    object-position: 56% center;
  }

  .scene-detail .scene-video {
    object-position: 56% center;
  }

  .film-coordinate {
    top: 28%;
    left: 18px;
    font-size: 10px;
  }

  .film-coordinate span {
    display: none;
  }

  .cinematic-title {
    top: 35%;
    right: 18px;
    left: 14px;
    font-size: clamp(3.2rem, 17vw, 5.4rem);
    line-height: 0.89;
  }

  .title-generates {
    align-self: flex-start;
    letter-spacing: 0px;
    font-size: 52px;
  }

  .cinematic-copy {
    bottom: 9%;
    left: 18px;
  }

  .cinematic-cta {
    min-height: 50px;
    gap: 22px;
    padding: 0 17px 0 19px;
    font-size: 8px;
  }

  .power-glass-marker {
    display: none;
  }

  .scene-progress {
    right: 18px;
    bottom: 10%;
  }

  .progress-label {
    display: none;
  }

  .progress-track {
    width: 58px;
  }


  .cinematic-scroll {
    top: auto;
    right: auto;
    bottom: calc(9% + 65px);
    left: 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
    transform: none;
    opacity: calc(1 - var(--film-progress) * 10);
    pointer-events: auto;
  }

  .cinematic-scroll span {
    width: 35px;
  }


  .end-frame {
    padding: 0 22px 13%;
  }

  .end-frame strong {
    font-size: clamp(2.7rem, 12vw, 4.1rem);
  }

  .title-energy {
    align-self: flex-end;
    margin-top: 0.08em;
    color: #8cc36b;
    animation: line-arrive 1.1s 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
    margin-right: 17px !important;
  }

  .info-text {
    letter-spacing: -0.02em !important;
    line-height: 0.98 !important;
    margin-bottom: 85px !important;
  }


  /* Mobile Hero Text Shadow */
  /* .title-glass{
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.65),
        0 5px 12px rgba(0, 0, 0, 0.55),
        0 8px 22px rgba(0, 0, 0, 0.4);
} */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* 
  .scene-video {
    display: none;
  } */

  .scene-building {
    transform: none;
  }
}

/* scroll control */