/* THE:A — 수평선(horizon) 위로 해가 떠오르는 로고를 페이지 구조로 옮김.
   각 섹션은 얇은 수평선으로 시작하고, 히어로는 새벽 남색 하늘 + 금빛 해. */
:root {
  --navy: #1A2A80;
  --navy-deep: #111B57;
  --gold: #D2A055;
  --bg: #FBFBFD;
  --surface: #F1F2F8;
  --fg: #1C1F2E;
  --muted: #5B6072;
  --line: #D9DBE6;
  --accent: #1A2A80;
  --hero-fg: #FFFFFF;
  --hero-muted: #C9CDEA;
  --f-display: "Marcellus", "Times New Roman", serif;
  --f-latin: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --f-serif-kr: "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --wrap: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1226; --surface: #161B36; --fg: #E8E9F2; --muted: #A3A8C3;
    --line: #2A3056; --accent: #AFC0FF; --navy-deep: #0A0F2E; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1226; --surface: #161B36; --fg: #E8E9F2; --muted: #A3A8C3;
  --line: #2A3056; --accent: #AFC0FF; --navy-deep: #0A0F2E; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: 16px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy-deep); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--navy-deep) 92%, transparent);
  backdrop-filter: blur(8px); color: var(--hero-fg);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--f-display); font-size: 20px; letter-spacing: .22em; }
.nav { display: flex; gap: 22px; font-size: 14px; letter-spacing: .02em; }
.nav a { text-decoration: none; color: var(--hero-muted); padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--hero-fg); border-bottom-color: var(--gold); }
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { width: 100%; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
}

/* ---------- hero ---------- */
/* 일출 사진(assets/img/hero-sunrise.jpg)이 있으면 배경으로 쓰고, 그려 둔 해는 숨김. 없으면 남색 그라데이션 + 그려 둔 해. */
.hero.has-photo {
  background:
    linear-gradient(180deg, rgba(17,27,87,.88) 0%, rgba(17,27,87,.55) 45%, rgba(17,27,87,.05) 78%, rgba(17,27,87,.35) 100%),
    url("img/hero-sunrise.jpg") center 62% / cover no-repeat,
    var(--navy);
}
.hero.has-photo .horizon { height: 260px; }
.hero.has-photo .horizon .sun { display: none; }
.hero.has-photo .horizon .line { display: none; }
@media (max-width: 560px) {
  .hero.has-photo .horizon { height: 200px; }
  .hero.has-photo .horizon .slogan { position: absolute; left: 0; right: auto; bottom: 14px; }
}
.hero {
  color: var(--hero-fg);
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 62%, #2A3A93 100%);
  position: relative; overflow: hidden;
}
.hero .wrap { padding-block: 72px 0; display: grid; gap: 40px; }
.hero-eyebrow { font-family: var(--f-latin); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0; }
.hero h1 {
  font-family: var(--f-serif-kr); font-weight: 700; margin: 0;
  font-size: clamp(24px, 3.8vw, 40px); line-height: 1.4; letter-spacing: -0.01em; text-wrap: balance; max-width: 18em;
}
.hero-lead { margin: 0; max-width: 36em; color: var(--hero-muted); font-size: 15px; }
.horizon { position: relative; height: 180px; margin-top: 8px; }
.horizon .sun {
  position: absolute; left: 50%; bottom: 0; width: 200px; height: 100px; margin-left: -100px;
  background: var(--gold); border-radius: 200px 200px 0 0;
  animation: rise 2.4s cubic-bezier(.2,.7,.2,1) both;
}
.horizon .line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #FFFFFF; }
.horizon .slogan {
  position: absolute; right: 0; bottom: 18px; font-family: var(--f-display);
  font-size: 15px; letter-spacing: .28em; color: var(--hero-muted);
}
.hero-below { background: var(--navy-deep); }
.hero-below .wrap { padding-block: 28px 36px; display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--hero-muted); font-size: 14px; }
.hero-below b { color: var(--hero-fg); font-weight: 500; font-family: var(--f-latin); letter-spacing: .04em; margin-right: 8px; }
@keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .horizon .sun { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 560px) {
  .hero .wrap { padding-block: 48px 0; }
  .horizon { height: 130px; }
  .horizon .sun { width: 130px; height: 65px; margin-left: -65px; }
  .horizon .slogan { position: static; display: block; padding-top: 4px; }
}

