/* Hero desktop v4 step7 — local overlay only. Geometry matches step6 except
 * tablet 601–1024 CTA buttons sit in one equal-width row. */

@media (min-width: 1025px) and (max-width: 1365px) {
  .hero-pin {
    --hero-bleed-y: 0;
    --hero-bleed-x: 0;
    height: auto !important;
    min-height: 0 !important;
    top: 0;
    justify-content: flex-start;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    clip-path: inset(0);
    z-index: 3;
  }

  .hero-pin.is-cover-active {
    z-index: 1;
  }

  .hero-stack {
    background: var(--color-accent);
  }

  .hero-pin .hero,
  .hero-pin .hero-world,
  .hero-pin .hero-world__stage {
    position: relative !important;
    flex: none;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    padding: 0 !important;
  }

  .hero-pin .hero-artboard,
  #hero .hero-artboard {
    position: relative !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
    transform-origin: top left !important;
    will-change: auto;
    pointer-events: none;
    overflow: hidden !important;
  }

  #hero .hero-world__set,
  #hero.hero .hero-world__set,
  .hero-pin .hero-world__set {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .hero-pin #hero .hero-artboard .hero__content,
  #hero.hero .hero-artboard .hero__content,
  #hero .hero-artboard .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: 80;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 36%);
    grid-template-rows: auto auto auto auto auto;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    align-items: start !important;
    align-content: start;
    column-gap: clamp(16px, 2.2vw, 28px);
    row-gap: 0;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    height: auto !important;
    min-height: calc(
      (clamp(188px, 20vw, 248px) * 1791 / 1258)
      + clamp(290px, 31vw, 370px)
      + 28px
    ) !important;
    max-height: none !important;
    margin: 0 !important;
    padding-inline-start: calc(
      max(0px, (100% - var(--container-max)) / 2)
      + var(--page-pad)
    ) !important;
    padding-inline-end: var(--page-pad) !important;
    padding-top: 20px !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
    overflow: visible;
    pointer-events: auto;
    transform: none !important;
    color: #ffffff;
  }

  #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-artboard .hero__content .hero__title,
  #hero .hero__title {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 0 12px !important;
    padding: 0;
    color: #ffffff !important;
    font-family: var(--font-display, "Geologica", sans-serif);
    font-size: clamp(40px, calc(12px + 2.8vw), 48px) !important;
    font-weight: 300;
    line-height: 1.12 !important;
    letter-spacing: var(--tracking-display, -0.03em);
    text-align: left;
    white-space: normal !important;
    text-wrap: unset;
  }

  #hero .hero__title-line,
  .hero-artboard .hero__content .hero__title-line {
    display: block;
    white-space: nowrap;
    color: #ffffff !important;
  }

  #hero .hero-v3-couple,
  #hero .hero-v3-phone-scene {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #hero .hero-v3-couple {
    grid-column: 2;
    grid-row: 1;
    position: absolute;
    top: 0;
    right: clamp(24px, 2.8vw, 40px);
    justify-self: end;
    align-self: start;
    width: clamp(188px, 20vw, 248px);
    max-width: 36%;
    aspect-ratio: 1258 / 1791;
    overflow: hidden;
    pointer-events: none;
    margin: 0;
    z-index: 2;
  }

  #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-artboard .hero__content .hero__subtitle,
  #hero .hero__subtitle {
    grid-column: 1;
    grid-row: 2;
    display: block;
    flex: 0 0 auto;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 12px !important;
    color: #0b0c10;
    font-family: var(--font-body, "Commissioner", sans-serif);
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
  }

  #hero .hero-artboard .hero__content .hero__lead,
  #hero .hero-artboard .hero__content .hero__bullets,
  #hero ul.hero__lead,
  #hero ul.hero__bullets {
    grid-column: 1;
    grid-row: 3;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 12px !important;
    padding-inline-start: 1.15em;
    list-style: disc;
    list-style-position: outside;
    font-size: 16px !important;
    line-height: 1.4;
    color: #ffffff;
    white-space: normal;
  }

  #hero ul.hero__lead li,
  #hero ul.hero__bullets li,
  .hero-artboard .hero__content ul.hero__lead li,
  .hero-artboard .hero__content ul.hero__bullets li {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin-block: 0.15em;
    color: #ffffff !important;
    font-family: var(--font-body, "Commissioner", sans-serif);
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal !important;
  }

  #hero ul.hero__lead li::marker,
  #hero ul.hero__bullets li::marker {
    color: #ffffff;
  }

  #hero .hero-artboard .hero__content .hero__actions,
  #hero .hero__actions {
    grid-column: 1;
    grid-row: 4;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    align-self: start !important;
    gap: var(--space-2, 8px);
    width: auto !important;
    max-width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 81;
    pointer-events: auto;
  }

  #hero .hero__actions .btn,
  #hero .hero__actions a.btn,
  .hero-artboard .hero__content .hero__actions .btn {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    min-height: 48px !important;
    height: auto !important;
    padding-block: 12px;
    padding-inline: 20px;
    font-size: 16px !important;
    white-space: nowrap;
    box-sizing: border-box;
    pointer-events: auto;
  }

  #hero .hero-artboard .hero__content .micro,
  #hero .hero__content .micro,
  #hero .micro {
    display: block !important;
    grid-column: 1;
    grid-row: 5;
    width: 100% !important;
    max-width: none !important;
    margin: 12px 0 0 !important;
    color: rgb(255 255 255 / 0.85);
    font-size: 13px !important;
    line-height: 1.35;
  }

  #hero .hero-v3-phone-scene {
    --hero-v3-inset-end: clamp(24px, 2.8vw, 40px);
    --hero-v3-scene-height: clamp(300px, 32vw, 390px);
    --hero-v3-bubble-width: clamp(176px, 15.2vw, 196px);
    --hero-v3-phone-width: clamp(220px, 22.5vw, 276px);
    --hero-v3-phone-shift-x: calc(var(--hero-v3-bubble-width) * 0.7);
    --hero-v3-group-width: calc(
      var(--hero-v3-phone-shift-x) + var(--hero-v3-phone-width)
    );

    grid-column: 2;
    grid-row: auto;
    position: absolute;
    left: auto;
    right: var(--hero-v3-inset-end);
    bottom: 0;
    justify-self: stretch;
    align-self: end;
    width: var(--hero-v3-group-width);
    min-width: 0;
    max-width: none;
    height: var(--hero-v3-scene-height);
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
  }

  #hero .hero-v3-phone-group {
    position: absolute;
    left: 0;
    right: auto;
    top: 0;
    bottom: -2px;
    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: 1366px) {
  /* Phone: keep 1018/363/317; feet on pin floor. */
  .hero-pin #hero .hero-layer[data-slot="cartoon-a-fg-phone"],
  .hero-pin #hero .hero-world__set [data-slot="cartoon-a-fg-phone"] {
    left: calc(1018 / 1521 * 100%) !important;
    top: calc(363 / 666 * 100%) !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 40;
    width: calc(317 / 1521 * 100%) !important;
    height: calc(317 / 666 * 100%) !important;
    --layer-width: calc(317 / 1521 * 100%);
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Writer: 1360/479/185/190; feet on pin floor; keep mirror. */
  .hero-pin #hero .hero-layer[data-slot="cartoon-a-mid-writer"],
  .hero-pin #hero .hero-world__set [data-slot="cartoon-a-mid-writer"] {
    left: calc(1360 / 1521 * 100%) !important;
    top: calc(479 / 666 * 100%) !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 28;
    width: calc(185 / 1521 * 100%) !important;
    height: calc(190 / 666 * 100%) !important;
    --layer-width: calc(185 / 1521 * 100%);
    transform: scaleX(-1) !important;
    transform-origin: center center !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Bubble-seo: 960/328/w180; restore (production hides it ≥1025). */
  .hero-pin #hero #bubble-seo,
  .hero-pin #hero [data-slot="bubble-seo"],
  .hero-pin #hero .hero-bubble--seo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 46;
    left: calc(960 / 1521 * 100%) !important;
    top: calc(328 / 666 * 100%) !important;
    width: calc(180 / 1521 * 100%) !important;
    min-width: 0;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .hero-pin #hero #bubble-seo .hero-bubble__text,
  .hero-pin #hero .hero-bubble--seo .hero-bubble__text {
    font-size: 9.2px !important;
    font-weight: 600;
    line-height: 1.16;
  }

  /* Dots-seo: trail from lower-right of SEO cloud toward phone/head. */
  .hero-pin #hero .hero-dots--seo,
  .hero-pin #hero [data-slot="dots-seo"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 47 !important;
  }

  .hero-pin #hero .hero-dots--seo .hero-dots__dot--lg {
    left: calc(1087 / 1521 * 100%) !important;
    top: calc(435 / 666 * 100%) !important;
    width: calc(10 / 1521 * 100%) !important;
  }

  .hero-pin #hero .hero-dots--seo .hero-dots__dot--md {
    left: calc(1105 / 1521 * 100%) !important;
    top: calc(452 / 666 * 100%) !important;
    width: calc(7.5 / 1521 * 100%) !important;
  }

  .hero-pin #hero .hero-dots--seo .hero-dots__dot--sm {
    left: calc(1120 / 1521 * 100%) !important;
    top: calc(468 / 666 * 100%) !important;
    width: calc(5 / 1521 * 100%) !important;
  }

  /* Bubble-blog: 1320/405/w128; slightly above writer head. */
  .hero-pin #hero #bubble-blog,
  .hero-pin #hero [data-slot="bubble-blog"],
  .hero-pin #hero .hero-bubble--blog {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 48;
    left: calc(1320 / 1521 * 100%) !important;
    top: calc(405 / 666 * 100%) !important;
    width: calc(128 / 1521 * 100%) !important;
    min-width: 0;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  /* Dots-blog: almost vertical down with slight right shift; toward hair, not notebook. */
  .hero-pin #hero .hero-dots--blog,
  .hero-pin #hero [data-slot="dots-blog"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 47 !important;
  }

  .hero-pin #hero .hero-dots--blog .hero-dots__dot--lg {
    left: calc(1408 / 1521 * 100%) !important;
    top: calc(483 / 666 * 100%) !important;
    width: calc(11 / 1521 * 100%) !important;
  }

  .hero-pin #hero .hero-dots--blog .hero-dots__dot--md {
    left: calc(1418 / 1521 * 100%) !important;
    top: calc(496 / 666 * 100%) !important;
    width: calc(8 / 1521 * 100%) !important;
  }

  .hero-pin #hero .hero-dots--blog .hero-dots__dot--sm {
    left: calc(1426 / 1521 * 100%) !important;
    top: calc(508 / 666 * 100%) !important;
    width: calc(6 / 1521 * 100%) !important;
  }
}

