/* ==========================================================================
   HERO SECTION STYLESHEET
   Scoped to .mj-hero (and site header alignment)
   Target Design: Exact Match to Mockup Image 2
   Headline Font: "Climate Crisis" (font-variation-settings: "YEAR" 1979)
   Chips Font: "Inter" weight 300
   Subtitle Font: "Inter" weight 500
   Background: Old hero abstract image (sl_0210121_40570_43-scaled.jpg)
   ========================================================================== */

:root {
  --nav-h: 70px;
}

/* ==========================================================================
   0. HEADER ALIGNMENT (In-flow bar above hero, seamless background)
   ========================================================================== */
#masthead {
  position: relative !important;
  z-index: 100 !important;
  width: 100% !important;
  background-color: #000000 !important;
  background-image: url("/wp-content/uploads/2026/10/sl_0210121_40570_43-scaled.jpg") !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

/* ==========================================================================
   1. FULL-BLEED HERO WRAPPER
   Carries the dark diagonal striped background edge-to-edge
   ========================================================================== */
.mj-hero {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--nav-h, 70px));
  min-height: 560px;
  margin: 0;
  padding: 0;
  background-color: #000000;
  background-image: url("/wp-content/uploads/2026/10/sl_0210121_40570_43-scaled.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-sizing: border-box;
}

/* ==========================================================================
   2. HERO STAGE CONTAINER
   Full-width transparent layout box inside the hero
   ========================================================================== */
.mj-hero .mj-hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
  box-sizing: border-box;
}

/* ==========================================================================
   3. HEADLINE ("HI, I'M" / "MARTINN")
   Scaled up ~1.4x (Line 1 ~38vw, Line 2 ~63vw), centered horizontally
   Font: "Climate Crisis" with solid variation "YEAR" 1979
   ========================================================================== */
.mj-hero .mj-hero-headline {
  margin: 0;
  padding: 0;
  font-family: 'Climate Crisis', sans-serif;
  font-variation-settings: "YEAR" 1979;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  color: #ffffff;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  letter-spacing: -0.01em;
  line-height: 0.88;
}

.mj-hero .mj-hero-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  font-size: clamp(44px, 9.5vw, 160px);
  will-change: transform, opacity;
  animation: mjHeadlineFadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Line 1: "HI, I'M" - centered, ~38vw wide */
.mj-hero .mj-hero-line-1 {
  top: 3%;
  animation-delay: 0ms;
}

/* Line 2: "MARTINN" - centered, ~63vw wide (left ~18.5%, right ~81.5%) */
.mj-hero .mj-hero-line-2 {
  top: 24%;
  animation-delay: 120ms;
}

/* ==========================================================================
   4. AVATAR (3D cap + sunglasses)
   Scaled up ~1.15x, centered slightly right of center (~52% of viewport width)
   Overlaps headline: cap covers bottom ~40% of middle letters of "MARTINN"
   Layered ABOVE headline (z-index: 5)
   Bottom ends near bottom of hero
   ========================================================================== */
.mj-hero .mj-hero-head-wrap {
  position: absolute;
  left: 52%;
  transform: translateX(-50%);
  bottom: 0;
  height: 64%;
  aspect-ratio: 768 / 798;
  z-index: 5;
  pointer-events: none;
  will-change: transform, opacity;
  animation: mjHeadScaleIn 800ms cubic-bezier(0.16, 1, 0.3, 1) 240ms both;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mj-hero .mj-hero-head-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.6));
  display: block;
}

.mj-hero .mj-hero-head-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  border-radius: 46% 46% 40% 40% / 55% 55% 45% 45%;
  box-shadow: 0 30px 40px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   5. FIVE GLASS LABEL CHIPS
   Scaled up ~1.15x, spread further out from avatar
   Content Creation: x 18.5%, y 54%
   Branding: x 6%, y 65%
   Copywriting: x 67%, y 53%
   Advertising: x 83%, y 63%
   Creative designing: x 66%, y 80%
   Floating animation: translateY between 0 and -6px
   ========================================================================== */
.mj-hero .mj-hero-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.mj-hero .mj-hero-chip {
  position: absolute;
  padding: 10px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  pointer-events: auto;
  user-select: none;
  cursor: default;

  /* Glass Styling: translucent dark fill, thin light border, soft shadow */
  border: 1.5px solid transparent;
  background: 
    linear-gradient(145deg, rgba(29, 29, 29, 0.85), rgba(12, 12, 12, 0.85)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 100%) border-box;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  will-change: transform, opacity;
  animation: 
    mjChipFadeIn 600ms cubic-bezier(0.16, 1, 0.3, 1) both,
    mjChipFloat 7s ease-in-out infinite alternate;
}

