/* 안온스튜디오 사이트 — 시안 5(시안 1 바탕 + 고객 수정 의견 11-10·11-13·11-16)를 그대로 옮겼다(2026-11-17). 맨 위 메뉴는 시안 4처럼 한 줄 */
:root {
  --pad: 13px;
  --l: clamp(168px, 16.4vw, 320px);
  --r: clamp(190px, 20vw, 380px);
  --gap: 11px;
  --top: 37px;
  --ink: #232121;
  --sub: rgba(35, 33, 33, .6);
  --tint: #f3f2ef;
}
body { color: var(--ink); font: 400 13px/1.27 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; letter-spacing: -.003em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

/* 맨 위 줄: 왼쪽 로고, 오른쪽에 분류와 About·Contact·Instagram */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--top); padding: 0 var(--pad); background: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.top::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--ink); }
.logo { font-family: var(--logo); font-weight: var(--logo-w); font-size: 14.5px; line-height: 1; --ls: .1em; letter-spacing: var(--ls); white-space: nowrap; }
/* 메뉴 한 줄(시안 4처럼): 개수 표시 없이 같은 간격, 지금 보는 곳만 진하게 */
.nav { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.nav a { color: var(--sub); transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--ink); }

/* 왼쪽 고정 칸 */
.side { position: fixed; top: var(--top); bottom: 0; left: var(--pad); width: calc(var(--l) - var(--pad) - 16px); z-index: 10; }
.idx { display: grid; grid-template-columns: repeat(6, 1fr); row-gap: 3px; padding-top: 13px; max-width: 148px; font-variant-numeric: tabular-nums; }
.idx a { color: var(--sub); transition: color .15s; }
.idx a:hover, .idx a.on { color: var(--ink); }
.idx li.off { display: none; }
.now { min-height: 2.6em; margin-top: 10px; }
.contact { position: absolute; top: calc(47vh - var(--top)); left: 0; right: 0; }
.contact p { margin-top: 15px; }
.contact a[href^="mailto"] { white-space: nowrap; }
.contact a:hover { color: var(--sub); }
.contact .go.on { color: var(--sub); }
.copy { position: absolute; bottom: 13px; left: 0; right: 0; }
.copy span { display: block; margin-top: 4px; color: var(--sub); font-size: 10.5px; line-height: 1.3; }

