/* ==========================================================
   HERO  (centerHero · slider · mainHero intro text)
   ========================================================== */

/* =========================
   HERO
========================= */

.centerHero {
  position: absolute;
  width: 100%;
  height: 100vh;
  z-index: 9;
}

.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}


/* =========================
   SLIDER
========================= */

.slider {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  cursor: grab;

  touch-action: none;

  -webkit-user-select: none;
  user-select: none;

  -webkit-touch-callout: none;
}

.slider.dragging {
  cursor: grabbing;
}

.slider.dragging * {
  cursor: grabbing !important;
  user-select: none;
}


/* =========================
   TRACK
========================= */

.slider-track {
  position: absolute;

  top: 0;
  left: 50%;

  display: flex;

  flex-direction: column;
  align-items: center;

  will-change: transform;

  transform: translateZ(0);

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}


/* =========================
   CARD
========================= */

.slider-card {
  position: relative;

  flex: 0 0 auto;

  overflow: hidden;

  transform-origin: center center;

  will-change: transform;

  transform: translateZ(0);

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  border-radius: 5px;

  /*
   * Prevent browser video UI / interaction
   */
  user-select: none;
  -webkit-user-select: none;
}


/* =========================
   VIDEO
========================= */

.slider-card .slide-video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  pointer-events: none;

  user-select: none;
  -webkit-user-select: none;

  -webkit-user-drag: none;

  transform: translateZ(0);

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}


/*
   Completely remove any accidental
   video controls.
*/

.slider-card video::-webkit-media-controls {
  display: none !important;
}

.slider-card video::-webkit-media-controls-enclosure {
  display: none !important;
}

.slider-card video::-webkit-media-controls-panel {
  display: none !important;
}

.slider-card video::-webkit-media-controls-play-button {
  display: none !important;
}

.slider-card video::-webkit-media-controls-start-playback-button {
  display: none !important;
}


/* =========================
   META
========================= */

.slider-card .meta {
  position: absolute;

  left: 24px;
  bottom: 20px;

  color: white;

  font-family: Arial, sans-serif;

  font-size: 11px;
  line-height: 1.4;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  z-index: 2;

  pointer-events: none;
}


/* =========================
   NUMBER
========================= */

.slider-card .number {
  position: absolute;

  right: 20px;
  bottom: 18px;

  color: white;

  font-family: Arial, sans-serif;

  font-size: 12px;

  z-index: 2;

  pointer-events: none;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 1024px) {

  .slider-track {
    top: 50%;
    left: 0;

    flex-direction: row;
    align-items: center;
  }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

  .slider-card .meta {
    left: 16px;
    bottom: 14px;
  }

  .slider-card .number {
    right: 14px;
    bottom: 12px;
  }

}


.mainHero {
  width: 100%;
  height: 100vh;
  position: relative;
}

.middleHeroSection {
  position: absolute;
  inset: 0;
  padding: 2vw 5vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 0;
}
.middleHeroSection p{
  font-family: 'font1bold';
  text-transform: uppercase;
  font-weight: 600;
  /* fluid: shrinks on small laptops so it never runs under the video card */
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.middleHeroSection p span{
  font-family: 'Bebas Neue';
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}


.bottomHero{
  position: absolute;
  inset: 0;
  padding: 2vw 5vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 0;
}
.icons{
  font-size: 1.5rem;
}
.arrowIcon{
  font-size: 0.8rem;
  transform: rotate(45deg);
}
.bottomHero .bottomHeroBtn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  background-color: black;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 10px;
  border: none;
  cursor: pointer;
}

.info{
  padding-top: 5px;
}
.info p{
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'font1regular';
}

