/* =========================================================
   ASUNG DESIGN — Style 1 Home (index only)
   Bench: salad-bowl.co.kr / vertical sidebar + project mosaic
========================================================= */

:root {
    --asung-bg: #F7F5F0;
    --asung-sidebar: #F7F5F0;
    --asung-ink: #1a1a1a;
    --asung-muted: #8a8a8a;
    --asung-line: #e8e8e4;
    /* 고객 기준: 브라우저 125% 느낌을 100% 기본값으로 */
    --asung-scale: 1.25;
    /* 사업자 정보(좌측 20 + 세로 5줄 ≈ 99px) + 여유 12px 이 칸 안에 들어오는 폭 */
    --asung-sidebar-w: calc(112px * var(--asung-scale));
    --asung-tile-w: calc(500px * var(--asung-scale));
    --asung-font: 'Noto Sans KR', 'Noto Sans', sans-serif;
}

/* ---------- Hide legacy site chrome on Asung pages ---------- */
body.asung-home-page,
body.asung-page {
    margin: 0;
    background: var(--asung-bg);
    font-family: var(--asung-font);
    color: var(--asung-ink);
}

body.asung-home-page {
    overflow: hidden;
}

body.asung-home-page .header,
body.asung-home-page .mob-header,
body.asung-home-page .quick-fixed,
body.asung-home-page .mobile-side-fixed,
body.asung-home-page .mobile-bottom-nav,
body.asung-home-page #footer,
body.asung-page .header,
body.asung-page .mob-header,
body.asung-page .quick-fixed,
body.asung-page .mobile-side-fixed,
body.asung-page .mobile-bottom-nav,
body.asung-page #footer {
    display: none !important;
}

body.asung-home-page,
body.asung-page {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.asung-home-page #wrapper,
body.asung-home-page #container,
body.asung-home-page #container_wr,
body.asung-home-page .wrapper,
body.asung-page #wrapper,
body.asung-page #container,
body.asung-page #container_wr,
body.asung-page .wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* ---------- Shell ---------- */
.asung-home {
    display: flex;
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--asung-bg);
}

/* ---------- Left sidebar ---------- */
.asung-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: var(--asung-sidebar-w);
    height: 100vh;
    height: 100dvh;
    padding: calc(20px * var(--asung-scale)) 0;
    box-sizing: border-box;
    background: transparent;
    border-right: 0;
    overflow: visible;
}

.asung-brand {
    display: flex;
    align-items: flex-start;
    align-self: flex-start;
    justify-content: flex-start;
    padding-left: calc(20px * var(--asung-scale));
    box-sizing: border-box;
    text-decoration: none;
    color: var(--asung-ink);
}

.asung-brand-text {
    display: block;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: none;
    font-size: calc(20px * var(--asung-scale));
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
}

.asung-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: calc(8px * var(--asung-scale));
    flex-shrink: 0;
    align-self: flex-start;
}

.asung-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--asung-ink);
    text-decoration: none;
    opacity: 0.72;
    transition: opacity 0.2s ease;
}

.asung-social-link:hover,
.asung-social-link:focus-visible {
    opacity: 1;
}

.asung-social-ico--n,
.asung-social-ico--ig {
    display: block;
    width: calc(18px * var(--asung-scale));
    height: calc(18px * var(--asung-scale));
    object-fit: contain;
}

/* 좌측 하단: SNS */
.asung-sidebar-foot {
    position: absolute;
    left: calc(20px * var(--asung-scale));
    bottom: calc(24px * var(--asung-scale) + 12px + 14em);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(12px * var(--asung-scale));
    width: auto;
    max-width: none;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: none;
}

/* 사업자 정보 — PC: 좌측 하단 고정 / 모바일: 일반 푸터 */
.asung-site-footer {
    position: fixed;
    left: calc(20px * var(--asung-scale));
    bottom: calc(24px * var(--asung-scale));
    z-index: 41;
    margin: 0;
    padding: 0;
}

.asung-sidebar-meta {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 0.15em;
    font-size: calc(10px * var(--asung-scale));
    font-weight: 400;
    line-height: 1;
    color: var(--asung-ink);
}

