/* 2026-10 리뉴얼. style.css 뒤에 불러와 색·헤더·새 페이지 구성을 덮는다. */
:root {
  --bg: #faf9f6;
  --fg: #20201e;
  --muted: #f1efea;
  --muted-fg: #545450;
  --border: #e2dfd8;
  --primary: #2456c8;
  --primary-soft: #e9eef9;
  --radius: 10px;
}
body { font-size: 17px; line-height: 1.7; }
.btn-primary:hover { background: #1c469f; }
.btn { min-height: 44px; height: auto; padding: 10px 18px; cursor: pointer; font-family: inherit; }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 16px; }
.btn-outline { background: #fff; color: var(--fg); }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--fg); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
html { scroll-padding-top: 84px; }

/* 헤더 */
header { background: rgba(250, 249, 246, 0.92); }
.nav-links { gap: 22px; font-size: 15px; }
.nav-links a { padding: 8px 0; }
.nav-links a.active { color: var(--fg); font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { font-size: 13px; font-weight: 600; color: var(--muted-fg); padding: 10px 8px; white-space: nowrap; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center; cursor: pointer; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 18px; height: 2px; background: var(--fg); }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(280px, 86vw); background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: grid; box-shadow: 0 12px 32px rgba(32, 32, 30, .12); }
.menu-panel a { padding: 12px 14px; border-radius: 8px; font-size: 16px; }
.menu-panel a:hover, .menu-panel a.active { background: var(--muted); }
@media (max-width: 900px) {
  header .nav-links { display: none !important; }
  .menu { display: block; }
  .nav-right > .btn { display: none; }
}

/* 공통 구획 */
.page section { padding: 72px 0; }
.page section.flush { padding-top: 0; }
.page .tint { background: var(--muted); }
.page h1 { margin: 0; max-width: none; text-align: left; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.22; letter-spacing: -0.03em; }
.page h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; letter-spacing: -0.025em; font-weight: 800; }
.page h3 { font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; font-weight: 800; }
.page p { max-width: 68ch; }
.narrow { max-width: 780px; }
.lead { margin-top: 20px; font-size: 19px; color: var(--muted-fg); text-align: left; max-width: 62ch; }
.sub { margin-top: 8px; color: var(--muted-fg); }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted-fg); line-height: 1.6; }
.fine a, .spec a, .rows a, .links a, .note a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.note { margin-top: 24px; padding: 14px 16px; border-left: 3px solid var(--primary); background: var(--primary-soft); font-size: 15px; }
.principle { margin-top: 28px; padding: 20px 22px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--fg); font-size: 17px; max-width: none !important; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--primary); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 600; }
.rel { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: 0; margin-bottom: 6px; }
.crumb { font-size: 14px; color: var(--muted-fg); margin-bottom: 14px; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head .more { margin-top: 0; }
.small-h { font-size: 20px !important; margin-bottom: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.page h2 + .rows, .page h2 + .case, .page h2 + .record, .page h2 + .qa, .page h2 + .two, .page h2 + .pieces, .page h2 + .steplist, .page h2 + .ticks, .page h2 + .toc-list { margin-top: 24px; }
.page .container > h2:not(:first-child) { margin-top: 64px; }
.page img, .page video { display: block; max-width: 100%; height: auto; }
.page video { width: 100%; aspect-ratio: 16 / 9; background: #14140f; }

/* 홈 첫 화면 */
.page-hero, .home-hero { padding: 64px 0 56px !important; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; }
.home-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.lead { margin-left: 0; margin-right: 0; }
.kicker { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.hero-photo figcaption, .shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted-fg); }
.shot figcaption b { display: block; color: var(--fg); font-size: 15px; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.proofs { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.proofs li { padding: 18px 20px 0 0; display: grid; gap: 2px; }
.proofs span { font-size: 13px; font-weight: 700; color: var(--muted-fg); }
.proofs b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
.proofs small { font-size: 14px; color: var(--muted-fg); }

/* 하는 일 목록 */
.svc-list { border-top: 2px solid var(--fg); }
.svc-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 26px 4px; border-bottom: 1px solid var(--border); transition: background .15s; }
.svc-row:hover { background: rgba(255, 255, 255, .7); }
.svc-row .num { font-size: 15px; font-weight: 700; color: var(--muted-fg); align-self: start; padding-top: 6px; }
.svc-row h2, .svc-row h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; }
.svc-row .when, .ctype .when { margin-top: 4px; font-weight: 700; color: var(--primary); font-size: 16px; }
.svc-row p { margin-top: 4px; color: var(--muted-fg); font-size: 16px; }
.svc-row .go { font-weight: 700; font-size: 15px; color: var(--primary); white-space: nowrap; }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--fg); }
.others a { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--border); display: grid; gap: 2px; }
.others b { font-size: 18px; }
.others span { font-size: 14px; color: var(--muted-fg); }
.others a:hover b { color: var(--primary); }

