/* ======================================================
   HERO SECTION
====================================================== */

#hero-section-1 {
  position: relative;
  isolation: isolate;

  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  padding: 104px clamp(20px, 5vw, 64px) 36px;
}

#hero-section-1::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;

  width: 1px;
  height: 100%;

  background: linear-gradient(to bottom,
      transparent,
      rgb(var(--theme-primary-rgb) / 0.3),
      transparent);
}


/* ======================================================
   HERO BLOCK LAYOUT
====================================================== */

.hero-block {
  position: absolute;
}

.hero-block--background {
  inset: 0;
}


/* ======================================================
   HERO BACKGROUND
====================================================== */

.hero-background {
  position: absolute;
  inset: 0;

  pointer-events: none;
  z-index: 0;
}

.hero-background-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ======================================================
   HERO CHARACTER STAGE
====================================================== */

.hero-character-block {
  position: absolute;
  left: 55%;
  bottom: -120px;
  z-index: 1;

  width: min(50vw, 860px);
  height: min(86svh, 920px);

  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateX(-50%);
}

.hero-character-stage {
  position: relative;
  isolation: isolate;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-character-stage::before {
  content: '';
  position: absolute;
  left: 52%;
  top: 18%;
  z-index: 0;

  width: 92%;
  height: 78%;

  border-radius: 999px;
  background: radial-gradient(ellipse,
      rgb(var(--theme-primary-rgb) / 0.48) 0%,
      rgb(var(--theme-primary-rgb) / 0.26) 34%,
      rgb(var(--theme-primary-rgb) / 0.09) 62%,
      transparent 76%);
  filter: blur(58px);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-character-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4%;
  z-index: 0;

  width: 84%;
  height: 11%;

  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse,
      rgb(var(--theme-primary-rgb) / 0.32) 0%,
      rgb(var(--theme-primary-rgb) / 0.1) 42%,
      transparent 78%);
  filter: blur(28px);
}

.hero-character-entry {
  position: relative;
  z-index: 2;

  width: min(122%, 1020px);

  opacity: 0;
  transform: translateY(50px) scale(0.9);
  animation: heroCharacterReveal 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-character-float {
  position: relative;
  width: 100%;
  transform-origin: center bottom;
  will-change: transform;
  animation: heroCharacterFloat 6s ease-in-out 1.45s infinite;
}

.hero-character {
  display: block;
  width: 100%;
  height: auto;

  filter:
    drop-shadow(0 32px 60px rgb(var(--theme-shadow-rgb) / 0.48)) drop-shadow(0 0 46px rgb(var(--theme-primary-rgb) / 0.16));
}

.hero-character-arm {
  position: absolute;
  inset: 0;
  z-index: 3;

  display: block;
  width: 100%;
  height: auto;

  pointer-events: none;
  transform-origin: var(--hero-arm-origin, 43% 82%);
  will-change: transform;
  animation: heroArmFloat 4.2s ease-in-out 1.7s infinite;
  filter:
    drop-shadow(0 18px 28px rgb(var(--theme-shadow-rgb) / 0.32)) drop-shadow(0 0 16px rgb(var(--theme-primary-rgb) / 0.18));
}

.hero-character-arm[hidden] {
  display: none;
}

.hero-character--blink {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  filter: none;
  animation: heroBlink 8s steps(1, end) 2s infinite;
}


/* ======================================================
   HERO INTRO BLOCK
====================================================== */

.hero-intro-block {
  position: absolute;
  top: clamp(170px, 21vh, 216px);
  left: clamp(88px, 7vw, 138px);
  z-index: 3;

  width: min(700px, 43vw);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* ======================================================
   HERO EYEBROW
====================================================== */

.hero-eyebrow {
  position: relative;
  width: min(430px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(16px, 2.3vh, 24px);
}

.hero-eyebrow-icon {
  font-family: var(--font-rajdhani);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.7vw, 1.8rem);
  line-height: 1;
  color: rgb(var(--theme-blue-rgb));
  text-shadow: 0 0 18px rgb(var(--theme-blue-rgb) / 0.54);
}

.hero-eyebrow-label {
  font-family: var(--font-barlow-condensed);
  font-size: clamp(0.95rem, 1.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple);
  text-shadow: 0 0 16px rgb(var(--theme-primary-rgb) / 0.42);
  white-space: nowrap;
}

.hero-eyebrow-rule {
  flex: 1 1 auto;
  min-width: clamp(170px, 15vw, 280px);
  height: 1px;
  background: linear-gradient(90deg,
      rgb(var(--theme-text-rgb) / 0.82),
      rgb(var(--theme-text-rgb) / 0.2));
}


/* ======================================================
   HERO TITLE
====================================================== */

.hero-title {
  position: relative;
  margin-bottom: clamp(2px, 0.8vh, 8px);
  padding-bottom: clamp(8px, 1.4vw, 22px);
  line-height: 1;
}

.hero-name {
  display: block;
  font-family: var(--font-bebas-neue);
  font-weight: 400;
  font-size: clamp(10rem, 11.6vw, 13.4rem);
  letter-spacing: 0;
  line-height: 0.82;
  color: rgb(var(--theme-text-rgb));
  transform: skewX(-7deg);
  transform-origin: left center;
}


/* ======================================================
   HERO DESCRIPTION
====================================================== */

.hero-description {
  max-width: 390px;
  margin-bottom: clamp(28px, 4vh, 44px);

  font-family: var(--font-dm-sans);
  font-size: clamp(1rem, 1.12vw, 1.18rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgb(var(--theme-text-rgb) / 0.9);
  text-shadow: 0 0 18px rgb(var(--theme-text-rgb) / 0.08);
}

.hero-description-accent {
  color: inherit;
}

.hero-description-break {
  display: block;
}


/* ======================================================
   HERO BOTTOM HUD
====================================================== */

.hero-footer-rail {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;

  width: 100%;
  height: 66px;
  padding: 0 clamp(44px, 3.8vw, 72px);

  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 34px);

  border-top: 1px solid rgb(var(--theme-primary-rgb) / 0.34);
  background:
    linear-gradient(90deg, rgb(var(--theme-text-rgb) / 0.24), transparent 120px) left top / 170px 1px no-repeat,
    linear-gradient(90deg, transparent, var(--purple), transparent) 54% top / 230px 2px no-repeat,
    rgb(var(--theme-bg-deep-rgb));
  box-shadow:
    0 0 0 1px rgb(var(--theme-text-rgb) / 0.03) inset,
    0 -10px 34px rgb(var(--theme-shadow-rgb) / 0.48),
    0 0 24px rgb(var(--theme-primary-rgb) / 0.1);
}

.hero-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-family: var(--font-rajdhani);
  font-size: clamp(0.66rem, 0.78vw, 0.82rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--theme-text-rgb) / 0.68);
  white-space: nowrap;
}

