/* One hero: below 1280 the first screen uses the hero5 layout.
   From 1280 the desktop scene (section.hero) stays as it was. */

@media (width >= 1280px) {
  #hero .hero5__couple,
  #hero .hero5__man {
    display: none;
  }
}

@media (width < 1280px) {
  .hero-stack {
    position: relative;
    display: block;
    background: var(--color-accent, #ff6200);
  }

  .hero-pin {
    position: relative;
    top: auto;
    z-index: 1;
    display: block;
    min-height: 0;
    height: auto;
    max-height: none;
    margin: 0;
    overflow: clip;
    background: var(--color-accent, #ff6200);
    justify-content: flex-start;
    box-shadow: none;
  }

  .hero-pin::after {
    content: none;
    display: none;
  }

  #hero.hero {
    container: hero5 / inline-size;
    position: relative;
    display: block;
    flex: none;
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: clip;
    background: var(--color-accent, #ff6200);
    color: #0b0c10;
  }

  #hero .hero-world,
  #hero .hero-world__stage,
  #hero .hero-artboard {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    transform: none;
    clip-path: none;
    pointer-events: none;
    background: transparent;
  }

  #hero .hero-world__set,
  #hero .hero-v3-couple,
  #hero .hero-v3-phone-scene {
    display: none;
  }

  #hero .hero__content {
    container-type: inline-size;
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    display: grid;
    grid-template-columns: 58% 38%;
    column-gap: 4%;
    align-items: end;
    width: 100%;
    max-width: 960px;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-inline: auto;
    padding-inline: clamp(20px, 4.5vw, 40px);
    padding-top: clamp(20px, 5vw, 28px);
    padding-bottom: clamp(24px, 5vw, 36px);
    box-sizing: border-box;
    overflow: visible;
    transform: none;
    pointer-events: auto;
    background: none;
    color: #0b0c10;
  }

  #hero .hero5__title {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: var(--font-display, "Geologica", sans-serif);
    font-size: clamp(24px, 6.2vw, 28px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.03em;
    text-align: left;
    white-space: normal;
    text-wrap: unset;
  }

  #hero .hero5__title-line {
    display: block;
    white-space: normal;
    color: #ffffff;
  }

  #hero .hero5__couple {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    align-self: end;
    justify-self: end;
    height: 0;
    min-height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
  }

  #hero .hero5__couple picture {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
    max-width: 100%;
  }

  #hero .hero5__couple img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  #hero .hero5__man {
    display: none;
  }

  #hero .hero5__subtitle {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 42rem;
    margin: clamp(16px, 4vw, 20px) 0 0;
    color: #0b0c10;
    font-family: var(--font-body, "Commissioner", sans-serif);
    font-size: clamp(15px, 4.1vw, 16px);
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
  }

  #hero .hero5__bullets {
    grid-column: 1 / -1;
    list-style: none;
    padding: 0;
    margin: clamp(12px, 3vw, 16px) 0 0;
    max-width: 42rem;
  }

  #hero .hero5__bullets li {
    position: relative;
    margin-block: 0;
    padding-left: 20px;
    color: #ffffff;
    font-family: var(--font-body, "Commissioner", sans-serif);
    font-size: clamp(15px, 4.1vw, 16px);
    font-weight: 400;
    line-height: 1.4;
  }

  #hero .hero5__bullets li + li {
    margin-top: 8px;
  }

  #hero .hero5__bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
  }

  #hero .hero5__bullets li::marker {
    content: none;
  }

  #hero .hero5__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin-top: clamp(24px, 5.5vw, 32px);
    margin-bottom: 0;
  }

  #hero .hero5__actions .btn-exclaim--header {
    --btn-exclaim-h: 40px;
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
    width: auto;
    max-width: none;
    color: #0a0a0a;
  }

  #hero .hero5__actions .btn-exclaim--header .btn-exclaim__label {
    left: calc(6 * var(--btn-exclaim-h) / 25 + 20px);
    width: max-content;
    text-align: left;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: normal;
    color: #fff;
  }

  #hero .hero5__actions .btn-exclaim--header .btn-exclaim__arrow--line,
  #hero .hero5__actions .btn-exclaim--header .btn-exclaim__arrow--line path {
    fill: none;
    stroke: #fff;
  }

  #hero .hero5__actions .btn-exclaim--header:hover,
  #hero .hero5__actions .btn-exclaim--header:focus-visible {
    color: #fff;
    outline-color: #0a0a0a;
  }

  #hero .hero5__actions .btn-exclaim--header:hover .btn-exclaim__label,
  #hero .hero5__actions .btn-exclaim--header:focus-visible .btn-exclaim__label {
    color: #0a0a0a;
  }

  #hero .hero5__actions .btn-exclaim--header:hover .btn-exclaim__arrow--line,
  #hero .hero5__actions .btn-exclaim--header:hover .btn-exclaim__arrow--line path,
  #hero .hero5__actions .btn-exclaim--header:focus-visible .btn-exclaim__arrow--line,
  #hero .hero5__actions .btn-exclaim--header:focus-visible .btn-exclaim__arrow--line path {
    fill: none;
    stroke: #0a0a0a;
  }

  #hero .hero5__note {
    grid-column: 1 / -1;
    display: block;
    margin: clamp(10px, 2.5vw, 14px) 0 0;
    max-width: none;
    color: #0b0c10;
    font-size: 13px;
    line-height: 1.4;
  }

  @container (min-width: 600px) {
    #hero .hero5__title {
      font-size: clamp(28px, 4cqi, 36px);
      font-weight: 600;
      line-height: 1.18;
    }
  }

  @container (min-width: 480px) {
    #hero .hero5__actions {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
    }
  }

  @container (max-width: 479px) {
    #hero .hero5__actions {
      align-items: flex-start;
    }
  }
}

