:root {
  color-scheme: light;
  --type-increase: 2pt;
  font-size: calc(100% + var(--type-increase));
  --brown: #402d26;
  --brown-deep: #32221e;
  --ink: #241e1b;
  --muted: #615954;
  --paper: #fbfaf7;
  --white: #fff;
  --warm: #f3eee7;
  --line: #e5ddd5;
  --gold: #f0c44f;
  --ochre: #714a21;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body, h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.05em; }
p, h1, h2, h3, dd { overflow-wrap: anywhere; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid #9a5826; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; left: 12px; top: 12px; padding: 10px 18px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.masthead { background: var(--brown-deep); color: var(--white); }
.masthead-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wordmark { display: flex; align-items: baseline; gap: 9px; justify-self: start; }
.wordmark strong { font-size: calc(22px + var(--type-increase)); letter-spacing: -.06em; }
.wordmark span { color: #dbcdc6; font-size: calc(12px + var(--type-increase)); }
.masthead nav { display: flex; gap: clamp(20px, 3.7vw, 56px); font-size: calc(14px + var(--type-increase)); font-weight: 700; }
.masthead nav a:hover, .contact-link:hover { color: var(--gold); }
.contact-link { justify-self: end; font-size: calc(14px + var(--type-increase)); font-weight: 700; }
.contact-link span { color: var(--gold); margin-left: 5px; }

.hero { background: var(--warm); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding-block: clamp(50px, 6.5vw, 92px); }
.hero-label { color: var(--ochre); font-weight: 800; font-size: calc(14px + var(--type-increase)); letter-spacing: -.02em; margin-bottom: 17px; }
.hero-label::before { content: ""; display: inline-block; width: 20px; height: 3px; margin-right: 9px; vertical-align: .25em; background: #ac7241; }
.hero h1 { font-size: calc(clamp(42px, 5.65vw, 86px) + var(--type-increase)); line-height: .99; font-weight: 800; letter-spacing: -.075em; }
.hero h1 strong { display: inline-block; margin-top: 10px; font-weight: 900; }
.hero-statement { margin-top: 25px; font-size: calc(clamp(17px, 2vw, 25px) + var(--type-increase)); font-weight: 800; line-height: 1.44; letter-spacing: -.046em; }
.hero-description { margin-top: 12px; max-width: 42ch; color: var(--muted); font-size: calc(15px + var(--type-increase)); }
.button { width: fit-content; display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 45px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; font-size: calc(14px + var(--type-increase)); font-weight: 800; }
.hero-media { overflow: hidden; background: var(--brown); border-radius: 8px; box-shadow: 0 17px 36px #39261925; }
.hero-media img { height: auto; }
.hero-media figcaption { color: var(--white); padding: 13px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.hero-media figcaption span { display: inline-block; font-size: calc(12px + var(--type-increase)); color: #f1dba3; }
.hero-media figcaption strong { display: block; font-size: calc(clamp(18px, 2.2vw, 32px) + var(--type-increase)); letter-spacing: -.04em; line-height: 1.13; }
.hero-media figcaption a { flex-shrink: 0; align-self: end; border: 1px solid #ffffff7a; border-radius: 4px; padding: 6px 10px; font-size: calc(12px + var(--type-increase)); font-weight: 800; }
.hero-media figcaption a:hover { background: #fff2; }

.section { padding-block: clamp(54px, 6vw, 88px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px 30px; margin-bottom: 27px; }
.section-heading h2 { font-size: calc(clamp(28px, 3.5vw, 46px) + var(--type-increase)); font-weight: 900; }
.section-heading p { color: var(--muted); font-size: calc(15px + var(--type-increase)); }
.category { color: var(--ochre); font-weight: 800; font-size: calc(13px + var(--type-increase)); letter-spacing: -.02em; }




.case { background: var(--white); padding: clamp(20px, 3.5vw, 42px); border: 1px solid var(--line); border-radius: 8px; }
.case-head h3 { font-size: calc(clamp(27px, 3.5vw, 46px) + var(--type-increase)); margin: 5px 0 8px; }
.case-head > p:last-child { color: var(--muted); }
.case-media { margin: 24px 0; }
.case-media img { border-radius: 6px; aspect-ratio: 1.9; object-fit: cover; }
.case-media figcaption { margin-top: 6px; color: var(--muted); font-size: calc(12px + var(--type-increase)); }
.case-story > div { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.case-story dt { font-weight: 800; font-size: calc(14px + var(--type-increase)); color: var(--brown); }
.case-story dd { color: var(--muted); font-size: calc(15px + var(--type-increase)); }
.case-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.button-dark { color: var(--white); background: var(--brown); }
.button-dark:hover { background: #65463a; }
.button-light { border-color: #cabcaf; }
.button-light:hover { background: var(--warm); }

.footer { background: var(--brown-deep); color: var(--white); padding-block: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.footer h2 { font-size: calc(31px + var(--type-increase)); margin-top: 4px; }
.footer p { font-size: calc(13px + var(--type-increase)); color: #ddcac2; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 8px; font-size: calc(13px + var(--type-increase)); font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { color: var(--gold); }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .hero-inner { gap: 25px; }
  .hero h1 { font-size: calc(clamp(34px, 5vw, 50px) + var(--type-increase)); }
  .case-story > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { min-height: auto; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 3px; padding-block: 9px 8px; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; column-gap: 20px; row-gap: 2px; font-size: calc(12px + var(--type-increase)); padding-top: 6px; border-top: 1px solid #5a433a; }
  .wordmark strong { font-size: calc(19px + var(--type-increase)); }
  .contact-link { grid-column: 2; grid-row: 1; font-size: calc(12px + var(--type-increase)); }
  .hero-inner { grid-template-columns: minmax(0,1fr); gap: 26px; padding-block: 32px 25px; }
  .hero h1 { font-size: calc(clamp(41px, 10vw, 62px) + var(--type-increase)); }
  .hero-statement { margin-top: 18px; }
  .hero-media figcaption { padding: 10px 12px; }
  .section { padding-block: 44px; }
  .section-heading { display: block; margin-bottom: 19px; }
  .section-heading p { margin-top: 6px; font-size: calc(14px + var(--type-increase)); }
  .case { padding: 15px; }
  .case-story dd { font-size: calc(14px + var(--type-increase)); }
  .footer-inner { align-items: start; flex-direction: column; }
}

@media print {
  .masthead, .skip-link, .footer-links { display: none; }
  .wrap { width: 100%; }
  .section, .hero-inner { padding-block: 16px; }
  .case { box-shadow: none; }
}

.flow-image img { aspect-ratio: auto; max-height: 400px; object-fit: contain; background: var(--warm); }
@media (max-width: 850px) {
  .masthead nav { gap: 18px; }
}
@media (max-width: 640px) {
  .masthead nav { column-gap: 13px; }
}

.play-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 16px);
  margin-block: 24px;
}
.play-gallery a {
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid #2b2d40;
  border-radius: 6px;
  background: #10111f;
}
.play-gallery picture { display: block; height: 100%; }
.play-gallery img { height: 100%; object-fit: contain; }
.play-gallery figcaption {
  margin-top: 7px;
  color: var(--brown);
  font-size: calc(13px + var(--type-increase));
  font-weight: 800;
  text-align: center;
}
.play-gallery a:hover { border-color: #926746; }

@media (max-width: 640px) {
  .play-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}

.depth-gallery {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.09fr);
}
.depth-gallery a { aspect-ratio: 272 / 480; background: #090a0f; }
.depth-gallery figure:last-child a { aspect-ratio: 800 / 676; }
@media (max-width: 640px) {
  .depth-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .depth-gallery figure:last-child { grid-column: 1 / -1; }
}

.hero-values {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid #ac7241;
  font-size: calc(14px + var(--type-increase));
}
.hero-values p { color: var(--muted); margin-bottom: 3px; }
.hero-values strong { display: block; word-break: keep-all; }

.project-role { margin-top: 14px; color: var(--muted); }
.project-role strong { margin-right: 4px; color: var(--brown); }
.battle-flow { margin-block: 28px; padding: clamp(14px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: 6px; background: var(--warm); }
.battle-flow figcaption { margin-bottom: 12px; color: var(--brown); font-weight: 900; }
.battle-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; list-style: none; }
.battle-flow li { position: relative; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.battle-flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -13px; width: 7px; height: 7px; transform: translateY(-50%) rotate(45deg); border-top: 2px solid var(--ochre); border-right: 2px solid var(--ochre); }
.battle-flow strong, .battle-flow span { display: block; word-break: keep-all; overflow-wrap: anywhere; }
.battle-flow strong { color: var(--brown); font-size: calc(14px + var(--type-increase)); }
.battle-flow span { color: var(--muted); font-size: calc(13px + var(--type-increase)); line-height: 1.45; }
.imagine-case { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(0, 3fr); gap: 18px 28px; padding-block: 22px; border-top: 1px solid var(--line); }
.imagine-case h4 { margin: 5px 0 0; font-size: calc(19px + var(--type-increase)); line-height: 1.35; letter-spacing: -.045em; word-break: keep-all; overflow-wrap: anywhere; }
.imagine-case-body { color: var(--muted); font-size: calc(15px + var(--type-increase)); }
.imagine-case-body > p + p { margin-top: 12px; }
.project-evidence { margin-top: 14px; padding: 12px 14px; border-left: 3px solid #ac7241; background: var(--paper); }
.project-evidence p { font-size: calc(12px + var(--type-increase)); }
.project-figures { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 7px 0; padding: 0; list-style: none; }
.project-figures li { display: grid; }
.project-figures strong { color: var(--ochre); font-size: calc(clamp(18px, 2vw, 24px) + var(--type-increase)); line-height: 1.3; font-variant-numeric: tabular-nums; }
.project-figures span { font-size: calc(13px + var(--type-increase)); }

@media (max-width: 760px) {
  .imagine-case { grid-template-columns: 1fr; gap: 9px; }
}

@media (max-width: 640px) {
  .battle-flow ol { grid-template-columns: 1fr; gap: 14px; }
  .battle-flow li:not(:last-child)::after { top: auto; right: calc(50% - 3px); bottom: -9px; transform: rotate(135deg); }
  .imagine-case-body { font-size: calc(14px + var(--type-increase)); }
}

.project-gallery { margin-top: 20px; border-top: 1px solid var(--line); }
.project-gallery summary {
  padding: 12px 0 2px;
  color: var(--ochre);
  font-size: calc(14px + var(--type-increase));
  font-weight: 800;
  cursor: pointer;
}
.project-gallery .play-gallery { margin-block: 14px 0; }

.history-inner { margin-top: 20px; }
.history-inner h2 { font-size: calc(18px + var(--type-increase)); margin-bottom: 12px; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; gap: 10px 20px; }
.timeline li { padding: 0 0 0 13px; border: 0; border-left: 2px solid #bca798; }
.timeline time { color: var(--muted); font-size: calc(12px + var(--type-increase)); }
.timeline time, .timeline strong { display: block; }
.timeline strong { color: var(--ink); font-size: calc(13px + var(--type-increase)); word-break: keep-all; }

.side-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.side-groups h3 { margin-bottom: 10px; color: var(--muted); font-size: calc(16px + var(--type-increase)); }
.side-project { border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.side-project + .side-project { margin-top: 8px; }
.side-project summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 12px 38px 12px 15px;
}
.side-project summary::-webkit-details-marker { display: none; }
.side-project summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 15px;
  color: var(--ochre);
  font-weight: 800;
}
.side-project[open] summary::after { content: "−"; }
.side-project summary:hover { background: var(--warm); }
.side-project summary strong, .side-project summary span { display: block; word-break: keep-all; overflow-wrap: anywhere; }
.side-project summary span { color: var(--muted); font-size: calc(13px + var(--type-increase)); }
.side-content { padding: 0 15px 17px; border-top: 1px solid var(--line); }
.side-content .case-story > div { grid-template-columns: 64px minmax(0, 1fr); padding-block: 10px; }
.side-content .case-media, .side-content .play-gallery { margin-block: 16px; }
.side-content .case-links { margin-top: 15px; }

@media (max-width: 850px) {
  .masthead nav { gap: 18px; }
  .side-groups { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .masthead nav { gap: 3px 14px; }
  .timeline { grid-template-columns: 1fr; gap: 9px; }
  .side-content .case-story > div { grid-template-columns: 1fr; }
}

.narration-comparison { margin-block: 16px; }
.narration-comparison h5 { margin: 0 0 8px; color: var(--brown); font-size: calc(14px + var(--type-increase)); }
.narration-comparison-grid { display: grid; max-width: 640px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.narration-comparison-grid figure { display: grid; grid-template-rows: subgrid; grid-row: span 2; gap: 8px; }
.narration-comparison-grid figcaption { font-size: calc(13px + var(--type-increase)); word-break: keep-all; }
.narration-comparison-grid figcaption strong { color: var(--ochre); }
.narration-comparison-grid a, .old-battle-layout { display: block; width: 100%; border: 1px solid #2b2d40; border-radius: 6px; background: #10111f; }
.narration-comparison-grid img { border-radius: 5px; }
.old-battle-layout { padding: clamp(14px, 2.4vw, 25px); align-content: start; }
.old-battle-round, .old-battle-prose { background: #191d30; padding: 10px 12px; }
.old-battle-round { border-radius: 8px 8px 0 0; padding-bottom: 0; color: #d4ad65; font-weight: 800; }
.old-battle-prose { border-radius: 0 0 8px 8px; color: #f5e9d7; }
.narration-comparison-note { margin-top: 6px; color: var(--muted); font-size: calc(12px + var(--type-increase)); }

@media (max-width: 450px) {
  .narration-comparison-grid { grid-template-columns: 1fr; }
  .narration-comparison-grid figure { grid-template-rows: none; grid-row: auto; }
  .narration-comparison-grid img { max-width: 288px; margin-inline: auto; }
}

/* ===== v2 재구성에서 추가한 스타일 ===== */
.hero-facts { display: grid; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding-left: 13px; border-left: 2px solid #bca798; }
.hero-facts strong, .hero-facts span { word-break: keep-all; }
.hero-facts strong { white-space: nowrap; }
.hero-facts strong { color: var(--ochre); font-size: calc(clamp(15px, 1.5vw, 19px) + var(--type-increase)); line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.hero-facts span { color: var(--muted); font-size: calc(12px + var(--type-increase)); }

.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 18px 0 0; }
.spec > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--brown); font-weight: 800; font-size: calc(13px + var(--type-increase)); }
.spec dd { color: var(--muted); font-size: calc(13px + var(--type-increase)); }
.link-note { margin-top: 8px; color: var(--muted); font-size: calc(12px + var(--type-increase)); }

.table-scroll { margin-top: 14px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: calc(13px + var(--type-increase)); line-height: 1.5; }
.data-table caption { padding-bottom: 6px; color: var(--brown); font-weight: 800; text-align: left; caption-side: top; }
.data-table th, .data-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; word-break: keep-all; overflow-wrap: anywhere; }
.data-table thead th { color: var(--brown); background: var(--warm); font-weight: 800; white-space: nowrap; }
.data-table tbody th { color: var(--ink); font-weight: 700; }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tr.is-final td, .data-table tr.is-final th { color: var(--ochre); font-weight: 800; }
.data-table.wide { min-width: 620px; }

.flow-line { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--warm); color: var(--brown); font-size: calc(13px + var(--type-increase)); font-weight: 700; word-break: keep-all; }
.plain-list { margin: 10px 0 0; padding-left: 1.1em; }
.plain-list li + li { margin-top: 4px; }

.side-list { display: grid; gap: 8px; }
.side-list .side-project + .side-project { margin-top: 0; }
.side-project summary em { display: block; margin-top: 2px; color: var(--ochre); font-style: normal; font-weight: 700; font-size: calc(12px + var(--type-increase)); }
.section + .section { padding-top: 0; }
.single-shot { margin-block: 16px; max-width: 520px; }
.single-shot img { border-radius: 6px; border: 1px solid #2b2d40; }
.single-shot figcaption { margin-top: 6px; color: var(--muted); font-size: calc(12px + var(--type-increase)); }

.profile-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.profile-list li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: calc(14px + var(--type-increase)); }
.profile-list time { color: var(--muted); font-variant-numeric: tabular-nums; }

.play-gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; }

@media (max-width: 760px) {
  .spec { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .profile-list li { grid-template-columns: 1fr; gap: 0; }
  .play-gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}
.data-table.mid { min-width: 500px; }
.side-groups > .side-project + .side-project { margin-top: 0; }