.hero-footer-item--accent {
  color: var(--purple);
}

.hero-footer-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.88;
}

.hero-footer-separator {
  width: 1px;
  height: 14px;
  background: rgb(var(--theme-text-rgb) / 0.26);
}

.hero-footer-barcode {
  width: clamp(54px, 5vw, 86px);
  height: 18px;
  opacity: 0.42;
  background: repeating-linear-gradient(90deg,
      rgb(var(--theme-text-rgb) / 0.72) 0 1px,
      transparent 1px 4px,
      rgb(var(--theme-text-rgb) / 0.72) 4px 6px,
      transparent 6px 9px);
}


/* ======================================================
   HERO STATS
====================================================== */

.hero-stats-panel {
  position: absolute;
  right: clamp(40px, 4.8vw, 88px);
  bottom: clamp(20px, 3.8vh, 52px);
  z-index: 4;

  width: min(780px, 46vw);
  min-height: 122px;
  padding: 22px clamp(24px, 2.2vw, 38px);

  border: 1px solid rgb(var(--theme-primary-rgb) / 0.48);
  clip-path: polygon(5.5% 0,
      100% 0,
      100% calc(100% - 18px),
      calc(100% - 22px) 100%,
      0 100%,
      0 26px);
  background:
    linear-gradient(90deg, transparent 0 28px, rgb(var(--theme-text-rgb) / 0.32) 28px 92px, transparent 92px) left bottom / 150px 1px no-repeat,
    linear-gradient(90deg, transparent, var(--purple), transparent) 58% top / 190px 2px no-repeat,
    linear-gradient(90deg, transparent, var(--purple), transparent) 70% bottom / 260px 2px no-repeat,
    rgb(var(--theme-bg-deep-rgb));
  box-shadow:
    0 0 0 1px rgb(var(--theme-text-rgb) / 0.04) inset,
    0 0 34px rgb(var(--theme-primary-rgb) / 0.14),
    0 18px 44px rgb(var(--theme-shadow-rgb) / 0.58);
}

.hero-stats-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.3vw, 36px);
}

.hero-stat {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 78px;
  padding-left: clamp(58px, 4.5vw, 78px);
  display: grid;
  align-content: center;
  text-align: left;
}

.hero-stat::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -18px;
  width: 1px;
  height: 74px;
  background: linear-gradient(180deg,
      transparent,
      rgb(var(--theme-text-rgb) / 0.24),
      transparent);
  transform: translateY(-50%) skewX(-14deg);
}

.hero-stat:last-child::before {
  content: none;
}

