/* ==========================================================================
   인테리어스 — Editorial Interior Magazine
   Palette: ecru paper / charcoal ink / brass accent
   ========================================================================== */

:root {
  --bg: #F6F3EE;
  --bg-deep: #EFEAE1;
  --ink: #1C1917;
  --ink-soft: #6B645C;
  --line: #E2DBD0;
  --brass: #8B6F47;
  --brass-soft: #B49B77;
  --dark: #171412;
  --cream: #F2EDE4;
  --serif-en: "Cormorant Garamond", "Didot", "Bodoni MT", Georgia, serif;
  --serif-kr: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--brass); color: var(--cream); }

/* ---------- typography helpers ---------- */

.overline {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.serif-en { font-family: var(--serif-en); font-weight: 400; }

h1, h2, h3 { font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.site-header.scrolled {
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px var(--gutter);
}

.site-header.on-dark:not(.scrolled) { color: var(--cream); }
.site-header.on-dark:not(.scrolled) .masthead { color: var(--cream); }

.header-nav { display: flex; gap: 28px; }
.header-nav.right { justify-content: flex-end; }

.header-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.masthead {
  font-family: var(--serif-kr);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}

.masthead small {
  display: block;
  font-family: var(--serif-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 2px;
}

/* mobile nav */
.nav-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .header-nav { display: none; }
  .site-header .masthead { grid-column: 2; font-size: 20px; }
  .nav-toggle {
    display: block;
    grid-column: 3;
    background: none; border: 0;
    font-family: var(--sans);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.2em;
    color: inherit;
    cursor: pointer;
    padding: 8px 0;
  }
  .mobile-menu {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 99;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 0 var(--gutter);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; }
  .mobile-menu a {
    font-family: var(--serif-kr);
    font-size: 32px;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a small {
    display: block;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brass);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
}

.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: hero-settle 3s var(--ease-out) forwards;
}

@keyframes hero-settle {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 12, 10, 0.62) 0%, rgba(15, 12, 10, 0.12) 45%, rgba(15, 12, 10, 0.25) 100%);
}

.hero-copy {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 10vh, 110px);
  z-index: 2;
  color: var(--cream);
  max-width: 780px;
}

.hero-copy .overline { color: var(--brass-soft); margin-bottom: 18px; }

.hero-copy h1 {
  font-family: var(--serif-kr);
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.25;
}

.hero-copy p {
  margin-top: 20px;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(242, 237, 228, 0.85);
  max-width: 560px;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 2;
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.7;
}

.scroll-cue::after {
  content: "";
  width: 1px; height: 56px;
  background: currentColor;
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- sections ---------- */

.section { padding: clamp(72px, 12vh, 140px) var(--gutter); }
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  font-family: var(--serif-en);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
}

.section-head h2 .kr {
  display: block;
  font-family: var(--serif-kr);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--ink-soft);
  margin-top: 14px;
}

.section-head .more {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid var(--brass-soft);
  padding-bottom: 4px;
  transition: opacity 0.3s;
}
.section-head .more:hover { opacity: 0.6; }

/* ---------- editorial project rows (home) ---------- */

.feature-rows { display: flex; flex-direction: column; gap: clamp(64px, 10vw, 120px); }

.feature-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
  align-items: end;
}

.feature-row .f-img { grid-column: 1 / span 8; }
.feature-row .f-meta { grid-column: 9 / span 4; padding-bottom: 8px; }
.feature-row.alt .f-img { grid-column: 5 / span 8; grid-row: 1; }
.feature-row.alt .f-meta { grid-column: 1 / span 4; grid-row: 1; text-align: right; }

.feature-row .f-img a { display: block; overflow: hidden; }
.feature-row .f-img img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  transition: transform 1.2s var(--ease-out);
}
.feature-row .f-img a:hover img { transform: scale(1.04); }

.f-meta .overline { display: block; margin-bottom: 14px; }

.f-meta h3 {
  font-family: var(--serif-kr);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.4;
}

.f-meta h3 a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: left 96%; transition: background-size 0.5s var(--ease-out); }
.f-meta h3 a:hover { background-size: 100% 1px; }

.f-meta p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.f-meta .idx {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brass-soft);
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .feature-row .f-img, .feature-row.alt .f-img { grid-column: 1 / -1; grid-row: auto; }
  .feature-row .f-meta, .feature-row.alt .f-meta { grid-column: 1 / -1; grid-row: auto; text-align: left; }
}

/* ---------- project grid (index) ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 48px) clamp(16px, 2.5vw, 40px);
}

.pcard a.img-wrap { display: block; overflow: hidden; }
.pcard img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  transition: transform 1.1s var(--ease-out);
}
.pcard:hover img { transform: scale(1.05); }
.pcard .overline { display: block; margin: 16px 0 8px; }
.pcard h3 { font-family: var(--serif-kr); font-size: 19px; font-weight: 600; line-height: 1.45; }
.pcard p { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- journal cards ---------- */

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(28px, 3vw, 48px) clamp(16px, 2.5vw, 40px);
}

