/* =========================================
   153 INTERIOR — style.css
   미니멀 · 화이트 · 큰 타이포 / 반응형
   ========================================= */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --dark: #000000;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --max: 1024px;
  --wide: 1280px;
  --header-h: 48px;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.5; letter-spacing: -0.01em; word-break: keep-all;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 .5em; }
h2 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
p { margin: 0 0 1em; }
.container { width: min(100% - 44px, var(--max)); margin-inline: auto; }
.section { padding: clamp(90px, 12vw, 150px) 0; }
.eyebrow { font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .6rem; letter-spacing: -0.01em; }
.m-only { display: none; }

/* ---------- 버튼 (알약형) ---------- */
.btn {
  display: inline-block; padding: 12px 24px; font-size: 1.05rem; font-weight: 500; border-radius: 980px;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: inherit;
}
.btn--light { background: var(--accent); color: #fff; }
.btn--light:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--accent); color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--dark { background: var(--accent); color: #fff; width: 100%; padding: 15px; }
.btn--dark:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .5; cursor: wait; }

/* ---------- 헤더 (반투명 글로벌 내비) ---------- */
.header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50;
  background: rgba(251,251,253,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink); transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; gap: 34px; align-items: center; font-size: .8rem; color: rgba(0,0,0,.8); }
