/* Hero Section — Ensteel / AEROC INDAY style */
.hero-section {
  --hero-header-max: 1680px;
  --hero-header-pad: clamp(1.25rem, 2.5vw, 2rem);
  --hero-header-inset: calc((100vw - min(100vw, var(--hero-header-max))) / 2 + var(--hero-header-pad));
  --hero-gutter: clamp(24px, 5vw, 88px);
  --hero-pad-left: clamp(72px, 11vw, 160px);
  --hero-pad-right: clamp(20px, 4vw, 56px);
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 768px) {
  .hero-section {
    --hero-header-pad: clamp(1.5rem, 3vw, 3rem);
  }
}

.hero-bg-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-title-enter {
  animation: heroTitleIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-bg-layer.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-bg-layer:not(.is-active) {
  opacity: 0;
  z-index: 0;
}

.hero-bg-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1);
  will-change: transform;
  backface-visibility: hidden;
}

.hero-bg-layer[data-slide="cosmetic"] .hero-bg-inner {
  filter: brightness(0.82);
}

.hero-bg-layer.is-active .hero-bg-inner {
  animation: heroBgZoomOut 4.8s ease-out forwards;
}

.hero-bg-layer:not(.is-active) .hero-bg-inner {
  animation: none;
  transform: scale(1);
}

@keyframes heroBgZoomOut {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1);
  }
}

.hero-bg-left-fade {
  position: absolute;
  inset-block: 0;
  left: 0;
  z-index: 2;
  width: min(720px, 55vw);
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.22) 40%,
    transparent 100%
  );
}

.hero-bg-dim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.08);
}

.hero-top-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
}

.hero-content {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  max-width: min(980px, 62vw);
  margin: 0;
  margin-left: var(--hero-gutter);
  padding:
    calc(80px + clamp(96px, 13vh, 136px))
    var(--hero-pad-right)
    clamp(160px, 20vh, 200px)
    var(--hero-pad-left);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}

.hero-content a,
.hero-content button {
  pointer-events: auto;
}

.hero-sub-label {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.95;
  margin-bottom: clamp(10px, 1.8vh, 18px);
}

.hero-title-wrap {
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  line-height: 1;
  padding-bottom: 0.04em;
}

.hero-title {
  margin: 0;
  font-size: clamp(4rem, 9.5vw, 7rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
}

.hero-rule-wrap {
  position: relative;
  width: clamp(440px, 64vw, 640px);
  height: 14px;
  margin: clamp(18px, 2.8vh, 30px) 0;
  overflow: visible;
}

.hero-rule-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 6%,
    rgba(255, 255, 255, 0.14) 22%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.14) 78%,
    rgba(255, 255, 255, 0.05) 94%,
    transparent 100%
  );
}

.hero-rule-drag {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  will-change: transform;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 12%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.35) 88%,
    transparent 100%
  );
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.65),
    0 0 18px rgba(255, 255, 255, 0.28);
  transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-rule-drag::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 10px;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  filter: blur(4px);
  z-index: -1;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 40px);
  flex-wrap: wrap;
}

.hero-view {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

@media (min-width: 640px) {
  .hero-view {
    display: inline-flex;
  }
}

.hero-view:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.04);
}

.hero-mobile-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-mobile-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.02);
}

@media (min-width: 640px) {
  .hero-mobile-cta {
    display: none;
  }
}

.hero-view-ring {
  position: absolute;
  inset: 4px;
  animation: heroViewSpin 18s linear infinite;
}

.hero-view-ring svg {
  width: 100%;
  height: 100%;
}

.hero-view-ring-text {
  fill: #fff;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-view-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
}

@keyframes heroViewSpin {
  to {
    transform: rotate(360deg);
  }
}

.hero-description {
  margin: 0;
  max-width: 28em;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 600;
  opacity: 0.96;
  white-space: pre-line;
  color: #fff;
}

.hero-description--mobile {
  display: none;
}

/* Hero dock — wave stepped tabs */
.hero-dock {
  --hero-dock-bar-h: 72px;
  --hero-dock-near3-h: 72px;
  --hero-dock-near2-h: 98px;
  --hero-dock-near1-h: 124px;
  --hero-dock-active-h: 162px;
  --hero-dock-pop: calc(var(--hero-dock-active-h) - var(--hero-dock-bar-h));
  --hero-dock-accent: #111111;
  --hero-dock-inactive-bg: rgba(16, 18, 22, 0.68);
  --hero-dock-radius: 14px;
  position: absolute;
  left: var(--hero-header-inset);
  right: var(--hero-header-inset);
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  gap: 0;
  width: auto;
  max-width: none;
  transform: none;
  padding: var(--hero-dock-pop) 0 0 0;
  min-height: var(--hero-dock-bar-h);
  overflow: visible;
  background: transparent;
  box-sizing: border-box;
  pointer-events: auto;
}