.asung-meta-line,
.asung-meta-copy {
    display: block;
    margin: 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    /* Noto Sans: Pretendard용 -0.22em 제거 → 글자 겹침 방지 */
    letter-spacing: 0.02em;
    line-height: 1.15;
    word-break: keep-all;
}

/* TEL / FAX / copyright — ASUNG DESIGN과 같은 누운 방향 (위→아래, 좌측이 위) */
.asung-meta-line--side {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 0.04em;
    word-break: normal;
}

/* 한글도 눕히기 — (주)가 위 */
.asung-meta-line--ko {
    text-orientation: sideways;
}

/* 주소 안 숫자/층수만 누운 방향 */
.asung-meta-sideways {
    text-orientation: sideways;
    letter-spacing: 0.02em;
}

/* (주)/(C) 한 덩어리 — upright에서 괄호가 벌어지지 않게 */
.asung-meta-combine {
    text-combine-upright: all;
    -webkit-text-combine: horizontal;
}

/* upright 세로쓰기에서 일반 스페이스가 글자폭으로 커지는 문제 → 얇은 간격만 */
.asung-meta-sp {
    display: inline;
    font-size: 0.3em;
    letter-spacing: 0;
    line-height: 1;
}

/* 하이픈을 세로 방향 막대로 */
.asung-meta-hyphen {
    display: inline-block;
    width: 1em;
    font-size: 0.85em;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    transform: rotate(90deg);
}

/* 주소 우측 보더 — (주)아성과 구분 */
.asung-meta-line--address {
    border-right: 1px solid currentColor;
    padding-right: 0.15em;
    margin-right: 0.15em;
    box-sizing: content-box;
    letter-spacing: 0.04em;
}

.asung-meta-copy {
    opacity: 0.85;
}

.asung-meta-copy--stack {
    display: flex;
    /* ALL이 (C) 기준 좌측으로 — 1번 스샷과 동일 */
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 0;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: normal;
}

.asung-meta-copy__line {
    display: block;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
}