@media (width < 768px) {
  #hero .hero__content {
    grid-template-columns: 64% 32%;
    column-gap: 4%;
    row-gap: clamp(8px, 2vw, 12px);
  }

  #hero .hero5__couple {
    min-height: min(100%, 180px);
  }

  #hero .hero5__subtitle,
  #hero .hero5__bullets li {
    font-size: 18px;
    line-height: 1.5;
  }

  #hero .hero5__bullets {
    margin-top: clamp(16px, 4vw, 20px);
  }

  #hero .hero5__note {
    margin-top: clamp(8px, 2vw, 12px);
    font-size: 16px;
    line-height: 1.5;
  }
}

@media (width <= 480px) {
  #hero .hero__content {
    grid-template-columns: minmax(0, 1fr) clamp(96px, calc(12px + 26vw), 230px);
    column-gap: clamp(8px, 2vw, 12px);
  }

  #hero .hero5__title {
    align-self: start;
  }

  #hero .hero5__title-line {
    display: inline;
  }

  #hero .hero5__couple {
    height: auto;
    min-height: 0;
  }

  #hero .hero5__couple picture {
    width: 100%;
    height: auto;
  }

  #hero .hero5__couple img {
    width: 100%;
    height: auto;
  }
}

@media (width > 480px) and (width < 1280px) {
  #hero .hero5__title {
    align-self: start;
  }

  #hero .hero5__couple {
    align-self: start;
    justify-self: start;
    width: min(107.5px + 6.11vw, 170px);
    height: auto;
    min-height: 0;
  }

  #hero .hero5__couple picture,
  #hero .hero5__couple img {
    width: 100%;
    height: auto;
  }
}

@media (480px < width < 1024px) {
  #hero .hero__content {
    grid-template-columns: fit-content(calc(100% - 107.5px - 6.11vw - min(13.33vw - 54.4px, 48px))) minmax(0, 1fr);
    column-gap: min(13.33vw - 54.4px, 48px);
  }
}

@container hero5 (min-width: 1024px) {
  #hero .hero__content {
    max-width: 1148px;
    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
    grid-template-areas:
      "title couple"
      "subtitle man"
      "bullets man"
      "actions man"
      "note man";
    grid-template-rows: auto auto auto auto 1fr;
    align-items: start;
    padding-bottom: 0;
  }

  #hero .hero5__title {
    grid-area: title;
    font-size: 45px;
    font-weight: 300;
    line-height: 1.12;
  }

  #hero .hero5__subtitle {
    grid-area: subtitle;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
  }

  #hero .hero5__bullets {
    grid-area: bullets;
  }

  #hero .hero5__bullets li {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
  }

  #hero .hero5__actions {
    grid-area: actions;
  }

  #hero .hero5__note {
    grid-area: note;
    margin-bottom: 36px;
  }

  #hero .hero5__couple {
    grid-area: couple;
    justify-self: start;
  }

  #hero .hero5__man {
    display: block;
    grid-area: man;
    align-self: end;
    justify-self: end;
  }

  .cast--man {
    position: relative;
    width: clamp(220px, 21cqi, 230px);
    margin: 0;
  }

  .cast--man picture,
  .cast--man .cast__img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    line-height: 0;
  }

  .cast--man .cast__img {
    object-fit: fill;
    object-position: center bottom;
  }

  .cast--man .cast__bubble {
    position: absolute;
    right: 76%;
    bottom: 80%;
    width: clamp(200px, 20cqi, 236px);
  }

  .cast--man .cast__bubble svg {
    display: block;
    width: 100%;
    height: auto;
  }

  .cast--man .cast__bubble-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0 14%;
    font: 600 14px/1.25 "Commissioner", sans-serif;
    color: #0b0c10;
  }

  .cast--man .cast__dots {
    position: absolute;
    right: 76%;
    bottom: 76%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .cast__dots i {
    display: block;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgb(11 12 16 / .1);
  }

  .cast__dots i:nth-child(1) {
    width: 10px;
    height: 10px;
  }

  .cast__dots i:nth-child(2) {
    width: 7px;
    height: 7px;
    margin-left: 9px;
  }

  .cast__dots i:nth-child(3) {
    width: 5px;
    height: 5px;
    margin-left: 16px;
  }
}