/* ---------- sections ---------- */
section { padding-block: 96px; }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; margin-bottom: 48px; }
.sec-label { font-family: var(--f-latin); font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); padding-top: 10px; display: flex; align-items: center; gap: 10px; }
.sec-label::before { content: ""; width: 10px; height: 5px; background: var(--gold); border-radius: 10px 10px 0 0; }
.sec-head h2 { font-family: var(--f-serif-kr); font-weight: 500; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.4; margin: 0; text-wrap: balance; }
.sec-head p { margin: 14px 0 0; color: var(--muted); max-width: 40em; }
@media (max-width: 760px) {
  section { padding-block: 64px; }
  .sec-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 32px; }
}

/* philosophy */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.q { padding: 28px 28px 8px 0; min-width: 0; }
.q + .q { padding-left: 28px; border-left: 1px solid var(--line); }
.q blockquote { margin: 0 0 12px; font-family: var(--f-serif-kr); font-size: 21px; line-height: 1.5; color: var(--accent); }
.q p { margin: 0; color: var(--muted); font-size: 15px; }
.name-note { margin-top: 56px; display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; }
.name-note h3 { margin: 0; font-family: var(--f-display); font-size: 28px; letter-spacing: .2em; font-weight: 400; color: var(--accent); }
.name-note p { margin: 0 0 12px; max-width: 42em; }
@media (max-width: 760px) {
  .questions { grid-template-columns: 1fr; }
  .q, .q + .q { padding: 20px 0; border-left: 0; }
  .q + .q { border-top: 1px solid var(--line); }
  .name-note { grid-template-columns: 1fr; gap: 8px; margin-top: 40px; }
}

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.svc { min-width: 0; }
.svc .en { font-family: var(--f-latin); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.svc h3 { margin: 4px 0 12px; font-size: 20px; font-weight: 600; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }
.svc .tag { display: inline-block; margin-bottom: 14px; padding-top: 14px; border-top: 2px solid var(--gold); font-size: 14px; font-weight: 500; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; gap: 40px; } }