.jcard a.img-wrap { display: block; overflow: hidden; background: var(--bg-deep); }
.jcard img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  transition: transform 1.1s var(--ease-out), opacity 0.6s;
}
.jcard:hover img { transform: scale(1.045); }
.jcard .overline { display: block; margin: 18px 0 10px; }
.jcard h3 {
  font-family: var(--serif-kr);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}
.jcard h3 a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: left 96%; transition: background-size 0.5s var(--ease-out); }
.jcard h3 a:hover { background-size: 100% 1px; }
.jcard p { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- dark philosophy band ---------- */

.band-dark {
  background: var(--dark);
  color: var(--cream);
  padding: clamp(88px, 14vh, 160px) var(--gutter);
}

.band-dark .section-inner { max-width: 900px; text-align: center; }

.band-dark .overline { color: var(--brass-soft); }

.band-dark blockquote {
  font-family: var(--serif-kr);
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.65;
  margin-top: 28px;
}

.band-dark .sub {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(242, 237, 228, 0.65);
  line-height: 2;
}

/* ---------- stats strip ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px) 0;
}

.stat .num {
  font-family: var(--serif-en);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}
.stat .num sup { font-size: 0.45em; color: var(--brass); }
.stat .label { margin-top: 10px; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ---------- project detail ---------- */

.detail-head {
  padding: calc(90px + clamp(40px, 8vh, 90px)) var(--gutter) clamp(40px, 6vh, 64px);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

/* 검색 키워드 h1: 시맨틱 우선순위는 유지하되 시각적으로 절제 */
.detail-head .kw-h1 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-top: 16px;
}

.detail-head .display-title {
  font-family: var(--serif-kr);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 600;
  margin-top: 12px;
  line-height: 1.35;
}

.detail-head .alias-note {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--brass);
}

.detail-head .lead {
  margin-top: 24px;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 2;
  color: var(--ink-soft);
}

.detail-hero { padding: 0; }
.detail-hero img { width: 100%; max-height: 88vh; object-fit: cover; }

.spec-bar {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: clamp(28px, 4vw, 44px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.spec .k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.spec .v { font-size: 14.5px; font-weight: 500; }

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 80px) var(--gutter);
}

.prose p { margin-bottom: 1.6em; font-size: 16.5px; line-height: 2.05; color: #2A2622; }
.prose p:first-of-type::first-letter {
  font-family: var(--serif-kr);
  font-size: 3.1em;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 0.06em 0.18em 0 0;
  color: var(--brass);
}

/* photo essay */
.essay { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 44px); padding-bottom: clamp(64px, 10vh, 120px); }
.essay .full { padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; width: 100%; }
.essay .bleed { padding: 0; }
.essay .duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 40px);
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  align-items: start;
}
.essay figure { position: relative; }
.essay img { width: 100%; object-fit: cover; }
.essay figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.essay figcaption::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--brass);
  flex-shrink: 0;
  position: relative;
  top: -3px;
}

@media (max-width: 640px) { .essay .duo { grid-template-columns: 1fr; } }

/* prev / next */
.pn-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.pn-nav a {
  padding: clamp(32px, 5vw, 56px) var(--gutter);
  transition: background 0.4s;
}
.pn-nav a:hover { background: var(--bg-deep); }
.pn-nav .next { text-align: right; border-left: 1px solid var(--line); }
.pn-nav .k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.pn-nav .t { display: block; margin-top: 10px; font-family: var(--serif-kr); font-size: clamp(16px, 2vw, 22px); font-weight: 600; }

/* ---------- journal article ---------- */

.article-head {
  padding: calc(90px + clamp(40px, 8vh, 90px)) var(--gutter) clamp(36px, 5vh, 56px);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.article-head h1 {
  font-family: var(--serif-kr);
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 20px;
}

.article-head .subtitle {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.9;
}

.article-head .byline {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.article-hero { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.article-hero img { aspect-ratio: 21 / 10; object-fit: cover; width: 100%; }

.summary-box {
  max-width: 680px;
  margin: clamp(40px, 6vh, 64px) auto 0;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  background: rgba(255, 255, 255, 0.5);
}
.summary-box .k {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.summary-box li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #2A2622;
}
.summary-box li + li { margin-top: 8px; }
.summary-box li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--brass-soft);
}

.article-body { max-width: 680px; margin: 0 auto; padding: clamp(32px, 5vh, 56px) var(--gutter) clamp(48px, 7vh, 80px); }

.article-body p { margin-bottom: 1.5em; font-size: 16.5px; line-height: 2.05; color: #2A2622; }

.article-body h2 {
  font-family: var(--serif-kr);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
  margin: 2.2em 0 0.9em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}

.article-body h3 { font-size: 17.5px; font-weight: 700; margin: 1.8em 0 0.7em; }

.article-body ul { margin: 0 0 1.5em; }
.article-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.6em;
  font-size: 15.5px;
  line-height: 1.95;
  color: #2A2622;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.85em;
  width: 8px; height: 1px;
  background: var(--brass);
}

.article-body blockquote {
  font-family: var(--serif-kr);
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.9;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--brass);
  margin: 2em 0;
  color: var(--ink);
}

