:root {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.76, 0, .24, 1);
  --shadow-soft: 0 24px 70px rgba(18, 23, 27, .12);
}

body {
  overflow-x: hidden;
}

a,
button,
input,
textarea {
  transition: color .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.page-transition {
  display: none;
}

.js .page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  transform: translateY(0);
  transition: transform .72s var(--ease-smooth);
  pointer-events: none;
}

.page-ready .page-transition {
  transform: translateY(-105%);
}

.page-leaving .page-transition {
  transform: translateY(0);
}

.transition-brand {
  display: grid;
  place-items: center;
  gap: 15px;
  letter-spacing: .28em;
  font-size: 12px;
  font-weight: 700;
}

.transition-brand i {
  font-size: 52px;
  animation: transitionPulse 1.1s ease-in-out infinite alternate;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.site-header,
.inner-header {
  position: sticky;
  top: 0;
  transition: height .35s var(--ease-out-expo), box-shadow .35s ease, background-color .35s ease;
}

.site-header.is-scrolled,
.inner-header.is-scrolled {
  box-shadow: 0 12px 35px rgba(18, 24, 28, .1);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled .brand-mark {
  transform: translateX(-50%) scale(.92);
}

.inner-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.inner-cta:hover {
  box-shadow: 0 12px 28px rgba(201, 32, 43, .24);
  transform: translateY(-2px);
}

.menu-trigger i {
  width: 30px;
  font-size: 25px;
}

.icon-button,
.language {
  min-width: 34px;
  min-height: 34px;
  justify-content: center;
}

.icon-button:hover,
.language:hover {
  color: var(--red);
  transform: translateY(-2px);
}

.language-chevron {
  font-size: 10px;
}

.menu-backdrop {
  animation: backdropIn .28s ease both;
  backdrop-filter: blur(3px);
}

.menu-panel {
  box-shadow: 30px 0 80px rgba(0, 0, 0, .18);
}

.menu-links a {
  opacity: 0;
  transform: translateX(-22px);
  transition: color .25s ease, transform .55s var(--ease-out-expo), opacity .45s ease;
}

.menu-panel.is-open .menu-links a {
  opacity: 1;
  transform: translateX(0);
}

.menu-panel.is-open .menu-links a:nth-child(1) { transition-delay: .08s; }
.menu-panel.is-open .menu-links a:nth-child(2) { transition-delay: .12s; }
.menu-panel.is-open .menu-links a:nth-child(3) { transition-delay: .16s; }
.menu-panel.is-open .menu-links a:nth-child(4) { transition-delay: .20s; }
.menu-panel.is-open .menu-links a:nth-child(5) { transition-delay: .24s; }
.menu-panel.is-open .menu-links a:nth-child(6) { transition-delay: .28s; }
.menu-panel.is-open .menu-links a:nth-child(7) { transition-delay: .32s; }

.search-box,
.language-menu {
  animation: dropdownIn .3s var(--ease-out-expo) both;
}

.hero-section {
  min-height: clamp(620px, calc(100vh - 116px), 840px);
  isolation: isolate;
  overflow: hidden;
  background: #101416;
}

.hero-media,
.hero-background,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  overflow: hidden;
  transform: translateY(var(--hero-shift, 0));
  will-change: transform;
}

.hero-background {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.09);
  filter: saturate(.88) contrast(1.04);
  transition: opacity 1.15s ease, transform 7s linear;
  will-change: opacity, transform;
}

.hero-background.is-active {
  opacity: 1;
  transform: scale(1.015);
}

.hero-shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(6, 10, 12, .88) 0%, rgba(6, 10, 12, .6) 44%, rgba(6, 10, 12, .16) 78%), linear-gradient(0deg, rgba(3, 8, 10, .46), transparent 45%);
}

