/* 믹스토리버 웹사이트 · 브랜드 규칙 v2 기준 (아이보리 바탕 + 남색 글자 + 세 줄기 색) */
:root {
  --bg: #FAF8F4;        /* 바탕 아이보리 */
  --surface: #FFFFFF;
  --sand: #F1ECE2;
  --line: #ECE6DC;
  --ink: #1E2A3A;       /* 글자 남색 */
  --muted: #4F5866;
  --soft: #5E6773;
  --night: #141C28;     /* 밤 배경 */
  --teal: #1F9E9A;  --teal-ink: #17807C;  --teal-tint: #EAF5F3;   /* 융합 */
  --orange: #F08A3C; --orange-ink: #B4531A; --orange-tint: #FCEEE2; /* 창조 */
  --green: #5DAA4E; --green-ink: #3E7D35; --green-tint: #EAF4E4;   /* 성장 */
  --on-night: #E9EDF2; --on-night-muted: #C9D1DB; --night-2: #2A3A50;
  --font: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; }
img, video { max-width: 100%; }
a { color: var(--teal-ink); }
a:hover { color: #0F5F5C; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.3; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

/* 상단 메뉴 */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-size: 21px; }
.brand-name small { font-size: 10px; font-weight: 700; letter-spacing: 0.3em; color: var(--muted); }
.story { color: var(--orange-ink); }
.nav { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav > li { position: relative; }
.nav > li > a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.nav > li > a[aria-current="page"], .nav > li:hover > a, .nav > li:focus-within > a { color: var(--teal-ink); border-bottom-color: var(--orange); }
.sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 180px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 32px rgba(30, 42, 58, 0.12); display: none; }
.nav > li:hover .sub, .nav > li:focus-within .sub { display: block; }
.sub a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.sub a:hover, .sub a:focus-visible { background: var(--sand); }
@media (max-width: 760px) {
  .nav > li > a { min-height: 44px; padding: 0 10px; font-size: 15px; }
  .nav > li:hover .sub, .nav > li:focus-within .sub { display: none; }
}

/* 공통 블록 */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--teal-ink); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--ink); }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { color: #FFFFFF; background: #2A3A50; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--sand); }
.btn-accent { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-accent:hover { color: var(--ink); background: #F49B57; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--sand); color: var(--muted); }
.page-head { padding-block: 64px 36px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 500; text-decoration: none; }
.jump a:hover { background: var(--ink); color: #FFFFFF; }
.split { display: flex; flex-wrap: wrap; gap: 24px 64px; padding-block: 56px; border-bottom: 1px solid var(--line); }
.split:last-child { border-bottom: 0; padding-bottom: 88px; }
.split > h2 { flex: 1 1 240px; font-size: 30px; }
.split > .body { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 22px; box-shadow: 0 0 0 1px var(--line); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card b { font-size: 19px; color: var(--ink); }
.card span { font-size: 15px; color: var(--muted); }
.empty { background: var(--surface); border: 1.5px dashed #DDD4C4; border-radius: 22px; padding: 32px; text-align: center; color: var(--muted); }

/* 홈 */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 72px 80px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-text h1 { font-size: clamp(36px, 5.2vw, 52px); letter-spacing: -0.01em; }
.hero-media { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-media video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 22px; background: var(--night); }
.hero-media small { font-size: 13px; color: var(--soft); }
.tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #FDE7D2; color: #8A3D0E; font-size: 14px; font-weight: 700; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band .wrap { padding-block: 72px; display: flex; flex-direction: column; gap: 28px; }
.meaning { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.meaning i { width: 40px; height: 6px; border-radius: 3px; display: block; }
.meaning b { font-size: 21px; }
.meaning span { font-size: 15px; color: var(--muted); }
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.explore a { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; min-height: 140px; }
.explore a b { font-size: 19px; }
.explore a span { font-size: 14px; color: var(--muted); }
.explore a em { margin-top: auto; font-style: normal; font-size: 14px; font-weight: 700; color: var(--teal-ink); }
.explore a:hover { box-shadow: 0 0 0 2px var(--teal); }
.dark-panel { background: var(--ink); color: var(--on-night); border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.dark-panel h2 { color: #FFFFFF; font-size: clamp(24px, 3vw, 32px); }
.dark-panel p { color: var(--on-night-muted); }
.dark-panel .btn-ghost { border-color: var(--on-night); color: var(--on-night); }
.dark-panel .btn-ghost:hover { background: var(--night-2); color: #FFFFFF; }

/* 창작물 */
.studio { background: var(--surface); border-radius: 26px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-wrap: wrap; scroll-margin-top: 16px; }
.studio .tint { flex: 1 1 240px; min-height: 170px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; letter-spacing: 0.14em; }
.studio .info { flex: 3 1 480px; min-width: 0; padding: 30px 34px; display: flex; flex-direction: column; gap: 10px; }
.studio h2 { font-size: 26px; }
.studio p { color: var(--muted); }
.studio small { font-size: 14px; color: var(--soft); }

/* 회사 정보 표 */
.facts { margin: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); border-top: 2px solid var(--ink); font-size: 16px; }
.facts dt, .facts dd { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { color: var(--muted); }

/* 하단 */
.site-footer { background: var(--ink); color: var(--on-night); margin-top: 0; }
.site-footer .wrap { padding-block: 52px 36px; display: flex; flex-direction: column; gap: 30px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.foot-brand { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--on-night-muted); }
.foot-brand .brand { color: #FFFFFF; }
.foot-brand .story { color: #FFB066; }
.foot-links { flex: 3 1 600px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 22px; }
.foot-links div { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { color: var(--on-night-muted); text-decoration: none; font-size: 14px; }
.foot-links a.h { color: #FFFFFF; font-weight: 700; font-size: 15px; }
.foot-links a:hover { color: #FFFFFF; }
.sites { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 20px; border-radius: 16px; background: var(--night-2); }
.sites b { font-size: 14px; color: #FFFFFF; margin-right: 6px; }
.sites a, .sites span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--on-night); font-size: 14px; text-decoration: none; }
.sites span { color: var(--on-night-muted); }
.sites a:hover { color: #FFFFFF; box-shadow: 0 0 0 1.5px #FFB066; }
.copy { border-top: 1px solid #36465A; padding-top: 18px; font-size: 13px; color: var(--on-night-muted); }
.mail { font-weight: 700; color: #8FD8CE; user-select: all; }
