/* Hero compact v3 for #hero at ≤1024px. Does not change desktop ≥1025. */

@media (min-width: 1025px) {
  #hero .hero-v3-couple,
  #hero .hero-v3-phone-scene {
    display: none;
  }

  /* Production main.css still nowrap-pins the old 3-line H1. New copy must wrap
     inside the existing content box; do not move artboard, characters, or header. */
  #hero .hero-artboard .hero__content {
    width: 650px;
    max-width: 650px;
    z-index: 80;
  }

  #hero .hero__title {
    white-space: normal;
    max-width: 650px;
  }

  #hero .hero__title-line {
    display: block;
    white-space: nowrap;
  }

  #hero .hero__subtitle {
    display: block;
    flex: 0 0 auto;
    margin: 0 0 0.75rem;
    max-width: 420px;
    font-family: var(--font-body, "Commissioner", sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #0b0c10;
    white-space: normal;
  }

  #hero .hero__lead,
  #hero .hero__bullets {
    max-width: 420px;
  }

  #hero .hero__lead li,
  #hero .hero__bullets li {
    white-space: normal;
    color: #0b0c10;
  }

  #hero .micro {
    display: block !important;
    max-width: 420px;
    color: #0b0c10;
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  #hero.hero {
    position: relative;
    display: block;
    flex: none;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
  }

  .hero-stack:has(#hero) {
    background: var(--color-accent, #ff6200);
  }

  .hero-pin:has(#hero) {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    display: block;
    justify-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin-block-start: 0 !important;
    overflow: hidden;
    box-shadow: none;
  }

  .hero-pin:has(#hero)::after {
    content: none;
    display: none;
  }

  #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 !important;
    transform-origin: top left;
    pointer-events: auto;
    flex: none;
  }

  #hero .hero-world__set,
  #hero.hero .hero-world__set {
    display: none !important;
  }

  #hero.hero .hero-artboard .hero__content,
  #hero.hero .hero-world > .hero__content,
  #hero.hero .hero__content,
  #hero .hero-artboard .hero__content,
  #hero .hero-world > .hero__content,
  #hero .hero__content {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    z-index: 2;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(96px, calc(12px + 26vw), 230px);
    flex-direction: unset;
    align-items: start !important;
    align-content: start;
    gap: clamp(8px, 2vw, 12px);
    width: 100% !important;
    max-width: 960px !important;
    height: auto !important;
    min-width: 0;
    min-height: 0 !important;
    max-height: none !important;
    margin-inline: auto;
    padding-inline: clamp(20px, 4.5vw, 40px) !important;
    padding-top: clamp(20px, 5vw, 28px) !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
    overflow: visible;
    background: none;
    pointer-events: auto;
    isolation: auto;
    order: 0;
  }

  #hero .hero__title,
  #hero .hero__subtitle,
  #hero .hero__lead,
  #hero .hero__bullets,
  #hero .hero__actions,
  #hero .micro {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
  }

  #hero .hero__title {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: auto;
    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 !important;
  }

  #hero .hero__title-line {
    display: inline;
    white-space: normal;
  }

  #hero .hero-v3-couple {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    justify-self: end;
    align-self: end;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1258 / 1791;
    overflow: hidden;
    pointer-events: none;
    margin-top: clamp(0px, calc(360px - 100vw), 20px);
    margin-inline-end: clamp(-6px, calc(100vw - 360px), 0px);
  }

  #hero .hero-v3-couple img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: calc(2048 / 1258 * 100%);
    max-width: none;
    height: auto;
    transform: translate(-17.77%, -5.91%);
  }

  #hero .hero__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 ul.hero__lead,
  #hero ul.hero__bullets {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: 42rem;
    margin: clamp(16px, 4vw, 20px) 0 0;
    padding: 0 !important;
    list-style: none;
  }

  #hero ul.hero__lead li,
  #hero ul.hero__bullets li {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0;
    padding-left: 20px;
    padding-inline-start: 20px;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    color: #ffffff !important;
    font-family: var(--font-body, "Commissioner", sans-serif);
    font-size: clamp(15px, 4.1vw, 16px);
    font-weight: 400;
    line-height: 1.4;
    white-space: normal !important;
  }

  #hero ul.hero__lead li + li,
  #hero ul.hero__bullets li + li {
    margin-top: 8px;
  }

  #hero ul.hero__lead li::marker,
  #hero ul.hero__bullets li::marker {
    content: "";
    color: transparent;
  }

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

  #hero .hero__actions {
    grid-column: 1 / -1;
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap;
    align-items: stretch !important;
    align-self: stretch;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    margin: clamp(24px, 5.5vw, 32px) 0 0;
    padding: 0 !important;
    pointer-events: auto;
  }

  #hero .hero__actions .btn,
  #hero .hero__actions a.btn {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    white-space: normal;
  }

  #hero .hero__content .micro,
  #hero .micro {
    display: block !important;
    grid-column: 1 / -1;
    margin: clamp(8px, 2vw, 12px) 0 0;
    color: #0b0c10;
    font-size: 13px;
    line-height: 1.4;
  }

  #hero .hero-v3-phone-scene {
    --hero-v3-scene-height: clamp(
      248px,
      calc(248px + (100vw - 320px) * 142 / 704),
      390px
    );
    --hero-v3-bubble-width: clamp(
      170px,
      calc(170px + (100vw - 320px) * 90 / 704),
      260px
    );
    --hero-v3-phone-width: clamp(
      170px,
      calc(160px + (100vw - 320px) * 120 / 704),
      280px
    );
    --hero-v3-phone-shift-x: min(
      calc(var(--hero-v3-bubble-width) * 0.72),
      max(0px, calc(100% - var(--hero-v3-phone-width)))
    );
    --hero-v3-group-width: max(
      var(--hero-v3-bubble-width),
      calc(var(--hero-v3-phone-shift-x) + var(--hero-v3-phone-width))
    );
    --hero-v3-group-nudge: clamp(8px, 1.2vw, 16px);

    grid-column: 1 / -1;
    position: relative;
    width: 100%;
    height: var(--hero-v3-scene-height);
    margin-top: clamp(32px, 10vw, 48px);
    overflow: hidden;
    pointer-events: none;
  }

  #hero .hero-v3-phone-group {
    position: absolute;
    left: clamp(
      0px,
      calc((100% - var(--hero-v3-group-width)) / 2 - var(--hero-v3-group-nudge)),
      calc(100% - var(--hero-v3-group-width))
    );
    top: 0;
    bottom: -1px;
    width: var(--hero-v3-group-width);
    pointer-events: none;
  }

  #hero .hero-v3-bubble {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: var(--hero-v3-bubble-width);
    container-type: inline-size;
    container-name: hero-v3-bubble;
  }

  #hero .hero-v3-bubble__cloud {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 3px 8px rgb(11 12 16 / 0.1));
  }

  #hero .hero-v3-bubble__text {
    position: absolute;
    left: 18%;
    right: 16%;
    top: 26%;
    bottom: 30%;
    display: grid;
    place-items: center;
    align-content: center;
    margin: 0;
    color: #0b0c10;
    font-family: var(--font-body, "Commissioner", sans-serif);
    font-size: clamp(12px, 6.4cqw, 15px);
    font-weight: 600;
    line-height: 1.18;
    text-align: center;
    white-space: nowrap;
  }

  #hero .hero-v3-bubble__dots {
    position: absolute;
    right: 18%;
    top: 78%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    pointer-events: none;
  }

  #hero .hero-v3-bubble__dot {
    display: block;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgb(11 12 16 / 0.1);
  }

  #hero .hero-v3-bubble__dot--lg {
    width: 10px;
    height: 10px;
    margin-left: 10px;
  }

  #hero .hero-v3-bubble__dot--md {
    width: 7px;
    height: 7px;
    margin-left: 18px;
  }

  #hero .hero-v3-bubble__dot--sm {
    width: 5px;
    height: 5px;
    margin-left: 28px;
  }

  #hero .hero-v3-phone-frame {
    position: absolute;
    left: var(--hero-v3-phone-shift-x);
    right: auto;
    bottom: 0;
    z-index: 1;
    width: var(--hero-v3-phone-width);
    aspect-ratio: 1529 / 1909;
    overflow: hidden;
    pointer-events: none;
  }

  #hero .hero-v3-phone-frame img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: calc(2048 / 1529 * 100%);
    max-width: none;
    height: auto;
    transform: translate(-13.43%, -2.49%);
  }
}