.nav a { transition: color .2s; }
.nav a:hover { color: #000; }
.nav__call { background: var(--accent); color: #fff !important; padding: 4px 12px; border-radius: 980px; }
.menu-btn { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; position: relative; color: inherit; }
.menu-btn span { position: absolute; left: 7px; right: 7px; height: 1.3px; background: currentColor; transition: .3s; }
.menu-btn span:first-child { top: 12px; } .menu-btn span:last-child { top: 19px; }
.menu-open .menu-btn span:first-child { top: 15.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 15.5px; transform: rotate(-45deg); }

/* ---------- 히어로 ---------- */
.hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(24px, 4vw, 48px); text-align: center; overflow: hidden; }
.hero__kicker { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; color: var(--ink-soft); margin-bottom: .4rem; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); margin-bottom: 1.1rem; animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero__sub { font-size: clamp(1.1rem, 2.1vw, 1.6rem); color: var(--ink-soft); margin-bottom: 2rem; font-weight: 500; animation: rise 1s .1s cubic-bezier(.2,.7,.2,1) both; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: rise 1s .2s cubic-bezier(.2,.7,.2,1) both; }
.hero .container:last-child { width: min(100% - 44px, var(--wide)); }
.hero__bg {
  margin-top: clamp(48px, 7vw, 80px); aspect-ratio: 16 / 8; border-radius: var(--radius);
  background:
    url("../images/hero.jpg") center/cover no-repeat,
    linear-gradient(135deg, #d9d4cc 0%, #ece8e2 50%, #f6f4f1 100%);
  animation: heroIn 1.4s .25s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- 하이라이트 타일 ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; max-width: calc(var(--wide) + 24px); margin: 0 auto; }
.tile {
  background: var(--bg-alt); border-radius: var(--radius); min-height: 480px; padding: 56px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; transition: transform .4s cubic-bezier(.2,.7,.2,1);
  background-image: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.03));
}
.tile:hover { transform: scale(1.01); }
.tile--dark { background: #000; color: #f5f5f7; background-image: radial-gradient(circle at 50% 120%, #3a3632, #000 70%); }
.tile__kicker { font-weight: 600; color: var(--ink-soft); margin-bottom: .3rem; }
.tile--dark .tile__kicker { color: #a1a1a6; }
.tile h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.tile__link { color: var(--accent); font-size: 1.1rem; margin-top: auto; }
.tile--dark .tile__link { color: #2997ff; }
.tile__link::after, .card__link::after { content: " ›"; }

/* ---------- 회사소개 ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.about__img {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: url("../images/about.jpg") center/cover no-repeat, linear-gradient(160deg, #e3ded7, #f5f5f7);
}
.about__text h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.about__text p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.about__text strong { color: var(--ink); }
.stats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats strong { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; }
.stats span { font-size: 1.4rem; font-weight: 600; margin-left: 2px; }
.stats em { display: block; font-style: normal; font-size: .9rem; color: var(--ink-soft); margin-top: 2px; }

.process { margin-top: clamp(90px, 11vw, 130px); }
.process__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-align: center; margin-bottom: 40px; }
.process__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.process__list li { background: var(--bg-alt); border-radius: 22px; padding: 28px 22px; }
.process__list b { font-size: .85rem; font-weight: 600; color: var(--accent); }
.process__list h4 { font-size: 1.2rem; margin: 10px 0 6px; }
.process__list p { font-size: .9rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- 포트폴리오 ---------- */
.portfolio { background: var(--bg-alt); }
.portfolio .container, .vision .container { width: min(100% - 44px, var(--wide)); }
.section__head { margin-bottom: 40px; text-align: center; }
.section__desc { max-width: 680px; margin: 0 auto; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; font-weight: 500; }
.filters { display: flex; gap: 6px; justify-content: center; margin: 0 auto 44px; padding: 4px; background: #e8e8ed; border-radius: 980px; width: fit-content; }
.filters button {
  background: none; border: 0; padding: 8px 22px; font-family: inherit; font-size: .92rem; font-weight: 500;
  color: var(--ink-soft); cursor: pointer; transition: .25s; border-radius: 980px;
}
.filters button:hover { color: var(--ink); }
.filters button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  cursor: pointer; background: #fff; border-radius: 22px; overflow: hidden; animation: fadeUp .5s ease both;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card.is-hidden { display: none; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card__img > div { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img > div { transform: scale(1.05); }
.card__body { padding: 20px 24px 26px; }
.card__cat { font-size: .78rem; font-weight: 600; color: #bf4800; }
.card__title { font-size: 1.3rem; margin: 4px 0 4px; letter-spacing: -0.02em; }
.card__meta { font-size: .9rem; color: var(--ink-soft); margin: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 디자인 비전 ---------- */
.mood {
  display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px;
  grid-template-areas: "a a b c" "a a d e"; margin-bottom: 80px;
}
.mood__item { position: relative; overflow: hidden; background-size: cover; background-position: center; border-radius: 22px; }
.mood__item span {
  position: absolute; left: 22px; bottom: 18px; color: #fff; font-size: 1rem; font-weight: 600;
  text-shadow: 0 1px 10px rgba(0,0,0,.2);
}
.m1 { grid-area: a; background-image: url("../images/mood-1.jpg"), linear-gradient(150deg, #a08670, #d6c3ae); }
.m2 { grid-area: b; background-image: url("../images/mood-2.jpg"), linear-gradient(150deg, #ebe6de, #f8f6f2); }
.m3 { grid-area: c; background-image: url("../images/mood-3.jpg"), linear-gradient(150deg, #a8a49e, #d8d5d0); }
.m4 { grid-area: d; background-image: url("../images/mood-4.jpg"), linear-gradient(150deg, #d6cbbb, #ede7de); }
.m5 { grid-area: e; background-image: url("../images/mood-5.jpg"), linear-gradient(150deg, #5d5853, #948d86); }
.m2 span, .m4 span { color: var(--ink); text-shadow: none; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.values h4 { font-size: 1.4rem; }
.values p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ---------- 상담문의 ---------- */
.contact { background: var(--bg-alt); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__info h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.contact__info > p { color: var(--ink-soft); font-size: 1.1rem; }
.info-list { display: grid; grid-template-columns: 76px 1fr; gap: 14px 16px; margin: 36px 0; font-size: 1rem; }
.info-list dt { color: var(--ink-soft); }
.info-list dd { margin: 0; }
.info-list a { color: var(--accent); }
.info-list a:hover { text-decoration: underline; }
.sns { display: flex; gap: 22px; font-size: 1rem; }
.sns a { color: var(--accent); }
.sns a::after { content: " ↗"; }
.sns a:hover { text-decoration: underline; }

.form { display: grid; gap: 16px; background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: 0 4px 30px rgba(0,0,0,.04); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); padding: 13px 15px; border-radius: 12px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.form input.is-invalid { border-color: #e30000; }
.form textarea { resize: vertical; }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; font-weight: 400; }
.form .agree input { width: 18px; height: 18px; margin-top: 2px; padding: 0; border-radius: 5px; -webkit-appearance: auto; appearance: auto; accent-color: var(--accent); flex: none; }
.form__msg { min-height: 1.5em; font-size: .92rem; margin: 0; text-align: center; }
.form__msg.ok { color: #1a8a3a; } .form__msg.err { color: #e30000; }

/* ---------- 푸터 ---------- */
.footer { background: var(--bg-alt); color: var(--ink-soft); padding: 0 0 100px; font-size: .75rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.logo--footer { color: var(--ink); margin-bottom: 12px; }
.footer__biz { line-height: 1.9; margin: 0; }
.copy { margin: 0; }

/* ---------- 모바일 퀵버튼 ---------- */
.quick { display: none; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: .35s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal__box {
  position: relative; background: #fff; width: min(100%, 980px); max-height: 90vh; overflow: auto; border-radius: var(--radius);
  display: grid; grid-template-columns: 1.25fr 1fr; transform: translateY(30px) scale(.98); transition: .45s cubic-bezier(.2,.7,.2,1);
}
.modal.is-open .modal__box { transform: none; }
.modal__img { min-height: 440px; background-size: cover; background-position: center; }
.modal__body { padding: 52px 40px; }
.modal__body .eyebrow { color: #bf4800; font-size: .9rem; }
.modal__body h3 { font-size: 2rem; }
.modal__meta { list-style: none; padding: 18px 0; margin: 0 0 22px; border-block: 1px solid #e8e8ed; font-size: .95rem; display: grid; gap: 6px; }
.modal__meta b { display: inline-block; width: 72px; color: var(--ink-soft); font-weight: 400; }
.modal__body > p:last-child { color: var(--ink-soft); line-height: 1.7; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(232,232,237,.9); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-soft);
  backdrop-filter: blur(10px);
}
.modal__close:hover { background: #dcdce1; color: var(--ink); }
body.no-scroll { overflow: hidden; }

/* ---------- 스크롤 등장 ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================
   반응형
   ========================================= */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .process__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .m-only { display: inline; }
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; height: 100svh; background: #fff; flex-direction: column; justify-content: flex-start;
    align-items: flex-start; padding: 80px 40px; gap: 22px; font-size: 1.8rem; font-weight: 600; color: var(--ink);
    opacity: 0; visibility: hidden; transition: .3s;
  }
  .nav__call { font-size: 1rem; padding: 10px 22px; margin-top: 12px; }
  .menu-open .nav { opacity: 1; visibility: visible; }

  .hero__bg { aspect-ratio: 4 / 5; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 400px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__img { aspect-ratio: 4 / 3; }
  .about__text { text-align: center; }
  .process__list { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .mood { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; grid-template-areas: "a a" "b c" "d e"; }
  .values { grid-template-columns: 1fr; gap: 32px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__info { text-align: center; }
  .info-list { text-align: left; max-width: 340px; margin-inline: auto; }
  .sns { justify-content: center; }

  .modal { padding: 0; align-items: end; }
  .modal__box { grid-template-columns: 1fr; max-height: 92svh; border-radius: 22px 22px 0 0; }
  .modal__img { min-height: 260px; }
  .modal__body { padding: 32px 24px 48px; }

  .quick {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; inset: auto 12px 12px; z-index: 40;
    font-size: 1rem; font-weight: 500; text-align: center;
  }
  .quick a { padding: 14px; border-radius: 980px; background: rgba(29,29,31,.85); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .quick a:last-child { background: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.card__link { display: inline-block; margin-top: 12px; color: var(--accent); font-size: .95rem; }

/* ---------- 동영상 구간 ---------- */
.film { padding-bottom: clamp(60px, 8vw, 100px); }
.film__wrap {
  position: relative; width: min(100% - 24px, var(--wide)); margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #000;
}
.film__wrap video, .film__wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.film__wrap video { opacity: 0; transition: opacity .8s; }
.film__wrap.has-video video { opacity: 1; }
.film__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px;
  color: #a1a1a6; font-size: 1rem; font-weight: 500;
  background: radial-gradient(circle at 50% 40%, #3a3632 0%, #121110 70%);
}
.film__placeholder p { margin: 0; }
.film__playicon { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); position: relative; }
.film__playicon::after {
  content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #f5f5f7;
}
.film__wrap.has-video .film__placeholder, .film__wrap.is-youtube .film__placeholder { display: none; }

.film__toggle, .film__sound {
  position: absolute; bottom: 20px; z-index: 2; border: 0; cursor: pointer; color: #1d1d1f;
  background: rgba(232,232,237,.75); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background .2s, opacity .3s; opacity: 0; pointer-events: none;
}
.film__wrap.has-video .film__toggle, .film__wrap.has-video .film__sound { opacity: 1; pointer-events: auto; }
.film__toggle { right: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.film__toggle svg { fill: currentColor; }
.film__toggle .i-play, .film__wrap.is-paused .film__toggle .i-pause { display: none; }
.film__wrap.is-paused .film__toggle .i-play { display: block; }
.film__sound { right: 74px; height: 44px; padding: 0 18px; border-radius: 980px; font: inherit; font-size: .85rem; font-weight: 500; }
.film__toggle:hover, .film__sound:hover { background: rgba(255,255,255,.95); }

@media (max-width: 768px) {
  .film__wrap { aspect-ratio: 4 / 5; border-radius: 22px; }
  .film__toggle, .film__sound { bottom: 14px; }
  .film__toggle { right: 14px; }
  .film__sound { right: 66px; }
}

/* ---------- 로고 ---------- */
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo__svg { height: 21px; width: 121px; fill: currentColor; display: block; }
.logo--footer .logo__svg { height: 64px; width: 218px; }
.logo--footer { margin-bottom: 18px; }
.hero__mark { width: 60px; height: 60px; color: var(--ink); margin: 0 auto 14px; display: block; animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.tile { position: relative; overflow: hidden; }
.tile > *:not(.tile__mark) { position: relative; z-index: 1; }
.tile__mark { position: absolute; width: 440px; height: 230px; left: 50%; bottom: -36px; transform: translateX(-50%); color: #fff; opacity: .08; }
.film__mark { width: 120px; height: 62px; color: #f5f5f7; opacity: .45; }
@media (max-width: 768px) {
  .logo__svg { height: 19px; width: 109px; }
  .hero__mark { width: 50px; height: 50px; }
}
.header .logo { position: relative; z-index: 2; }

/* ---------- 첫 화면 회사소개 영상 ---------- */
.btn--ghost { background: transparent; }
.hero__media {
  width: 100%; margin-top: clamp(48px, 7vw, 80px);
  animation: heroIn 1.4s .25s cubic-bezier(.2,.7,.2,1) both;
}
.hero__caption { margin: 18px 0 0; font-size: .95rem; color: var(--ink-soft); }
.hero__caption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 768px) {
  .hero__media { aspect-ratio: 16 / 10; }
  .hero__caption { font-size: .85rem; padding: 0 8px; }
}
.process--solo { margin-top: 0; }

/* ---------- 영상 위 회사소개 문구 ---------- */
.film__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left;
  padding: clamp(28px, 5vw, 64px); padding-right: clamp(28px, 18vw, 240px); color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%);
}
.film__wrap.is-youtube .film__overlay { display: none; }
.film__kicker { font-size: clamp(.8rem, 1.2vw, .95rem); font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.75); margin: 0 0 .5rem; }
.film__headline {
  font-size: clamp(1.7rem, 4.4vw, 3.6rem); line-height: 1.12; margin: 0 0 1rem; color: #fff;
  transition: opacity .35s ease, transform .35s ease; text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.film__headline.is-out { opacity: 0; transform: translateY(10px); }
.film__desc { max-width: 560px; font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 1.65; color: rgba(255,255,255,.88); margin: 0 0 1.4rem; }
.film__steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.film__steps li { width: 28px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); transition: background .4s, width .4s; }
.film__steps li.is-on { width: 44px; background: #fff; }
.film__placeholder { z-index: 0; }
.hero__caption { display: none; }
@media (max-width: 768px) {
  .hero__media { aspect-ratio: 4 / 5; }
  .film__overlay { padding: 24px 22px 76px; }
  .film__desc { display: none; }
  .film__steps { position: absolute; left: 22px; bottom: 30px; }
  .hero__caption { display: block; text-align: left; line-height: 1.65; padding: 0 4px; }
}

/* ---------- 시공 사례: 사진만 ---------- */
.card { display: block; width: 100%; padding: 0; border: 0; font: inherit; background: #fff; text-align: left; }
.card__img, .card__img > span { display: block; }
.card__img > span { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img > span { transform: scale(1.05); }
.card__img { aspect-ratio: 4 / 3; }

.modal--photo .modal__box {
  display: block; width: min(100%, 1200px); height: min(84vh, 800px); max-height: none; overflow: hidden;
  background: #111; border-radius: 22px;
}
.modal--photo .modal__img { position: absolute; inset: 0; min-height: 0; background-color: #111; }
.modal--photo .modal__close { background: rgba(255,255,255,.85); color: #1d1d1f; }
.modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 1.9rem; line-height: 1; padding-bottom: 4px; color: #1d1d1f;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s;
}
.modal__nav:hover, .modal--photo .modal__close:hover { background: #fff; }
.modal__nav--prev { left: 16px; } .modal__nav--next { right: 16px; }
.modal__count {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; margin: 0;
  padding: 6px 14px; border-radius: 980px; font-size: .85rem; color: #fff; background: rgba(0,0,0,.45);
}
@media (max-width: 768px) {
  .modal--photo { align-items: center; padding: 0; }
  .modal--photo .modal__box { width: 100%; height: 70svh; border-radius: 0; }
  .modal__nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .modal__nav--prev { left: 10px; } .modal__nav--next { right: 10px; }
}

/* ---------- 시공 사례: 현장별 앨범 ---------- */
.card { position: relative; }
.card__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img > img { transform: scale(1.05); }
.card__badge {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 980px; font-size: .78rem; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.more { text-align: center; margin-top: 40px; }
.more .btn[hidden] { display: none; }

.modal--photo .modal__box { display: flex; flex-direction: column; background: #111; }
.modal__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--fallback, #222); }
.modal__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #111; }
.modal__photo.is-missing { visibility: hidden; }
.modal__thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: #111; scrollbar-width: none; }
.modal__thumbs::-webkit-scrollbar { display: none; }
.modal__thumbs button {
  flex: none; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  cursor: pointer; background: var(--fallback, #333); opacity: .55; transition: opacity .2s, border-color .2s;
}
.modal__thumbs button.is-on { opacity: 1; border-color: #fff; }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal.is-single .modal__nav, .modal.is-single .modal__thumbs, .modal.is-single .modal__count { display: none; }

@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { border-radius: 14px; }
  .card__badge { right: 8px; bottom: 8px; padding: 3px 8px; font-size: .7rem; }
  .modal__thumbs button { width: 60px; height: 44px; }
}

/* ---------- 포트폴리오 페이지 ---------- */
.nav a[aria-current="page"] { color: #000; font-weight: 600; }
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 100px)) 0 clamp(32px, 4vw, 48px); text-align: center; background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .9rem; animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.page-hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--ink-soft); font-weight: 500; margin: 0; animation: rise 1s .1s cubic-bezier(.2,.7,.2,1) both; }
.page-hero__sub strong { color: var(--ink); }
.portfolio--page { padding: 0 0 clamp(80px, 10vw, 120px); }
.portfolio--page .filters { position: sticky; top: calc(var(--header-h) + 12px); z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.filters__n { font-size: .78em; color: var(--ink-soft); margin-left: 2px; font-weight: 400; }
.filters button.is-active .filters__n { color: var(--accent); }
.portfolio--page .grid { grid-template-columns: repeat(3, 1fr); }
.cta-band { background: #000; color: #f5f5f7; text-align: center; padding: clamp(80px, 10vw, 120px) 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.cta-band p { color: #a1a1a6; font-size: 1.1rem; margin-bottom: 2rem; }
@media (max-width: 1024px) { .portfolio--page .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .portfolio--page .filters { top: calc(var(--header-h) + 8px); }
  .portfolio--page .filters button { padding: 8px 14px; }
}

/* ---------- 하이라이트 타일: 사진 배경 ---------- */
.tile--photo { background: var(--bg-alt); color: var(--ink); justify-content: flex-start; }
.tile > .tile__photo {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.tile--commercial > .tile__photo { object-position: 30% 50%; }
.tile--photo:hover > .tile__photo { transform: scale(1.04); }
.tile--photo:hover { transform: none; }
.tile--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.85) 24%, rgba(255,255,255,0) 50%);
}
.tile--photo > *:not(.tile__photo) { z-index: 2; }
.tile--photo .tile__kicker { color: var(--ink-soft); }
.tile--photo .tile__link {
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 10px 20px; border-radius: 980px; font-size: 1rem; box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
@media (max-width: 768px) {
  .tile--photo { min-height: 440px; padding-top: 44px; }
}

/* ---------- 포트폴리오 페이지: 가로 슬라이드 ---------- */
.portfolio--slide { --edge: max(22px, calc((100vw - var(--wide)) / 2)); overflow: hidden; }
.portfolio--slide .filters { position: static; box-shadow: none; margin-bottom: 36px; }
.track {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 6px var(--edge) 24px; scrollbar-width: none; cursor: grab; outline: none;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.track.is-dragging .card { pointer-events: none; }
.track .card {
  flex: 0 0 clamp(300px, 38vw, 560px); scroll-snap-align: start; border-radius: 26px; animation: none;
}
.track .card__img { aspect-ratio: 4 / 5; }
.track .card:hover { transform: translateY(-4px); }
.track .card__badge { right: 16px; bottom: 16px; padding: 6px 12px; font-size: .85rem; }
.track .card::after {
  content: attr(data-k); position: absolute; left: 18px; top: 16px; z-index: 1;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.95);
  background: rgba(0,0,0,.28); padding: 4px 10px; border-radius: 980px; backdrop-filter: blur(8px);
}
.slide-bar { display: flex; align-items: center; gap: 20px; margin-top: 8px; width: min(100% - 44px, var(--wide)); }
.slide-progress { flex: 1; height: 3px; background: #e0e0e5; border-radius: 3px; overflow: hidden; }
.slide-progress span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width .35s ease; }
.slide-count { margin: 0; font-size: .9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.slide-btns { display: flex; gap: 10px; }
.slide-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.7rem; line-height: 1; padding-bottom: 4px;
  background: #e8e8ed; color: var(--ink); transition: background .2s, opacity .2s;
}
.slide-btn:hover:not(:disabled) { background: #dcdce1; }
.slide-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 768px) {
  .track { gap: 12px; }
  .track .card { flex-basis: 80vw; border-radius: 20px; }
  .slide-btn { width: 40px; height: 40px; font-size: 1.4rem; }
  .slide-bar { gap: 12px; }
}
/* 한 화면 안에 슬라이드가 다 보이도록 */
.page--slide .page-hero { padding: calc(var(--header-h) + clamp(28px, 4vh, 56px)) 0 clamp(20px, 3vh, 32px); }
.page--slide .page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .5rem; }
.page--slide .page-hero__sub { font-size: clamp(1rem, 1.5vw, 1.15rem); }
.page--slide .portfolio--slide .filters { margin-bottom: clamp(18px, 3vh, 32px); }
.track .card { flex: 0 0 min(600px, 42vw, calc(54vh * 4 / 3)); }
.track .card__img { aspect-ratio: 4 / 3; }
.portfolio--page.portfolio--slide { padding-bottom: clamp(56px, 8vw, 96px); }
@media (max-width: 768px) {
  .track .card { flex-basis: 82vw; }
  .track .card__img { aspect-ratio: 1 / 1; }
}

/* 자동 넘김 버튼 */
.slide-btn--play { display: grid; place-items: center; padding: 0; }
.slide-btn--play svg { fill: currentColor; }
.slide-btn--play .i-play, .slide-btn--play.is-paused .i-pause { display: none; }
.slide-btn--play.is-paused .i-play { display: block; }

/* 슬라이드 페이드 인 · 아웃 */
.track.is-animating { scroll-snap-type: none; }
.track .card { transition: opacity .25s linear, transform .25s ease-out, box-shadow .4s; will-change: opacity, transform; transform-origin: center; }
.track .card:hover { transform: none; box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.track.is-leaving .card { opacity: 0 !important; transform: scale(.96) !important; transition: opacity .2s ease, transform .2s ease; }
.track .card.is-enter { animation: cardIn .6s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) both; }
@keyframes cardIn { from { opacity: 0; translate: 40px 0; } to { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .track .card { opacity: 1 !important; transform: none !important; } }

/* 첫 화면: 상호를 크게, 문구는 조금 작게 */
.hero__kicker { font-size: clamp(1.6rem, 2.9vw, 2.55rem); font-weight: 700; color: #6e6e73; letter-spacing: -0.03em; margin-bottom: .7rem; }
.hero h1 { font-size: clamp(2.05rem, 4.9vw, 4.4rem); font-weight: 700; color: #5a5a5f; }

/* ---------- 디자인 비전: 동양적 여백 · 곡선 · 색상 ---------- */
.m1 { background: url("../images/mood-1.jpg") center/cover no-repeat, url("../images/tile-commercial.jpg") 8% 40%/cover no-repeat, linear-gradient(150deg, #a08670, #d6c3ae); }
.m4 { background: url("../images/mood-4.jpg") center/cover no-repeat, url("../images/tile-residential.jpg") 22% 18%/260% auto no-repeat, linear-gradient(150deg, #e9e4dc, #f6f3ee); grid-area: d; }
.m5 { background: url("../images/mood-5.jpg") center/cover no-repeat, linear-gradient(150deg, #22352f, #3f5f58); grid-area: e; }
.m1 { grid-area: a; }
.m4 span { color: var(--ink); text-shadow: 0 0 12px rgba(255,255,255,.8); }
.m5 span { color: #fff; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 64px; }
.pillar { background: var(--bg-alt); border-radius: 26px; padding: 36px 32px 34px; text-align: left; }
.pillar__no { font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin: 0 0 6px; }
.pillar h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.pillar__icon { width: 64px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; margin-bottom: 18px; display: block; }
.pillar > p:not(.pillar__no) { color: var(--ink-soft); font-size: .98rem; line-height: 1.75; margin-bottom: 18px; }
.pillar ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid #e0e0e5; display: grid; gap: 6px; }
.pillar li { font-size: .9rem; color: var(--ink); padding-left: 14px; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-soft); }
.palette { text-align: center; }
.palette__title { font-weight: 600; margin-bottom: 22px; }
.palette ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.palette li { display: grid; justify-items: center; gap: 4px; }
.palette span { width: 100%; aspect-ratio: 1; max-width: 120px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); margin-bottom: 8px; }
.palette b { font-size: .95rem; }
.palette em { font-style: normal; font-size: .8rem; color: var(--ink-soft); }
@media (max-width: 1024px) { .pillars { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .pillar { padding: 28px 24px; }
  .palette ul { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .palette span { max-width: 84px; }
}

/* 무드보드: 실제 사진 5장 (images/mood-1~5.jpg) */
.m1 { background: url("../images/mood-1.jpg") 45% 50%/cover no-repeat, linear-gradient(150deg, #a08670, #d6c3ae); }
.m2 { background: url("../images/mood-2.jpg") 75% 30%/cover no-repeat, linear-gradient(150deg, #ebe6de, #f8f6f2); grid-area: b; }
.m3 { background: url("../images/mood-3.jpg") 50% 34%/auto 150% no-repeat, linear-gradient(150deg, #a8a49e, #d8d5d0); grid-area: c; }
.m4 { background: url("../images/mood-4.jpg") 48% 40%/cover no-repeat, linear-gradient(150deg, #e9e4dc, #f6f3ee); grid-area: d; }
.m5 { background: url("../images/mood-5.jpg") 22% 55%/cover no-repeat, linear-gradient(150deg, #22352f, #3f5f58); grid-area: e; }
.mood__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); pointer-events: none; }
.mood__item span, .m2 span, .m4 span, .m5 span { z-index: 1; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.mood__item { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.mood__item:hover { transform: scale(1.015); }
@media (max-width: 768px) { .mood__item span { font-size: .85rem; left: 14px; bottom: 12px; white-space: nowrap; } }

/* 대표 사진 글씨 (projects.js 의 label) */
.card__badge--top { top: 16px; bottom: auto !important; }
.card__label, .modal__label {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; margin: 0;
  padding: 8px 16px; border-radius: 980px; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  color: #1d1d1f; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.modal__label { right: 20px; bottom: 20px; font-size: 1.05rem; }
.modal__label[hidden] { display: none; }
@media (max-width: 768px) {
  .card__label { right: 10px; bottom: 10px; padding: 6px 12px; font-size: .85rem; }
  .card__badge--top { top: 10px; }
}
/* 청자빛 무드 (원래 사진은 images/mood-5.jpg 에 그대로 있음) */
.m5 { background: url("../images/mood-celadon.jpg?v=3") 50% 50%/cover no-repeat, #8FA89A; }
.filters button { white-space: nowrap; }
@media (max-width: 768px) {
  .portfolio--page .filters { max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; }
  .portfolio--page .filters::-webkit-scrollbar { display: none; }
  .portfolio--page .filters button { padding: 8px 12px; font-size: .85rem; }
}

/* 앨범 사진 설명 (projects.js 의 captions) */
.modal__caption {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; margin: 0; max-width: min(70%, 560px);
  padding: 10px 16px; border-radius: 14px; font-size: .95rem; line-height: 1.5; color: #fff;
  background: rgba(0,0,0,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.modal__caption[hidden] { display: none; }
.modal--photo .modal__count { bottom: auto; top: 18px; }
@media (max-width: 768px) { .modal__caption { left: 12px; right: 12px; bottom: 12px; max-width: none; font-size: .88rem; } }
/* 사진 설명은 오른쪽 아래 */
.modal__caption { left: auto; right: 20px; text-align: right; }
@media (max-width: 768px) { .modal__caption { left: auto; right: 12px; max-width: calc(100% - 24px); } }

/* ---------- 인스타그램 ---------- */
.insta { background: var(--bg); padding-top: clamp(70px, 9vw, 110px); }
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: min(100%, var(--wide)); margin: 0 auto; }
.insta__grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--bg-alt); }
.insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.insta__grid a::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .3s; }
.insta__grid a:hover img { transform: scale(1.06); }
.insta__grid a:hover::after { background: rgba(0,0,0,.15); }
.insta__cta { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.insta__handle { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.insta__handle:hover { color: var(--accent); }
@media (max-width: 1024px) { .insta__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .insta__grid { gap: 6px; } .insta__grid a { border-radius: 10px; } .insta__cta { flex-direction: column; gap: 16px; } }

/* ---------- 휴대폰: 시공 사례를 영상 바로 아래로, 진행 과정은 옆으로 넘기기 ---------- */
@media (max-width: 768px) {
  main#top { display: flex; flex-direction: column; }
  main#top > .hero { order: 1; }
  main#top > #portfolio { order: 2; }
  main#top > .tiles { order: 3; }
  main#top > #process { order: 4; }
  main#top > #instagram { order: 5; }
  main#top > #vision { order: 6; }
  main#top > #contact { order: 7; }
  #portfolio { padding-top: 64px; }

  .process__list {
    display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -22px; padding: 0 22px 6px; scroll-padding-inline: 22px; scrollbar-width: none;
  }
  .process__list::-webkit-scrollbar { display: none; }
  .process__list li { flex: 0 0 62%; scroll-snap-align: start; }
  .process__title::after { content: "옆으로 넘겨보세요 ›"; display: block; margin-top: 8px; font-size: .85rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
  .process__title { margin-bottom: 24px; }
  #process.section { padding: 64px 0; }
}
@media (max-width: 768px) { #process.section { padding-bottom: 24px; } .insta { padding-top: 56px; } }

/* 휴대폰: 주거 · 상업 타일을 작게 2칸으로 */
@media (max-width: 768px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px; }
  .tile, .tile--photo { min-height: 230px; padding: 18px 10px 14px; border-radius: 18px; }
  .tile__kicker { font-size: .72rem; margin-bottom: .2rem; }
  .tile h3 { font-size: 1rem; line-height: 1.3; letter-spacing: -0.02em; }
  .tile--photo::before { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.8) 30%, rgba(255,255,255,0) 58%); }
  .tile--photo .tile__link { font-size: .78rem; padding: 6px 12px; }
}

/* ---------- 첫 화면: 지역 · 무료 견적 ---------- */
.hero__area {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 980px;
  background: var(--bg-alt); color: var(--ink); font-size: .9rem; font-weight: 600; letter-spacing: -0.01em;
  animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
}
.hero__badges { list-style: none; padding: 0; margin: -0.6rem 0 1.8rem; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero__badges li { font-size: .85rem; font-weight: 600; color: var(--accent); padding: 5px 12px; border-radius: 980px; background: rgba(0,113,227,.08); }
.hero__badges li::before { content: "✓ "; }

/* ---------- 카카오톡 버튼 ---------- */
.btn--kakao { background: #FEE500; color: #191919; border-color: #FEE500; font-weight: 600; }
.btn--kakao:hover { background: #F5DC00; }
.btn--block { display: block; width: 100%; text-align: center; padding: 15px; }
.form__lead { margin: 0 0 4px; font-size: .95rem; color: var(--ink-soft); }
.form textarea { min-height: 88px; }

/* ---------- 휴대폰 하단 버튼: 카톡이 있으면 3칸 ---------- */

.quick a.quick__kakao { background: #FEE500; color: #191919; font-weight: 600; }
@media (max-width: 768px) {
  .hero__area { font-size: .8rem; padding: 5px 12px; margin-bottom: 10px; }
  .hero__badges { margin-bottom: 1.4rem; gap: 6px; }
  .hero__badges li { font-size: .75rem; padding: 4px 10px; }
  .hero__cta .btn { padding: 11px 20px; font-size: .95rem; }
}

/* ---------- 첫 화면 사진 모드 ---------- */
.film__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__wrap.has-photo .film__placeholder { display: none; }
.film__label {
  position: absolute; right: 20px; bottom: 20px; z-index: 3; padding: 10px 16px; border-radius: 980px;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: .9rem; font-weight: 600;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.film__label:hover { background: #fff; color: var(--accent); }
.film__wrap.has-photo .film__overlay { padding-bottom: clamp(70px, 9vw, 96px); }
@media (max-width: 768px) {
  .hero__media.has-photo { aspect-ratio: 4 / 3; }
  .film__wrap.has-photo .film__overlay { padding: 16px 18px 56px; }
  .film__wrap.has-photo .film__headline { font-size: 1.35rem; margin-bottom: .4rem; }
  .film__wrap.has-photo .film__kicker { font-size: .7rem; }
  .film__wrap.has-photo .film__steps { bottom: 22px; left: 18px; }
  .film__label { right: 10px; bottom: 12px; font-size: .75rem; padding: 7px 12px; }
}

/* ---------- 휴대폰: 디자인 비전은 제목 + 무드보드만 ---------- */
@media (max-width: 768px) {
  #vision .section__desc, #vision .pillars, #vision .palette { display: none; }
  #vision .section__head { margin-bottom: 24px; }
  #vision .mood { margin-bottom: 0; }
  #vision.section { padding: 64px 0; }
}
@media (max-width: 768px) { #vision .mood { grid-template-rows: 210px 140px 140px; gap: 8px; } #vision .mood__item { border-radius: 16px; } #vision .mood__item span { font-size: .78rem; left: 12px; bottom: 10px; } }

/* 첫 화면 사진 여러 장: 부드럽게 바뀜 */
.film__wrap.has-photo .film__photo { opacity: 0; transition: opacity 1.2s ease, transform 6s ease; transform: scale(1.03); }
.film__wrap.has-photo .film__photo.is-on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .film__wrap.has-photo .film__photo { transition: none; transform: none; } }
.hero__area span { white-space: nowrap; }
@media (max-width: 768px) { .hero__area { max-width: 92%; line-height: 1.5; border-radius: 14px; } }
.hero__region { margin: -6px 0 14px; font-size: .82rem; color: var(--ink-soft); animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
@media (max-width: 768px) { .hero__region { font-size: .75rem; margin: -4px 0 10px; } }

/* ---------- 시공 사례 페이지: 세로 목록 ---------- */
.portfolio--list .filters { position: sticky; top: calc(var(--header-h) + 12px); z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.06); margin-bottom: 32px; }
.portfolio--list .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio--list .card { animation: fadeUp .5s ease both; }
@media (max-width: 1024px) { .portfolio--list .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .portfolio--list .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .portfolio--list .card { border-radius: 14px; }
  .portfolio--list .card__label { font-size: .72rem; padding: 4px 9px; right: 7px; bottom: 7px; max-width: calc(100% - 14px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .portfolio--list .card__badge--top { top: 7px; }
  .portfolio--list .card__badge { right: 7px; padding: 2px 7px; font-size: .68rem; }
}

/* 바로 전화 */
.hero__call { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 1rem; color: var(--ink); animation: rise 1s .25s cubic-bezier(.2,.7,.2,1) both; }
.hero__call strong { font-weight: 700; letter-spacing: .01em; }
.hero__call svg { color: var(--accent); }
.hero__call:hover { color: var(--accent); }
.btn--call { background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.btn--call:hover { border-color: var(--ink); }
@media (max-width: 768px) { .hero__call { font-size: .95rem; margin-top: 14px; } }