/* 사례 */
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.feature p, .mini p { margin-top: 8px; color: var(--muted-fg); font-size: 16px; }
.mini { background: #fff; border: 1px solid var(--border); }
.mini > img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.mini > div:last-child { padding: 20px 22px 22px; }
.mini-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 28px 18px; background: var(--muted); min-height: 150px; font-size: 14px; font-weight: 700; }
.mini-flow.tall { min-height: 240px; height: 100%; }
.mini-flow span { background: #fff; border: 1px solid var(--border); padding: 8px 12px; border-radius: 6px; }
.mini-flow span.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.mini-flow i { font-style: normal; color: var(--muted-fg); }
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.cases .case { padding: 44px 0; border-bottom: 1px solid var(--border); }
.cases .case:first-child { border-top: 2px solid var(--fg); }
.case-media img { width: 100%; border-radius: 4px; }
.case-media.piled { display: grid; gap: 4px; }
.spec { margin-top: 14px; display: grid; grid-template-columns: 64px 1fr; gap: 10px 14px; font-size: 16px; }
.spec dt { font-weight: 700; color: var(--muted-fg); font-size: 14px; padding-top: 3px; }
.rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 2px solid var(--fg); margin-top: 32px; }
.rows > div { padding: 20px 0; border-bottom: 1px solid var(--border); }
.rows b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.45; }
.rows p { margin-top: 6px; font-size: 16px; color: var(--muted-fg); }
.pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.piece { background: #fff; border: 1px solid var(--border); }
.piece > div { padding: 16px 18px 20px; }
.piece h3 { font-size: 17px; }
.piece p { margin-top: 6px; font-size: 15px; color: var(--muted-fg); }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.flow > div { background: #fff; border: 1px solid var(--border); padding: 22px 24px; }
.flow > div:last-child { border-color: var(--primary); }
.flow ol { margin: 8px 0 0 20px; display: grid; gap: 8px; }
.quotes { margin-top: 20px; display: grid; gap: 8px; }
.quotes blockquote { font-size: 16px; padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--primary-soft); }
.quotes cite { font-size: 13px; color: var(--muted-fg); font-style: normal; }
.record { width: 100%; border-collapse: collapse; border-top: 2px solid var(--fg); font-size: 16px; }
.record th, .record td { text-align: left; padding: 13px 12px 13px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.record th { width: 92px; font-size: 14px; color: var(--primary); font-weight: 700; white-space: nowrap; }
.record td:last-child { width: 120px; color: var(--muted-fg); font-size: 14px; white-space: nowrap; }

/* 목록·단계·질문 */
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }
.steplist { list-style: none; counter-reset: s; display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--border); }
.steplist li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.steplist li::before { content: counter(s); grid-row: span 2; font-weight: 800; color: var(--primary); background: none; width: auto; height: auto; }
.steplist span { grid-column: 2; color: var(--muted-fg); font-size: 16px; }
.qa { border-top: 2px solid var(--fg); }
.qa details { border-bottom: 1px solid var(--border); }
.qa summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted-fg); }
.qa details[open] summary::after { content: "\2212"; }
.qa p { padding: 0 0 20px; color: var(--muted-fg); }
.toc-list { margin: 16px 0 0 22px; display: grid; gap: 8px; font-weight: 600; }
.story { margin: 20px 0 8px; display: grid; gap: 16px; font-size: 18px; line-height: 1.85; }