/* ---------- Main ---------- */
.asung-main {
    position: relative;
    flex: 1;
    margin-left: var(--asung-sidebar-w);
    min-width: 0;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* 서브 페이지: 사이드바 width만큼 밀고, 남은 영역에서 콘텐츠 가운데 */
.asung-home.asung-home--page {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
}

.asung-main.asung-main--page {
    display: flex;
    flex-direction: column;
    align-items: center; /* 사이드바 민 영역 안에서 자식 가로 가운데 */
    box-sizing: border-box;
    width: calc(100% - var(--asung-sidebar-w));
    margin-left: var(--asung-sidebar-w);
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
}

body.asung-page {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

body.asung-page #wrapper,
body.asung-page #container,
body.asung-page #container_wr,
body.asung-page .wrapper {
    overflow: visible !important;
    height: auto !important;
}

.asung-menu-toggle {
    display: none;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 50;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0;
    background: var(--asung-bg);
    cursor: pointer;
}

.asung-menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 5px auto;
    background: var(--asung-ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 열림: 3줄 → X (줄 간격 6px = 선 1px + 마진 5px) */
body.asung-nav-open .asung-menu-toggle span:first-child {
    transform: translateY(6px) rotate(45deg);
}

body.asung-nav-open .asung-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.asung-nav-open .asung-menu-toggle span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.asung-stage {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: calc(12px * var(--asung-scale));
    width: max-content;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    margin-left: auto;
    margin-right: 0;
    padding: calc(20px * var(--asung-scale)) 0;
    box-sizing: border-box;
}

/* PROJECT 페이지만: 모자이크 스테이지 가로 가운데 */
.asung-stage.asung-stage--center {
    margin-left: auto;
    margin-right: auto;
}

/* PROJECT 분류 메뉴 (Home / Medical) — stage 위 */
.asung-main.asung-main--project {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* PROJECT: 좌/우 개별 스크롤 해제 → body 스크롤 */
body.asung-home-page.asung-project-page {
    /* overflow-x:hidden 은 sticky를 깨뜨리는 경우가 있어 clip 사용 */
    overflow-x: clip;
    overflow-y: auto;
    height: auto;
}

body.asung-home-page.asung-project-page #wrapper,
body.asung-home-page.asung-project-page #container,
body.asung-home-page.asung-project-page #container_wr,
body.asung-home-page.asung-project-page .wrapper {
    overflow: visible !important;
    height: auto !important;
}

body.asung-project-page .asung-home {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
}

body.asung-project-page .asung-main.asung-main--project {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
}

body.asung-project-page .asung-main.asung-main--project .asung-stage {
    flex: 0 0 auto;
    align-items: flex-start;
    height: auto;
    min-height: 0;
    padding-top: calc(20px * var(--asung-scale));
    padding-bottom: calc(60px * var(--asung-scale));
    overflow: visible;
}

/* 프로젝트 아이템 타이틀 sticky는 해제, 네비만 sticky 유지 */
body.asung-project-page .asung-main.asung-main--project .asung-nav {
    position: sticky;
    top: calc(20px * var(--asung-scale));
    align-self: flex-start;
    flex-shrink: 0;
    height: auto;
    max-height: calc(100vh - (40px * var(--asung-scale)));
    z-index: 30;
}

body.asung-project-page .asung-grid {
    height: auto;
    align-items: start;
}

body.asung-project-page .asung-col-wrap {
    height: auto;
    align-items: flex-start;
}

body.asung-project-page .asung-col {
    height: auto;
    overflow: visible;
}

body.asung-project-page .asung-scrollbar {
    display: none;
}

/* body 스크롤에서는 컬럼 sticky 캡션이 뷰포트에 붙으므로 해제 */
body.asung-project-page .asung-tile-cap {
    position: static;
}

/* 열 스택: 카테고리 메뉴 + 이미지 열 */
.asung-col-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 0;
    height: 100%;
    gap: calc(16px * var(--asung-scale));
}

body.asung-project-page .asung-col-stack {
    height: auto;
}

/* MEDICAL: 좌측 이미지 오른쪽 끝 / RESIDENTIAL: 우측 이미지 왼쪽 끝 */
.asung-project-cats--bar {
    display: none;
}

.asung-project-cats__link {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: var(--asung-tile-w);
    max-width: var(--asung-tile-w);
    height: calc(36px * var(--asung-scale));
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--asung-ink);
    text-decoration: none;
    font-family: 'Noto Sans KR', 'Noto Sans', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1;
    text-transform: none;
    opacity: 0.35;
    transition: opacity 0.2s ease;
}

.asung-project-cats__link--left {
    justify-content: flex-end;
    text-align: right;
}

.asung-project-cats__link--right {
    justify-content: flex-start;
    text-align: left;
}

.asung-project-cats__link:hover,
.asung-project-cats__link:focus-visible,
.asung-project-cats__link.is-active {
    opacity: 1;
}

/* PROJECT: 심볼 메뉴 상단 = 첫 이미지 상단 (MEDICAL/RESIDENTIAL 행 + gap 만큼 내림) */
body.asung-project-page .asung-main.asung-main--project .asung-nav {
    margin-top: calc(36px * var(--asung-scale) + 16px * var(--asung-scale));
}

.asung-main.asung-main--project .asung-stage {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: calc(20px * var(--asung-scale));
}

.asung-nav {
    position: static;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    gap: calc(22px * var(--asung-scale));
    margin: 0;
    padding: 0;
    padding-top: 0;
    box-sizing: border-box;
}

/* 서브 페이지: 햄버거 대신 우상단 고정 세로 메뉴 */
.asung-nav--corner {
    position: fixed;
    top: calc(20px * var(--asung-scale));
    right: calc(28px * var(--asung-scale));
    z-index: 50;
    margin: 0;
}

.asung-nav-link.is-active {
    opacity: 0.55;
}

/* 메뉴 심볼만 상단 마진 제거 (래퍼/stage 패딩은 유지) */
.asung-nav-symbol {
    display: block;
    width: calc(36px * var(--asung-scale));
    height: auto;
    line-height: 0;
    flex-shrink: 0;
    margin: 0 auto;
    padding: 0;
}

.asung-nav-symbol img {
    display: block;
    width: 100%;
    height: auto;
}

.asung-nav-links {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: calc(4px * var(--asung-scale));
}

.asung-nav-link {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: calc(12px * var(--asung-scale));
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--asung-ink);
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.asung-nav-link:hover,
.asung-nav-link:focus-visible {
    opacity: 0.55;
}

.asung-nav-item--project {
    position: relative;
    display: block;
    flex: 0 0 auto;
}

.asung-nav-item--project:hover > .asung-nav-link,
.asung-nav-item--project:focus-within > .asung-nav-link {
    opacity: 0.55;
}

/*
 * 2번: PROJECT 본문(ABOUT/CONTACT) 안에 끼우지 않고,
 * 누운 글자 읽기 기준 우측 = 화면에서 PROJECT 아래로 떨어짐.
 * ALL | MEDICAL | RESIDENTIAL 한 줄, 구분선은 단어 사이.
 */
.asung-nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    display: none;
    box-sizing: border-box;
    margin: 0;
    padding: 1.1em 0 0;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 0.08em;
    white-space: nowrap;
    line-height: 1;
}

.asung-nav-item--project:hover .asung-nav-sub,
.asung-nav-item--project:focus-within .asung-nav-sub {
    display: block;
}

.asung-nav-sub__link {
    display: inline;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: calc(11px * var(--asung-scale));
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--asung-ink);
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.35;
    transition: opacity 0.2s ease;
    padding: 0;
    margin: 0;
}

