.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: clip;
  padding-block:
    clamp(6.15rem, 11vh, 7.15rem)
    clamp(0.65rem, 1.5vh, 1rem);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  top: 5%;
  right: -18%;
  z-index: -3;
  width: min(52rem, 72vw);
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  opacity: 0.74;
  background:
    radial-gradient(
      circle,
      rgba(0, 166, 214, 0.16),
      rgba(0, 166, 214, 0.045) 36%,
      transparent 68%
    );
  filter: blur(1rem);
}

.hero__flow-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  mask-image:
    linear-gradient(
      90deg,
      black 0,
      black 55%,
      rgba(0, 0, 0, 0.46) 73%,
      transparent 95%
    );
}

.hero__flow {
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.hero__flow-line {
  fill: none;
  stroke: rgba(110, 187, 213, 0.2);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}

.hero__flow-line--2 {
  stroke: rgba(0, 166, 214, 0.3);
}

.hero__flow-line--3 {
  stroke: rgba(217, 240, 246, 0.13);
}

.hero__flow-line--4 {
  stroke: rgba(110, 187, 213, 0.16);
}

.hero__grid {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(24rem, 0.95fr);
  gap: clamp(3rem, 5vw, 5.25rem);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 3;
  display: grid;
  max-width: 44rem;
  gap: clamp(1.15rem, 2.4vh, 2rem);
}

.hero__intro {
  display: grid;
  gap: clamp(0.45rem, 1vh, 0.75rem);
}

.hero__hello {
  margin-top: clamp(0.55rem, 1.4vh, 1rem);
  color: var(--c-text-soft);
  font-family: var(--font-display);
  font-size: var(--fs-400);
  font-weight: var(--fw-semibold);
}

.hero__title {
  display: grid;
  gap: clamp(0.2rem, 0.55vh, 0.45rem);
  overflow: visible;
  font-size: clamp(2.75rem, min(5.45vw, 9.1vh), 5.85rem);
  line-height: 1.04;
}

.hero__name {
  color: var(--c-text);
  width: 110%;
}

.hero__role {
  display: block;
  overflow: visible;
  padding-block: 0.08em 0.13em;
  font-size: 0.58em;
  line-height: 1.16;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__specialty {
  position: relative;
  width: fit-content;
  margin-top: clamp(0.25rem, 0.65vh, 0.55rem);
  padding-left: 2.75rem;
  color: var(--c-text-soft);
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  font-weight: var(--fw-medium);
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.hero__specialty::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 2rem;
  height: 2px;
  content: "";
  background: var(--g-main);
  border-radius: var(--r-pill);
  box-shadow: 0 0 0.7rem rgba(0, 166, 214, 0.38);
}

.hero__lead {
  max-width: 39rem;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.hero__actions {
  gap: var(--sp-3);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  color: var(--c-muted);
  font-size: var(--fs-200);
}

.hero__proof li {
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
}

.hero__proof-dot {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  background: var(--c-main);
  border-radius: 50%;
  box-shadow: 0 0 0.65rem rgba(0, 166, 214, 0.68);
}

.hero__visual {
  --gear-size: 86%;
  --gear-side: 7%;
  --rim-side: 16.245%;
  --rim-bottom: 11.245%;

  position: relative;
  width: min(100%, 34rem, 62vh);
  height: auto;
  aspect-ratio: 1;
  min-height: 0;
  justify-self: end;
  margin: 0;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  right: 6%;
  bottom: 4%;
  left: 6%;
  z-index: -3;
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.86;
  background:
    radial-gradient(
      circle,
      rgba(0, 166, 214, 0.24),
      rgba(0, 166, 214, 0.08) 42%,
      transparent 70%
    );
  filter: blur(1.5rem);
  transform: scale(1);
  transition:
    opacity 1200ms var(--ease),
    transform 1200ms var(--ease);
}

.hero__gear {
  position: absolute;
  right: var(--gear-side);
  bottom: 2%;
  left: var(--gear-side);
  z-index: -1;
  width: var(--gear-size);
  margin-inline: auto;
  overflow: visible;
  color: var(--c-main-2);
  filter:
    drop-shadow(0 1.2rem 2.3rem rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 1.2rem rgba(0, 166, 214, 0.19));
  transform: rotate(0) scale(1);
  transform-origin: center;
  transition:
    opacity 1100ms var(--ease),
    transform 1450ms var(--ease);
}

.hero__gear-teeth {
  fill: rgba(0, 166, 214, 0.18);
  stroke: rgba(110, 187, 213, 0.42);
  stroke-width: 1.5;
}


.hero__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero__portrait {
  position: absolute;
  top: 2%;
  right: var(--rim-side);
  bottom: var(--rim-bottom);
  left: var(--rim-side);
  z-index: 2;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: url("#portrait-curve");
  -webkit-clip-path: url("#portrait-curve");
  opacity: 1;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition:
    opacity 1150ms var(--ease),
    filter 1250ms var(--ease),
    transform 1500ms var(--ease);
}

.hero__portrait::before {
  display: none;
}

.hero__portrait::after {
  display: none;
}

.hero__portrait img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  visibility: visible;
  opacity: 1;
  background: transparent;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.96) contrast(1.04);
  mix-blend-mode: normal;
  transform: scale(1.25);
  transform-origin: center bottom;
}

.hero__icons {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__icon {
  position: absolute;
  display: grid;
  width: var(--icon-size, clamp(2.55rem, 3.8vw, 3.35rem));
  aspect-ratio: 1;
  place-items: center;
  color: var(--c-main-soft);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(31, 37, 46, 0.9);
  border: 1px solid rgba(110, 187, 213, 0.32);
  border-radius: 50%;
  box-shadow:
    var(--sh-sm),
    0 0 1.15rem rgba(0, 166, 214, 0.17);
  opacity: 1;
  backdrop-filter: blur(12px);
  transform: translate(0, 0) scale(1);
  transition:
    opacity 720ms var(--ease),
    transform 1080ms var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  transition-delay: var(--delay, 0ms);
}

.hero__icon svg {
  width: 48%;
  height: 48%;
}

.hero__icon--waves {
  top: 19%;
  left: -2%;
  --float-x: 0.25rem;
  --float-y: -0.58rem;
  --float-r: -1.1deg;
}

.hero__icon--fan {
  top: 7%;
  right: 4%;
  --icon-size: clamp(2.7rem, 4vw, 3.5rem);
  --float-x: -0.25rem;
  --float-y: -0.68rem;
  --float-r: 1.4deg;
}

.hero__icon--gauge {
  top: 45%;
  left: -7%;
  --icon-size: clamp(2.45rem, 3.65vw, 3.15rem);
  --float-x: 0.30rem;
  --float-y: -0.59rem;
  --float-r: 1deg;
}

.hero__icon--factory {
  top: 48%;
  right: -8%;
  --icon-size: clamp(2.65rem, 4.05vw, 3.45rem);
  --float-x: -0.28rem;
  --float-y: -0.63rem;
  --float-r: -1.2deg;
}

.hero__icon--drops {
  bottom: 2%;
  left: 8%;
  --icon-size: clamp(2.45rem, 3.6vw, 3.05rem);
  --float-x: 0.20rem;
  --float-y: -0.55rem;
  --float-r: 1.1deg;
}

.hero__icon--atom {
  right: 8%;
  bottom: 2%;
  --icon-size: clamp(2.75rem, 4.1vw, 3.55rem);
  --float-x: -0.30rem;
  --float-y: -0.64rem;
  --float-r: -1.5deg;
}

.hero__icon--thermometer {
  top: 2%;
  left: 8%;
  --icon-size: clamp(2.25rem, 3.3vw, 2.85rem);
  --float-x: 0.18rem;
  --float-y: -0.59rem;
  --float-r: 0.8deg;
}

.hero__icon--wind {
  top: 27%;
  right: -3%;
  --icon-size: clamp(2.25rem, 3.4vw, 2.95rem);
  --float-x: -0.30rem;
  --float-y: -0.47rem;
  --float-r: 1.3deg;
}

.hero__icon--route {
  right: -4%;
  bottom: 20%;
  --icon-size: clamp(2.25rem, 3.35vw, 2.9rem);
  --float-x: -0.20rem;
  --float-y: -0.59rem;
  --float-r: -1deg;
}

.hero__icon--cog {
  bottom: 18%;
  left: -3%;
  --icon-size: clamp(2.35rem, 3.5vw, 3rem);
  --float-x: 0.27rem;
  --float-y: -0.49rem;
  --float-r: 1.35deg;
}

.hero__base {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(0.25rem, 1vh, 0.75rem);
  padding-top: clamp(0.55rem, 1.1vh, 0.9rem);
  border-top: 1px solid rgba(217, 240, 246, 0.09);
}

.hero__base p,
.hero__scroll {
  color: var(--c-muted);
  font-size: var(--fs-200);
}

.hero__scroll {
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
  text-decoration: none;
}

.hero__scroll span {
  color: var(--c-main-2);
  animation: hero-scroll-cue 1.45s ease-in-out 1.6s infinite alternate;
}

.hero__anchor {
  position: absolute;
  bottom: 0;
}

/* Entrance states */

.js.hero-pending .hero__flow-line {
  opacity: 0;
  stroke-dashoffset: 1;
}

.hero-settled .hero__flow-line--1 {
  animation: hero-flow-draw 3200ms var(--ease) 160ms both;
}

.hero-settled .hero__flow-line--2 {
  animation: hero-flow-draw 3450ms var(--ease) 320ms both;
}

.hero-settled .hero__flow-line--3 {
  animation: hero-flow-draw 3700ms var(--ease) 480ms both;
}

.hero-settled .hero__flow-line--4 {
  animation: hero-flow-draw 3950ms var(--ease) 640ms both;
}

.js.hero-pending .hero__copy > * {
  opacity: 0;
  transform: translateY(1.2rem);
}

.hero__copy > * {
  transition:
    opacity 900ms var(--ease),
    transform 1050ms var(--ease);
}

.hero__copy > :nth-child(1) {
  transition-delay: 180ms;
}

.hero__copy > :nth-child(2) {
  transition-delay: 410ms;
}

.hero__copy > :nth-child(3) {
  transition-delay: 640ms;
}

.hero__copy > :nth-child(4) {
  transition-delay: 870ms;
}

.js.hero-pending .hero__gear {
  opacity: 0;
  transform: rotate(-9deg) scale(0.86);
}

.js.hero-pending .hero__portrait {
  opacity: 0;
  filter: blur(0.75rem);
  transform: translateY(1.4rem) scale(0.95);
}

.js.hero-pending .hero__glow {
  opacity: 0;
  transform: scale(0.7);
}

.js.hero-pending .hero__icon {
  opacity: 0;
  transform:
    translate(var(--in-x), var(--in-y))
    scale(0.36)
    rotate(-12deg);
}

.hero-settled .hero__icon {
  animation:
    hero-icon-float var(--float-dur, 3.3s) ease-in-out
    calc(var(--delay, 0ms) + 1250ms) infinite alternate;
}

.hero__icon:nth-child(2n) {
  --float-dur: 3.85s;
}

.hero__icon:nth-child(3n) {
  --float-dur: 4.35s;
}

@keyframes hero-flow-draw {
  from {
    opacity: 0;
    stroke-dashoffset: 1;
  }

  35% {
    opacity: 0.82;
  }

  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes hero-flow-idle {
  from {
    opacity: 0.64;
    transform: translate3d(-0.45%, 0, 0);
  }

  to {
    opacity: 0.95;
    transform: translate3d(0.45%, -0.4%, 0);
  }
}

@keyframes hero-icon-float {
  from {
    transform: translate3d(0, 0, 0) rotate(0);
  }

  to {
    transform:
      translate3d(var(--float-x, 0.16rem), var(--float-y, -0.4rem), 0)
      rotate(var(--float-r, 1.2deg));
  }
}

@keyframes hero-scroll-cue {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(0.22rem);
  }
}

@media (max-width: 68rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
    gap: clamp(1.25rem, 3vw, 2.7rem);
  }

  .hero__visual {
    width: min(100%, 33rem, 61vh);
  }

  .hero__title {
    font-size: clamp(2.65rem, min(5.2vw, 8.5vh), 5.2rem);
  }
  
  .hero__name {
    width: 90%;
  }
}

@media (max-width: 54rem) {
  .hero {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: var(--sp-5);
  }

  .hero__flow-wrap {
    top: 28%;
    right: 0;
    bottom: auto;
    left: 0;
    height: 32%;
    opacity: 0.78;
    mask-image:
      linear-gradient(
        180deg,
        transparent 0,
        black 20%,
        black 82%,
        transparent 100%
      );
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 42rem;
  }

  .hero__title {
    font-size: clamp(3rem, 11vw, 5.5rem);
  }

  .hero__visual {
    width: min(100%, 31rem);
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
    margin-top: var(--sp-4);
  }

  .hero__base {
    align-items: flex-start;
    flex-direction: column;
    margin-top: var(--sp-8);
  }
}

@media (max-width: 34rem) {
  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__proof {
    display: grid;
  }

  .hero__visual {
    width: min(100%, 29rem);
    height: auto;
  }

  .hero__icon {
    --icon-size: 2.45rem;
  }

  .hero__icon--gauge,
  .hero__icon--cog {
    left: -2%;
  }

  .hero__icon--factory,
  .hero__icon--wind,
  .hero__icon--route {
    right: -2%;
  }

  .hero__icon--thermometer {
    left: 7%;
  }

  .hero__icon--drops {
    left: 6%;
  }

  .hero__icon--atom {
    right: 6%;
  }
}