@media (min-width: 481px) and (max-width: 600px) {
  #hero .hero__title {
    grid-column: 1;
    grid-row: 1;
  }

  #hero .hero-v3-couple {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: end;
    width: 100%;
    margin: 0;
  }

  #hero .hero__subtitle {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    margin-top: 16px;
  }

  #hero ul.hero__lead,
  #hero ul.hero__bullets {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-width: none;
  }

  #hero .hero__actions {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
  }

  #hero .micro {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  #hero .hero-v3-phone-scene {
    grid-column: 1 / -1;
    grid-row: 6;
    width: 100%;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  #hero .hero__title {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    line-height: 1.18;
  }

  #hero .hero-v3-couple {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
    justify-self: stretch;
    width: 100%;
    margin: 0;
  }

  #hero .hero__subtitle {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    margin-top: 16px;
  }

  #hero ul.hero__lead,
  #hero ul.hero__bullets {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: none;
    margin-top: 16px;
  }

  #hero .hero__actions {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    max-width: 100%;
  }

  #hero .micro {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  #hero .hero-v3-phone-scene {
    grid-column: 1 / -1;
    grid-row: 6;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  #hero .hero-pin,
  .hero-pin:has(#hero) {
    height: auto !important;
    min-height: 0 !important;
  }
}