/* 구분선: 글자 밑 보더 X → 단어 사이 | */
.asung-nav-sub__link:not(:last-child)::after {
    content: '|';
    display: inline;
    margin-inline: 0.25em;
    opacity: 0.55;
    pointer-events: none;
}

.asung-nav-sub__link:hover,
.asung-nav-sub__link:focus-visible,
.asung-nav-sub__link.is-active {
    opacity: 1;
}

/* ---------- Project mosaic (좌/우 독립 스크롤) ---------- */
.asung-grid {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: calc(20px * var(--asung-scale));
    align-items: stretch;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    width: auto;
    max-width: none;
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.asung-col-wrap {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    height: 100%;
    gap: calc(8px * var(--asung-scale));
}

.asung-col {
    display: flex;
    flex-direction: column;
    gap: calc(20px * var(--asung-scale));
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.asung-col::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent;
}

/* 타이틀 우측 1px 커스텀 스크롤바
   벤치(salad-bowl): track 밝음 + thumb 어두움 → 움직이는 막대만 보임
   기존: track/thumb 둘 다 ink → 항상 세로 border처럼만 보임 */
.asung-scrollbar {
    position: relative;
    flex: 0 0 1.5px;
    width: 1.5px;
    min-width: 1.5px;
    align-self: stretch;
    background: transparent;
}

.asung-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 1.5px;
    min-height: 24px;
    height: 40%;
    background: var(--asung-ink);
    border-radius: 0;
    pointer-events: none;
}

.asung-tile {
    position: relative;
    overflow: visible;
    background: transparent;
    min-height: 0;
    flex-shrink: 0;
    width: 100%;
}

.asung-tile-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: calc(8px * var(--asung-scale));
    width: 100%;
}

.asung-tile-media {
    position: relative;
    display: block;
    flex: 0 0 var(--asung-tile-w);
    width: var(--asung-tile-w);
    max-width: var(--asung-tile-w);
    overflow: hidden;
    background: #ecece8;
    aspect-ratio: 3 / 4;
    color: inherit;
    text-decoration: none;
}

/* 우측 첫번째만 좌측보다 살짝 길게 */
.asung-tile--lead .asung-tile-media {
    aspect-ratio: 3 / 4.35;
}

.asung-tile-media img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.asung-tile-hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: calc(20px * var(--asung-scale));
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.asung-tile-hover__title {
    color: #fff;
    font-size: calc(14px * var(--asung-scale));
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
}

.asung-tile-media:hover .asung-tile-hover,
.asung-tile-media:focus-visible .asung-tile-hover {
    opacity: 1;
}

.asung-tile-cap {
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45em;
    font-size: calc(10px * var(--asung-scale));
    font-weight: 500;
    line-height: 1;
    color: var(--asung-ink);
}