.hero-grid {
  z-index: -1;
  opacity: .13;
  background-image: linear-gradient(90deg, transparent calc(25% - 1px), #fff 25%, transparent calc(25% + 1px)), linear-gradient(90deg, transparent calc(50% - 1px), #fff 50%, transparent calc(50% + 1px)), linear-gradient(90deg, transparent calc(75% - 1px), #fff 75%, transparent calc(75% + 1px));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 920px;
  transition: opacity .22s ease, transform .32s var(--ease-out-expo), filter .22s ease;
}

.hero-copy.is-switching {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(18px);
}

.hero-copy h1 {
  max-width: 900px;
  text-wrap: balance;
}

.hero-copy h1 span:first-child {
  font-weight: 500;
}

.hero-link {
  position: relative;
  gap: 18px;
  padding-bottom: 9px;
}

.hero-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .45s var(--ease-out-expo);
}

.hero-link:hover::after {
  transform: scaleX(1);
}

.hero-link i {
  transition: transform .35s var(--ease-out-expo);
}

.hero-link:hover i {
  transform: translateX(8px);
}

.hero-controls {
  z-index: 3;
}

.hero-controls button {
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.hero-controls button:hover {
  color: var(--red);
  background: #fff;
  transform: translateY(-3px);
}

.ticks i {
  position: relative;
  overflow: hidden;
}

.ticks i.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  animation: slideProgress 6.5s linear both;
}

.hero-scroll {
  position: absolute;
  right: 38px;
  bottom: 35px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .24em;
}

.hero-scroll i {
  animation: scrollNudge 1.6s ease-in-out infinite;
}

.js [data-reveal]:not([data-reveal="split"]) {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity .85s ease, transform .9s var(--ease-out-expo);
}

.js [data-reveal]:not([data-reveal="split"]).is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js [data-reveal="split"] > * {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .75s ease, transform .9s var(--ease-out-expo);
}

.js [data-reveal="split"].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.js [data-reveal="split"].is-visible > *:nth-child(2) { transition-delay: .13s; }
.js [data-reveal="split"].is-visible > *:nth-child(3) { transition-delay: .24s; }

.intro-section {
  max-width: 1380px;
  margin: 120px auto;
  gap: clamp(45px, 6vw, 100px);
}

.intro-image {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.intro-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(201, 32, 43, .18));
  pointer-events: none;
}

.intro-image img {
  height: 560px;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out-expo), filter .6s ease;
}

.intro-image:hover img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.image-index {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 17px 22px;
  color: #fff;
  background: var(--red);
  font-weight: 700;
}

.image-index small {
  margin-left: 8px;
  letter-spacing: .14em;
  font-size: 9px;
}

.flame i,
.flame-mark i {
  color: var(--red);
}

.intro-copy h2 {
  max-width: 680px;
  text-wrap: balance;
}

.intro-copy > a i {
  margin-left: 10px;
  transition: transform .3s ease;
}

.intro-copy > a:hover i {
  transform: translateX(7px);
}

.products-section {
  min-height: 650px;
  padding: 100px max(7vw, 40px) 110px;
  overflow: hidden;
}

.section-heading {
  position: relative;
  z-index: 3;
}

.section-heading .flame {
  font-size: 29px;
}

.product-list {
  position: relative;
  z-index: 3;
  width: min(68%, 970px);
  margin-top: 60px;
}

.product-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  color: #c7cace;
  transition: color .35s ease, padding-left .4s var(--ease-out-expo), border-color .35s ease;
}

.product-list button i {
  font-size: 22px;
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity .3s ease, transform .4s var(--ease-out-expo);
}

.product-list button:hover,
.product-list button.selected {
  padding-left: 18px;
  color: var(--red);
  border-color: rgba(201, 32, 43, .35);
}

.product-list button:hover i,
.product-list button.selected i {
  opacity: 1;
  transform: translateX(0);
}

.product-visual {
  position: absolute;
  top: 50%;
  right: 5vw;
  width: min(28vw, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #b5b9bd;
  transform: translateY(-37%);
  transition: opacity .22s ease, transform .45s var(--ease-out-expo);
}

.product-visual > i {
  z-index: 2;
  color: #9fa4a8;
  font-size: clamp(105px, 11vw, 185px);
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .1));
  transition: color .4s ease, transform .55s var(--ease-out-expo);
}