/* works */
.works-feature { display: grid; gap: 56px; }
.work { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.work:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.work:nth-child(even) .work-media { order: 2; }
.work-media { display: grid; gap: 10px; grid-template-columns: 1fr; }
.work-media.two { grid-template-columns: 1.6fr 1fr; }
.work-media img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.work-media.wide img { aspect-ratio: 5 / 2; }
.work-info { min-width: 0; }
.work-year { font-family: var(--f-latin); font-size: 14px; letter-spacing: .14em; color: var(--accent); }
.work-info h3 { margin: 4px 0 6px; font-size: 22px; font-weight: 600; line-height: 1.45; }
.work-badge { display: inline-block; font-size: 13px; padding: 2px 10px; border: 1px solid var(--gold); color: var(--fg); border-radius: 2px; margin-bottom: 16px; }
.spec { display: grid; grid-template-columns: 72px 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 14px; font-variant-numeric: tabular-nums; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.work-info p { margin: 0; font-size: 15px; color: var(--muted); }
.work.text-only { grid-template-columns: 1fr; padding: 28px; background: var(--surface); }
@media (max-width: 860px) {
  .work, .work:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .work:nth-child(even) .work-media { order: 0; }
}

.sub-head { margin: 96px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.sub-head h3 { margin: 0; font-size: 22px; font-weight: 600; }
.sub-head p { margin: 0; color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { padding-top: 10px; font-size: 14px; line-height: 1.5; }
.gallery figcaption span { display: block; color: var(--muted); font-size: 13px; font-family: var(--f-latin); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.record { margin-top: 40px; }
.record summary { cursor: pointer; font-weight: 500; padding-block: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; display: flex; justify-content: space-between; }
.record summary::-webkit-details-marker { display: none; }
.record summary::after { content: "+"; font-family: var(--f-latin); font-size: 20px; line-height: 1; color: var(--accent); }
.record[open] summary::after { content: "−"; }
.record-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-top: 20px; }
.record-cols > div { min-width: 0; }
.record h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.record ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.record li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding-block: 7px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.record li .y { color: var(--accent); font-family: var(--f-latin); }
.record li small { color: var(--muted); font-size: 13px; }
.record .plain li { grid-template-columns: 1fr; }
@media (max-width: 760px) { .record-cols { grid-template-columns: 1fr; } }

/* people */
.ceo { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.ceo-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; filter: grayscale(.15); }
.ceo-photo figcaption { margin-top: 14px; }
.ceo-photo .nm { font-size: 22px; font-weight: 600; letter-spacing: .12em; }
.ceo-photo .en { font-family: var(--f-latin); font-size: 13px; letter-spacing: .18em; color: var(--accent); display: block; }
.ceo-photo .role { color: var(--muted); font-size: 14px; display: block; }
.ceo-body { min-width: 0; }
.ceo-body .intro { font-family: var(--f-serif-kr); font-size: 20px; line-height: 1.7; margin: 0 0 32px; max-width: 34em; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.facts > div { min-width: 0; }
.facts h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .16em; color: var(--accent); font-family: var(--f-latin); text-transform: uppercase; font-weight: 500; }
.facts ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.facts li { padding-block: 4px; display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-variant-numeric: tabular-nums; }
.facts li .y { color: var(--muted); }
@media (max-width: 860px) {
  .ceo { grid-template-columns: 1fr; gap: 28px; }
  .ceo-photo { max-width: 260px; }
  .facts { grid-template-columns: 1fr; }
}

/* books */
.books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.book { min-width: 0; display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
.book-cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 1px 2px rgba(17,27,87,.18), 0 10px 24px -8px rgba(17,27,87,.35); }
@media (max-width: 480px) { .book { grid-template-columns: 110px 1fr; gap: 18px; } }
.book-spine { aspect-ratio: 2 / 3; background: var(--navy); position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.book-spine::before { content: ""; position: absolute; left: 50%; top: 38%; width: 40px; height: 20px; margin-left: -20px; border-radius: 40px 40px 0 0; background: var(--gold); }
.book-spine::after { content: ""; position: absolute; left: 8px; right: 8px; top: calc(38% + 20px); height: 1px; background: #FFFFFF; }
.book-spine span { font-family: var(--f-display); font-size: 10px; color: #FFFFFF; letter-spacing: .2em; }
.book h3 { margin: 0 0 4px; font-family: var(--f-serif-kr); font-weight: 500; font-size: 19px; line-height: 1.5; }
.book .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-family: var(--f-latin); }
.book p { margin: 0; font-size: 15px; color: var(--muted); }
.book blockquote { margin: 12px 0 0; font-family: var(--f-serif-kr); color: var(--accent); font-size: 15px; }
@media (max-width: 860px) { .books { grid-template-columns: 1fr; } }

/* history */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--line); }
.timeline li { position: relative; padding: 36px 16px 0 0; min-width: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 10px; border-radius: 20px 20px 0 0; background: var(--gold); }
.timeline .y { font-family: var(--f-latin); font-size: 22px; color: var(--accent); letter-spacing: .04em; }
.timeline p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 10px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li { padding: 0 0 24px 40px; }
  .timeline li::before { top: 10px; }
}

/* contact */
.contact { background: var(--navy-deep); color: var(--hero-fg); border-top: 0; }
.contact .sec-label { color: var(--gold); }
.contact .sec-head p { color: var(--hero-muted); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; }
.contact-grid > div { min-width: 0; }
.contact-grid h4 { margin: 0 0 6px; font-family: var(--f-latin); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--hero-muted); font-weight: 500; }
.contact-grid p { margin: 0; font-size: 16px; }
.contact-grid small { color: var(--hero-muted); }
.copy-btn { margin-top: 10px; font: inherit; font-size: 13px; color: var(--hero-fg); background: transparent; border: 1px solid rgba(255,255,255,.35); padding: 4px 12px; cursor: pointer; border-radius: 2px; }
.copy-btn:hover { border-color: var(--gold); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }

.site-footer { background: var(--navy-deep); color: var(--hero-muted); font-size: 13px; }
.site-footer .wrap { padding-block: 24px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.12); }

/* project entry cards (index) */
.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.door { display: grid; text-decoration: none; color: inherit; background: var(--surface); min-width: 0; transition: transform .25s ease; }
.door img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.door-body { padding: 24px 24px 28px; }
.door-en { font-family: var(--f-latin); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.door h3 { margin: 4px 0 8px; font-family: var(--f-serif-kr); font-weight: 500; font-size: 26px; }
.door p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.door-go { font-size: 14px; color: var(--accent); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.door:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .door { transition: none; } .door:hover { transform: none; } }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; gap: 20px; } }