.mj-hero .mj-hero-chip-text {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.2vw, 19px);
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #ffffff;
  display: inline-block;
  line-height: 1.1;
}

/* 1. "Content Creation": x ~18%, y 54% (lines up exactly with left edge of "M" in MARTINN) */
.mj-hero .mj-hero-chip-content {
  left: calc(50% - 31.5vw);
  top: 54%;
  animation-delay: 400ms, 0s;
}

/* 2. "Branding": x 6%, y 65% (far left, lower) */
.mj-hero .mj-hero-chip-branding {
  left: 6%;
  top: 65%;
  animation-delay: 560ms, 2.6s;
}

/* 3. "Copywriting": x 67%, y 53% (right side, higher) */
.mj-hero .mj-hero-chip-copywriting {
  left: 67%;
  top: 53%;
  animation-delay: 480ms, 1.4s;
}

/* 4. "Advertising": x 83%, y 63% (far right, lower) */
.mj-hero .mj-hero-chip-advertising {
  left: 83%;
  top: 63%;
  animation-delay: 640ms, 0.8s;
}

/* 5. "Creative designing": x 66%, y 80% (right side, lowest) */
.mj-hero .mj-hero-chip-designing {
  left: 66%;
  top: 80%;
  animation-delay: 720ms, 2.0s;
}

/* ==========================================================================
   6. SUBTITLE (bottom-left)
   Left edge lines up exactly with "M" in MARTINN and Content Creation
   Vertical position: ~82% of hero height (around 80-86%)
   Two lines, left-aligned, white, Inter 500
   ========================================================================== */
.mj-hero .mj-hero-subtitle {
  position: absolute;
  left: calc(50% - 31.5vw);
  top: 82%;
  z-index: 6;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.25vw, 19px);
  line-height: 1.25;
  color: #ffffff;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: mjSubtitleFade 700ms cubic-bezier(0.16, 1, 0.3, 1) 400ms both;
}

/* ==========================================================================
   7. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes mjHeadlineFadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes mjHeadScaleIn {
  from {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes mjChipFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mjSubtitleFade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mjChipFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-6px);
  }
}

/* ==========================================================================
   8. REDUCED MOTION SUPPORT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .mj-hero *,
  .mj-hero *::before,
  .mj-hero *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
  .mj-hero .mj-hero-line,
  .mj-hero .mj-hero-head-wrap {
    transform: translateX(-50%) !important;
  }
  .mj-hero .mj-hero-chip,
  .mj-hero .mj-hero-subtitle {
    transform: none !important;
  }
}

/* ==========================================================================
   9. MOBILE & TABLET RESPONSIVE (under 992px)
   Scale headline down, keep avatar overlapping, chips wrap cleanly
   ========================================================================== */
@keyframes mjHeadlineFadeUpMobile {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .mj-hero {
    height: auto;
    min-height: calc(100svh - var(--nav-h, 70px));
    padding: 24px 20px 48px;
    overflow-x: hidden;
  }

  .mj-hero .mj-hero-stage {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mj-hero .mj-hero-headline {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
  }

  .mj-hero .mj-hero-line {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    font-size: clamp(34px, 13vw, 76px);
    line-height: 0.9;
    text-align: center;
    animation: mjHeadlineFadeUpMobile 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .mj-hero .mj-hero-line-2 {
    margin-top: 6px;
    animation-delay: 120ms;
  }

  .mj-hero .mj-hero-head-wrap {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 70%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 768 / 798;
    margin-top: -10vw;
    z-index: 3;
    animation: mjHeadlineFadeUpMobile 700ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
  }

  .mj-hero .mj-hero-chips {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 480px;
    margin: 24px auto 0;
    list-style: none;
  }

  .mj-hero .mj-hero-chip {
    position: static;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    padding: 10px 20px;
    animation: mjChipFadeIn 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .mj-hero .mj-hero-chip-text {
    font-size: clamp(13px, 3.8vw, 16px);
  }

  .mj-hero .mj-hero-subtitle {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    margin: 26px auto 0;
    text-align: center;
    align-items: center;
    font-size: clamp(14px, 4.2vw, 18px);
    line-height: 1.35;
  }
}