.product-visual:hover > i {
  color: var(--red);
  transform: rotate(-4deg) scale(1.04);
}

.product-visual strong {
  position: absolute;
  right: 11%;
  bottom: 13%;
  z-index: 3;
  color: #1e2124;
  font-size: 24px;
}

.product-orbit {
  position: absolute;
  inset: 6%;
  border: 1px solid #d6d9dc;
  border-radius: 50%;
}

.product-orbit::before,
.product-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--red);
}

.product-orbit::before {
  top: 8%;
  right: 12%;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 9px rgba(201, 32, 43, .12);
}

.product-orbit::after {
  left: -3px;
  bottom: 28%;
  width: 6px;
  height: 6px;
}

.product-visual.is-switching {
  opacity: 0;
  transform: translateY(-34%) rotate(5deg) scale(.92);
}

.sustain-section {
  max-width: 1380px;
  margin: 130px auto;
}

.sustain-intro {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 55px;
}

.section-kicker {
  color: var(--red);
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 700;
}

.section-kicker i {
  margin-right: 9px;
}

.sustain-intro h2 {
  margin: 16px 0 0;
  font: 400 clamp(38px, 4vw, 62px)/1.04 Manrope, sans-serif;
}

.sustain-intro h2 em {
  color: var(--red);
  font-style: normal;
}

.sustain-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.sustain-cards {
  gap: 18px;
}

.sustain-cards .sustain-card {
  --pointer-x: 0px;
  --pointer-y: 0px;
  min-height: 360px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: #fff;
  border: 0;
  background-position: center;
  background-size: cover;
  isolation: isolate;
  transform: translate(var(--pointer-x), var(--pointer-y));
  transition: transform .35s var(--ease-out-expo), box-shadow .35s ease;
  overflow: hidden;
}

.sustain-cards .sustain-card:hover {
  border: 0;
  transform: translate(var(--pointer-x), calc(var(--pointer-y) - 8px));
  box-shadow: 0 26px 55px rgba(20, 25, 28, .22);
}

.sustain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  background-position: center;
  background-size: cover;
  transition: transform .8s var(--ease-out-expo);
}

.sustain-card:hover::before {
  transform: scale(1.08);
}

.sustain-card-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 10, 12, .1), rgba(6, 10, 12, .88));
}

.sustain-cards .sustain-card > span {
  position: absolute;
  top: 25px;
  left: 27px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .15em;
}

.sustain-icon {
  margin-bottom: auto;
  font-size: 43px;
  transform: translateY(42px);
  transition: transform .5s var(--ease-out-expo);
}

.sustain-card:hover .sustain-icon {
  transform: translateY(34px) scale(1.08);
}

.sustain-cards .sustain-card h3 {
  max-width: 270px;
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.sustain-card .card-arrow {
  position: absolute;
  right: 27px;
  bottom: 33px;
  font-size: 20px;
  transition: transform .35s ease;
}

.sustain-card:hover .card-arrow {
  transform: translateX(8px);
}

.factory-video {
  position: relative;
  height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
  background-attachment: fixed;
  box-shadow: var(--shadow-soft);
}

.factory-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 11, 13, .5), rgba(201, 32, 43, .1));
  transition: background-color .35s ease;
}

.factory-video:hover::before {
  background-color: rgba(0, 0, 0, .17);
}

.factory-video > * {
  position: relative;
  z-index: 1;
}

.video-label {
  position: absolute;
  top: 27px;
  left: 32px;
  letter-spacing: .18em;
  font-size: 10px;
}

.play-circle {
  position: relative;
  transition: transform .4s var(--ease-out-expo), background-color .3s ease;
}

.factory-video p {
  margin: 0;
}

.play-circle::after {
  content: '';
  position: absolute;
  width: inherit;
  height: inherit;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: inherit;
  animation: playRipple 2s ease-out infinite;
}

.factory-video:hover .play-circle {
  color: var(--red);
  background: #fff;
  transform: scale(1.08);
}

.social-icons {
  display: inline-flex;
  align-items: center;
  gap: 17px;
}