.hero-stat-icon {
  position: absolute;
  display: block;
  left: 0;
  top: 50%;

  width: clamp(38px, 3.2vw, 52px);
  height: clamp(38px, 3.2vw, 52px);

  transform: translateY(-50%);
  filter: drop-shadow(0 0 12px rgb(var(--theme-primary-rgb) / 0.3));
}

.hero-stat-value {
  margin-bottom: 10px;
  font-family: var(--font-rajdhani);
  font-weight: 700;
  font-size: clamp(2.6rem, 3.6vw, 4rem);
  line-height: 0.9;
  color: rgb(var(--theme-text-rgb));
  white-space: nowrap;
}

.hero-stat-counter {
  display: inline-block;
  min-width: 1.2ch;
  color: rgb(var(--theme-text-rgb));
}

.hero-stat-value>span:last-child {
  color: var(--purple);
}

.hero-stat-label {
  max-width: 110px;
  font-family: var(--font-rajdhani);
  font-size: clamp(0.72rem, 0.85vw, 0.92rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--theme-text-rgb) / 0.7);
  text-align: left;
}


/* ======================================================
   ANIMATION
====================================================== */

@keyframes heroCharacterReveal {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroCharacterFloat {

  0%,
  100% {
    transform: rotate(0deg);
  }

  33% {
    transform: translate3d(0, -18px, 0) rotate(0.55deg);
  }

  66% {
    transform: translate3d(0, -8px, 0) rotate(-0.38deg);
  }
}

@keyframes heroArmFloat {

  0%,
  100% {
    transform: rotate(0deg);
  }

  35% {
    transform: rotate(5.5deg);
  }

  70% {
    transform: rotate(0deg);
  }
}

@keyframes heroBlink {

  0%,
  4%,
  4.8%,
  39%,
  40%,
  40.8%,
  72%,
  73%,
  73.6%,
  100% {
    opacity: 0;
  }

  4.2%,
  4.5%,
  39.4%,
  39.7%,
  72.4%,
  72.8% {
    opacity: 1;
  }
}


/* ======================================================
   RESPONSIVE — DESKTOP TWEAK
====================================================== */

@media (max-width: 1280px) {
  .hero-character-block {
    left: 56%;
    width: min(54vw, 790px);
    height: min(84svh, 860px);
  }

  .hero-intro-block {
    top: clamp(160px, 20vh, 196px);
    left: clamp(54px, 5.8vw, 88px);
    width: min(640px, 50vw);
  }

  .hero-name {
    font-size: clamp(7.8rem, 10.5vw, 10.2rem);
  }

  .hero-description {
    max-width: 360px;
    font-size: clamp(0.86rem, 1vw, 0.98rem);
  }

  .hero-stats-panel {
    width: min(500px, 42vw);
  }
}


/* ======================================================
   RESPONSIVE — TABLET / MOBILE LAYOUT SWITCH
   Stack order: content → character → stats → footer
====================================================== */

@media (max-width: 1024px) {
  #hero-section-1 {
    min-height: auto;
    height: auto;
    overflow-x: hidden;
    padding: 120px 24px 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 105% 70% at 62% 44%,
        rgb(var(--theme-primary-rgb) / 0.22),
        transparent 58%),
      linear-gradient(180deg,
        rgb(var(--theme-bg-deep-rgb) / 0.34),
        rgb(var(--theme-bg-deep-rgb) / 0.08) 34%,
        rgb(var(--theme-bg-deep-rgb) / 0.58));
  }

  .hero-background-img {
    object-position: 58% top;
  }

  /* Block resets — drop absolute positioning */
  .hero-block {
    position: relative;
  }

  .hero-block--background {
    position: absolute;
    inset: 0;
  }

  .hero-intro-block {
    top: auto;
    left: auto;
    order: 1;

    width: min(680px, 100%);
    align-items: flex-start;
    text-align: left;
  }

  .hero-name {
    font-size: clamp(5.4rem, 16vw, 9.4rem);
  }

  .hero-description {
    max-width: 560px;
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    line-height: 1.65;
  }

  /* Character — full bleed beneath copy, dominant size */
  .hero-character-block {
    left: auto;
    bottom: auto;
    order: 2;

    width: 100%;
    height: auto;
    margin-inline: auto;
    transform: none;
  }

  .hero-character-stage {
    height: auto;
    aspect-ratio: 0.55;
    align-items: flex-start;
    overflow: hidden;
  }

  .hero-character-entry {
    width: min(260%, 2200px);
  }

  /* Stats — below character, full width */
  .hero-stats-panel {
    right: auto;
    bottom: auto;
    order: 3;

    width: 100%;
    max-width: 760px;
    min-height: 118px;
    margin-inline: auto;
    padding: 20px;

    display: flex;
    justify-content: center;
  }

  .hero-stats-list {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .hero-stat {
    min-height: 72px;
    padding-left: 48px;
  }

  .hero-stat-icon {
    width: 36px;
    height: 36px;
  }

  /* Footer rail — bottom of the section */
  .hero-footer-rail {
    left: auto;
    bottom: auto;
    order: 4;

    width: 100%;
    height: auto;
    min-height: 54px;
    padding: 14px 18px;

    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    background: rgb(var(--theme-bg-deep-rgb) / 0.74);
  }
}