/* 책 */
.book-row { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.book-row > img { width: 100%; box-shadow: 0 14px 34px rgba(32, 32, 30, .18); }
.book-row p { margin-top: 12px; }

/* 문의 */
.ask { background: var(--fg); color: #fff; }
.ask h2 { color: #fff; }
.ask p, .ask .fine { color: #cfcdc6; }
.ask .ticks li::before { background: #8fb0ff; }
.ask-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.ask-act { display: grid; gap: 10px; }
.ask .btn-outline { background: transparent; color: #fff; border-color: #6d6c66; }
.ask .btn-outline:hover { background: #33332f; }
.ask-card { background: #fff; border: 1px solid var(--border); padding: 28px; align-self: start; }
.ask-card p { margin-top: 10px; color: var(--muted-fg); }
.picks { border-top: 2px solid var(--fg); }
.picks a { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.picks span { font-size: 13px; color: var(--muted-fg); font-weight: 600; }
.picks b { font-size: 18px; line-height: 1.45; letter-spacing: -0.02em; }
.picks a:hover b { color: var(--primary); }
.mailline { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mailline b { font-size: 22px; letter-spacing: -0.01em; }
.ctypes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ctype { background: #fff; border: 1px solid var(--border); padding: 26px; }
.ctype.alt { background: transparent; grid-column: 1 / -1; }
.ctype .actions .more { margin-top: 0; }

/* 푸터 */
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 28px; font-size: 15px; }
.foot-cols b { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted-fg); }
.foot-cols a { display: block; padding: 5px 0; }
.foot-cols a:hover { color: var(--primary); }

/* 기존 소개·기사 페이지 색 맞춤 */
.answer { border-radius: 0; }
.about-page .story { font-size: 18px; }
.about-page .invited { color: var(--muted-fg); font-size: 15px; }

/* 홈 3D 인트로 (데스크톱) / 강의 사진 (모바일) */
.home-hero.intro { background: radial-gradient(520px 400px at 78% 46%, rgba(36, 86, 200, 0.07), rgba(250, 249, 246, 0) 70%), var(--bg); border-bottom: 1px solid var(--border); padding-top: 72px !important; }
.home-hero.intro::before { background: linear-gradient(90deg, var(--bg) 0%, rgba(250, 249, 246, 0.9) 36%, rgba(250, 249, 246, 0) 52%); }
.home-hero.intro .pbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--fg); border-radius: 8px; box-shadow: 0 10px 26px -14px rgba(32, 32, 30, 0.35); padding: 10px 10px 10px 14px; }
.home-hero.intro .pbar-ai { background: var(--fg); border-radius: 5px; }
.home-hero.intro .psend { background: var(--primary); border-radius: 6px; }
.home-hero.intro .pbar.sent .psend { background: var(--fg); }
.home-hero.intro .pbar-cap { font-weight: 500; }
.home-hero.intro .hero-grid { grid-template-columns: 1.15fr 1fr; }
.home-hero.intro .hero-photo { display: none; }
.home-hero.intro .intro-orb { min-height: 480px; }
.home-hero.intro .proofs { position: relative; z-index: 1; }

/* 협업 브랜드와 조회수 표 */
.brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; border-top: 2px solid var(--fg); margin-top: 24px; }
.brands > div { padding: 18px 0; border-bottom: 1px solid var(--border); }
.brands b { font-size: 14px; color: var(--primary); }
.brands p { margin-top: 4px; font-size: 17px; font-weight: 600; line-height: 1.7; }
.record.reels { margin-top: 24px; }
.record.reels thead th { font-size: 13px; color: var(--muted-fg); font-weight: 700; padding-bottom: 8px; }
.record.reels tbody th { color: var(--fg); font-size: 16px; font-weight: 800; width: 130px; }
.record.reels td a { text-decoration: underline; text-underline-offset: 3px; }
.record.reels td a:hover { color: var(--primary); }
.record.reels td.num { font-weight: 800; color: var(--primary); width: 90px; white-space: nowrap; font-size: 17px; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 24px; }
.home-hero .hero-photo img { aspect-ratio: 16 / 9; }
.thumb { position: relative; display: block; overflow: hidden; border-radius: 6px; background: #20201e; }
.thumb img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform .25s; }
.thumb:hover img { transform: scale(1.03); }
.thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(180deg, rgba(32,32,30,0), rgba(32,32,30,.92) 55%); color: #fff; font-size: 20px; font-weight: 800; display: grid; }
.thumb span b { font-size: 13px; font-weight: 700; color: #cfcdc6; }
.record.full td:last-child { width: auto; color: var(--fg); font-size: 16px; white-space: normal; }
.mini > video { aspect-ratio: 16 / 9; }
/* AX 프로젝트 흐름 그림 */
.ax-flow { background: var(--muted); padding: 28px 24px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.ax-flow > span { background: #fff; border: 1px solid var(--border); padding: 10px 16px; border-radius: 6px; font-weight: 700; font-size: 15px; position: relative; }
.ax-flow .ax-out { background: var(--primary); border-color: var(--primary); color: #fff; }
.ax-mid { width: 100%; background: #fff; border: 1px solid var(--primary); padding: 18px 20px; position: relative; }
.ax-mid b { font-size: 17px; }
.ax-mid ul { list-style: none; margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; }
.ax-mid li { background: var(--primary-soft); padding: 8px 10px; border-radius: 4px; font-weight: 600; }
.ax-in::after, .ax-mid::after { content: "↓"; position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%); color: var(--muted-fg); font-weight: 400; font-size: 14px; }

/* 문의 양식 */
.form-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.cform { background: #fff; border: 1px solid var(--border); padding: 32px; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 16px; }
.field label small { font-weight: 600; font-size: 13px; color: var(--muted-fg); margin-left: 6px; }
.field label small.req { color: var(--primary); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--fg); width: 100%; padding: 12px 14px; border: 1px solid #b9b6ad; border-radius: 6px; background: #fff; min-height: 48px; }
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.hint { font-size: 14px; color: var(--muted-fg); }
.err { font-size: 14px; color: #b3261e; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; font-size: 16px; border-left: 4px solid; }
.form-msg.ok { background: #e8f3ea; border-color: #1e7a34; }
.form-msg.bad { background: #fbeceb; border-color: #b3261e; }
.form-side .mailline b { font-size: 18px; }
.side-gap { margin-top: 36px !important; }
.rows.four { grid-template-columns: repeat(4, 1fr); }
.rows.four .ticks { font-size: 15px; color: var(--muted-fg); gap: 6px; margin-top: 10px; }

@media (max-width: 900px) {
  .page section { padding: 52px 0; }
  .page-hero, .home-hero { padding: 36px 0 40px !important; }
  .hero-grid, .split, .two, .three, .feature, .case, .rows, .rows.four, .brands, .pieces, .flow, .ask-in, .ctypes, .others, .proofs, .foot-cols, .form-grid, .home-hero.intro .hero-grid { grid-template-columns: 1fr; }
  .home-hero.intro { background: var(--bg); border-bottom: 0; padding-top: 36px !important; }
  .home-hero.intro::before, .home-hero.intro #hero3d, .home-hero.intro .intro-orb { display: none !important; }
  .home-hero.intro .hero-photo { display: block; }
  .home-hero.intro .hero-grid { display: grid; }
  .cform { padding: 22px; }
  .hero-grid { gap: 28px; }
  .split { gap: 44px; }
  .proofs { margin-top: 32px; }
  .proofs li { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .svc-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .svc-row .num { display: none; }
  .svc-row .go { margin-top: 6px; }
  .book-row { grid-template-columns: 1fr; gap: 24px; }
  .book-row > img { max-width: 200px; }
  .record td:last-child { display: none; }
  .record.full td:last-child, .record.reels td:last-child { display: table-cell; }
  .thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .thumb span { font-size: 16px; padding: 20px 8px 8px; }
  .record.reels tbody th { width: 86px; font-size: 15px; }
  .record.reels td.num { width: 64px; }
  .ax-mid ul { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .case { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
