/* 솔루션 3종(회사소개서·홈페이지·블로그) — 시안(docs/design/2026-10-23-dark-editorial/site.html) 의 솔루션 전용 규칙. 맨 아래는 업무 자동화 전용 구성 규칙.
   공통 규칙(첫 화면·구역 머리·.trio·.promises·과정·재단선·문의 띠)은 base.css */

/* 제공 항목: 이미지와 글을 엇갈려 */
.offers { display: grid; gap: clamp(96px, 12vw, 180px); }
.offer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: center; }
.offer .crop { grid-column: 1 / span 6; }
.offer .crop figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--bg2); }
.offer .crop img { width: 100%; height: 100%; object-fit: cover; }
.offer__text { grid-column: 8 / span 5; }
.offer:nth-child(even) .crop { grid-column: 7 / span 6; order: 2; }
.offer:nth-child(even) .offer__text { grid-column: 1 / span 5; order: 1; }
.offer h3 { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.055em; line-height: 1.1; }
.offer p { margin: 0 0 24px; color: var(--sub); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line2); border-radius: 99px; padding: 5px 14px; font-size: 13.5px; }

/* 포트폴리오 격자 (링크 없는 항목은 <div> — .pf > * 로 같은 모양) */
.pf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px); }
.pf > * { display: block; }
.pf figure { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 3px; background: var(--bg2); }
.pf img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .1, 1); }
.pf a:hover img { transform: scale(1.06); }
.pf h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -0.03em; }
.pf .mono { display: block; margin-top: 2px; }