/* ======================================================
   RESPONSIVE — TABLET PORTRAIT
====================================================== */

@media (max-width: 768px) {
  #hero-section-1 {
    padding: 94px 20px 0;
    gap: 12px;
  }

  .hero-intro-block {
    width: min(560px, 100%);
  }

  .hero-eyebrow {
    margin-bottom: 26px;
  }

  .hero-description {
    max-width: 250px;
    font-size: clamp(0.86rem, 2.5vw, 1rem);
    line-height: 1.75;
  }

  .hero-description-accent {
    display: block;
    margin-top: 0.35em;
  }

  .hero-description-break {
    display: none;
  }

  .hero-stat {
    padding-left: 42px;
  }
}


/* ======================================================
   RESPONSIVE — PHONE
====================================================== */

@media (max-width: 640px) {
  #hero-section-1 {
    padding: 86px 16px 0;
    gap: 8px;
  }

  .hero-name {
    font-size: clamp(3.95rem, 15vw, 6.2rem);
  }

  .hero-title {
    padding-bottom: clamp(8px, 3vw, 18px);
  }

  /* Character bleeds to viewport edge, dominant scale */
  .hero-character-block {
    width: 150vw;
    margin-top: -230px;
    margin-bottom: -76px;
    margin-inline: -18vw -32vw;
    height: clamp(560px, 146vw, 760px);
    overflow: hidden;
  }

  .hero-character-stage {
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-character-entry {
    width: min(220%, 1300px);
    margin-top: -24px;
    transform: translateY(-24px) scale(0.9);
  }

  .hero-stats-panel {
    width: calc(100% - 12px);
    max-width: none;
    min-height: 104px;
    margin-top: -28px;
    margin-inline: auto;
    padding: 16px 12px;
    overflow: hidden;
  }

  /* Stats — compact, icon stacked above */
  .hero-stats-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-stat {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    align-items: center;
    text-align: center;
    justify-items: center;
  }

  .hero-stat-icon {
    position: relative;
    left: auto;
    top: auto;
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
    transform: none;
  }

  .hero-stat-value {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
    text-align: center;
  }

  .hero-stat-label {
    max-width: 84px;
    font-size: 0.6rem;
    letter-spacing: 0.13em;
    text-align: center;
  }
}


/* ======================================================
   RESPONSIVE — SMALL PHONE
====================================================== */

@media (max-width: 480px) {
  #hero-section-1 {
    padding: 82px 14px 0;
    gap: 8px;
  }

  .hero-background-img {
    object-position: 62% top;
  }

  .hero-intro-block {
    width: 100%;
  }

  .hero-eyebrow {
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-eyebrow-icon {
    font-size: 2rem;
  }

  .hero-eyebrow-label {
    font-size: 1.1rem;
    letter-spacing: 0.18em;
  }

  .hero-eyebrow-rule {
    min-width: 28px;
  }

  .hero-name {
    font-size: clamp(3.2rem, 18vw, 4.9rem);
  }

  .hero-description {
    max-width: 205px;
    font-size: clamp(0.78rem, 3.45vw, 0.9rem);
    line-height: 1.82;
  }

  /* Character — full bleed on small phones, max prominence */
  .hero-character-block {
    width: 165vw;
    margin-top: -270px;
    margin-bottom: -92px;
    margin-inline: -24vw -41vw;
    height: clamp(590px, 158vw, 800px);
    overflow: hidden;
  }

  .hero-character-stage {
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-character-entry {
    width: min(245%, 1350px);
    margin-top: -30px;
    transform: translateY(-30px) scale(0.9);
  }

  .hero-stats-panel {
    margin-top: -32px;
    padding: 14px 10px;
  }

  .hero-stats-list {
    gap: 8px;
  }

  .hero-stat {
    min-height: 0;
  }

  .hero-stat-value {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
  }

  .hero-stat-label {
    max-width: 68px;
    font-size: 0.58rem;
  }

  .hero-footer-rail {
    padding: 12px 14px;
    gap: 12px;
  }

  .hero-footer-item {
    font-size: 0.62rem;
  }
}


/* ======================================================
   REDUCED MOTION
====================================================== */

@media (prefers-reduced-motion: reduce) {

  .hero-character-entry,
  .hero-character-float,
  .hero-character-arm {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-character--blink {
    animation: none;
    opacity: 0;
  }
}