.hero-dock-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: flex-end;
  gap: 0;
  flex: 1;
  width: 100%;
  min-width: 0;
  height: var(--hero-dock-active-h);
  overflow: hidden;
  scrollbar-width: none;
  background: transparent;
}

.hero-dock-track::-webkit-scrollbar {
  display: none;
}

.hero-dock-item {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: block;
  height: var(--hero-dock-active-h);
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  margin: 0;
  text-decoration: none;
  touch-action: manipulation;
}

.hero-dock-surface {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--hero-dock-bar-h);
  padding: 0 clamp(14px, 2vw, 28px);
  background: transparent;
  color: inherit;
  border-radius: 0;
  overflow: hidden;
  will-change: height, background-color;
  backface-visibility: hidden;
  transition:
    height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-dock-en {
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.96;
  line-height: 1;
  transition: opacity 0.28s ease;
}

.hero-dock-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  gap: clamp(16px, 2.2vh, 22px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.hero-dock-ko {
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.15;
  text-align: center;
  width: 100%;
}

.hero-dock-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-dock-arrow-icon {
  width: 20px;
  height: 20px;
}

.hero-dock-item:not(.is-active) .hero-dock-surface {
  background: var(--hero-dock-inactive-bg);
  height: var(--hero-dock-bar-h);
}

.hero-dock-item.is-active {
  z-index: 2;
  cursor: default;
}

.hero-dock-item.is-active .hero-dock-surface {
  z-index: 2;
  height: var(--hero-dock-active-h);
  padding: clamp(24px, 3vh, 32px) clamp(18px, 2.4vw, 28px) clamp(20px, 2.6vh, 28px);
  background-color: var(--hero-dock-accent);
  color: #fff;
  justify-content: center;
  align-items: center;
}

.hero-dock-item.is-active .hero-dock-active {
  height: auto;
  flex: 0 0 auto;
  opacity: 1;
  visibility: visible;
  position: static;
  pointer-events: auto;
}

.hero-dock-item.is-active .hero-dock-arrow svg,
.hero-dock-item.is-active .hero-dock-arrow-icon {
  width: 20px;
  height: 20px;
}

.hero-dock-item.is-active .hero-dock-en {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.hero-dock-item:not(.is-active) .hero-dock-active {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-dock-item {
    overflow: visible;
  }

  .hero-dock-surface {
    box-sizing: border-box;
  }

  .hero-dock-item.is-near-1:not(.is-active) {
    z-index: 2;
  }

  .hero-dock-item.is-near-2:not(.is-active),
  .hero-dock-item.is-near-3:not(.is-active) {
    z-index: 1;
  }

  .hero-dock-item.is-active {
    z-index: 3;
  }

  .hero-dock-item.is-active .hero-dock-surface {
    z-index: 3;
  }

  .hero-dock-item.is-near-1:not(.is-active) .hero-dock-surface {
    height: var(--hero-dock-near1-h);
  }

  .hero-dock-item.is-near-2:not(.is-active) .hero-dock-surface {
    height: var(--hero-dock-near2-h);
  }

  .hero-dock-item.is-near-3:not(.is-active) .hero-dock-surface {
    height: var(--hero-dock-near3-h);
  }

  .hero-dock-item.is-active .hero-dock-surface,
  .hero-dock-item.is-near-1:not(.is-active) .hero-dock-surface,
  .hero-dock-item.is-near-2:not(.is-active) .hero-dock-surface,
  .hero-dock-item.is-near-3:not(.is-active) .hero-dock-surface {
    border-radius: 0;
  }

  .hero-dock-item.is-active .hero-dock-surface {
    border-top-left-radius: var(--hero-dock-radius);
    border-top-right-radius: var(--hero-dock-radius);
  }

  .hero-dock-track .hero-dock-item:first-child:not(.is-active) .hero-dock-surface {
    border-top-left-radius: var(--hero-dock-radius);
  }

  .hero-dock-track .hero-dock-item:last-child:not(.is-active) .hero-dock-surface {
    border-top-right-radius: var(--hero-dock-radius);
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 84svh;
    min-height: 460px;
    max-height: 84svh;
  }

  .hero-content {
    max-width: 100%;
    margin-left: 0;
    justify-content: center;
    align-items: flex-start;
    padding:
      calc(72px + 6vh)
      20px
      calc(112px + env(safe-area-inset-bottom, 0px))
      20px;
    transform: translateY(clamp(28px, 6vh, 64px));
  }

  .hero-sub-label {
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.02em;
    opacity: 0.88;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: clamp(2.75rem, 13vw, 3.5rem);
    line-height: 0.95;
  }

  .hero-rule-wrap {
    width: calc(100vw - 24px);
    max-width: none;
    margin: 16px calc(-50vw + 50% + 12px) 20px;
  }

  .hero-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .hero-view {
    display: inline-flex;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
  }

  .hero-view-ring-text {
    font-size: 6px;
  }

  .hero-view-arrow svg {
    width: 18px;
    height: 18px;
  }

  .hero-mobile-cta {
    display: none;
  }

  .hero-description {
    flex: 1;
    min-width: 0;
    max-width: none;
    font-size: 15px;
    line-height: 1.52;
    font-weight: 600;
    white-space: normal;
  }

  .hero-description--desktop {
    display: none;
  }

  .hero-description--mobile {
    display: block;
    font-size: 17px;
    line-height: 1.5;
    white-space: pre-line;
    margin: 0;
    align-self: center;
  }

  .hero-dock {
    --hero-dock-bar-h: 52px;
    --hero-dock-near3-h: 52px;
    --hero-dock-near2-h: 66px;
    --hero-dock-near1-h: 82px;
    --hero-dock-active-h: 112px;
    --hero-dock-radius: 10px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0;
    padding-top: calc(var(--hero-dock-active-h) - var(--hero-dock-bar-h));
    padding-left: 0;
    z-index: 50;
  }

  .hero-dock-track {
    display: flex;
    height: var(--hero-dock-active-h);
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: transparent;
  }

  .hero-dock-track::-webkit-scrollbar {
    display: none;
  }

  .hero-dock-item {
    flex: 0 0 33.333%;
    min-width: 33.333%;
    height: var(--hero-dock-active-h);
    overflow: visible;
    z-index: 1;
  }

  .hero-dock-item.is-near-1:not(.is-active) {
    z-index: 2;
  }

  .hero-dock-item.is-near-2:not(.is-active),
  .hero-dock-item.is-near-3:not(.is-active) {
    z-index: 1;
  }

  .hero-dock-item.is-active {
    flex: 0 0 33.333%;
    min-width: 33.333%;
    z-index: 3;
  }

  .hero-dock-surface {
    padding-inline: 10px;
    box-sizing: border-box;
    width: 100%;
    left: 0;
    right: 0;
  }

  .hero-dock-item.is-active .hero-dock-surface,
  .hero-dock-item.is-near-1:not(.is-active) .hero-dock-surface,
  .hero-dock-item.is-near-2:not(.is-active) .hero-dock-surface,
  .hero-dock-item.is-near-3:not(.is-active) .hero-dock-surface {
    border-radius: 0;
  }

  .hero-dock-item.is-active .hero-dock-surface {
    border-top-left-radius: var(--hero-dock-radius);
    border-top-right-radius: var(--hero-dock-radius);
  }

  .hero-dock-track .hero-dock-item:first-child:not(.is-active) .hero-dock-surface {
    border-top-left-radius: var(--hero-dock-radius);
  }

  .hero-dock-track .hero-dock-item:last-child:not(.is-active) .hero-dock-surface {
    border-top-right-radius: var(--hero-dock-radius);
  }

  .hero-dock-en {
    font-size: 11px;
    letter-spacing: 0.08em;
    opacity: 0.92;
  }

  .hero-dock-item:not(.is-active) .hero-dock-surface {
    height: var(--hero-dock-bar-h);
    background: var(--hero-dock-inactive-bg);
  }

  .hero-dock-item.is-near-1:not(.is-active) .hero-dock-surface {
    height: var(--hero-dock-near1-h);
  }

  .hero-dock-item.is-near-2:not(.is-active) .hero-dock-surface {
    height: var(--hero-dock-near2-h);
  }

  .hero-dock-item.is-near-3:not(.is-active) .hero-dock-surface {
    height: var(--hero-dock-near3-h);
  }

  .hero-dock-item.is-active .hero-dock-surface {
    height: var(--hero-dock-active-h);
    padding: 18px 12px 16px;
    z-index: 3;
  }

  .hero-dock-ko {
    font-size: 20px;
  }

  .hero-dock-item.is-active .hero-dock-active {
    gap: 16px;
  }

  .hero-dock-item.is-active .hero-dock-arrow svg,
  .hero-dock-item.is-active .hero-dock-arrow-icon {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    --hero-gutter: clamp(32px, 5vw, 80px);
  }
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Home header over hero */
.page-home .header--home {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-home .header--home .header__toggle span {
  background: #fff;
}

.page-home .header--home .lang-switch {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.page-home .header--home .lang-switch:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.page-home .header--home .header__logo img {
  filter: brightness(0) invert(1);
}

.page-home .header--home.header--scrolled {
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  border-bottom-color: transparent;
}

@media (min-width: 769px) {
  .page-home .header--home .header__link,
  .page-home .header--home .header__link--dropdown {
    color: #fff;
  }

  .page-home .header--home .header__link:hover,
  .page-home .header--home .header__link.active,
  .page-home .header--home .header__link--dropdown:hover {
    color: rgba(255, 255, 255, 0.85);
  }

  .page-home .header--home .header__submenu {
    background: rgba(8, 10, 14, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .page-home .header--home .header__sublink {
    color: rgba(255, 255, 255, 0.88);
  }

  .page-home .header--home .header__sublink:hover,
  .page-home .header--home .header__sublink.active {
    color: #fff;
  }
}