/* sub pages */
.page-hero { color: var(--hero-fg); background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%); }
.page-hero .wrap { padding-block: 56px 64px; display: grid; gap: 16px; }
.page-hero h1 { margin: 0; font-family: var(--f-serif-kr); font-weight: 500; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.3; }
.crumb { color: var(--hero-muted); text-decoration: none; font-size: 14px; }
.crumb:hover { color: var(--hero-fg); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; font-size: 15px; }
.plain-list li { padding-block: 10px; border-bottom: 1px solid var(--line); min-width: 0; }
@media (max-width: 760px) { .plain-list { grid-template-columns: 1fr; } }
.works-feature + .doors { margin-top: 64px; }
.spec { grid-template-columns: 80px 1fr; }
.work-quote { margin: 16px 0 0; padding-left: 14px; border-left: 2px solid var(--gold); font-family: var(--f-serif-kr); font-size: 15px; color: var(--accent); }
.work-media.fit { grid-template-columns: 1fr 1.15fr; align-items: start; }
.work-media.fit img { height: auto; aspect-ratio: auto; object-fit: contain; }

.work-media.fit-one { grid-template-columns: 1fr; }
.work-media.fit-one img { height: auto; aspect-ratio: auto; object-fit: contain; }

.site-footer .wrap.partners { justify-content: flex-start; align-items: center; gap: 8px 28px; padding-block: 28px 20px; border-top: 0; }
.site-footer .partners-label { color: var(--gold); letter-spacing: .08em; font-weight: 700; }
.site-footer .partners a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px; }
.site-footer .partners a:hover { border-bottom-color: var(--gold); color: var(--gold); }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { border-top: 2px solid var(--accent); padding-top: 22px; }
.member-head .nm { display: block; font-size: 20px; font-weight: 700; letter-spacing: .12em; }
.member-head .role { display: block; margin-top: 4px; color: var(--accent); font-size: 14px; }
.member-list { list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; color: var(--fg); }
.member-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.member-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .site-footer .wrap.partners { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* 협업회사 로고 썸네일 */
.site-footer .partners a.partner { display: flex; flex-direction: column; gap: 8px; border-bottom: 0; padding: 0; color: var(--hero-muted); font-size: 12px; }
.site-footer .partners a.partner:hover { color: var(--gold); }
.partner-logo { display: flex; align-items: center; justify-content: center; width: 168px; height: 64px; padding: 12px 18px; background: #fff; border-radius: 6px; border: 1px solid transparent; transition: border-color .2s; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.site-footer .partners a.partner:hover .partner-logo { border-color: var(--gold); }
@media (max-width: 560px) { .site-footer .wrap.partners { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; } .site-footer .partners-label { flex-basis: 100%; } .partner-logo { width: 148px; height: 58px; } }

/* Journal 게시판 */
.board-head, .board a { display: grid; grid-template-columns: 64px 1fr 110px; gap: 16px; align-items: baseline; }
.board-head { padding: 0 0 12px; border-bottom: 2px solid var(--fg); font-size: 13px; color: var(--muted); }
.board-head .b-no, .board-head .b-date, .board .b-no, .board .b-date { text-align: center; }
.board { list-style: none; margin: 0; padding: 0; }
.board li { border-bottom: 1px solid var(--line); }
.board a { padding: 20px 0; color: var(--fg); text-decoration: none; }
.board a:hover .b-title { color: var(--accent); }
.board .b-no { font-family: var(--f-latin); color: var(--muted); font-size: 14px; }
.board .b-title { font-size: 17px; font-weight: 600; }
.board .b-title small { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.6; }
.board .b-date { font-family: var(--f-latin); font-size: 14px; color: var(--muted); }
.board-count { margin: 16px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 640px) {
  .board-head { display: none; }
  .board a { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .board .b-no { display: none; }
  .board .b-date { text-align: left; order: -1; font-size: 13px; }
}
.post-body { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.9; }
.post-body p { margin: 0 0 1.3em; }
.post-figure { margin: 0 0 32px; }
.post-figure img { width: 100%; height: auto; display: block; }
.post-source { margin-top: 40px !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.post-source a { color: var(--accent); }
.post-nav { max-width: 720px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.post-nav a { color: var(--fg); text-decoration: none; font-size: 14px; }
.post-nav a span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.post-nav .next { text-align: right; }
.post-nav .list { padding: 8px 18px; border: 1px solid var(--line); border-radius: 4px; }
.post-nav a:hover { color: var(--accent); }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav .list { grid-column: 1 / -1; justify-self: center; order: 3; } }
.post-figure img { max-height: 560px; width: auto; max-width: 100%; margin: 0 auto; }
.page-hero--post h1 { font-size: clamp(24px, 3.4vw, 36px); }

/* 연혁: 로고처럼 반원이 선 위에 얹히도록 */
.timeline::before { top: 16px; height: 2px; background: var(--accent); opacity: .35; }
@media (max-width: 860px) {
  .timeline::before { display: none; }
  .timeline li::before { top: 4px; }
  .timeline li::after { content: ""; position: absolute; left: -4px; top: 14px; width: 28px; height: 2px; background: var(--accent); opacity: .35; }
}

.book-buy { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.book-buy:hover { color: var(--gold); }
.books-note { margin: 36px 0 0; padding: 14px 18px; background: var(--surface); border-left: 3px solid var(--gold); font-size: 14px; color: var(--muted); }
.books-note strong { color: var(--fg); font-weight: 600; }

.partner-logo { width: 128px; height: 48px; padding: 9px 14px; border-radius: 5px; }
.site-footer .partners a.partner { font-size: 11px; gap: 6px; }
@media (max-width: 560px) { .partner-logo { width: 120px; height: 46px; } }

.sec-head h2 { font-weight: 700; }

/* 숨은 관리자 링크: 푸터 배경과 같은 색 */
.site-footer .admin-link { color: var(--navy-deep); text-decoration: none; font-size: 11px; margin-left: auto; }
.site-footer .admin-link:focus-visible { color: var(--hero-muted); }
.site-footer { position: relative; }
.site-footer .admin-link { position: absolute; right: 16px; bottom: 8px; margin: 0; }
.site-footer .admin-link { color: rgba(255,255,255,.22); font-size: 10px; letter-spacing: .04em; }
.site-footer .admin-link:hover { color: rgba(255,255,255,.6); }
/* 인트라넷·관리자 링크를 오른쪽 아래에 나란히 */
.site-footer .admin-links { position: absolute; right: 16px; bottom: 8px; display: flex; gap: 14px; }
.site-footer .admin-links .admin-link { position: static; }

/* 설계의뢰 안내 버튼 */
.contact-cta { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact-cta p { margin: 0; color: var(--hero-muted); font-size: 15px; max-width: 520px; }
.cta-btn { display: inline-block; padding: 14px 26px; background: var(--gold); color: var(--navy-deep); font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 2px; letter-spacing: .02em; }
.cta-btn:hover { background: #fff; }

/* 설계의뢰 폼 (Contact Form 7) */
.request-intro { max-width: 760px; margin: 0 0 32px; color: var(--muted); }
.request-form { max-width: 760px; }
.request-form fieldset { border: 0; margin: 0 0 36px; padding: 0; }
.request-form legend { font-weight: 700; font-size: 17px; color: var(--navy-deep); padding: 0 0 10px; margin-bottom: 18px; border-bottom: 1px solid var(--line); width: 100%; }
.request-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.request-form .field { margin: 0 0 18px; }
.request-form label, .request-form .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink, #1a1a1a); }
.request-form .req { color: #c0392b; margin-left: 2px; }
.request-form input[type=text], .request-form input[type=email], .request-form input[type=tel], .request-form select, .request-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid var(--line); background: #fff; border-radius: 2px; color: inherit; }
.request-form textarea { min-height: 180px; resize: vertical; }
.request-form input:focus, .request-form select:focus, .request-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.request-form .wpcf7-radio .wpcf7-list-item, .request-form .choice label { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 8px 0; font-weight: 400; }
.request-form .wpcf7-list-item { margin-left: 0; }
.request-form .hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.request-form .privacy { background: var(--surface); padding: 18px 20px; font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.request-form .privacy strong { color: var(--navy-deep); }
.request-form input[type=submit], .request-form .submit { display: inline-block; padding: 15px 40px; background: var(--navy-deep); color: #fff; font: inherit; font-weight: 700; font-size: 16px; border: 0; border-radius: 2px; cursor: pointer; }
.request-form input[type=submit]:hover, .request-form .submit:hover { background: var(--accent); }
.request-form .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
.request-form .wpcf7-response-output { margin: 20px 0 0 !important; padding: 12px 16px !important; font-size: 14px; }
@media (max-width: 760px) { .request-form .row { grid-template-columns: 1fr; gap: 0; } .contact-cta { flex-direction: column; align-items: flex-start; } }
.post-body .request-form, .post-body .request-intro { max-width: none; }
.post-body .request-intro { font-size: 16px; }
.contact-link { display: block; color: inherit; text-decoration: none; }
.contact-link h2 .arrow { display: inline-block; color: var(--gold); transition: transform .2s; }
.contact-link, .contact-link * { text-decoration: none; }
.contact-link:hover h2 .arrow { transform: translateX(6px); }
.contact-link:hover p { color: #fff; }
.request-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.request-form fieldset { border: 0 !important; padding: 0 !important; margin: 0 0 36px !important; min-width: 0; }
.request-form .wpcf7-acceptance .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; }

/* 설계의뢰 폼: 다크 모드에서도 글씨가 보이도록 색을 토큰으로 */
.request-form label, .request-form .label { color: var(--fg); }
.request-form legend, .request-form .privacy strong { color: var(--fg); }
.request-form input[type=text], .request-form input[type=email], .request-form input[type=tel], .request-form select, .request-form textarea { background: var(--bg); color: var(--fg); border-color: var(--line); }
.request-form ::placeholder { color: var(--muted); opacity: .8; }
.request-form input[type=file] { color: var(--fg); }
.request-form input[type=submit], .request-form .submit { background: var(--accent); color: #fff; }
.request-form input[type=submit]:hover, .request-form .submit:hover { background: var(--gold); color: #111B57; }
.post-body, .request-intro { color: var(--fg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .request-form input[type=submit], :root:not([data-theme="light"]) .request-form .submit { color: #0A0F2E; } }

/* 연혁 7개 연도 (2020–2026) */
@media (min-width: 861px) { .timeline { grid-template-columns: repeat(7, 1fr); } .timeline p { font-size: 13.5px; } }