/* White bullet copy + visible markers at every width.
 * ≤1024: visible disc is li::before (list-style none, ::marker emptied).
 * ≥1025: visible disc is li::marker. Do not add a second disc or change geometry. */
#hero ul.hero__lead,
#hero ul.hero__bullets,
#hero .hero-artboard .hero__content .hero__lead,
#hero .hero-artboard .hero__content .hero__bullets {
  color: #ffffff;
}

#hero ul.hero__lead li,
#hero ul.hero__bullets li,
.hero-artboard .hero__content ul.hero__lead li,
.hero-artboard .hero__content ul.hero__bullets li {
  color: #ffffff !important;
}

#hero ul.hero__lead li::marker,
#hero ul.hero__bullets li::marker,
.hero-artboard .hero__content ul.hero__lead li::marker,
.hero-artboard .hero__content ul.hero__bullets li::marker {
  color: #ffffff;
}

#hero ul.hero__lead li::before,
#hero ul.hero__bullets li::before,
.hero-artboard .hero__content ul.hero__lead li::before,
.hero-artboard .hero__content ul.hero__bullets li::before {
  background: #ffffff;
  background-color: #ffffff;
}

@media (min-width: 601px) and (max-width: 1024px) {
  #hero .hero__actions,
  #hero .hero-artboard .hero__content .hero__actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: stretch !important;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
  }

  #hero .hero__actions .btn,
  #hero .hero__actions a.btn,
  .hero-artboard .hero__content .hero__actions .btn {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0;
    flex: 1 1 0;
    white-space: nowrap;
    box-sizing: border-box;
  }
}
