/* 하나애드텍 mobile / tablet presentation. No rules apply above 1024px. */
@media (max-width: 1024px) {
  html { scroll-padding-top: 80px; scroll-snap-type: none; }
  body { -webkit-text-size-adjust: 100%; }
  .container { padding-inline: max(20px, env(safe-area-inset-left)); }
  .nav, .nav.nav--visible { transform: none; opacity: 1; pointer-events: auto; }
  .nav { padding-top: env(safe-area-inset-top); }
  .nav__inner { grid-template-columns: minmax(0, 1fr) 44px; height: 64px; gap: 12px; }
  .nav__logo { font-size: 1.15rem; gap: 8px; }
  .nav__logo-icon { width: 34px; height: 38px; }
  .nav__menu, .nav__actions { display: none; }
  .nav__hamburger { display: flex; grid-column: 2; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__mobile { top: calc(64px + env(safe-area-inset-top)); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); gap: 0; background: var(--color-bg); }
  .nav__mobile.open { display: flex; animation: mobile-menu-in .24s ease both; }
  .nav__mobile > .nav__link { justify-content: flex-start; height: auto; min-height: 48px; font-size: 1.1rem; font-weight: 700; padding: 10px 0; color: var(--color-text); }
  .nav-mobile-submenu { margin: 0; padding: 0 0 12px; gap: 8px; border-bottom: 1px solid var(--color-border); }
  .nav-mobile-submenu__item { min-height: 44px; padding: 10px 14px; }
  body.mobile-menu-open { overflow: hidden; }
  /* The existing full-width nav is the drawer shell; only its menu body scrolls. */
  body.mobile-menu-open .nav {
    position: fixed;
    inset: 0 0 0 0;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-bg);
  }
  body.mobile-menu-open .nav > .container {
    flex: 0 0 auto;
    width: 100%;
    background: rgba(255,255,255,.92);
  }
  body.mobile-menu-open .nav__mobile {
    position: relative;
    inset: auto;
    flex: 1 1 0%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.mobile-menu-open .nav__mobile > * { flex-shrink: 0; }
  body.mobile-menu-open .floating-actions { visibility: hidden; }
  @keyframes mobile-menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

  /* Preserve the blue grid/light composition; give the copy its own breathing room. */
  #page-home .hero-fold { height: auto; min-height: 0; overflow: visible; padding-top: calc(64px + env(safe-area-inset-top)); }
  #page-home .hero { flex: none; min-height: 0; }
  #page-home .hero__inner { padding-top: 48px; padding-bottom: 36px; }
  #page-home .hero__copy { max-width: 680px; margin-inline: auto; }
  #page-home .hero__tag { font-size: .69rem; letter-spacing: .07em; margin-bottom: 26px; }
  #page-home .hero__title { font-size: clamp(29px, 7.5vw, 54px); letter-spacing: -.045em; gap: 12px; margin-bottom: 22px; }
  #page-home .hero__title .hero__title-line { line-height: 1.16; }
  #page-home .hero__title .hero__title-line--combo { display: flex; font-size: 1.3em; }
  #page-home .hero__subtitle { font-size: clamp(17px, 4.5vw, 23px); line-height: 1.65; margin-bottom: 18px; }
  #page-home .hero__desc { font-size: .83rem; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; margin-bottom: 24px; }
  #page-home .hero__desc br { display: none; }
  #page-home .hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  #page-home .hero__cta .btn { min-height: 50px; padding: 12px 8px; font-size: .8rem; justify-content: center; width: 100%; }
  #page-home .hero__stats { display: grid; grid-template-columns: .8fr 1fr 1.15fr; width: 100%; gap: 12px; margin-top: 30px; padding-top: 22px; }
  .hero__stats > div:empty { display: none; }
  .hero__stat-num { font-size: 1.9rem; line-height: 1.2; }
  .hero__stat-num--ko { font-size: 1.15rem; line-height: 2; white-space: nowrap; }
  .hero__stat-label { font-size: .69rem; margin-top: 5px; }
  .hero__grid, .hero__grid-light { background-size: 44px 44px; }
  .hero__bg::before { width: 480px; height: 480px; right: -280px; top: -180px; }
  .hero__bg::after { width: 360px; height: 360px; left: -240px; bottom: -180px; }
  .hero-svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 20px; }
  .hero-svc-grid .hero-svc-card, .hero-svc-grid:hover .hero-svc-card, .hero-svc-grid .hero-svc-card:hover { width: 100%; max-width: none; min-height: 102px; padding: 18px 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); will-change: auto; }
  .hero-svc-grid .hero-svc-card:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); padding-left: 0; }
  .hero-svc-grid .hero-svc-card:nth-last-child(-n+2) { border-bottom: 0; }
  .hero-svc-card .hero-svc__inner, .hero-svc-card:hover .hero-svc__inner { transform: none; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px 8px; will-change: auto; }
  .hero-svc__icon { width: 28px; height: 28px; margin: 0; }
  .hero-svc__title { white-space: normal; text-wrap: wrap; font-size: .84rem; margin: 0; align-self: center; }
  .hero-svc__sub { grid-column: 1 / -1; white-space: normal; text-wrap: wrap; font-size: .65rem; color: rgba(255,255,255,.7); }
  .hero-svc__desc, .hero-svc__arrow { display: none; }

  /* Editorial feature grid and compact process, retaining the existing content. */
  .section, .section-sm, .workflow-section { padding: 52px 0; }
  .section__header { text-align: left; margin-bottom: 28px; }
  .section__title, .svc-detail__title { font-size: clamp(24px, 6.4vw, 34px); line-height: 1.35; letter-spacing: -.045em; word-break: keep-all; overflow-wrap: anywhere; }
  .section__sub, .svc-detail__sub { font-size: .9rem; line-height: 1.8; word-break: keep-all; }
  .section__label, .svc-detail__label { font-size: .69rem; letter-spacing: .12em; }
  .svc-detail__intro { padding: 52px 20px 30px; }
  .svc-detail__head { margin-bottom: 30px; }
  .svc-detail__features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .svc-detail__feat { border: 0; border-top: 1px solid var(--color-border); border-radius: 0; background: transparent; padding: 18px 0; }
  .svc-detail__feat-title { font-size: .88rem; margin-bottom: 8px; }
  .svc-detail__feat-desc { font-size: .78rem; line-height: 1.8; word-break: keep-all; }
  #district-section, #price-simulator { display: none !important; }
  .mobile-posting-contact { margin-top: 10px; padding: 22px 0 0; border-top: 1px solid var(--color-border); }
  .mobile-posting-contact .btn { min-height: 48px; width: 100%; justify-content: space-between; }
  .workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 8px; }
  .workflow-step { min-width: 0; width: auto; }
  .workflow-step__top { min-height: 44px; }
  .workflow-step__circle { width: 40px; height: 40px; }
  .workflow-step__name { font-size: .78rem; margin-top: 10px; }
  .workflow-step__line { left: calc(50% + 25px); width: calc(100% - 42px); }
  .workflow-step:nth-child(3n) .workflow-step__line { display: none; }
  .unified-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .unified-type-card { border: 0; border-radius: 0; box-shadow: none; border-top: 2px solid var(--color-border); background: transparent; padding: 20px 0; min-width: 0; }
  .unified-type-card__name { font-size: .94rem; }
  .unified-type-card__desc { font-size: .8rem; line-height: 1.8; }

  /* The existing pager still owns filtering, popup details and page changes. */
  .portfolio-content-shell { padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .portfolio-pager { padding: 0; }
  .portfolio-pager__viewport { overflow: hidden; border-radius: 14px; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
  .portfolio-pager__viewport img { -webkit-user-drag: none; }
  .portfolio-pager__page.portfolio-full-grid, .portfolio-pager__page.portfolio-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .portfolio-full-card, .portfolio-card { min-width: 0; box-shadow: none; }
  .portfolio-full-card__thumb, .portfolio-card__thumb { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .portfolio-full-card__thumb img, .portfolio-card__thumb img { width: 100%; height: 100%; object-fit: contain; }
  .portfolio-full-card__body { padding: 20px; }
  .portfolio-full-card__title { font-size: 1.08rem; line-height: 1.5; }
  .portfolio-full-card__desc { font-size: .83rem; line-height: 1.7; }
  .portfolio-pager__viewport { width: calc(100% - 32px); margin-inline: auto; }
  .portfolio-pager__nav { top: calc(50% - 24px); bottom: auto; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 7px 18px rgba(15,23,42,.14); }
  .portfolio-pager__nav:active { background: rgba(15,23,42,.78); color: #fff; }
  .portfolio-pager__nav--prev { left: 0; }
  .portfolio-pager__nav--next { right: 0; }
  .portfolio-pager__dots { min-height: 24px; margin: 14px 0 0; gap: 7px; flex-wrap: wrap; }
  .portfolio-pager__dot { width: 22px; height: 24px; border-radius: 0; background: radial-gradient(circle, #b8c9e5 3px, transparent 4px); }
  .portfolio-pager__dot.is-active { width: 22px; background: radial-gradient(circle, var(--color-accent) 4px, transparent 5px); }
  .service-portfolio-actions .btn { min-height: 48px; white-space: normal; }
  .portfolio-lightbox__panel { height: calc(100vh - 32px); height: calc(100dvh - 32px); }
  .portfolio-lightbox__close { min-width: 44px; min-height: 44px; }

  /* Stack comparison criteria, not whole cards. Column names are copied by mobile.js. */
  .compare-section .compare-container { min-width: 0 !important; width: 100%; overflow: hidden; }
  .compare-section .compare-hdr { display: none !important; }
  .compare-section .compare-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .compare-section .compare-row__label { display: block !important; grid-column: 1 / -1; padding: 12px 14px; font-size: .85rem; background: #eaf1fd; }
  .compare-section .compare-row__cell { display: flex !important; flex-direction: column; min-width: 0; padding: 14px 12px; border-bottom: 1px solid var(--color-border); }
  .compare-section .compare-row__cell::before { content: attr(data-mobile-heading); font-size: .74rem; font-weight: 700; color: var(--color-accent); margin-bottom: 10px; }
  .compare-section .compare-row__cell:nth-child(4) { grid-column: 1 / -1; }
  .compare-section .compare-cell-top { padding: 0; }
  .compare-cell-title { font-size: .83rem; }
  .compare-cell-text { font-size: .76rem; overflow-wrap: anywhere; }
  .compare-badges { flex-wrap: wrap; }
  .compare-section .container { overflow: visible; }
  .faq-row { grid-template-columns: 1fr; }
  .faq-card__q { min-height: 56px; font-size: .9rem; }
  .faq-card__a { font-size: .84rem; }

  .compare-section .compare-row.mobile-compare-ready:not(.is-mobile-open) .compare-row__cell { display: none !important; }
  .mobile-compare-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
  .mobile-compare-toggle::after { content: '+'; color: var(--color-accent); font-size: 1.3rem; }
  .mobile-compare-toggle[aria-expanded="true"]::after { content: '−'; }
  .inquiry-box { padding: 26px 20px; border-radius: 16px; }
  .inquiry-box__title { font-size: 1.5rem; }
  .inquiry-box__sub { font-size: .82rem; line-height: 1.8; }
  .form__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .form__group { min-width: 0; }
  .form__input, .form__select, .form__textarea { font-size: 16px; min-height: 48px; max-width: 100%; }
  #homeInquiryForm .form__actions, #mainInquiryForm .form__actions { align-items: stretch; flex-direction: column; text-align: left; }
  #homeInquiryForm .form__actions .btn[type="submit"], #mainInquiryForm .form__actions .btn[type="submit"] { min-height: 50px; width: 100%; justify-content: center; }
  #homeInquiryForm .form__privacy, #mainInquiryForm .form__privacy { text-align: left; }
  .form__privacy { font-size: .72rem; line-height: 1.7; }
  .form__file { padding: 22px 12px; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .footer__inner > :first-child, .footer__inner > :last-child { grid-column: 1 / -1; }
  .footer__brand-desc { font-size: .79rem; }
  .footer__link { display: inline-block; padding-block: 8px; overflow-wrap: anywhere; }
  .footer__bottom { align-items: flex-start; gap: 12px; flex-direction: column; }
  .floating-actions { right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  .floating-actions__stack { gap: 6px; }
  .floating-actions__row, .floating-actions__base { gap: 6px; }
  .floating-actions__inquiry { min-height: 44px; padding: 0 16px; font-size: .82rem; }
  .floating-actions__kakao, .scroll-top-btn { width: 44px; height: 44px; min-height: 44px; }
  .floating-actions__selfmix { display: none !important; }
  body.mobile-input-focus .floating-actions { visibility: hidden; }
  body.mobile-inquiry-visible .floating-actions { visibility: hidden; }
  .page-hero, #page-inquiry .page-hero { padding-top: 104px !important; }
  .about-main-grid, .inquiry-layout { grid-template-columns: minmax(0, 1fr); }
  .board-hero { padding-top: 104px; }
  .modal__map { display: none; }
  /* Preserve existing self-combination controls, while removing the fixed 1500px canvas. */
  #page-self-combo, #page-self-combo.active, #page-self-combo .self-combo-page {
    height: auto !important; min-height: 100svh; max-height: none !important; overflow: visible !important;
  }
  #page-self-combo .self-combo-page { padding: 88px 0 40px; }
  #page-self-combo .self-combo-page > .container,
  #page-self-combo .self-combo-page__lead,
  #page-self-combo .self-combo-page__lead > .container {
    width: 100%; min-width: 0; max-width: 100%; height: auto; min-height: 0; max-height: none; overflow: visible;
  }
  #page-self-combo .self-combo-page > .container { padding-inline: 16px; }
  .unified-configurator--interactive.curation-system,
  .unified-configurator--interactive.curation-system .svc-cfg-shell,
  .unified-configurator--interactive.curation-system .svc-cfg-shell .svc-cfg-main,
  .unified-configurator--interactive.curation-system .svc-cfg-shell .unified-configurator__inputs,
  .unified-configurator--interactive.curation-system .svc-cfg-side {
    width: 100%; min-width: 0; max-width: 100%; height: auto; min-height: 0; max-height: none; overflow: visible;
  }
  #page-self-combo .self-combo-page__configurator.curation-system {
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    transform: none !important; margin: 0 !important; left: auto !important;
  }
  .unified-configurator--interactive.curation-system .svc-cfg-shell { grid-template-columns: minmax(0, 1fr); }
  .unified-configurator--interactive.curation-system .svc-cfg-shell .svc-cfg-main { border-radius: 16px; }
  .unified-configurator--interactive.curation-system .svc-cfg-shell .unified-configurator__inputs { padding: 24px 16px; }
  .curation-flow-stage, .curation-flow-body, .curation-stage { height: auto; min-height: 0; overflow: visible; }
  .curation-help-grid, .curation-choice-grid, .curation-input-grid, .curation-path-grid { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 12px; }
  .curation-help-card { display: block; padding: 18px; }
  .curation-help-card__media:empty { display: none; }
  .curation-flow-head, .curation-flow-footer { flex-wrap: wrap; gap: 14px; }
  .curation-flow-actions, .curation-flow-footer__right, .curation-flow-footer__left { flex-wrap: wrap; }
  .curation-title { font-size: 1.25rem; line-height: 1.5; }
  .curation-desc { font-size: .85rem; }
  .curation-input { font-size: 16px; min-height: 48px; }
  .curation-actions .btn, .curation-flow-footer .btn { min-height: 44px; white-space: normal; }
  .curation-photo-board { min-height: 320px; }
  .curation-photo-frame { max-width: 100%; }
  :is(button, a, [role="button"]):focus-visible { outline: 3px solid #78aaff; outline-offset: 3px; }
  @media (min-width: 600px) {
    .container { padding-inline: 32px; }
    .hero-svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-svc-grid .hero-svc-card:nth-child(n) { padding: 20px 16px; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .hero-svc-grid .hero-svc-card:nth-last-child(-n+3) { border-bottom: 0; }
    .svc-detail__intro { padding: 56px 32px 30px; }
    .portfolio-pager__page.portfolio-full-grid, .portfolio-pager__page.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workflow-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .workflow-step:nth-child(3n):not(:last-child) .workflow-step__line { display: block; }
  }
  @media (max-width: 768px) {
    /* Mobile-only: remove every entry point and inline block for the self-combination system. */
    #page-home .svc-detail > .svc-cfg-lead,
    #page-home .svc-detail > .svc-cfg-lead + .divider,
    #page-self-combo,
    .nav__mobile [data-service-sub-action="self"] {
      display: none !important;
    }
    .nav-mobile-submenu {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      width: 100%;
      gap: 8px;
    }
    .nav-mobile-submenu__item {
      width: 100%;
      min-width: 0;
      min-height: 42px;
      padding: 9px 8px;
      font-size: 13px;
      line-height: 1;
      text-align: center;
      white-space: nowrap;
    }

    /* The all-portfolio page alone uses a compact six-card page. */
    .portfolio-filter {
      display: flex !important;
      align-items: center;
      flex-wrap: nowrap !important;
      gap: 6px;
      max-width: 100%;
      padding: 10px 12px;
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      overscroll-behavior-inline: contain;
    }
    .portfolio-filter::-webkit-scrollbar {
      display: none;
    }
    .portfolio-filter .filter-btn {
      flex: 0 0 auto;
      width: auto;
      height: 32px;
      min-height: 32px;
      padding: 0 11px;
      border-radius: 999px;
      font-size: 11px;
      line-height: 1;
      white-space: nowrap;
    }
    #portfolioPreviewFilterBtns { margin-bottom: 18px !important; }
    #portfolioFullGrid .portfolio-pager__viewport {
      width: 100%;
      margin-inline: 0;
      border-radius: 10px;
    }
    #portfolioFullGrid .portfolio-pager__page.portfolio-full-grid,
    #portfolioFullGrid .portfolio-pager__page.portfolio-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: stretch;
      gap: 8px;
      width: 100%;
    }
    #portfolioFullGrid .portfolio-full-card,
    #portfolioFullGrid .portfolio-card {
      display: flex;
      flex-direction: column;
      min-width: 0;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: none;
    }
    #portfolioFullGrid .portfolio-full-card:hover,
    #portfolioFullGrid .portfolio-card:hover {
      transform: none;
      box-shadow: none;
    }
    #portfolioFullGrid .portfolio-full-card__thumb,
    #portfolioFullGrid .portfolio-card__thumb {
      flex: 0 0 auto;
      width: 100%;
      height: auto;
      min-height: 0;
      aspect-ratio: 4 / 3;
    }
    #portfolioFullGrid .portfolio-full-card__thumb img,
    #portfolioFullGrid .portfolio-card__thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    #portfolioFullGrid .portfolio-full-card__body,
    #portfolioFullGrid .portfolio-card__body {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: 0;
      min-height: 42px;
      padding: 6px 5px;
      text-align: center;
    }
    #portfolioFullGrid .portfolio-full-card__desc {
      display: none;
    }
    #portfolioFullGrid .portfolio-full-card__cat,
    #portfolioFullGrid .portfolio-card__cat {
      display: block;
      width: 100%;
      margin: 0 0 2px;
      overflow: hidden;
      color: var(--color-accent);
      font-size: 8px;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    #portfolioFullGrid .portfolio-full-card__title,
    #portfolioFullGrid .portfolio-card__title {
      display: -webkit-box;
      width: 100%;
      margin: 0;
      overflow: hidden;
      font-size: 10px;
      font-weight: 700;
      line-height: 1.3;
      text-align: center;
      word-break: keep-all;
      overflow-wrap: anywhere;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }
    #portfolioFullGrid .portfolio-pager__nav {
      top: calc(50% - 20px);
      bottom: auto;
      width: 38px;
      height: 38px;
      transform: translateY(-50%);
      border: 1px solid rgba(26,92,232,.14);
      background: rgba(255,255,255,.82);
      font-size: 1.3rem;
      box-shadow: 0 4px 12px rgba(15,23,42,.1);
    }
    #portfolioFullGrid .portfolio-pager__nav--prev { left: -5px; }
    #portfolioFullGrid .portfolio-pager__nav--next { right: -5px; }
    #portfolioFullGrid .portfolio-pager__dots {
      min-height: 32px;
      margin: 12px 0 0;
      gap: 2px;
    }

    /* Service detail portfolios remain one large, circular card slider. */
    [data-service-portfolio-pager] .portfolio-demo-note {
      margin: 0 16px 12px;
      color: var(--color-muted);
      font-size: 11px;
      line-height: 1.5;
      text-align: center;
    }
    [data-service-portfolio-pager] .portfolio-pager__page.portfolio-full-grid,
    [data-service-portfolio-pager] .portfolio-pager__page.portfolio-grid {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
    }
    [data-service-portfolio-pager] .portfolio-pager__viewport {
      position: relative;
      width: calc(100% - 32px);
      margin-inline: auto;
      border-radius: 14px;
    }
    [data-service-portfolio-pager] .portfolio-pager__nav {
      top: 50%;
      bottom: auto;
      transform: translateY(-50%);
      width: 38px;
      height: 38px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 0;
      border-radius: 50%;
      background: rgba(15, 23, 42, .22);
      color: #fff;
      box-shadow: none;
      z-index: 5;
      transition: background .25s ease;
    }
    [data-service-portfolio-pager] .portfolio-pager__nav--prev { left: 8px; }
    [data-service-portfolio-pager] .portfolio-pager__nav--next { right: 8px; }
    [data-service-portfolio-pager] .portfolio-pager__nav:hover,
    [data-service-portfolio-pager] .portfolio-pager__nav:active {
      background: rgba(15, 23, 42, .5);
    }
    [data-service-portfolio-pager].is-static .portfolio-pager__nav { display: none; }
    [data-service-portfolio-pager] .portfolio-full-card__thumb,
    [data-service-portfolio-pager] .portfolio-card__thumb {
      aspect-ratio: 4 / 3;
    }
    [data-service-portfolio-pager] .portfolio-full-card__body {
      padding: 18px 20px;
    }
    [data-service-portfolio-pager] .portfolio-full-card__cat {
      display: block;
    }
    [data-service-portfolio-pager] .portfolio-full-card__title {
      display: block;
      margin-bottom: 8px;
      font-size: 1.05rem;
      line-height: 1.45;
    }
    [data-service-portfolio-pager] .portfolio-full-card__desc {
      display: block;
      font-size: .82rem;
      line-height: 1.65;
    }

    /* Keep the mobile detail dialog compact with one undivided media area. */
    .portfolio-lightbox { padding: 12px; }
    .portfolio-lightbox__panel {
      width: min(100%, 430px);
      height: auto;
      max-width: 100%;
      max-height: calc(100dvh - 24px);
      padding: 12px;
      overflow-x: hidden;
      overflow-y: auto;
      border-radius: 18px;
    }
    .portfolio-lightbox__media {
      flex: 0 0 clamp(230px, 38vh, 310px);
      width: 100%;
      height: clamp(230px, 38vh, 310px);
      min-height: 230px;
      max-height: 310px;
      border-radius: 14px;
    }
    .portfolio-lightbox__image,
    .portfolio-lightbox__visual {
      width: 100%;
      height: 100%;
      min-height: 0;
    }
    .portfolio-lightbox__image[hidden],
    .portfolio-lightbox__visual[hidden] {
      display: none !important;
    }
    .portfolio-lightbox__image {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      max-width: none;
      max-height: none;
      object-fit: contain;
    }
    .portfolio-lightbox__body { padding: 14px 4px 4px; }
    .portfolio-lightbox__title { font-size: 1.08rem; line-height: 1.4; }
    .portfolio-lightbox__desc { font-size: .82rem; line-height: 1.6; }
    .portfolio-lightbox__badge {
      top: 10px;
      right: 54px;
      max-width: calc(100% - 110px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .portfolio-lightbox__close { top: 10px; right: 10px; }

    /* Center the all-portfolio introduction without touching desktop. */
    #page-portfolio .portfolio-hero .container { text-align: center; }
    #page-portfolio .portfolio-hero__actions {
      justify-content: center;
      align-items: center;
    }

    /* Mobile footer ends with divider, contact details, then copyright. */
    .footer__inner { margin-bottom: 22px; }
    .footer__inner > :last-child {
      margin-top: 4px;
      padding-top: 24px;
      border-top: 1px solid rgba(255,255,255,.1);
    }
    .footer__bottom { padding-top: 0; border-top: 0; }

    /* Mobile about page: one composed intro card with a balanced 2 x 2 KPI grid. */
    #page-about {
      background: linear-gradient(180deg, #f7f9fe 0%, var(--color-bg) 42%);
    }
    #page-about .about-hero-wrap {
      margin: calc(64px + env(safe-area-inset-top) + 20px) 16px 0;
      padding: 28px 20px 24px !important;
      border: 1px solid var(--color-border);
      border-bottom: 0;
      border-radius: 22px 22px 0 0;
      background: #fff !important;
      text-align: left;
    }
    #page-about .about-hero-wrap .container {
      width: 100%;
      max-width: none;
      padding: 0;
    }
    #page-about .about-hero-wrap .section__header {
      margin: 0 !important;
      text-align: left;
    }
    #page-about .about-hero-wrap .section__label {
      margin-bottom: 10px;
    }
    #page-about .about-hero-wrap .section__title {
      margin-bottom: 14px;
      font-size: clamp(25px, 7vw, 30px);
      line-height: 1.22;
      letter-spacing: -.04em;
      word-break: keep-all;
    }
    #page-about .about-hero-wrap .section__sub {
      max-width: 34rem;
      margin: 0;
      font-size: .86rem;
      line-height: 1.75;
      word-break: keep-all;
      overflow-wrap: break-word;
    }
    #page-about .about-hero-wrap .section__sub br {
      display: none;
    }
    #page-about > .container {
      padding-inline: 16px;
      padding-bottom: 56px !important;
    }
    #page-about .about-kpi-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin: 0 0 32px;
      padding: 4px 20px 22px;
      border: 1px solid var(--color-border);
      border-top: 0;
      border-radius: 0 0 22px 22px;
      background: #fff;
      box-shadow: 0 16px 34px rgba(15, 45, 110, .08);
    }
    #page-about .about-kpi-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: 0;
      min-height: 116px;
      aspect-ratio: 1.2 / 1;
      padding: 14px 10px;
      border: 1px solid rgba(26, 92, 232, .12);
      border-radius: 15px;
      background: linear-gradient(145deg, #fbfdff 0%, #f2f6ff 100%);
      box-shadow: none;
      text-align: center;
    }
    #page-about .about-kpi-card:hover {
      transform: none;
      box-shadow: none;
    }
    #page-about .about-kpi-num {
      width: 100%;
      margin: 0 0 8px;
      font-size: clamp(1.25rem, 5.5vw, 1.65rem);
      line-height: 1.18;
      word-break: keep-all;
      overflow-wrap: break-word;
      text-wrap: balance;
    }
    #page-about .about-kpi-label {
      width: 100%;
      font-size: .76rem;
      line-height: 1.45;
      word-break: keep-all;
      overflow-wrap: break-word;
      text-wrap: balance;
    }
    #page-about .about-kpi-grid + .unified-section__header {
      margin: 0 4px 18px !important;
      text-align: left;
    }
    #page-about .about-kpi-grid + .unified-section__header .unified-section__label {
      margin-bottom: 9px;
    }
    #page-about .about-kpi-grid + .unified-section__header .unified-section__title {
      line-height: 1.35;
    }

    /* Keep the three quick actions compact and clear of central content. */
    .floating-actions {
      right: max(10px, env(safe-area-inset-right));
      bottom: calc(16px + env(safe-area-inset-bottom));
      z-index: 1000;
    }
    .floating-actions__row {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: nowrap;
    }
    .floating-actions__kakao,
    .scroll-top-btn {
      width: 42px;
      height: 42px;
      min-height: 42px;
      flex: 0 0 42px;
    }
    .floating-actions__inquiry {
      min-height: 42px;
      padding: 0 14px;
      font-size: .75rem;
      flex: 0 0 42px;
    }

    /* One-card, circular customer-review slider for phones only. */
    .reviews-slider-wrap {
      position: relative;
      width: 100%;
      max-width: 100%;
      margin-inline: auto;
    }
    .reviews-slider-viewport {
      width: calc(100% - 32px);
      max-width: 100%;
      margin-inline: auto;
      overflow: hidden;
      touch-action: pan-y pinch-zoom;
    }
    .reviews-slider-track {
      display: flex !important;
      width: 100%;
      gap: 0;
      transition: transform .3s ease;
      will-change: transform;
    }
    .reviews-slot {
      flex: 0 0 100%;
      width: 100%;
      min-width: 0;
      padding: 0;
      box-sizing: border-box;
      opacity: .45;
      transition: opacity .3s ease;
      pointer-events: none;
    }
    .reviews-slot.is-active {
      opacity: 1;
      pointer-events: auto;
    }
    .review-card {
      width: 100%;
      height: auto;
      min-height: 220px;
      padding: 22px 20px;
    }
    .review-card__text {
      font-size: .84rem;
      line-height: 1.75;
    }
    .review-card__author {
      gap: 10px;
      flex-wrap: nowrap;
    }
    .review-card__name { font-size: .78rem; }
    .review-card__company { font-size: .7rem; }
    .reviews-slider-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 24px;
      margin-top: 14px;
    }
    .reviews-slider-btn {
      position: absolute;
      top: calc(50% - 19px);
      z-index: 5;
      display: flex;
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 999px;
      background: rgba(15, 23, 42, .28);
      color: #fff;
      box-shadow: 0 4px 12px rgba(15, 23, 42, .14);
      transition: background .2s ease, transform .2s ease;
    }
    .reviews-slider-btn:hover,
    .reviews-slider-btn:active {
      background: rgba(15, 23, 42, .52);
    }
    #reviewsPrev { left: 2px; }
    #reviewsNext { right: 2px; }
    .reviews-slider-btn:disabled {
      opacity: 1;
      cursor: pointer;
    }
    .reviews-slider-dots {
      display: flex;
      justify-content: center;
      gap: 7px;
    }
    .reviews-slider-dot {
      width: 7px;
      height: 7px;
    }
    .reviews-slider-dot.active {
      transform: scale(1.25);
    }
    .mobile-reviews-toggle { display: none !important; }

    /* The comparison tables remain intact for desktop, but are omitted on phones. */
    .compare-section {
      display: none !important;
    }

    /* Keep each mobile workflow on one centered rail sized to its real step count. */
    .workflow-steps {
      display: grid;
      grid-template-columns: repeat(var(--workflow-count, 6), minmax(0, 1fr));
      align-items: start;
      justify-content: center;
      gap: 0;
      width: min(100%, calc(var(--workflow-count, 6) * 58px));
      max-width: 100%;
      margin-inline: auto;
      padding: 12px 0 8px;
      overflow: visible;
    }
    .workflow-step {
      width: auto;
      min-width: 0;
    }
    .workflow-step__top {
      width: 100%;
      min-height: 34px;
    }
    .workflow-step__circle {
      width: clamp(28px, 8vw, 34px);
      height: clamp(28px, 8vw, 34px);
      font-size: clamp(11px, 3vw, 14px);
    }
    .workflow-step__line,
    .workflow-step:nth-child(3n) .workflow-step__line {
      display: block;
      top: 50%;
      left: calc(50% + clamp(14px, 4vw, 17px));
      width: calc(100% - clamp(28px, 8vw, 34px));
      height: 2px;
    }
    .workflow-step:last-child .workflow-step__line {
      display: none;
    }
    .workflow-step__name {
      width: 100%;
      max-width: none;
      margin-top: 7px;
      padding-inline: 1px;
      font-size: clamp(9px, 2.5vw, 11px);
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    /* Compact 3 x 2 selector; the fixed rail becomes text-only. */
    .mobile-service-tabs-anchor,
    .mobile-service-tabs-spacer {
      display: block;
      width: 100%;
      height: 0;
    }
    #heroSvcBar {
      z-index: 880;
      background: #0f2e7a;
    }
    #page-home.mobile-tabs-fixed {
      animation: none !important;
      transform: none !important;
    }
    #heroSvcBar.is-mobile-sticky {
      position: fixed;
      top: calc(64px + env(safe-area-inset-top));
      left: 0;
      right: 0;
      width: 100%;
      margin-inline: auto;
      overflow: hidden;
      opacity: 0;
      transform: translateY(-100%);
      pointer-events: none;
      box-shadow: 0 8px 20px rgba(8, 21, 45, .14);
      transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .22s ease;
    }
    #heroSvcBar.is-mobile-sticky.is-mobile-visible {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .hero-svc-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      grid-auto-rows: 72px;
      width: 100%;
      max-width: none;
      padding-inline: 0;
      overflow: hidden;
    }
    .hero-svc-grid .hero-svc-card,
    .hero-svc-grid:hover .hero-svc-card,
    .hero-svc-grid .hero-svc-card:hover {
      width: 100%;
      max-width: none;
      min-width: 0;
      height: 72px;
      min-height: 72px;
      padding: 6px 5px;
      border-right: 1px solid rgba(255,255,255,.12);
      border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .hero-svc-grid .hero-svc-card:nth-child(3n) {
      border-right: 0;
    }
    .hero-svc-grid .hero-svc-card:nth-last-child(-n + 3) {
      border-bottom: 0;
    }
    .hero-svc-grid .hero-svc-card .hero-svc__inner,
    .hero-svc-grid .hero-svc-card:hover .hero-svc__inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      width: 100%;
      min-width: 0;
      height: 100%;
      transform: none;
    }
    .hero-svc-grid .hero-svc__icon {
      width: 20px;
      height: 20px;
      margin: 0;
    }
    .hero-svc-grid .hero-svc__icon svg {
      width: 13px;
      height: 13px;
    }
    .hero-svc-grid .hero-svc__title {
      width: 100%;
      margin: 0;
      min-height: 1.2em;
      font-size: clamp(10px, 2.8vw, 11px);
      line-height: 1.2;
      text-align: center;
      white-space: normal;
      word-break: keep-all;
      overflow-wrap: anywhere;
      text-wrap: balance;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
    .hero-svc-grid .hero-svc__sub {
      display: block;
      width: 100%;
      min-width: 0;
      overflow: hidden;
      font-size: clamp(8px, 2.15vw, 9px);
      line-height: 1.15;
      text-align: center;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .hero-svc-grid .hero-svc__desc,
    .hero-svc-grid .hero-svc__arrow {
      display: none;
    }
    #heroSvcBar.is-mobile-sticky .hero-svc-grid {
      align-items: stretch;
      justify-content: center;
      justify-items: stretch;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      grid-auto-rows: 40px;
      width: 100%;
      max-width: 100%;
      margin-inline: auto;
      padding-inline: 0;
    }
    #heroSvcBar.is-mobile-sticky .hero-svc-card,
    #heroSvcBar.is-mobile-sticky .hero-svc-grid:hover .hero-svc-card,
    #heroSvcBar.is-mobile-sticky .hero-svc-card:hover {
      height: 40px;
      min-height: 40px;
      padding: 3px 2px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      border-right: 0;
      border-bottom: 0;
      box-shadow: inset -1px 0 rgba(255,255,255,.12);
      transition: background 280ms var(--svc-tab-ease), border-color 280ms var(--svc-tab-ease);
    }
    #heroSvcBar.is-mobile-sticky .hero-svc-card:last-child {
      border-right: 0;
      box-shadow: none;
    }
    #heroSvcBar.is-mobile-sticky .hero-svc__inner,
    #heroSvcBar.is-mobile-sticky .hero-svc-card:hover .hero-svc__inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0;
      width: 100%;
      height: 100%;
      text-align: center;
    }
    #heroSvcBar.is-mobile-sticky .hero-svc__icon {
      display: none;
    }
    #heroSvcBar.is-mobile-sticky .hero-svc__title {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      min-height: 0;
      margin: 0;
      font-size: clamp(7.5px, 2.05vw, 9px);
      line-height: 1;
      text-align: center;
      white-space: nowrap;
      text-wrap: nowrap;
      word-break: keep-all;
      overflow-wrap: normal;
      -webkit-line-clamp: unset;
      overflow: hidden;
    }
    #heroSvcBar.is-mobile-sticky .hero-svc-card[data-svc="print"] .hero-svc__title {
      font-size: 0;
    }
    #heroSvcBar.is-mobile-sticky .hero-svc-card[data-svc="print"] .hero-svc__title::after {
      content: "실사출력";
      font-size: clamp(7.5px, 2.05vw, 9px);
      line-height: 1;
    }
    #heroSvcBar.is-mobile-sticky .hero-svc__sub {
      display: none;
    }

    /* Shared one-card slider presentation for every service type guide. */
    .mobile-card-slider {
      position: relative;
      width: 100%;
    }
    .mobile-card-slider__viewport {
      width: calc(100% - 32px);
      margin-inline: auto;
      overflow: hidden;
      border-radius: 16px;
      touch-action: pan-y pinch-zoom;
      user-select: none;
      -webkit-user-select: none;
    }
    .unified-types.mobile-card-slider__track {
      display: flex !important;
      align-items: stretch !important;
      gap: 0 !important;
      width: 100%;
      will-change: transform;
      transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    }
    .unified-types.mobile-card-slider__track.is-jump {
      transition: none;
    }
    .unified-types.mobile-card-slider__track > .unified-type-card {
      flex: 0 0 100% !important;
      width: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
      height: auto;
      box-sizing: border-box;
    }
    .mobile-card-slider .unified-type-card__desc {
      display: block !important;
      -webkit-line-clamp: unset !important;
      overflow: visible !important;
    }
    .mobile-card-slider__nav {
      position: absolute;
      top: calc(50% - 20px);
      z-index: 10;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: rgba(255,255,255,.9);
      color: var(--color-text);
      box-shadow: 0 7px 18px rgba(15,23,42,.14);
      font-size: 1.45rem;
      line-height: 1;
      transform: translateY(-50%);
      transition: background .2s ease, color .2s ease;
    }
    .mobile-card-slider__nav:active {
      background: rgba(15,23,42,.78);
      color: #fff;
    }
    .mobile-card-slider__nav--prev { left: 0; }
    .mobile-card-slider__nav--next { right: 0; }
    .mobile-card-slider__dots {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 24px;
      margin-top: 14px;
    }
    .mobile-card-slider__dot {
      width: 7px;
      height: 7px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: #c7d3e7;
      transition: width .2s ease, background .2s ease;
    }
    .mobile-card-slider__dot.is-active {
      width: 18px;
      background: var(--color-accent);
    }
  }
  @media (max-width: 359px) {
    .container { padding-inline: 16px; }
    #page-home .hero__title { font-size: 27px; }
    #page-home .hero__cta .btn { font-size: .73rem; }
    .hero-svc-grid { padding-inline: 16px; }
    .hero-svc__title { font-size: .75rem; }
    .hero__stat-num--ko { font-size: 1rem; }
    .reviews-slider-track { grid-template-columns: minmax(0, 1fr); }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .workflow-step, .workflow-step__circle, .workflow-step__name { opacity: 1; transform: none; }
  }
}