/* RESIDENTIAL / MEDICAL — 누운 방향 (위) */
.asung-tile-cap__cat {
    position: relative;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 0.08em;
    white-space: nowrap;
    padding-bottom: 0.45em;
}

.asung-tile-cap__cat::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: translateX(-50%);
}

.asung-index-cats {
    display: none;
}

/* 프로젝트 페이징 — 그리드 두 열 아래 전체 폭 */
.asung-pager {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8em;
    margin: calc(40px * var(--asung-scale)) 0 0;
    font-size: calc(12px * var(--asung-scale));
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
}

.asung-pager__link {
    color: var(--asung-ink);
    text-decoration: none;
    opacity: 0.35;
    transition: opacity 0.2s ease;
}

.asung-pager__link:hover,
.asung-pager__link:focus-visible,
.asung-pager__link.is-active {
    opacity: 1;
}

.asung-pager__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4em;
    height: 2.4em;
    border: 1px solid transparent;
    border-radius: 50%;
    box-sizing: border-box;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.asung-pager__num.is-active {
    border-color: var(--asung-ink);
}

.asung-pager__link--prev,
.asung-pager__link--next {
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
}

.asung-pager__link svg {
    display: block;
    width: 1.5em;
    height: 1.5em;
}

/* 프로젝트명 — 카테고리와 같은 누운 방향 (아래) */
.asung-tile-cap__title {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
}

/* ---------- About ---------- */
.asung-about {
    margin-top: 72px;
    max-width: 640px;
    padding: 8px 4px 40px;
}

.asung-about-title {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
}

.asung-about-text {
    margin: 0;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.85;
    color: #444;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .asung-social-link,
    .asung-nav-link,
    .asung-menu-toggle span {
        transition: none;
    }
}

/* ---------- Tablet / Mobile ---------- */
@media (max-width: 1100px) {
    .asung-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px 16px;
    }
}

