/* 더마크월드 홈페이지 공통 스타일. 회사 소개자료의 검정·금색을 기본으로 하고 브릭 색은 포인트로만 쓴다. */
:root {
  --bg: #0f0f10;
  --bg-2: #17171a;
  --bg-3: #1f1f23;
  --paper: #f7f3ea;
  --paper-2: #efe8d9;
  --ink: #f4efe4;
  --ink-2: #c9c2b4;
  --ink-3: #8f897d;
  --ink-dark: #1b1a17;
  --ink-dark-2: #4b473f;
  --gold: #d4ae62;
  --gold-2: #b8913f;
  --gold-soft: rgba(212, 174, 98, .14);
  --line: rgba(244, 239, 228, .12);
  --line-dark: rgba(27, 26, 23, .12);
  --red: #d8463a;
  --blue: #2f6fd1;
  --green: #3aa65a;
  --yellow: #f2c230;
  --radius: 16px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.75; word-break: keep-all; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* 머리글 */
header.site { position: sticky; top: 0; z-index: 40; background: rgba(15, 15, 16, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span { font-weight: 800; letter-spacing: .02em; color: var(--gold); font-size: 18px; }
.menu { display: none; margin-left: auto; gap: 28px; list-style: none; padding: 0; font-size: 15px; font-weight: 600; }
.menu a { text-decoration: none; color: var(--ink-2); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--gold); }
.nav .cta { margin-left: auto; }
@media (min-width: 960px) { .menu { display: flex; } .nav .cta { margin-left: 0; } }
.menu-toggle { margin-left: 8px; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 14px; cursor: pointer; }
@media (min-width: 960px) { .menu-toggle { display: none; } }
.mobile-menu { display: none; border-top: 1px solid var(--line); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 16px 16px; display: grid; gap: 2px; }
.mobile-menu a { display: block; padding: 10px 4px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .mobile-menu { display: none !important; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 24px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #17140d; }
.btn-gold:hover { background: #e0bd74; }
.btn-line { border-color: rgba(212, 174, 98, .5); color: var(--gold); background: transparent; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* 절 */
section { padding: 80px 0; }
@media (min-width: 960px) { section { padding: 110px 0; } }
.sec-2 { background: var(--bg-2); }
.sec-paper { background: var(--paper); color: var(--ink-dark); }
.sec-paper .kicker { color: var(--gold-2); }
.sec-paper .lead, .sec-paper p { color: var(--ink-dark-2); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.3; margin: 0; }
h1 { font-size: clamp(34px, 5.6vw, 64px); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; margin-bottom: 18px; }
h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 40em; margin: 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.gold { color: var(--gold); }

/* 첫 화면 */
.hero { position: relative; padding: 0; min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(.9); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,16,.92) 0%, rgba(15,15,16,.72) 45%, rgba(15,15,16,.35) 100%), linear-gradient(180deg, rgba(15,15,16,0) 60%, rgba(15,15,16,.95) 100%); }
.hero-inner { position: relative; width: 100%; padding: 120px 16px 72px; }
.hero-inner > * { max-width: 680px; }
@media (min-width: 760px) { .hero-inner { padding: 140px 32px 80px; } }
.hero .tag { display: inline-block; border: 1px solid rgba(212,174,98,.5); color: var(--gold); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 700; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin: 22px 0 32px; color: #ddd6c8; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-plain { padding: 56px 0 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .hero-plain { padding: 110px 0 72px; } }

/* 숫자 */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-2); padding: 26px 22px; }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 40px); color: var(--gold); font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 14.5px; color: var(--ink-2); }

/* 카드 */
.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 1039px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.sec-paper .card { background: #fff; border-color: var(--line-dark); }
.sec-paper .card p { color: var(--ink-dark-2); }
.num { font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: .1em; margin-bottom: 10px; display: block; }

/* 프로그램 카드 */
.prog { display: flex; flex-direction: column; text-decoration: none; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.prog:hover { border-color: rgba(212,174,98,.55); transform: translateY(-2px); }
.prog .ph { aspect-ratio: 16 / 9; background: var(--bg-2) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.prog .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prog .who { font-size: 13px; font-weight: 700; color: var(--gold); }
.prog h3 { margin: 0; }
.prog p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.prog .more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700; color: var(--gold); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }

/* 단계 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps.four { grid-template-columns: repeat(4, 1fr); } .steps.five { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: s; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: "0" counter(s); display: block; font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: .1em; margin-bottom: 8px; }
.steps li b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps li p { margin: 0; color: var(--ink-2); font-size: 15px; }
.sec-paper .steps li { background: #fff; border-color: var(--line-dark); }
.sec-paper .steps li p { color: var(--ink-dark-2); }

/* 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-size: 13px; font-weight: 700; background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.sec-paper .table-wrap { border-color: var(--line-dark); background: #fff; }
.sec-paper th { background: var(--paper-2); color: var(--gold-2); }
.sec-paper th, .sec-paper td { border-color: var(--line-dark); }

/* 연혁 */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(212,174,98,.35); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 3px; background: var(--gold); }
.timeline .y { font-weight: 800; color: var(--gold); font-size: 15px; }
.timeline p { margin: 2px 0 0; color: var(--ink-2); }
.sec-paper .timeline p { color: var(--ink-dark-2); }

/* 사진 */
.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.rev > :first-child { order: 2; } }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .photo { aspect-ratio: 4 / 3; }

/* 목록·인용 */
ul.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.check li { position: relative; padding-left: 28px; color: var(--ink-2); }
ul.check li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 10px; border-radius: 3px; background: var(--gold); box-shadow: 3px -4px 0 -1px var(--gold), 9px -4px 0 -1px var(--gold); }
.sec-paper ul.check li { color: var(--ink-dark-2); }
.quote { border-left: 3px solid var(--gold); padding: 6px 0 6px 20px; font-size: 19px; color: var(--ink); margin: 0; }
.sec-paper .quote { color: var(--ink-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13.5px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.note { font-size: 14px; color: var(--ink-3); }

/* 문의 */
.contact { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.contact dl { margin: 0; display: grid; grid-template-columns: 5.5em 1fr; gap: 12px 16px; }
.contact dt { color: var(--ink-3); font-size: 15px; }
.contact dd { margin: 0; }
.contact dd a { color: var(--gold); text-decoration: none; }
form.inq { display: grid; gap: 14px; }
@media (min-width: 640px) { form.inq { grid-template-columns: 1fr 1fr; } form.inq .full { grid-column: 1 / -1; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(212,174,98,.45); outline-offset: 2px; }
.form-msg { grid-column: 1 / -1; background: var(--gold-soft); border: 1px solid rgba(212,174,98,.35); border-radius: 12px; padding: 12px 14px; font-size: 15px; }

/* 바닥글 */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--ink-3); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
footer .brand img { height: 34px; }
footer a { color: var(--ink-2); text-decoration: none; }

.breadcrumb { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