/* 목록 */
.feed { margin-left: var(--l); padding: calc(var(--top) + 13px) var(--pad) 140px 0; min-height: 100svh; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) var(--r); column-gap: var(--gap); row-gap: 8px; scroll-margin-top: calc(var(--top) + 13px); }
.item + .item { margin-top: 58px; }
.item[hidden] { display: none; }
.name a:hover { color: var(--sub); }
.kind { color: var(--ink); }
.shot { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); cursor: pointer; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.pair { display: flex; gap: var(--gap); aspect-ratio: auto; background: none; }
.shot.pair > span { display: block; flex: var(--ar) 1 0; min-width: 0; aspect-ratio: var(--ar); background: var(--tint); }
.ticks { position: absolute; left: 10px; right: 10px; bottom: 9px; display: flex; gap: 3px; height: 2px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ticks i { flex: 1; background: rgba(255, 255, 255, .45); }
.ticks i.on { background: #fff; }
.shot:hover .ticks { opacity: 1; }

.meta { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; }
.info div { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.info dt { color: var(--ink); }
.info dd { margin: 0; }
.count { color: var(--sub); font-variant-numeric: tabular-nums; }

/* 프로젝트 상세 */
.work { display: grid; grid-template-columns: minmax(0, 1fr) var(--r); column-gap: var(--gap); align-items: start; }
.gallery { display: flex; flex-direction: column; gap: var(--gap); }
.row { display: flex; gap: var(--gap); }
.row figure { flex: var(--ar) 1 0; min-width: 0; aspect-ratio: var(--ar); background: var(--tint); }
.row img { width: 100%; height: 100%; object-fit: cover; }
.sheet { position: sticky; top: calc(var(--top) + 13px); }
.sheet .kind { margin-bottom: 12px; color: var(--sub); }
.pn { display: flex; gap: 16px; margin-top: 22px; }
.pn a:hover { color: var(--sub); }

/* 소개 */
.feed.plain { display: grid; grid-template-columns: minmax(0, 1fr) var(--r); column-gap: var(--gap); }
.about-ph { grid-column: 1; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); }
.about-ph img { width: 100%; height: 100%; object-fit: cover; }
.about-text { grid-column: 2; }
.about-text .b { font-weight: 600; }
.about-text .intro, .about-text .addr { margin-top: 15px; }

/* 문의 */
.form { max-width: 560px; }
.form .name { margin-bottom: 24px; }
.form label:not(.opt), .form fieldset { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: baseline; padding: 9px 0; margin: 0; border: 0; border-top: 1px solid rgba(35, 33, 33, .28); }
.form legend { float: left; padding: 0; }
.form fieldset { display: block; }
.form fieldset::after { content: ""; display: block; clear: both; }
.form legend { width: 92px; }
.form .opt { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; cursor: pointer; }
.form input:not([type=radio]), .form textarea { width: 100%; border: 0; padding: 0; background: none; outline: none; resize: vertical; line-height: 1.4; }
.form input[type=radio] { width: 11px; height: 11px; margin: 0; accent-color: var(--ink); }
.send { display: flex; align-items: center; gap: 16px; padding-top: 12px; border-top: 1px solid var(--ink); }
.send button { padding: 0; border: 0; background: none; cursor: pointer; }
.send button:hover { color: var(--sub); }
.send span { color: var(--sub); }

.foot-m { display: none; }

/* 움직임: 시안 1처럼 짧고 정확하게 */
.top::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: -1px; z-index: 1; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
@supports (animation-timeline: scroll()) {
  .top::before { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.first .home .top::after { transform-origin: left; animation: draw 1.4s var(--q) both; }
html.first .home .logo { animation: fadein .9s ease .35s both; }
html.first .home .nav a { animation: rise .8s var(--o) both; }
html.first .home .nav a:nth-child(1) { animation-delay: .45s; }
html.first .home .nav a:nth-child(2) { animation-delay: .52s; }
html.first .home .nav a:nth-child(3) { animation-delay: .59s; }
html.first .home .nav a:nth-child(4) { animation-delay: .66s; }
html.first .home .nav a:nth-child(5) { animation-delay: .73s; }
html.first .home .nav a:nth-child(6) { animation-delay: .8s; }
html.first .home .idx li { animation: fadein .5s ease both; animation-delay: calc(.5s + var(--n) * 38ms); }
html.first .home .contact { animation: fadein 1s ease .9s both; }
html.first .home .copy { animation: fadein 1s ease 1.1s both; }
.idx a { position: relative; display: block; }
.idx a::after { content: ""; position: absolute; left: 0; right: 28%; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--o); }
.idx a.on::after { transform: scaleX(1); }
.now.swap { animation: swap .55s var(--o) both; }
.name a, .nav a, .pn a, .contact a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--o), color .2s; }
.name a:hover, .nav a:hover, .pn a:hover, .contact a:hover { background-size: 100% 1px; }
.ticks i { transition: background .25s ease; }
.shot img { transition: opacity .6s ease; }

/* 좁은 PC·태블릿 */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .info div { grid-template-columns: 40px minmax(0, 1fr); }
}

/* 휴대폰·세로 태블릿: 큰 로고 없이 로고와 메뉴, 그 아래 분류 줄(시안 3 휴대폰 맨 위). 사진 아래 정보는 시안 1 그대로 */
@media (max-width: 899px) {
  :root { --pad: 14px; }
  body { font-size: 12px; }
  .top { position: static; flex-wrap: wrap; height: auto; padding: 16px var(--pad) 14px; margin: 0 var(--pad); padding-left: 0; padding-right: 0; row-gap: 10px; border-bottom: 1px solid var(--ink); }
  .top::after, .top::before { display: none; }
  .logo { font-size: 15px; }
  /* 휴대폰: 시안 4처럼 로고 아래에 메뉴 한 줄 */
  .nav { width: 100%; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
  .side { display: none; }
  .feed { margin: 0; padding: 22px var(--pad) 40px; min-height: 0; }
  .item { grid-template-columns: minmax(0, 1fr) auto; row-gap: 7px; scroll-margin-top: 8px; }
  .item + .item { margin-top: 44px; }
  .shot, .meta { grid-column: 1 / -1; }
  .meta { flex-direction: row; align-items: flex-end; min-height: 0; }
  .info div { grid-template-columns: 40px minmax(0, 1fr); }
  .work { grid-template-columns: minmax(0, 1fr); }
  .sheet { position: static; order: -1; margin-bottom: 14px; }
  .pn { margin-top: 14px; }
  .row { flex-direction: column; }
  .row figure { flex: none; width: 100%; }
  .feed.plain { display: block; }
  .about-text { margin-top: 14px; }
  .form .name { margin-bottom: 16px; }
  /* 휴대폰 글자는 12px. 입력칸만 16px — 그보다 작으면 아이폰이 입력할 때 화면을 확대한다 */
  .form input:not([type=radio]), .form textarea { font-size: 16px; }
  .foot-m { display: block; padding: 18px var(--pad) 60px; border-top: 1px solid var(--ink); margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
  .foot-m a { display: block; margin-bottom: 10px; }
}

/* 실제 사이트에서 더한 것 */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.empty { color: var(--sub); }
.send button[disabled] { color: var(--sub); cursor: default; }