@media (max-width: 960px) {
  .offer .crop, .offer__text, .offer:nth-child(even) .crop, .offer:nth-child(even) .offer__text { grid-column: 1 / -1; order: 0; }
  .pf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- 업무 자동화 (body.page-automation) — 전용 구성 (components/site/content/AutomationContent.tsx) ---------- */

/* 흐르는 항목 띠: HTML 은 줄바꿈된 칩 목록, automation.js 가 .is-moving 을 붙이면 전체 폭으로 흐른다 (움직임 줄이기·스크립트 없음은 목록 그대로) */
.page-automation .flow__note { margin: calc(clamp(56px, 8vw, 112px) * -0.55) 0 clamp(48px, 6vw, 80px); color: var(--sub); font-size: 15.5px; }
.flow__row + .flow__row { margin-top: clamp(32px, 3.6vw, 48px); }
.flow__name { margin: 0 0 8px; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; color: var(--sub); }
.flow__vp { max-width: 1360px; margin: 0 auto; padding: 6px var(--gut); overflow: hidden; overflow: clip; } /* 위아래 6px: 포커스 테두리가 잘리지 않게 */
.flow__belt { display: flex; }
.flow__track { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.flow__track--copy { display: none; }
.flow__item { display: inline-flex; align-items: center; font: inherit; font-size: clamp(16px, 1.7vw, 22px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.2; color: var(--ink); background: transparent; border: 1px solid var(--line2); border-radius: 99px; padding: .6em 1.15em; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.flow__item:hover, .flow__item.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.flow.is-moving .flow__vp { max-width: none; padding-inline: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.flow.is-moving .flow__belt { width: max-content; will-change: transform; }
.flow.is-moving .flow__track { flex-wrap: nowrap; flex-shrink: 0; padding-right: 10px; }
.flow.is-moving .flow__track--copy { display: flex; }
.flow__cap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px 20px; align-items: start; min-height: 7em; margin-top: clamp(40px, 4.4vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); }
.flow__cap[hidden] { display: none; }
.flow__cap b { grid-column: 1 / span 5; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.045em; line-height: 1.3; }
.flow__cap span { grid-column: 7 / span 6; color: var(--sub); font-size: 15.5px; }

/* 개발 범위: 칸이 3:4:5 로 넓어지고, 위의 작은 네모(1·3·24)가 같은 바닥선에서 커진다. 파란 네모는 처음 만든 모듈 — 큰 시스템도 그 하나에서 시작한다 */
.scale { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: clamp(20px, 2.4vw, 40px); margin: 0; padding: 0; list-style: none; }
.scale__step { display: flex; flex-direction: column; min-width: 0; }
.scale__mark { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 78px; margin-bottom: 22px; }
.scale__mark i { position: relative; width: 18px; height: 18px; border: 1px solid var(--line2); border-radius: 2px; background: var(--bg2); }
.scale__mark i:first-child { background: var(--blue); border-color: var(--blue); }
.scale__mark--3 { gap: 14px; }
.scale__mark--3::before { content: ""; position: absolute; left: 9px; bottom: 9px; width: 64px; border-top: 1px solid var(--line2); }
.scale__mark--24 { display: grid; grid-template-columns: repeat(8, 18px); grid-auto-rows: 18px; align-content: end; }
.scale__step h3 { margin: 0; padding-top: 20px; border-top: 1px solid var(--line2); font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.05em; line-height: 1.2; }
.scale__step > p { margin: 14px 0 20px; max-width: 44ch; color: var(--sub); font-size: 14.5px; }
.scale__note { margin: clamp(48px, 6vw, 80px) 0 0; max-width: 40ch; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.45; }

/* 한 팀: 세 갈래(현장·디자인·개발)가 아래 한 줄로 이어져 하나로 모인다 */
.team { --g: clamp(24px, 3vw, 48px); }
.team__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.team__col { position: relative; padding-bottom: 64px; }
.team__col::after { content: ""; position: absolute; left: 0; bottom: 0; height: 44px; border-left: 1px solid var(--line2); }
.team__word { display: block; margin-bottom: clamp(28px, 3.4vw, 48px); font-family: var(--f-dis); font-stretch: 125%; font-weight: 200; font-size: clamp(44px, 5.4vw, 84px); line-height: .9; letter-spacing: -0.04em; }
.team__col h3 { margin: 0 0 12px; padding-top: 20px; border-top: 1px solid var(--line2); font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.045em; }
.team__col p { margin: 0; max-width: 36ch; color: var(--sub); font-size: 14.5px; }
.team__sum { position: relative; padding: 64px 0 0 calc((100% + var(--g)) / 3); }
.team__sum::before { content: ""; position: absolute; left: 0; top: 0; width: calc((100% + var(--g)) * 2 / 3 + 1px); border-top: 1px solid var(--line2); }
.team__sum::after { content: ""; position: absolute; left: calc((100% + var(--g)) / 3); top: 0; height: 44px; border-left: 1px solid var(--blue); }
.team__sum h3 { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 60px); letter-spacing: -0.05em; line-height: 1.1; }
.team__sum p { margin: 0; max-width: 44ch; color: var(--sub); font-size: 15.5px; }

/* 맞춤형 4가지 (.promise 모양을 4칸으로) */
.page-automation .fit { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .flow__cap b, .flow__cap span { grid-column: 1 / -1; }
  .flow__cap { min-height: 9em; }
  .scale { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .scale__mark { height: auto; min-height: 18px; }
  .page-automation .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 한 팀: 왼쪽 세로줄 하나에 세 갈래가 매달리고 끝에서 모인다 */
  .team { border-left: 1px solid var(--line2); padding-left: 22px; }
  .team__cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .team__col { padding-bottom: 0; }
  .team__col::after, .team__sum::before { display: none; }
  .team__sum { padding: 56px 0 0; }
  .team__sum::after { left: -27px; top: 68px; width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--blue); }
}
@media (max-width: 600px) {
  .page-automation .fit { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 업종별 디자인 시안 카드 · 업무 자동화 시연 (components/site/Designs.tsx) ----------
   홈페이지 제작(대표 시안 6)·시안 갤러리·업무 자동화·광고 페이지가 같이 쓴다. 썸네일은 재단선 액자(.crop) — 인쇄 시안을 늘어놓은 교정지처럼 */
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.dgrid > li { min-width: 0; display: flex; }
.dcard { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.dcard__shot { display: block; margin: -14px -14px 0; }
.dcard__shot figure { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--bg2); }
.dcard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .9s cubic-bezier(.2, .7, .1, 1); }
.dcard__shot:hover img { transform: scale(1.04); }
.dcard__body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.dcard__kind { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0 0 10px; font-size: 13px; color: var(--sub); }
.dcard__kind span + span::before { content: "/"; margin-right: 10px; color: var(--dim); }
.dcard__title { margin: 0 0 10px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.35; }
.dcard__sum { margin: 0 0 18px; color: var(--sub); font-size: 14px; line-height: 1.7; }
.dcard__meta { display: grid; gap: 6px; margin: 0 0 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.dcard__meta div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.dcard__meta dt { color: var(--sub); }
.dcard__meta dd { margin: 0; color: var(--ink); }
.dcard__act { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.dcard__ask { font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 5px; transition: text-decoration-color .2s; }
.dcard__ask:hover { text-decoration-color: currentColor; }
.sec__lead { margin: calc(clamp(56px, 8vw, 112px) * -0.55) 0 clamp(48px, 6vw, 80px); max-width: 60ch; color: var(--sub); font-size: 15.5px; }

/* 시연: 스크립트가 없거나 좁은 화면이면 시연마다 카드(썸네일 → 새 창). automation.js 가 넓은 화면에서 .is-tabs 를 붙이면 탭 + 화면 상자 */
.demo__tabs { display: none; }
.demo__panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px clamp(20px, 2.4vw, 40px); align-items: start; }
.demo__panel + .demo__panel { margin-top: clamp(72px, 8vw, 120px); padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--line); }
.demo__stage { grid-column: 1 / span 8; position: relative; aspect-ratio: 1180 / 760; overflow: hidden; border: 1px solid var(--line2); border-radius: 6px; background: #f4f5f7; }
.demo__shot { position: absolute; inset: 0; display: block; }
.demo__shot[hidden] { display: none; }
.demo__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: filter .3s; }
.demo__shot:hover img { filter: brightness(.82); }
.demo__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px 16px 20px; border-radius: 99px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; box-shadow: 0 18px 50px rgba(0, 3, 29, .45); white-space: nowrap; transition: background .25s; }
.demo__play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--blue); }
.demo__shot:hover .demo__play, .demo__shot:focus-visible .demo__play { background: var(--blue); }
.demo__shot:hover .demo__play::before, .demo__shot:focus-visible .demo__play::before { border-left-color: #fff; }
.demo__stage iframe { position: absolute; left: 0; top: 0; width: 1180px; height: 760px; max-width: none; border: 0; transform-origin: 0 0; transform: scale(var(--s, 1)); background: #fff; }
.demo__side { grid-column: 9 / span 4; min-width: 0; }
.demo__flag { display: inline-block; margin: 0 0 18px; padding: 4px 12px; border: 1px solid var(--line2); border-radius: 99px; color: var(--sub); font-size: 12.5px; }
.demo__side h3 { margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.05em; line-height: 1.15; }
.demo__sum { margin: 0 0 26px; color: var(--sub); font-size: 14.5px; }
.demo__side h4 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--sub); }
.demo__steps { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: st; border-top: 1px solid var(--line); }
.demo__steps li { counter-increment: st; display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.demo__steps li::before { content: counter(st); font-family: var(--f-dis); font-size: 13px; color: var(--blue); padding-top: 1px; }
.demo__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* 넓은 화면 + 스크립트: 탭 한 줄(위에 선이 있는 칸 넷) + 고른 시연 하나 */
@media (min-width: 961px) {
  .demo.is-tabs .demo__tabs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin-bottom: clamp(32px, 3.6vw, 48px); border-top: 1px solid var(--line2); }
  .demo__tabs [role="tab"] { position: relative; padding: 22px 16px 22px 0; border: 0; background: none; color: var(--sub); text-align: left; font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; letter-spacing: -0.045em; cursor: pointer; transition: color .25s; }
  .demo__tabs [role="tab"]::before { content: ""; position: absolute; left: 0; right: 16px; top: -1px; height: 2px; background: transparent; transition: background .25s; }
  .demo__tabs [role="tab"]:hover { color: var(--ink); }
  .demo__tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
  .demo__tabs [role="tab"][aria-selected="true"]::before { background: var(--blue); }
  .demo.is-tabs .demo__panel:not(.is-on) { display: none; }
  .demo.is-tabs .demo__panel + .demo__panel { margin-top: 0; padding-top: 0; border-top: 0; }
}

@media (max-width: 960px) {
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo__stage, .demo__side { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .demo__play { padding: 12px 20px 12px 16px; font-size: 14px; }
}

/* 업무 자동화 첫 화면 그림 위 움직이는 층 (components/site/AutomationHeroMotion.tsx). 9초 한 바퀴, 모든 칸이 같은 시간표를 % 로 나눠 쓴다. */
.sub-visual figure { position: relative; }
.hero-motion { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-motion * { transform-box: fill-box; }
.hm-type { fill: #c9d6ff; transform-origin: left center; transform: scaleX(0); animation: 9s linear infinite; }
.hm-type--1 { animation-name: hm-type1; }
.hm-type--2 { animation-name: hm-type2; }
.hm-type--3 { animation-name: hm-type3; }
@keyframes hm-type1 { 0%, 4% { transform: scaleX(0); opacity: 1; } 12%, 92% { transform: scaleX(1); opacity: 1; } 97%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hm-type2 { 0%, 12% { transform: scaleX(0); opacity: 1; } 20%, 92% { transform: scaleX(1); opacity: 1; } 97%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hm-type3 { 0%, 20% { transform: scaleX(0); opacity: 1; } 28%, 92% { transform: scaleX(1); opacity: 1; } 97%, 100% { transform: scaleX(1); opacity: 0; } }
.hm-btn { fill: #6f9bff; stroke: #c7d6ff; stroke-width: 2; opacity: 0; transform-origin: center; animation: hm-btn 9s ease-out infinite; }
@keyframes hm-btn { 0%, 28% { opacity: 0; transform: scale(1); } 30% { opacity: .55; transform: scale(.96); } 33% { opacity: .35; transform: scale(1.04); } 38%, 100% { opacity: 0; transform: scale(1.08); } }
.hm-run__dot { fill: #e6edff; }
.hm-run__halo { fill: #4d7cff; opacity: .35; }
.hm-row { fill: #4d7cff; opacity: 0; animation: hm-row 9s ease-out infinite; }
@keyframes hm-row { 0%, 40% { opacity: 0; } 42% { opacity: .5; } 50%, 92% { opacity: .16; } 97%, 100% { opacity: 0; } }
.hm-sweep { animation: hm-sweep 9s ease-in-out infinite; }
@keyframes hm-sweep { 0%, 41% { transform: translateX(0); } 50%, 100% { transform: translateX(420px); } }
.hm-card { fill: none; stroke: #8fb0ff; stroke-width: 2; opacity: 0; animation: 9s ease-out infinite; }
.hm-card--1 { animation-name: hm-card1; }
.hm-card--2 { animation-name: hm-card2; }
@keyframes hm-card1 { 0%, 58% { opacity: 0; } 60% { opacity: 1; } 70%, 92% { opacity: .45; } 97%, 100% { opacity: 0; } }
@keyframes hm-card2 { 0%, 62% { opacity: 0; } 64% { opacity: 1; } 72%, 92% { opacity: .45; } 97%, 100% { opacity: 0; } }
.hm-badge { fill: #6f9bff; transform-origin: center; animation: hm-badge 9s ease-out infinite; }
@keyframes hm-badge { 0%, 59% { transform: scale(1); } 61% { transform: scale(1.6); } 63% { transform: scale(.9); } 65% { transform: scale(1.35); } 67%, 100% { transform: scale(1); } }
.hm-ring { fill: none; stroke: #8fb0ff; stroke-width: 2; opacity: 0; transform-origin: center; animation: hm-ring 9s ease-out infinite; }
.hm-ring--2 { animation-delay: .3s; }
.hm-ring--3 { animation-delay: .6s; }
@keyframes hm-ring { 0%, 60% { opacity: 0; transform: scale(1); } 60.5% { opacity: .9; transform: scale(1); } 68%, 100% { opacity: 0; transform: scale(4.2); } }
.hm-spark { fill: #e6edff; opacity: 0; transform-origin: center; animation: hm-spark 9s ease-out infinite; }
@keyframes hm-spark { 0%, 61% { opacity: 0; transform: scale(.2) rotate(0deg); } 64% { opacity: 1; transform: scale(1) rotate(45deg); } 70%, 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }
.hm-doc { fill: #4d7cff; opacity: 0; animation: hm-doc 9s ease-out infinite; }
@keyframes hm-doc { 0%, 74% { opacity: 0; } 77% { opacity: .14; } 92% { opacity: .08; } 97%, 100% { opacity: 0; } }
.hm-check-ring, .hm-check { fill: none; stroke: #8fb0ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hm-check-ring { animation: hm-draw-ring 9s ease-out infinite; }
.hm-check { stroke: #e6edff; animation: hm-draw-check 9s ease-out infinite; }
@keyframes hm-draw-ring { 0%, 76% { stroke-dashoffset: 1; opacity: 1; } 83%, 94% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hm-draw-check { 0%, 82% { stroke-dashoffset: 1; opacity: 1; } 87%, 94% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
/* 움직임 줄이기: 층을 통째로 숨겨 원래 그림만 보인다 (SMIL 빛 점도 함께 사라진다) */
@media (prefers-reduced-motion: reduce) { .hero-motion { display: none; } }