.article-body strong { font-weight: 700; color: var(--ink); }

/* FAQ */
.faq-sec { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vh, 96px); }
.faq-sec h2 {
  font-family: var(--serif-en);
  font-size: 34px;
  font-weight: 300;
  margin-bottom: 8px;
}
.faq-sec .kr-sub { font-size: 13px; letter-spacing: 0.28em; color: var(--ink-soft); margin-bottom: 32px; }

.faq-sec details { border-top: 1px solid var(--line); }
.faq-sec details:last-child { border-bottom: 1px solid var(--line); }

.faq-sec summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  font-size: 15.5px;
  font-weight: 600;
  transition: color 0.3s;
}
.faq-sec summary:hover { color: var(--brass); }
.faq-sec summary::-webkit-details-marker { display: none; }
.faq-sec summary::after {
  content: "+";
  font-family: var(--serif-en);
  font-size: 22px;
  font-weight: 300;
  color: var(--brass);
  transition: transform 0.35s var(--ease-out);
  flex-shrink: 0;
}
.faq-sec details[open] summary::after { transform: rotate(45deg); }
.faq-sec .faq-a { padding: 0 0 22px; font-size: 14.5px; line-height: 2; color: var(--ink-soft); max-width: 96%; }

/* related */
.related-sec { border-top: 1px solid var(--line); }

/* ---------- about / faq page ---------- */

.page-head {
  padding: calc(90px + clamp(48px, 9vh, 100px)) var(--gutter) clamp(40px, 6vh, 72px);
  max-width: var(--max);
  margin: 0 auto;
}
.page-head h1 {
  font-family: var(--serif-en);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 300;
  line-height: 1;
}
.page-head .kr {
  display: block;
  font-family: var(--serif-kr);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin-top: 18px;
}

.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 80px);
  padding: 0 var(--gutter) clamp(64px, 10vh, 120px);
  align-items: start;
}
.about-grid .sticky-img { position: sticky; top: 110px; }
.about-copy h2 { font-family: var(--serif-kr); font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; margin: 2em 0 0.8em; }
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { font-size: 16px; line-height: 2.05; color: #2A2622; margin-bottom: 1.4em; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-grid .sticky-img { position: static; } }

/* ---------- contact band ---------- */

.contact-band {
  background: var(--bg-deep);
  padding: clamp(72px, 11vh, 130px) var(--gutter);
  text-align: center;
}
.contact-band h2 {
  font-family: var(--serif-kr);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.5;
}
.contact-band p { margin-top: 16px; color: var(--ink-soft); font-size: 15px; }
.btn-line {
  display: inline-block;
  margin-top: 36px;
  padding: 16px 48px;
  border: 1px solid var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease-out);
  z-index: 1;
}
.btn-line::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}
.btn-line:hover { color: var(--cream); }
.btn-line:hover::before { transform: scaleY(1); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(242, 237, 228, 0.78);
  padding: clamp(56px, 9vh, 100px) var(--gutter) 40px;
  font-size: 13.5px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-grid .masthead { color: var(--cream); text-align: left; font-size: 22px; }
.footer-grid .masthead small { text-align: left; }

.footer-col .k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: var(--max);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 237, 228, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(242, 237, 228, 0.45);
}

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal animations ---------- */

/* JS 게이트: html.js 일 때만 초기 숨김 — 노스크립트/정적 렌더에서는 전부 보임 */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

.rimg { overflow: hidden; }
.js .rimg > img, .js .rimg > a > img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.06);
  transition: clip-path 1.15s var(--ease-out), transform 1.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .rimg.in > img, .js .rimg.in > a > img { clip-path: inset(0 0 0 0); transform: scale(1); }
/* keep hover zoom working after reveal */
.rimg.in .f-img img:hover { transform: scale(1.04); }

html.noanim *, html.noanim *::before, html.noanim *::after {
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rimg > img, .rimg > a > img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; animation: none !important; }
  .hero img { animation: none !important; }
}

/* ---------- view transitions (progressive) ---------- */

/* view transitions: 스크린샷 렌더러와 충돌하여 비활성화 (필요시 복원)
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }
*/

/* ---------- breadcrumb ---------- */
.crumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.crumbs a:hover { color: var(--brass); }
.crumbs .sep { margin: 0 8px; color: var(--brass-soft); }

/* 404 */
.err-wrap { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px var(--gutter) 80px; }
.err-wrap h1 { font-family: var(--serif-en); font-size: clamp(80px, 16vw, 180px); font-weight: 300; line-height: 1; }
.err-wrap p { margin-top: 16px; color: var(--ink-soft); }