.middleLeft{
  width: 100%;
}
.middleRight{
  width: 100%;
}
.middleLeft{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.middleRight{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}
.middleLeft h3{
  font-size: clamp(0.85rem, 1.15vw, 1rem);
  font-family: 'font1regular';
  width: 50%;
  font-weight: 400;
  margin-top: 1vh;
  line-height: 1;
}
.middleRight h3{
  font-size: clamp(0.85rem, 1.15vw, 1rem);
  font-family: 'font1regular';
  width: 50%;
  font-weight: 400;
  margin-top: 1vh;
  line-height: 1;
  text-align: end;
}


/* Mobile-only hero button (shown in the ≤700px block below) */
.heroCta {
  display: none;
}



@media (max-width: 1024px) {

  :root {
    /* total hero height – never shorter than the content needs */
    --heroH: max(100vh, 560px);
    --heroH: max(100svh, 560px);

    --sliderH: clamp(190px, 30vh, 270px);
    --sliderH: clamp(190px, 30svh, 270px);

    --heroPadBottom: 22px;
  }

  .mainHero {
    display: flex;
    flex-direction: column;

    height: var(--heroH);

    /* room for the fixed top bar + the carousel band */
    padding-top: calc(32px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(var(--sliderH) + var(--heroPadBottom));
  }

  /* --- carousel band --- */

  .centerHero {
    top: calc(var(--heroH) - var(--sliderH) - var(--heroPadBottom));
    height: var(--sliderH);
  }

  .hero {
    height: 100%;
  }

  /* vertical page scroll must still work when a finger starts on
     the carousel; horizontal drags are handled by the slider JS */
  .slider {
    touch-action: pan-y;
  }

  /* --- copy block --- */

  .middleHeroSection {
    position: static;
    inset: auto;

    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 0;
    padding: 0 7vw;

    text-align: center;
  }

  /* Merge the two desktop halves ("Creating what" / "comes next.")
     into one centred headline + a single intro paragraph. */
  .middleLeft,
  .middleRight {
    display: contents;
  }

  .middleLeft p        { order: 1; }
  .middleRight p       { order: 2; }
  .middleLeft h3       { order: 3; }
  .middleRight h3      { display: none; }
  .heroCta             { order: 4; }

  .middleHeroSection p,
  .middleHeroSection p span {
    font-family: 'font1medium';
    font-size: clamp(2.4rem, 11.6vw, 3.4rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-transform: none;
    color: #0d0d0d;
  }

  .middleLeft h3 {
    width: 100%;
    max-width: 30ch;
    margin-top: 1.25rem;

    font-size: clamp(1rem, 4.2vw, 1.15rem);
    line-height: 1.35;
    color: #2b2b2b;
    text-align: center;
    text-wrap: balance;
  }

  /* --- black pill button --- */

  .heroCta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    height: 52px;
    margin-top: 1.6rem;
    padding: 0 26px 0 28px;

    border-radius: 999px;
    background: #0d0d0d;
    color: #f0ece2;

    font-family: 'font1medium';
    font-size: 0.98rem;
    letter-spacing: 0.005em;
    text-decoration: none;
    white-space: nowrap;

    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s ease;
  }

  .heroCta .btnArrow {
    color: #ff3b1f;
  }

  .heroCta:active {
    transform: scale(0.96);
  }

  /* socials + quote button live in the menu / top bar on mobile */
  .bottomHero {
    display: none;
  }

}


/* short phones (iPhone SE, small Androids): tighten the copy */
@media (max-width: 700px) and (max-height: 700px) {

  :root {
    --sliderH: clamp(170px, 28vh, 240px);
    --sliderH: clamp(170px, 28svh, 240px);
  }

  .middleHeroSection p,
  .middleHeroSection p span {
    font-size: clamp(2.2rem, 11vw, 2.9rem);
  }

  .middleLeft h3 {
    margin-top: 0.9rem;
    font-size: 0.95rem;
  }

  .heroCta {
    height: 48px;
    margin-top: 1.2rem;
  }

}


/* ==========================================================
   TABLET HERO  (701px – 1024px)
   Same stacked layout as the phone – copy on top, carousel
   band at the bottom – just scaled up so nothing looks tiny
   and (the old bug) the video card never covers the text.
   ========================================================== */

@media (min-width: 701px) and (max-width: 1024px) {

  :root {
    --heroH: max(100vh, 720px);
    --heroH: max(100svh, 720px);

    --sliderH: clamp(300px, 36vh, 430px);
    --sliderH: clamp(300px, 36svh, 430px);

    --heroPadBottom: 36px;
  }

  .mainHero {
    padding-top: calc(48px + env(safe-area-inset-top, 0px));
  }

  .middleHeroSection {
    padding: 0 8vw;
  }

  .middleHeroSection p,
  .middleHeroSection p span {
    font-size: clamp(3.8rem, 10.6vw, 6.6rem);
    line-height: 0.96;
  }

  .middleLeft h3 {
    max-width: 34ch;
    margin-top: 1.6rem;

    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  }

  .heroCta {
    height: 58px;
    margin-top: 2rem;
    padding: 0 32px 0 34px;

    font-size: 1.08rem;
  }

  .slider-card {
    border-radius: 10px;
  }

  .slider-card .meta {
    left: 22px;
    bottom: 18px;

    font-size: 12px;
  }

  .slider-card .number {
    right: 22px;
    bottom: 18px;

    font-size: 13px;
  }

}


/* ==========================================================
   TABLET IN LANDSCAPE  (701px – 1024px wide, wider than tall)
   Less height to play with: smaller headline, slimmer carousel.
   ========================================================== */

@media (min-width: 701px) and (max-width: 1024px) and (orientation: landscape) {

  :root {
    --heroH: max(100vh, 640px);
    --heroH: max(100svh, 640px);

    --sliderH: clamp(200px, 33vh, 300px);
    --sliderH: clamp(200px, 33svh, 300px);

    --heroPadBottom: 24px;
  }

  .mainHero {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .middleHeroSection p,
  .middleHeroSection p span {
    font-size: clamp(3rem, min(9vw, 14vh), 5.2rem);
  }

  .middleLeft h3 {
    margin-top: 1rem;
  }

  .heroCta {
    height: 52px;
    margin-top: 1.4rem;
  }

}


/* ==========================================================
   LANDSCAPE PHONES / SHORT SCREENS  (≤1024px wide, ≤520px tall)
   The hero cannot be a full screen tall here (nothing would
   fit), so it grows a little past the fold and the copy is
   compacted.
   ========================================================== */

@media (max-width: 1024px) and (max-height: 520px) {

  :root {
    --heroH: max(100vh, 600px);
    --heroH: max(100svh, 600px);

    --sliderH: clamp(150px, 42vh, 210px);
    --sliderH: clamp(150px, 42svh, 210px);

    --heroPadBottom: 16px;
  }

  .mainHero {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .middleHeroSection p,
  .middleHeroSection p span {
    font-size: clamp(2.4rem, 7vw, 3.6rem);
  }

  .middleLeft h3 {
    margin-top: 0.8rem;
    font-size: 0.95rem;
  }

  .heroCta {
    height: 46px;
    margin-top: 1rem;
  }

}
