/* METAEXPERT — independently readable, static project stories. */
:root {
  --ink: #211e19;
  --paper: #f1ece3;
  --paper-deep: #e7e0d4;
  --soft-ink: #5e584e;
  --line: #ccc4b7;
  --seal: #a83821;
  --serif: "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.5vw, 76px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; font-size: 16px; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--seal); outline-offset: 6px; }
main:focus { outline: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
::selection { color: #fff; background: var(--seal); }
.wrap { width: min(100%, 1600px); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 5; left: var(--gutter); top: 12px; transform: translateY(-180%); background: var(--ink); color: var(--paper); padding: 14px 20px; }
.skip-link:focus { transform: none; }

.site-header { min-height: 96px; display: flex; align-items: center; gap: 32px; position: relative; }
.site-header::after { content: ""; position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: baseline; font-size: 17px; line-height: 1; font-weight: 650; letter-spacing: .2em; white-space: nowrap; }
.wordmark-dot { color: var(--seal); font-size: 25px; letter-spacing: 0; }
.header-note { font-size: 12px; color: var(--soft-ink); letter-spacing: .02em; margin-right: auto; }
.header-nav { display: flex; gap: 28px; align-items: center; margin-left: auto; font-size: 13px; }
.header-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.header-contact { border: 1px solid var(--ink); padding: 0 17px; gap: 21px; }
.header-contact:hover { background: var(--ink); color: var(--paper); }
.header-works:hover, .breadcrumb a:hover, .text-link:hover, .footer-home:hover { text-decoration: underline; text-underline-offset: 5px; }

.breadcrumb { padding-block: 26px; font-size: 12px; line-height: 1.6; color: var(--soft-ink); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.breadcrumb li + li::before { content: "/"; display: inline-block; margin-right: 10px; color: #827a6e; }
.breadcrumb [aria-current] { color: var(--ink); }
.case-intro { padding-block: clamp(38px, 6vw, 96px) 52px; }
.case-eyebrow { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--seal); font-size: 13px; font-weight: 600; letter-spacing: .025em; }
.case-eyebrow span + span { border-left: 1px solid #b7a798; padding-left: 18px; }
.case-intro h1 { margin-top: 25px; font-family: var(--serif); font-size: clamp(36px, 6.2vw, 94px); font-weight: 400; letter-spacing: -.065em; line-height: 1.28; word-break: keep-all; overflow-wrap: anywhere; }
.case-summary { margin-top: clamp(30px, 4.6vw, 66px); display: grid; grid-template-columns: 1.18fr 1fr; gap: 9%; align-items: start; }
.case-lede { max-width: 650px; }
.case-lede p { font-size: clamp(17px, 1.6vw, 23px); font-weight: 400; line-height: 1.75; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: break-word; }
.case-lede p + p { margin-top: 18px; }
.case-facts { border-top: 1px solid var(--ink); font-size: 13px; line-height: 1.7; }
.case-facts > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.case-facts dt { color: var(--soft-ink); }
.case-facts dd { font-weight: 500; word-break: keep-all; overflow-wrap: anywhere; }

.case-image-mat { background: var(--paper-deep); overflow: hidden; }
.case-hero-figure .case-image-mat { padding: clamp(12px, 2.6vw, 40px); }
.case-hero-figure img { width: 100%; max-height: 800px; object-fit: contain; }
figcaption { margin-top: 12px; color: var(--soft-ink); font-size: 12px; line-height: 1.7; word-break: keep-all; }
.case-hero-figure figcaption { text-align: right; }

.case-story { display: grid; grid-template-columns: 1fr 2fr; gap: 8%; padding-block: clamp(60px, 8.6vw, 124px); }
.section-kicker { display: block; color: var(--seal); font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .12em; }
.story-label { border-top: 1px solid var(--ink); padding-top: 17px; }
.story-label p { margin-top: 15px; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 26px); line-height: 1.6; letter-spacing: -.04em; word-break: keep-all; }
.story-copy { max-width: 800px; }
.case-role { border-left: 2px solid var(--seal); padding-left: clamp(20px, 2.3vw, 34px); }
.story-copy h2 { font-family: var(--serif); font-size: clamp(23px, 2.2vw, 32px); font-weight: 500; line-height: 1.5; letter-spacing: -.04em; word-break: keep-all; }
.case-role h2 { margin-top: 9px; }
.story-copy p { margin-top: 18px; color: #453f36; font-size: 17px; line-height: 1.95; letter-spacing: -.015em; word-break: keep-all; overflow-wrap: break-word; }
.story-copy p + p { margin-top: 16px; }
.story-section { margin-top: 46px; }
.story-section:first-child { margin-top: 0; }
.case-note { margin-top: 32px; padding-top: 19px; border-top: 1px solid var(--line); }
.case-note p { margin-top: 0; color: var(--soft-ink); font-size: 13px; line-height: 1.8; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-top: 1px solid var(--ink); padding-top: 19px; margin-bottom: 32px; }
.section-heading h2, .case-sources h2 { margin-top: 10px; font-family: var(--serif); font-size: clamp(27px, 3vw, 43px); font-weight: 400; line-height: 1.4; letter-spacing: -.05em; word-break: keep-all; }
.section-side-note { color: var(--soft-ink); font-size: 12px; line-height: 1.8; text-align: right; }
.case-gallery { padding-bottom: clamp(62px, 7vw, 100px); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.case-gallery-figure .case-image-mat { padding: clamp(12px, 2vw, 30px); }
.case-gallery-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.case-gallery-figure:only-child { grid-column: 1 / -1; }
.case-gallery-figure:only-child img { aspect-ratio: auto; max-height: 760px; }

.case-sources { display: grid; grid-template-columns: 1fr 2fr; gap: 8%; padding-block: 28px clamp(62px, 7vw, 100px); border-top: 1px solid var(--ink); }
.case-sources ul { list-style: none; padding: 0; }
.case-sources li { border-bottom: 1px solid var(--line); }
.case-sources a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 19px; }
.case-sources li:first-child a { padding-top: 0; }
.case-source-label { display: block; font-size: 16px; font-weight: 500; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.case-source-host { display: block; margin-top: 5px; font-size: 12px; line-height: 1.6; color: var(--soft-ink); overflow-wrap: anywhere; }
.case-link-arrow { flex: 0 0 auto; font-size: 24px; font-weight: 300; }
.case-sources a:hover .case-source-label { text-decoration: underline; text-underline-offset: 5px; }
.case-sources a:hover .case-link-arrow { color: var(--seal); }

.related-section { padding-bottom: clamp(64px, 8vw, 116px); }
.text-link { font-size: 13px; line-height: 1.7; white-space: nowrap; padding-block: 8px; }
.text-link span { margin-left: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.related-card { min-width: 0; display: block; }
.related-image { background: var(--paper-deep); padding: clamp(12px, 1.5vw, 24px); }
.related-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.related-caption { padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.related-category { color: var(--soft-ink); font-size: 12px; line-height: 1.7; }
.related-caption h3 { margin-top: 7px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 33px); line-height: 1.5; letter-spacing: -.045em; word-break: keep-all; }
.related-arrow { font-size: 24px; font-weight: 300; flex: 0 0 auto; }
.related-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.related-card:hover .related-arrow { color: var(--seal); }

.contact-section { background: var(--ink); color: var(--paper); padding-block: clamp(64px, 8.5vw, 128px); }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.contact-section .section-kicker { color: #e4ac90; }
.contact-section h2 { margin-top: 22px; font-family: var(--serif); font-size: clamp(32px, 4.8vw, 69px); font-weight: 300; line-height: 1.4; letter-spacing: -.05em; word-break: keep-all; }
.contact-section p { margin-top: 24px; color: #ccc3b5; font-size: 15px; line-height: 1.8; word-break: keep-all; }
.contact-link { display: inline-flex; align-items: center; justify-content: space-between; gap: clamp(28px, 5vw, 76px); padding: 21px 0; border-top: 1px solid #a79d8c; border-bottom: 1px solid #a79d8c; font-size: 17px; white-space: nowrap; }
.contact-link span { font-size: 27px; font-weight: 300; }
.contact-link:hover { color: #e4ac90; border-color: #e4ac90; }
.contact-section a:focus-visible, .site-footer a:focus-visible { outline-color: #e4ac90; }
.site-footer { background: var(--ink); color: var(--paper); }
.footer-inner { border-top: 1px solid #484238; padding-block: 30px; display: flex; align-items: center; gap: 30px; }
.site-footer .wordmark { font-size: 14px; }
.site-footer .wordmark-dot { color: #e4ac90; }
.site-footer p { color: #b7ad9e; font-size: 12px; line-height: 1.6; }
.footer-home { margin-left: auto; font-size: 12px; line-height: 1.7; padding-block: 12px; white-space: nowrap; }
.footer-home span { margin-left: 18px; }

@media (min-width: 1600px) {
  .case-intro h1 { font-size: 94px; }
}

@media (max-width: 1000px) {
  .header-note { display: none; }
  .case-summary { gap: 5%; }
  .case-story, .case-sources { grid-template-columns: 1fr 2.2fr; gap: 5%; }
  .contact-inner { align-items: start; flex-direction: column; gap: 36px; }
  .contact-link { min-width: 260px; }
}

@media (max-width: 700px) {
  :root { --gutter: 22px; }
  .site-header { min-height: 80px; gap: 12px; }
  .wordmark { font-size: 13px; letter-spacing: .15em; }
  .wordmark-dot { font-size: 20px; }
  .header-nav { gap: 0; font-size: 12px; }
  .header-nav .header-works { display: none; }
  .header-contact { padding-inline: 12px; gap: 12px; }
  .breadcrumb { padding-block: 21px; font-size: 11px; }
  .case-intro { padding-block: 30px 32px; }
  .case-eyebrow { font-size: 11px; gap: 8px 12px; }
  .case-eyebrow span + span { padding-left: 12px; }
  .case-intro h1 { margin-top: 19px; font-size: clamp(35px, 8.6vw, 58px); line-height: 1.35; }
  .case-summary { display: block; margin-top: 25px; }
  .case-lede p { font-size: 17px; line-height: 1.8; }
  .case-facts { margin-top: 30px; font-size: 12px; }
  .case-facts > div { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding-block: 11px; }
  .case-hero-figure .case-image-mat { padding: 10px; }
  figcaption { font-size: 11px; line-height: 1.8; }
  .case-hero-figure figcaption { text-align: left; }
  .case-story { display: block; padding-block: 56px; }
  .story-label { margin-bottom: 34px; }
  .story-label p { margin-top: 10px; font-size: 19px; }
  .story-copy h2 { font-size: 23px; }
  .story-copy p { font-size: 16px; line-height: 1.9; margin-top: 15px; }
  .story-section { margin-top: 34px; }
  .case-note p { font-size: 12px; }
  .section-heading { gap: 14px; margin-bottom: 24px; }
  .section-heading h2, .case-sources h2 { font-size: 28px; }
  .section-side-note { display: none; }
  .gallery-grid { grid-template-columns: 1fr; gap: 25px; }
  .case-gallery-figure img { aspect-ratio: auto; max-height: 620px; }
  .case-gallery { padding-bottom: 56px; }
  .case-sources { display: block; padding-top: 20px; padding-bottom: 56px; }
  .case-sources ul { margin-top: 28px; }
  .case-source-label { font-size: 15px; }
  .related-grid { grid-template-columns: 1fr; gap: 32px; }
  .related-caption { padding-top: 15px; }
  .related-caption h3 { font-size: 26px; }
  .text-link { font-size: 11px; white-space: normal; text-align: right; }
  .text-link span { margin-left: 4px; }
  .related-section { padding-bottom: 60px; }
  .contact-section { padding-block: 56px; }
  .contact-section h2 { font-size: clamp(31px, 8vw, 44px); }
  .contact-section p { font-size: 14px; }
  .contact-link { width: 100%; min-width: 0; padding-block: 17px; font-size: 16px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 16px; padding-block: 25px; }
  .site-footer p { grid-row: 2; font-size: 11px; }
  .footer-home { grid-column: 2; grid-row: 1 / 3; }
}

@media print {
  body { background: #fff; }
  .header-nav, .breadcrumb, .related-section, .contact-section, .site-footer, .skip-link { display: none; }
  .site-header { min-height: 60px; }
  .case-intro { padding-top: 28px; }
  .case-intro h1 { font-size: 36px; }
  .case-story { padding-block: 32px; }
  .case-image-mat, .related-image { background: #f5f5f5; }
  figure, .story-section, .case-role { break-inside: avoid; }
  .case-sources a::after { content: attr(href); font-size: 10px; overflow-wrap: anywhere; }
}
