@import url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/variable/woff2/SUIT-Variable.css");

:root {
  --bg: #f4f4f2;
  --white: #ffffff;
  --ink: #1b1c1a;
  --muted: #666862;
  --line: #dcddd8;
  --accent: #55614a;
  --accent-deep: #434d3a;
  --dark: #20221f;
  --on-dark: #f1f2ee;
  --on-dark-muted: #b4b7ad;
  --dark-line: rgba(241, 242, 238, 0.2);
  --sans: "SUIT Variable", SUIT, Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--accent) var(--bg); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.75; color: var(--ink); background: var(--white); word-break: keep-all; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.03em; line-height: 1.32; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); font-weight: 350; }
h3 { font-size: clamp(1.12rem, 1.5vw, 1.32rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible, .on-photo :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 16px; top: -60px; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1320px, 100% - 80px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 80px); margin-inline: auto; }
.lead { margin-top: 20px; color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.dark .lead { color: var(--on-dark-muted); }
.en { font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.sample-tag { display: inline-block; margin-left: 10px; padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0; vertical-align: middle; }

/* 상단 */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 20; color: #fff; }
.nav.light { position: relative; color: var(--ink); border-bottom: 1px solid var(--line); background: var(--white); }
.nav .wrap { display: flex; align-items: center; height: 88px; gap: 40px; }
.logo { display: flex; flex-direction: column; justify-content: center; min-height: 44px; font-size: 19px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; white-space: nowrap; }
.logo small { font-size: 11px; font-weight: 400; letter-spacing: 0.26em; margin-top: 3px; }
.menu { display: flex; gap: clamp(22px, 3.2vw, 52px); margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 16px; }
.menu a { display: block; padding: 10px 0; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { font-size: 15px; padding: 11px 22px; border: 1px solid currentColor; transition: background 0.3s, color 0.3s, border-color 0.3s; white-space: nowrap; }
.nav-cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav.light .nav-cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; }
.m-only { display: none; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 32px; font-size: 15.5px; border: 1px solid currentColor; background: none; color: inherit; cursor: pointer; font-family: inherit; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.btn svg { width: 22px; height: 10px; transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .btn:hover, .on-photo .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-fill { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-fill:hover, .dark .btn-fill:hover { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.more { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; border-bottom: 1px solid currentColor; }
.more svg { width: 22px; height: 10px; transition: transform 0.45s var(--ease); }
.more:hover svg { transform: translateX(5px); }

/* 첫 화면 */
.hero { position: relative; height: clamp(620px, 100svh, 940px); overflow: hidden; color: #fff; background: var(--dark); display: flex; align-items: flex-end; }
.hero-photo { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; animation: drift 32s ease-in-out -16s infinite alternate; will-change: transform; }
@keyframes drift { from { transform: scale(1) translate3d(-1%, 0.5%, 0); } to { transform: scale(1.06) translate3d(1%, -0.5%, 0); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 19, 0.42) 0%, rgba(20, 22, 19, 0.1) 35%, rgba(20, 22, 19, 0.72) 100%); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); font-weight: 300; line-height: 1.24; }
.hero h1 span { display: block; animation: rise 1.3s var(--ease) both; }
.hero h1 span + span { animation-delay: 0.15s; }
.hero-sub { margin-top: 22px; font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 30em; animation: rise 1.3s 0.3s var(--ease) both; }
.hero .btn-row { animation: rise 1.3s 0.42s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.creds { margin: 0; padding: 0; list-style: none; min-width: 250px; border-top: 1px solid rgba(255, 255, 255, 0.5); font-size: 14.5px; animation: rise 1.3s 0.5s var(--ease) both; }
.creds li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.28); display: flex; justify-content: space-between; gap: 24px; }
.creds span { opacity: 0.85; }

/* 섹션 */
.section { padding: clamp(88px, 10vw, 150px) 0; }
.section.tint { background: var(--bg); }
.section.dark { background: var(--dark); color: var(--on-dark); }
.section.first { padding-top: clamp(56px, 6vw, 88px); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.statement { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 7vw, 120px); align-items: end; }
.statement h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); font-weight: 300; }
.statement p + p { margin-top: 16px; }
.statement .text { color: var(--muted); }

/* 포트폴리오 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.filters button { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px); margin-top: 48px; }
.works.cols3 { grid-template-columns: repeat(3, 1fr); }
.work { display: block; }
.work[hidden] { display: none; }
.work .ph { overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg); }
.work .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
a.work:hover .ph img { transform: scale(1.05); }
.work .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; align-items: baseline; }
.work h3 { font-weight: 500; }
.work .meta span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.work p { margin-top: 4px; font-size: 0.95rem; color: var(--muted); }
.works .work:nth-child(even):not(.flat) { margin-top: clamp(0px, 5vw, 72px); }
.works.cols3 .work:nth-child(even) { margin-top: 0; }

/* 다섯 가지 */
.points { margin: 56px 0 0; border-top: 1px solid var(--ink); }
.points details { border-bottom: 1px solid var(--line); }
.points summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr 24px; align-items: center; gap: 12px; padding: 28px 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; }
.points summary::-webkit-details-marker { display: none; }
.points summary i { font-style: normal; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.points summary::after { content: ""; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform 0.4s var(--ease); }
.points details[open] summary::after { transform: rotate(45deg); }
.points details p { padding: 0 40px 30px 76px; color: var(--muted); max-width: 52em; }

/* 좌우 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.split.top { align-items: start; }
.photo { overflow: hidden; background: var(--bg); aspect-ratio: 3 / 2; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: 64px; }
.three > div { border-top: 1px solid var(--ink); padding-top: 26px; }
.dark .three > div { border-color: var(--on-dark); }
.three p { margin-top: 10px; color: var(--muted); }
.dark .three p { color: var(--on-dark-muted); }
.rows { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.dark .rows { border-color: var(--on-dark); }
.rows li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.dark .rows li { border-color: var(--dark-line); }
.rows p { margin-top: 6px; color: var(--muted); }
.dark .rows p { color: var(--on-dark-muted); }
.prose p + p { margin-top: 18px; }

/* 숫자 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.stats li { padding: 44px 32px 42px 0; }
.stats li + li { border-left: 1px solid var(--dark-line); padding-left: 32px; }
.stats .num { font-size: clamp(2.8rem, 5.4vw, 4.8rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats .num small { font-size: 0.4em; font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.stats .label { display: block; margin-top: 18px; font-weight: 600; }
.stats .note { display: block; margin-top: 2px; font-size: 0.93rem; color: var(--on-dark-muted); }

/* 후기 */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 26em; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.55; }
.quote figcaption { margin-top: 28px; color: var(--muted); font-size: 0.97rem; }
figure { margin: 0; }

/* 순서 */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(6, 1fr); margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 26px 20px 0 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.timeline { margin: 0; padding: 0; list-style: none; counter-reset: t; border-top: 1px solid var(--ink); }
.timeline li { counter-increment: t; display: grid; grid-template-columns: 90px 1fr 1.4fr 150px; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline li::before { content: counter(t, decimal-leading-zero); font-size: 2rem; font-weight: 300; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--muted); }
.timeline .when { font-size: 14.5px; color: var(--muted); text-align: right; white-space: nowrap; }

/* 하위 머리 */
.page-head { padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 80px); }
.crumbs { display: flex; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); font-weight: 300; line-height: 1.22; }
.wide-photo { overflow: hidden; aspect-ratio: 21 / 9; background: var(--bg); }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
.spec { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.spec div { padding: 26px 20px 26px 0; }
.spec div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.spec dt { font-size: 14px; color: var(--muted); }
.spec dd { margin: 6px 0 0; font-size: 1.15rem; font-weight: 500; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.gallery .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* 표 */
.table-scroll { overflow-x: auto; margin-top: 44px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 20px 18px 20px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 1px solid var(--ink); font-size: 0.95rem; font-weight: 600; }
tbody th { width: 24%; font-weight: 600; white-space: nowrap; }
td { color: var(--muted); }
.fine { margin-top: 18px; font-size: 0.93rem; color: var(--muted); }

/* 상담 폼 */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.93rem; font-weight: 600; margin-bottom: 8px; }
.form input, .form select, .form textarea { width: 100%; min-height: 54px; padding: 12px 0; border: 0; border-bottom: 1px solid #8d8f88; background: none; color: inherit; font: inherit; border-radius: 0; caret-color: var(--accent); transition: border-color 0.25s; }
.form select { cursor: pointer; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); border-bottom-width: 2px; }
.dark .form input, .dark .form select, .dark .form textarea { border-bottom-color: #8e9187; }
.dark .form input:focus, .dark .form select:focus, .dark .form textarea:focus { border-bottom-color: #fff; }
.dark .form select option { color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: #70726c; }
.dark .form input::placeholder, .dark .form textarea::placeholder { color: #a5a89f; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.dark .agree { color: var(--on-dark-muted); }
.agree input { width: 20px; min-height: 20px; height: 20px; margin: 4px 0 0; flex: none; accent-color: var(--accent); }
.agree label { margin: 0; font-weight: 400; }
.form-msg { grid-column: 1 / -1; display: none; padding: 18px 22px; border: 1px solid currentColor; }
.form-msg.show { display: block; }
.info-list { margin: 0; border-top: 1px solid var(--ink); }
.dark .info-list { border-color: var(--on-dark); }
.info-list div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dark .info-list div { border-color: var(--dark-line); }
.info-list dt { font-weight: 600; }
.info-list dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.dark .info-list dd { color: var(--on-dark-muted); }
.map { aspect-ratio: 16 / 10; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M0 46h140M0 104h140M40 0v140M108 0v140' stroke='%23dcddd8' stroke-width='7' fill='none'/%3E%3C/svg%3E"); display: grid; place-items: center; text-align: center; padding: 24px; font-size: 0.95rem; color: var(--muted); }
.map span { background: var(--white); padding: 12px 20px; border: 1px solid var(--line); }

/* 고정 버튼 */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.dock a { display: grid; place-items: center; gap: 2px; width: 60px; height: 60px; background: var(--ink); color: #fff; font-size: 11.5px; transition: background 0.25s; }
.dock a:hover { background: var(--accent); }
.dock svg { width: 20px; height: 20px; }

/* 하단 */
.footer { background: #151614; color: #c2c5bb; padding: 72px 0 96px; font-size: 0.94rem; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .logo { color: #fff; }
.footer h2 { font-size: 0.92rem; font-weight: 600; letter-spacing: 0; color: #fff; }
.footer ul { margin: 14px 0 0; padding: 0; list-style: none; }
.footer li { padding: 4px 0; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer .biz { margin-top: 20px; line-height: 1.8; }
.footer .sample-line { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #fff; }
.sample { position: fixed; left: 16px; bottom: 16px; z-index: 40; background: rgba(21, 22, 20, 0.94); color: #fff; font-size: 12.5px; padding: 8px 14px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .menu, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .menu.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 80px; left: 20px; right: 20px; margin: 0; background: #fff; color: var(--ink); padding: 8px 24px; border: 1px solid var(--line); z-index: 30; }
  .menu.open li + li { border-top: 1px solid var(--line); }
  .menu.open a { padding: 15px 0; }
  .menu.open a::after { display: none; }
  .menu.open .m-only { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .works.cols3 { grid-template-columns: repeat(2, 1fr); }
  .timeline li { grid-template-columns: 60px 1fr; }
  .timeline li p, .timeline .when { grid-column: 2; text-align: left; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 40px); }
  .nav .wrap { height: 72px; }
  .menu.open { top: 68px; }
  .hero { height: clamp(580px, 92svh, 780px); }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
  .hero h1 { font-size: 1.95rem; }
  .creds { min-width: 0; }
  .hero .btn { flex: 1 1 auto; }
  .statement, .split, .three, .contact-grid, .form { grid-template-columns: 1fr; }
  .works, .works.cols3 { grid-template-columns: 1fr; gap: 36px; }
  .works .work:nth-child(even):not(.flat) { margin-top: 0; }
  .points summary { grid-template-columns: 40px 1fr 20px; padding: 22px 0; }
  .points details p { padding: 0 0 24px 52px; }
  .stats { grid-template-columns: 1fr; }
  .stats li, .stats li + li { padding: 30px 0; border-left: 0; }
  .stats li + li { border-top: 1px solid var(--dark-line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec div:nth-child(3) { border-left: 0; padding-left: 0; }
  .spec div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr; }
  .wide-photo { aspect-ratio: 4 / 3; }
  .dock { right: 12px; bottom: 12px; }
  .dock a { width: 52px; height: 52px; }
  .sample { font-size: 12px; padding: 6px 12px; max-width: calc(100% - 96px); }
  .footer .wrap { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* 점검 후 보완: 고정 버튼이 첫 화면 목록을 가리지 않게 */
@media (min-width: 821px) { .creds { margin-right: 76px; } }
