/* ===================== 모바일 index 재제작 (hn-*) — 섹션별 영상 + 애니메이션 이미지 ===================== */
@media (max-width: 1024px) {
  .hn {
    position: relative;
    color: #fff;
    font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", sans-serif;
    letter-spacing: -0.03em;
    word-break: keep-all;
  }

  /* ---------- 영상 (1회 재생 후 정지) ---------- */
  .hn-vid {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    line-height: 0;
    background: #101828;
    -webkit-tap-highlight-color: transparent;
  }

  .hn-vid video,
  .hn-vid > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
  }

  .hn-vid--hero { background: #060e22; }
  .hn-vid--deal { background: #0a0c1e; }
  .hn-vid--price { background: #fff0e2; }
  .hn-vid--prem { background: #12103a; }
  .hn-vid--cta { background: #ff7a1a; }

  .hn-loc .hn-vid { background: #061a40; }
  .hn-plan .hn-vid { background: #0a2460; }
  .hn-comm .hn-vid { background: #06686f; }
  .hn-land .hn-vid { background: #0a4430; }

  .hn-pad {
    padding: 1.9rem 1.1rem 2.2rem;
  }

  .hn-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    opacity: 0.85;
  }

  .hn-h2 {
    margin: 0 0 0.8rem;
    font-family: "Jua", "Pretendard Variable", sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: -0.02em;
  }

  .hn-h2 em,
  .hn-h3 em {
    font-style: normal;
    background: linear-gradient(transparent 62%, rgba(255, 122, 26, 0.55) 62%);
  }

  .hn-h3 {
    margin: 2.2rem 0 0.9rem;
    font-family: "Jua", "Pretendard Variable", sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
  }

  .hn-lead {
    margin: 0 0 1.3rem;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.6;
    opacity: 0.92;
  }

  .hn-note {
    margin: 1.2rem 0 0;
    font-size: 0.72rem;
    line-height: 1.6;
    opacity: 0.7;
  }

  .hn-note--dark {
    color: #8c7a6c;
    opacity: 1;
  }

  .hn-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 58px;
    margin-top: 1.6rem;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ff9d4d, #ff7a1a 55%, #e8600a);
    color: #fff;
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    box-shadow: 0 10px 22px rgba(255, 122, 26, 0.4);
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .hn-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-18deg);
    animation: hn-shine 3.2s ease-in-out infinite;
  }

  .hn-btn--light {
    background: #ffd60a;
    color: #0a2460;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  }

  /* ---------- 애니메이션 이미지 ---------- */
  .hn-fig-wrap {
    margin: 1.3rem 0 0;
  }

  .hn-fig-wrap figcaption,
  .hn-photos figcaption {
    margin-top: 0.55rem;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0.92;
  }

  .hn-fig {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
    line-height: 0;
  }

  .hn-fig img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 60% 50%;
  }

  .hn-fig::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 38%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
  }

  .mlx-js .hn-an .hn-fig img {
    clip-path: inset(0 100% 0 0);
    transform: scale(1.22);
  }

  .mlx-js .hn-an.go .hn-fig img {
    animation: hn-wipe 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, hn-kb 9s 0.2s ease-out forwards;
  }

  .mlx-js .hn-an.go .hn-fig::after {
    animation: hn-shine-once 1.3s 0.9s ease-out 1 forwards;
  }

  .hn-tag {
    position: absolute;
    left: var(--x, 10%);
    top: var(--y, 8%);
    z-index: 2;
    padding: 5px 11px;
    border-radius: 999px;
    background: #ff7a1a;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .mlx-js .hn-an .hn-tag {
    opacity: 0;
    transform: translate(-50%, -12px);
  }

  .mlx-js .hn-an.go .hn-tag {
    opacity: 1;
    transform: translate(-50%, 0);
    transition: opacity 0.5s 0.9s, transform 0.5s 0.9s cubic-bezier(0.2, 1.4, 0.4, 1);
  }

  .hn-ping {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 2;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: #ff5a0a;
    border: 3px solid #fff;
    box-shadow: 0 0 0 0 rgba(255, 90, 10, 0.6);
  }

  .hn-ping::before,
  .hn-ping::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid rgba(255, 90, 10, 0.75);
    animation: hn-ping 1.8s ease-out infinite;
  }

  .hn-ping::after {
    animation-delay: 0.9s;
  }

  .mlx-js .hn-an .hn-ping {
    opacity: 0;
  }

  .mlx-js .hn-an.go .hn-ping {
    opacity: 1;
    transition: opacity 0.4s 1.1s;
  }

  /* ---------- 05 도로·교통 (네이비) ---------- */
  .hn-loc {
    background:
      radial-gradient(circle at 90% 0%, rgba(255, 122, 26, 0.22), transparent 38%),
      linear-gradient(180deg, #061a40, #08234f 60%, #061a40);
  }

  .hn-loc .hn-eyebrow { color: #ffb066; }
  .hn-loc .hn-h2 em { background: linear-gradient(transparent 62%, rgba(255, 122, 26, 0.7) 62%); }

  .hn-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 0.4rem;
    padding: 0;
    list-style: none;
  }

  .hn-stats li {
    padding: 14px 12px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 190, 120, 0.4);
    text-align: center;
  }

  .hn-stats b {
    display: block;
    font-family: "Jua", "Pretendard Variable", sans-serif;
    font-size: 2.1rem;
    font-weight: 400;
    line-height: 1.1;
    color: #ffd36b;
  }

  .hn-stats b small {
    font-size: 1rem;
    margin-left: 2px;
  }

  .hn-stats span {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    color: #dfe8ff;
  }

  .hn-loc .hn-fig-wrap figcaption { color: #cfdcff; }

  .hn-info {
    margin-top: 1.4rem;
    padding: 6px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: #11224a;
  }

  .hn-info dl {
    margin: 0;
  }

  .hn-info dl > div {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #c8d3ee;
  }

  .hn-info dl > div:last-child {
    border-bottom: 0;
  }

  .hn-info dt {
    flex: none;
    width: 3.2rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #0a2460;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
  }

  .hn-info dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
  }

  .hn-info dd b {
    color: #e8600a;
  }

  .hn-banner {
    margin-top: 1.4rem;
    padding: 1.2rem 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff7a1a, #e8400a);
    text-align: center;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  }

  .hn-banner__s {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    opacity: 0.95;
  }

  .hn-banner__b {
    margin: 0.4rem 0 0;
    font-family: "Jua", "Pretendard Variable", sans-serif;
    font-size: 1.45rem;
    line-height: 1.4;
  }

  .hn-banner__b em {
    font-style: normal;
    color: #ffee9a;
    font-size: 1.7rem;
  }

  .hn-banner__n {
    margin: 0.5rem 0 0;
    font-size: 0.7rem;
    opacity: 0.85;
  }

  .hn-job {
    display: grid;
    gap: 8px;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
  }

  .hn-job li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #ff7a1a;
  }

  .hn-job b {
    font-size: 0.98rem;
    font-weight: 800;
  }

  .hn-job span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #dfe8ff;
    text-align: right;
  }

  .hn-job em {
    font-style: normal;
    font-weight: 900;
    color: #ffd36b;
  }

  /* ---------- 06 평면 (블루프린트) ---------- */
  .hn-plan {
    background:
      linear-gradient(rgba(150, 190, 255, 0.1) 1px, transparent 1px) 0 0 / 28px 28px,
      linear-gradient(90deg, rgba(150, 190, 255, 0.1) 1px, transparent 1px) 0 0 / 28px 28px,
      linear-gradient(180deg, #0a2460, #06183f);
  }

  .hn-plan .hn-eyebrow { color: #8fd0ff; }
  .hn-plan .hn-h2 em { background: linear-gradient(transparent 62%, rgba(255, 214, 10, 0.55) 62%); }

  .hn-tabs {
    display: flex;
    gap: 8px;
    margin: 0 -1.1rem;
    padding: 4px 1.1rem 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hn-tabs::-webkit-scrollbar { display: none; }

  .hn-tab {
    flex: none;
    min-width: 66px;
    height: 44px;
    padding: 0 14px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 900;
    scroll-snap-align: center;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
  }

  .hn-tab.is-on {
    background: #ffd60a;
    border-color: #ffd60a;
    color: #0a2460;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  }

  .hn-plan__stage {
    margin-top: 0.7rem;
    padding: 14px 12px 16px;
    border-radius: 22px;
    background: #fff;
    color: #0a2460;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  }

  .hn-plan__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 6px;
  }

  .hn-plan__head b {
    font-family: "Jua", "Pretendard Variable", sans-serif;
    font-size: 2.3rem;
    font-weight: 400;
    line-height: 1.1;
  }

  .hn-plan__head span {
    padding: 4px 12px;
    border-radius: 999px;
    background: #ff7a1a;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
  }

  .hn-plan__sub {
    margin: 2px 6px 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a5f95;
  }

  .hn-plan__img {
    overflow: hidden;
    border-radius: 14px;
    line-height: 0;
    background: #fafafa;
  }

  .hn-plan__img img {
    display: block;
    width: 100%;
    height: auto;
  }

  .hn-plan__img img.in {
    animation: hn-planin 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hn-feat {
    display: grid;
    gap: 8px;
    margin: 1.3rem 0 0;
    padding: 0;
    list-style: none;
  }

  .hn-feat li {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hn-feat i {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffd60a;
    color: #0a2460;
    font-style: normal;
    font-size: 1rem;
    font-weight: 900;
  }

  .hn-feat b {
    font-size: 1.02rem;
    font-weight: 800;
  }

  .hn-feat span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #bcd2ff;
  }

  /* ---------- 07 단지 규모 (크림 + 숫자) ---------- */
  .hn-scale {
    background:
      radial-gradient(circle at 0% 0%, rgba(255, 166, 92, 0.35), transparent 42%),
      #fff4ea;
    color: #2b1a10;
  }

  .hn-scale .hn-eyebrow { color: #e8600a; }
  .hn-scale .hn-h2 em { color: #e8600a; background: linear-gradient(transparent 62%, rgba(255, 122, 26, 0.3) 62%); }

  .hn-count {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
  }

  .hn-count li {
    position: relative;
    padding: 16px 10px 14px;
    border-radius: 20px;
    background: #fff;
    border: 2px solid #ffd2a8;
    text-align: center;
    box-shadow: 0 8px 18px rgba(255, 122, 26, 0.14);
    overflow: hidden;
  }

  .hn-count li:nth-child(odd) {
    background: linear-gradient(160deg, #ff8f3d, #e8600a);
    border-color: #e8600a;
    color: #fff;
  }

  .hn-count b {
    font-family: "Jua", "Pretendard Variable", sans-serif;
    font-size: 2.7rem;
    font-weight: 400;
    line-height: 1;
    color: #e8600a;
  }

  .hn-count li:nth-child(odd) b { color: #fff; }

  .hn-count b em {
    font-style: normal;
    font-size: 1rem;
    margin-left: 2px;
  }

  .hn-count i {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 1rem;
    font-weight: 900;
  }

  .hn-count li > span {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.85;
  }

  .hn-scale .hn-fig { box-shadow: 0 14px 30px rgba(120, 60, 10, 0.25); border: 3px solid #fff; }
  .hn-scale figcaption { color: #5a4030; }

  /* ---------- 09 커뮤니티 (틸) ---------- */
  .hn-comm {
    background:
      radial-gradient(circle at 100% 0%, rgba(120, 240, 230, 0.25), transparent 40%),
      linear-gradient(180deg, #06686f, #043846);
  }

  .hn-comm .hn-eyebrow { color: #9af0ea; }
  .hn-comm .hn-h2 em { background: linear-gradient(transparent 62%, rgba(255, 214, 10, 0.5) 62%); }

  .hn-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
    margin: 0;
  }

  .hn-photos figure {
    margin: 0;
  }

  .hn-photos .hn-fig {
    border-radius: 14px;
    border: 3px solid #fff;
  }

  .hn-photos figcaption {
    font-family: "Jua", "Pretendard Variable", sans-serif;
    font-size: 1.02rem;
    font-weight: 400;
  }

  .hn-photos figcaption small {
    display: block;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    color: #a8f0ea;
  }

  .hn-big5 {
    display: grid;
    gap: 12px;
  }

  .hn-card {
    position: relative;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    color: #0a3a42;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  }

  .hn-card .hn-fig {
    border-radius: 12px;
    box-shadow: none;
  }

  .hn-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 2px 4px;
    font-size: 1.1rem;
    font-weight: 900;
  }

  .hn-card h4 i {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff7a1a;
    color: #fff;
    font-style: normal;
    font-size: 0.9rem;
  }

  .hn-card p {
    margin: 0 2px 2px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.55;
    color: #3f6a70;
  }

  .hn-card--txt {
    padding: 14px;
    background: linear-gradient(135deg, #fff, #dff8f5);
    border-left: 6px solid #ff7a1a;
  }

  .hn-card--txt h4 { margin-top: 0; }

  .hn-comm .hn-note { color: #d6f6f3; }

  /* ---------- 10 조경 (그린) ---------- */
  .hn-land {
    background:
      radial-gradient(circle at 0% 100%, rgba(150, 255, 190, 0.2), transparent 45%),
      linear-gradient(180deg, #0a4430, #04261a);
  }

  .hn-land .hn-eyebrow { color: #a8f5c8; }
  .hn-land .hn-h2 em { background: linear-gradient(transparent 62%, rgba(255, 214, 10, 0.5) 62%); }
  .hn-land .hn-fig-wrap figcaption { color: #d3fbe4; }

  .hn-cap2 {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    color: #d3fbe4;
  }

  .hn-cap2 b {
    color: #ffd60a;
  }

  /* ---------- 키프레임 ---------- */
  @keyframes hn-wipe {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }

  @keyframes hn-kb {
    from { transform: scale(1.22); }
    to { transform: scale(1.02); }
  }

  @keyframes hn-shine {
    0% { left: -60%; }
    55%, 100% { left: 140%; }
  }

  @keyframes hn-shine-once {
    0% { left: -70%; opacity: 1; }
    100% { left: 140%; opacity: 1; }
  }

  @keyframes hn-ping {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(3.2); opacity: 0; }
  }

  @keyframes hn-planin {
    from { opacity: 0; transform: translateX(26px) scale(1.06); filter: blur(3px); }
    to { opacity: 1; transform: none; filter: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hn-btn::after,
  .hn-ping::before,
  .hn-ping::after,
  .hn-plan__img img.in {
    animation: none;
  }
}


/* perf: content-visibility */
@media (max-width: 1024px) {
  #mobile-home .dg-feed,
  #mobile-home .hn-vid--deal,
  #mobile-home .hn-vid--price,
  #mobile-home .hn-loc,
  #mobile-home .hn-plan,
  #mobile-home .hn-scale,
  #mobile-home .hn-vid--prem,
  #mobile-home .hn-comm,
  #mobile-home .hn-land,
  #mobile-home .dg-chat,
  #mobile-home .hn-vid--cta,
  #mobile-home .inquiry--mobile-home {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }
}