@media (max-width: 900px) {
    :root {
        --asung-scale: 1;
        --asung-sidebar-w: 0px;
        --asung-tile-w: min(100%, 420px);
        /* 로고 ↔ MEDICAL/RESIDENTIAL 동일 크기 */
        --asung-mobile-title-size: 16px;
        --asung-mobile-gutter: 16px;
        --asung-cap-col: 14px;
        --asung-tile-gap: 8px;
        --asung-line-2: calc(var(--asung-mobile-gutter) + var(--asung-cap-col) + var(--asung-tile-gap));
    }

    .asung-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 56px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
        padding: 0 var(--asung-mobile-gutter);
        border-right: 0;
        border-bottom: 1px solid var(--asung-line);
        transition: background-color 0.2s ease;
    }

    body.asung-scrolled .asung-sidebar,
    body.asung-scrolled .asung-menu-toggle {
        background: #fff;
    }

    /* ASUNG DESIGN → 2번 라인(이미지 좌측)에 맞춤 */
    .asung-brand {
        padding-left: calc(var(--asung-cap-col) + var(--asung-tile-gap));
        align-self: auto;
    }

    .asung-brand-text {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        transform: none;
        font-size: var(--asung-mobile-title-size);
        font-weight: 500;
        letter-spacing: normal;
    }

    .asung-sidebar-foot {
        position: static;
        left: auto;
        bottom: auto;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        transform: none;
        transform-origin: unset;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        margin-right: 52px;
        width: auto;
    }

    /* 사업자 정보: 일반 푸터 — ASUNG DESIGN 좌측 라인에 맞춤 */
    .asung-site-footer {
        position: relative;
        left: auto;
        bottom: auto;
        order: 3;
        z-index: 1;
        display: flex;
        justify-content: flex-start;
        width: 100%;
        margin: 0;
        padding: 24px var(--asung-mobile-gutter) 28px;
        padding-left: var(--asung-line-2);
        box-sizing: border-box;
    }

    .asung-sidebar-meta {
        position: relative;
        left: auto;
        bottom: auto;
        width: fit-content;
        max-width: 100%;
        margin: 0;
        pointer-events: auto;
    }

    .asung-main {
        order: 2;
    }

    .asung-social {
        flex-direction: row;
    }

    .asung-social-link {
        transform: none;
    }

    .asung-menu-toggle {
        display: block;
        /* 헤더(56px) 세로 가운데 = 좌측 SNS 아이콘과 같은 중심선 */
        top: calc((56px - 44px) / 2);
        right: var(--asung-mobile-gutter);
    }

    .asung-stage {
        flex-direction: column;
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .asung-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        background: var(--asung-bg);
        border-bottom: 1px solid var(--asung-line);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    }

    body.asung-nav-open .asung-nav {
        display: flex;
    }

    /* project/about/contact sticky nav가 모바일 드롭다운을 덮지 않게 — index와 동일 고정 */
    body.asung-project-page .asung-main.asung-main--project .asung-nav,
    body.asung-page .asung-stage.asung-stage--page .asung-nav,
    body.asung-page .asung-stage.asung-stage--page:has(.asung-contact-page) .asung-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        align-self: stretch;
        width: auto;
        max-width: none;
        height: auto;
        max-height: none;
        margin-top: 0;
        z-index: 50;
    }

    /* about 등: 우상단 세로 메뉴 유지 (햄버거 대체) */
    .asung-nav--corner {
        top: 16px;
        right: 16px;
        left: auto;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .asung-nav-symbol {
        display: none;
    }

    .asung-nav--corner .asung-nav-symbol {
        display: block;
    }

    .asung-nav-links {
        flex-direction: column;
        gap: 0;
    }

    .asung-nav--corner .asung-nav-links {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
    }

    .asung-nav-link {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        width: 100%;
        padding: 14px var(--asung-mobile-gutter);
        padding-left: var(--asung-line-2);
        box-sizing: border-box;
        letter-spacing: 0;
    }

    .asung-nav-item--project {
        position: relative;
        width: 100%;
        display: block;
    }

    .asung-nav-item--project > .asung-nav-link {
        width: 100%;
    }

    .asung-nav-sub {
        position: static;
        top: auto;
        left: auto;
        display: none;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        white-space: normal;
    }

    .asung-nav-item--project:hover .asung-nav-sub,
    .asung-nav-item--project:focus-within .asung-nav-sub,
    body.asung-nav-open .asung-nav-item--project .asung-nav-sub {
        display: block;
    }

    .asung-nav-sub__link {
        display: block;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        width: 100%;
        padding: 8px var(--asung-mobile-gutter);
        padding-left: calc(var(--asung-line-2) + 14px);
        box-sizing: border-box;
        letter-spacing: 0;
        opacity: 0.55;
        margin: 0;
    }

    .asung-nav-sub__link:not(:last-child)::after {
        display: none;
        content: none;
    }

    .asung-nav--corner .asung-nav-link {
        writing-mode: vertical-lr;
        text-orientation: mixed;
        width: auto;
        padding: 0;
        letter-spacing: 0.08em;
    }

    .asung-nav--corner .asung-nav-item--project {
        width: auto;
    }

    .asung-nav--corner .asung-nav-item--project > .asung-nav-link {
        width: auto;
    }

    .asung-nav--corner .asung-nav-sub {
        position: absolute;
        top: 100%;
        left: 0;
        width: auto;
        padding: 1.1em 0 0;
        writing-mode: vertical-lr;
        text-orientation: mixed;
        white-space: nowrap;
    }

    .asung-nav--corner .asung-nav-sub__link {
        display: inline;
        writing-mode: vertical-lr;
        text-orientation: mixed;
        width: auto;
        padding: 0;
        letter-spacing: 0.08em;
        opacity: 0.35;
    }

    .asung-nav--corner .asung-nav-sub__link:not(:last-child)::after {
        display: inline;
        content: '|';
    }

    .asung-grid {
        width: 100%;
        max-width: none;
        height: auto;
        margin-top: 24px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .asung-col-wrap {
        width: 100%;
        height: auto;
        gap: 0;
    }

    .asung-col-stack {
        width: 100%;
        height: auto;
        gap: 0;
    }

    /* 데스크톱용 열 상단 메뉴는 900↓에서 숨김 */
    .asung-project-cats__link--col {
        display: none;
    }

    /* /project/ 900↓: MEDICAL / RESIDENTIAL 바 메뉴 표시 (메인은 cats 미출력) */
    body.asung-project-page .asung-project-cats--bar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        flex: 0 0 auto;
        align-self: stretch;
        gap: 12px 16px;
        width: 100%;
        margin: 0 0 16px;
        padding-left: 0;
        box-sizing: border-box;
    }

    body.asung-project-page .asung-project-cats--bar .asung-project-cats__link {
        width: auto;
        max-width: none;
        height: auto;
        font-size: var(--asung-mobile-title-size);
        justify-content: flex-start;
        text-align: left;
        opacity: 1;
    }

    body.asung-project-page .asung-project-cats--bar:has(.is-active) .asung-project-cats__link:not(.is-active) {
        opacity: 0.35;
    }

    body.asung-project-page .asung-project-cats--bar .asung-project-cats__link--left,
    body.asung-project-page .asung-project-cats--bar .asung-project-cats__link--right {
        justify-content: flex-start;
        text-align: left;
    }

    body.asung-project-page .asung-main.asung-main--project .asung-nav {
        margin-top: 0;
    }

    .asung-col {
        width: 100%;
        height: auto;
        overflow: visible;
        gap: 16px;
    }

    .asung-scrollbar {
        display: none;
    }

    .asung-tile {
        width: 100%;
    }

    .asung-tile-body {
        width: 100%;
        gap: var(--asung-tile-gap);
    }

    /* 타이틀(캡션)을 이미지 좌측으로 — 1열 레이아웃(900↓)부터 */
    .asung-tile-cap {
        order: -1;
        flex: 0 0 var(--asung-cap-col);
        width: var(--asung-cap-col);
        min-width: var(--asung-cap-col);
        box-sizing: border-box;
    }

    /* 캡션 옆 absolute 이미지: width:100%+shrink면 폭 0 → 안 보임. 남은 폭을 flex로 확정 */
    .asung-tile-media,
    .asung-tile--lead .asung-tile-media {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        max-width: none;
        aspect-ratio: 3 / 4;
    }

    .asung-about {
        margin-top: 24px;
    }

    body.asung-home-page {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .asung-home {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: visible;
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }

    /* about/contact: display:block 때문에 order가 무시되던 문제 복구 */
    .asung-home.asung-home--page {
        display: flex;
        flex-direction: column;
    }

    .asung-main,
    .asung-main.asung-main--page {
        order: 2;
        height: auto;
        overflow-x: hidden;
        overflow-y: visible;
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 80px var(--asung-mobile-gutter) 0;
        box-sizing: border-box;
    }

    .asung-site-footer {
        order: 3;
    }
}

@media (max-width: 768px) {
    html,
    body.asung-home-page,
    body.asung-home-page.asung-project-page {
        overflow-x: hidden;
    }

    .asung-stage,
    .asung-grid,
    .asung-col-wrap,
    .asung-col-stack,
    .asung-col,
    .asung-tile,
    .asung-tile-body {
        max-width: 100%;
        box-sizing: border-box;
    }

    .asung-grid {
        width: 100%;
    }

    .asung-tile-media,
    .asung-tile--lead .asung-tile-media {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        max-width: 100%;
    }

    /* 기존 MEDICAL / RESIDENTIAL 바: 추후 복구 가능성 있어 코드 유지, 768↓에서만 숨김 */
    body.asung-project-page .asung-project-cats--bar {
        display: none;
    }

    /* 인덱스·프로젝트 공통: 프로젝트 우측 상단 분류 (타일 타이틀과 같은 폰트) */
    .asung-index-cats {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 2.5em;
        width: 100%;
        margin: 24px 0 0;
        font-size: calc(10px * var(--asung-scale));
        font-weight: 500;
        letter-spacing: 0.08em;
        line-height: 1;
    }

    .asung-index-cats + .asung-grid {
        margin-top: 12px;
    }

    .asung-index-cats__link {
        color: var(--asung-ink);
        text-decoration: none;
        opacity: 0.35;
        transition: opacity 0.2s ease;
    }

    .asung-index-cats__link:hover,
    .asung-index-cats__link:focus-visible,
    .asung-index-cats__link.is-active {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .asung-brand-word {
        font-size: 11px;
    }

    .asung-tile-cap {
        font-size: 9px;
    }
}
