/* ui */
footer {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      background: var(--dark);
      color: #c7d7cd;
    }

    footer::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      right: auto;
      z-index: 0;
      width: min(34vw, 360px);
      aspect-ratio: 1;
      transform: translate(-50%, -50%);
      background: #3b6652;
      opacity: 0.42;
      pointer-events: none;
      -webkit-mask: url("/assets/brand/footer-cat-logo.png") center / contain no-repeat;
      mask: url("/assets/brand/footer-cat-logo.png") center / contain no-repeat;
    }

    footer .section {
      position: relative;
      z-index: 1;
      padding-bottom: 150px;
    }

    footer h2 { color: #f3f7f2; font-size: 28px; }

    .sticky-inquiry {
      position: fixed;
      left: 50%;
      bottom: max(16px, env(safe-area-inset-bottom));
      transform: translateX(-50%);
      z-index: 100;
      width: min(1120px, calc(100% - 28px));
      min-height: var(--sticky-h);
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr)) 170px;
      grid-template-rows: auto auto;
      grid-template-areas:
        "copy copy agree agree"
        "name phone area submit";
      gap: 9px 10px;
      align-items: center;
      padding: 12px 16px;
      background: color-mix(in srgb, var(--surface) 96%, transparent);
      border: 1px solid var(--border);
      border-radius: 24px;
      box-shadow: 0 22px 70px rgba(23, 56, 42, 0.24);
      backdrop-filter: blur(18px);
    }

    .sticky-copy { grid-area: copy; }

    .sticky-copy strong {
      display: block;
      color: var(--fg);
      font-size: clamp(17px, 1.6vw, 21px);
      line-height: 1.2;
      letter-spacing: -0.02em;
    }

    .sticky-copy span { display: none; }

    .sticky-name { grid-area: name; }

    .sticky-phone { grid-area: phone; }

    .sticky-area { grid-area: area; }

    .sticky-inquiry input {
      min-height: 46px;
      color: var(--fg);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
    }

    .sticky-inquiry input::placeholder { color: var(--muted); }

    .sticky-inquiry .btn {
      grid-area: submit;
      min-height: 46px;
      padding: 10px 16px;
      border-radius: 12px;
    }

    .sticky-agree {
      grid-area: agree;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      min-width: 0;
      margin: 0;
      color: var(--fg);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.35;
      cursor: pointer;
    }

    .sticky-inquiry .sticky-agree input {
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      min-height: 18px;
      margin: 0;
      padding: 0;
      accent-color: var(--accent);
      cursor: pointer;
    }

    .sticky-privacy-link {
      margin-left: 2px;
      padding: 0;
      min-height: 30px;
      margin-left: 0;
      padding: 5px 9px;
      color: var(--accent);
      background: color-mix(in srgb, var(--accent) 9%, var(--surface));
      border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
      border-radius: 999px;
      font: inherit;
      font-weight: 800;
      text-decoration: none;
      white-space: nowrap;
      cursor: pointer;
    }

    .quick-actions {
      position: fixed;
      right: clamp(14px, 2vw, 28px);
      bottom: calc(var(--sticky-h) + max(34px, env(safe-area-inset-bottom)));
      z-index: 120;
      display: grid;
      gap: 10px;
    }

    .quick-action {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      padding: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 50%;
      background: var(--surface);
      box-shadow: 0 12px 34px rgba(23, 56, 42, 0.2);
      cursor: pointer;
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .quick-action:hover {
      transform: translateY(-3px);
      box-shadow: 0 16px 38px rgba(23, 56, 42, 0.25);
    }

    .quick-action:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
      outline-offset: 3px;
    }

    .quick-action-top {
      color: var(--dark);
    }

    .quick-action-top svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .quick-action-kakao {
      border-color: rgba(57, 45, 42, 0.12);
      background: #fee500;
    }

    .quick-action-kakao img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .privacy-modal[hidden] { display: none; }

    .privacy-modal {
      position: fixed;
      inset: 0;
      z-index: 1500;
      display: grid;
      place-items: center;
      padding: 22px;
      background: rgba(5, 20, 14, 0.72);
      backdrop-filter: blur(7px);
      opacity: 0;
      transition: opacity 180ms ease;
    }

    .privacy-modal.is-open { opacity: 1; }

    .privacy-modal-panel {
      position: relative;
      width: min(620px, 100%);
      max-height: min(720px, calc(100dvh - 44px));
      overflow-y: auto;
      padding: 32px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 22px;
      box-shadow: 0 30px 90px rgba(5, 20, 14, 0.34);
      transform: translateY(14px) scale(0.985);
      transition: transform 200ms cubic-bezier(.22, 1, .36, 1);
    }

    .privacy-modal.is-open .privacy-modal-panel { transform: translateY(0) scale(1); }

    .privacy-modal-panel h2 { margin: 0 48px 18px 0; font-size: clamp(25px, 4vw, 34px); }

    .privacy-modal-panel .privacy-copy { padding: 0; font-size: 14px; }

    .privacy-modal-close {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 1px solid var(--border);
      border-radius: 50%;
      color: var(--fg);
      background: var(--surface-soft);
      font-size: 24px;
      line-height: 1;
      cursor: pointer;
    }

    .privacy-modal-close:hover { background: color-mix(in srgb, var(--accent-2) 18%, var(--surface-soft)); }

    .toast {
      position: fixed;
      right: 22px;
      bottom: calc(var(--sticky-h) + 36px);
      z-index: 110;
      max-width: 320px;
      padding: 14px 16px;
      background: var(--success);
      color: #fff;
      border-radius: 16px;
      font-weight: 800;
      opacity: 0;
      transform: translateY(12px);
      transition: 0.2s ease;
      pointer-events: none;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .site-popup[hidden] { display: none; }

    .site-popup {
      position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
      padding: 24px; background: rgba(14, 27, 21, 0.66); backdrop-filter: blur(7px);
      opacity: 0; transition: opacity 180ms ease;
    }

    .site-popup.is-open { opacity: 1; }

    .popup-panel {
      width: min(520px, 100%); max-height: calc(100dvh - 48px); overflow: hidden;
      display: flex; flex-direction: column; background: var(--surface);
      border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); border-radius: 24px;
      box-shadow: 0 32px 90px rgba(8, 31, 21, 0.34);
      transform: translateY(14px) scale(0.985); transition: transform 220ms cubic-bezier(.2, .75, .25, 1);
    }

    .site-popup.is-open .popup-panel { transform: translateY(0) scale(1); }

    .popup-content {
      min-height: 0; overflow-y: auto;
      background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
    }

    .popup-content img {
      display: block; width: 100%; height: auto;
    }

    .popup-actions {
      display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
      padding: 14px 16px; border-top: 1px solid var(--border);
    }

    .popup-snooze, .popup-close {
      min-height: 44px; border: 0; border-radius: 12px; font: inherit; font-size: 14px;
      font-weight: 800; letter-spacing: 0.02em; cursor: pointer;
    }

    .popup-snooze {
      justify-self: start; padding: 0 8px; color: var(--muted); background: transparent;
      text-decoration: underline; text-underline-offset: 4px;
    }

    .popup-close { min-width: 92px; padding: 0 18px; color: #fff; background: var(--dark); }

    .popup-snooze:hover { color: var(--fg); }

    .popup-close:hover { background: color-mix(in srgb, var(--dark) 88%, #fff); }

    .popup-snooze:focus-visible, .popup-close:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent); outline-offset: 2px;
    }

    .intro-screen[hidden] { display: none; }

    .intro-screen {
      position: fixed;
      inset: 0;
      z-index: 2000;
      overflow: hidden;
      background: #0d2119;
      transform: translate3d(0, 0, 0);
      transition: transform 920ms cubic-bezier(.76, 0, .24, 1);
      will-change: transform;
    }

    .intro-screen.is-leaving { transform: translate3d(0, -100%, 0); }

    .intro-screen video {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: center;
    }

    .intro-screen::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 72%, rgba(6, 25, 17, 0.16));
      pointer-events: none;
    }

    .brand-motion {
      position: fixed;
      inset: 0;
      z-index: 1;
      overflow: hidden;
      pointer-events: none;
      opacity: 0.105;
      mix-blend-mode: multiply;
    }

    .brand-motion-stage {
      position: absolute;
      inset: -32vh -28vw;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      gap: clamp(46px, 7vh, 96px);
      transform: rotate(-16deg);
    }

    .brand-motion-row {
      display: flex;
      width: max-content;
      gap: clamp(44px, 6vw, 110px);
      will-change: transform;
      animation: brand-word-flow 34s linear infinite;
    }

    .brand-motion-row:nth-child(even) {
      margin-left: -34vw;
      animation-name: brand-word-flow-reverse;
      animation-duration: 42s;
    }

    .brand-motion-row img {
      width: clamp(340px, 42vw, 760px);
      height: auto;
      flex: 0 0 auto;
    }

    @keyframes brand-word-flow {
      from { transform: translate3d(-25%, 0, 0); }
      to { transform: translate3d(0, 0, 0); }
    }

    @keyframes brand-word-flow-reverse {
      from { transform: translate3d(0, 0, 0); }
      to { transform: translate3d(-25%, 0, 0); }
    }

    footer a:hover,
    footer a:focus-visible {
      text-decoration: underline;
    }