.social-icons a {
  display: inline-grid;
  place-items: center;
  color: inherit;
}

.social-icons a:hover {
  color: var(--red);
  transform: translateY(-3px);
}

.inner-banner {
  overflow: hidden;
  background-attachment: fixed;
}

.inner-banner > div {
  transition: transform .8s var(--ease-out-expo), opacity .7s ease;
}

.about-photo-real {
  position: relative;
  overflow: hidden;
  background: #101416;
  box-shadow: var(--shadow-soft);
}

.about-photo-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.08);
  transition: transform 1s var(--ease-out-expo), filter .5s ease;
}

.about-photo-real:hover img {
  transform: scale(1.045);
  filter: saturate(1);
}

.about-photo-real::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 10, .7));
}

.about-photo-real .machine-label {
  z-index: 2;
}

.coded-map {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(201, 32, 43, .08), transparent 63%);
  clip-path: none;
}

.map-globe {
  color: #d9dcdf;
  font-size: clamp(190px, 25vw, 340px);
  filter: drop-shadow(0 25px 35px rgba(28, 33, 37, .12));
  animation: globeFloat 5s ease-in-out infinite;
}

.coded-map .map-node,
.coded-map .map-line {
  z-index: 2;
}

.pipeline-visual {
  background: linear-gradient(rgba(9, 13, 15, .38), rgba(9, 13, 15, .76)), url('../../public/images/energy-hero.png') center/cover;
  box-shadow: var(--shadow-soft);
}

.pipeline-visual .pipeline-ring,
.pipeline-visual .pipeline-bar,
.pipeline-visual .pipeline-glow {
  display: none;
}

.contact-form input,
.contact-form textarea {
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 12px 28px rgba(201, 32, 43, .08);
  transform: translateY(-2px);
}

.contact-form button[type="submit"] {
  position: relative;
  overflow: hidden;
}

.contact-form button[type="submit"]:hover {
  box-shadow: 0 13px 30px rgba(201, 32, 43, .28);
  transform: translateY(-3px);
}

.map-placeholder i {
  animation: locationFloat 2s ease-in-out infinite;
}

@keyframes transitionPulse {
  to { transform: translateY(-6px) scale(1.05); }
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-9px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes playRipple {
  from { opacity: .8; transform: scale(.85); }
  to { opacity: 0; transform: scale(1.65); }
}

@keyframes locationFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes globeFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@media (max-width: 1100px) {
  .product-list {
    width: 72%;
  }

  .product-visual {
    right: 1vw;
    opacity: .62;
  }

  .sustain-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 800px) {
  .hero-section {
    min-height: 620px;
  }

  .hero-grid,
  .hero-scroll {
    display: none;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(6, 10, 12, .86), rgba(6, 10, 12, .34)), linear-gradient(0deg, rgba(3, 8, 10, .6), transparent 60%);
  }

  .intro-section {
    margin: 75px auto;
  }

  .intro-image img {
    height: 330px;
  }

  .products-section {
    min-height: 570px;
    padding: 70px 24px;
  }

  .product-list {
    width: 100%;
    margin-top: 42px;
  }

  .product-list button {
    position: relative;
    z-index: 2;
    font-size: clamp(25px, 8vw, 38px);
  }

  .product-visual {
    top: auto;
    right: -40px;
    bottom: 5px;
    width: 260px;
    opacity: .12;
    transform: none;
  }

  .product-visual.is-switching {
    transform: rotate(6deg) scale(.9);
  }

  .sustain-section {
    margin: 80px auto;
  }

  .sustain-intro h2 {
    font-size: 38px;
  }

  .sustain-cards .sustain-card {
    min-height: 310px;
  }

  .factory-video {
    height: 330px;
    background-attachment: scroll;
  }

  .inner-banner {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition,
  .hero-background,
  .hero-copy,
  [data-reveal],
  [data-reveal] > *,
  .product-visual,
  .menu-links a {
    animation: none !important;
    transition: none !important;
  }

  .page-transition {
    display: none !important;
  }

  .js [data-reveal],
  .js [data-reveal] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
