/* ============================================================
   KIMHEESUN.ORG — navy edition
   Deep navy ground, beige ink, camel accents. Minimal luxury.
   ============================================================ */

:root {
  /* ground */
  --navy: #16222E;           /* page background */
  --navy-2: #1D2C3B;         /* raised panel */
  --navy-3: #24364734;       /* subtle fill */
  --line: #2C3E50;           /* hairline */
  --line-soft: #24354455;

  /* ink */
  --beige: #E7DBC4;          /* primary text */
  --beige-2: #C6B89D;        /* secondary text */
  --muted: #9C8F76;          /* captions — 5.4:1 on navy */

  /* accent */
  --camel: #C2A276;
  --camel-deep: #A87E52;

  /* gallery plate — must match PLATE in tools/xlsx_to_archive.py image prep */
  --plate: #EFE8D9;

  /* Latin default (en · ms) */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --w: min(1080px, 90vw);
}

/* per-language typography */
html[lang="ko"] {
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", -apple-system, sans-serif;
}
html[lang="ko"] body { word-break: keep-all; }

html[lang="ja"] {
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Inter", -apple-system, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}
html[lang="zh"] {
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
/* CJK wraps anywhere; Latin/Malay must not break mid-word */
html[lang="ja"] body, html[lang="zh"] body { word-break: normal; line-break: strict; }

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--beige);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(194, 162, 118, .35); }

/* ---- shared ---- */
.wrap { width: var(--w); margin: 0 auto; }

section { padding: 130px 0; scroll-margin-top: 72px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--beige); color: var(--navy);
  padding: 10px 18px; font-size: 13px; font-weight: 600; border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .48em;
  text-transform: uppercase;
  color: var(--camel);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 16px;
}
.eyebrow::before {
  content: ""; width: 44px; height: 1px; background: var(--camel);
  opacity: .65; flex: 0 0 auto;
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(27px, 3.8vw, 44px);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  color: var(--beige);
}

.sec-lede {
  max-width: 580px;
  color: var(--beige-2);
  font-size: 14.5px;
  margin-bottom: 64px;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   header
   ============================================================ */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(22, 34, 46, .85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .bar {
  width: var(--w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: 17px;
  letter-spacing: .3em; color: var(--beige);
}
.wordmark small { color: var(--camel); font-weight: 600; }
.head-right { display: flex; align-items: center; gap: 34px; }
.site-nav { display: flex; gap: 30px; }

/* language switcher */
.lang-switch { display: flex; align-items: center; gap: 14px; padding-left: 30px; border-left: 1px solid var(--line); }
.lang-btn {
  background: none; border: 0; padding: 4px 0;
  font-family: var(--display); font-size: 12.5px; letter-spacing: .12em;
  color: var(--muted); cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.lang-btn:hover { color: var(--beige-2); }
.lang-btn.on { color: var(--camel); border-bottom-color: var(--camel); }

/* small print under a list */
.foot-note { margin-top: 18px; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.site-nav a {
  font-size: 12.5px; font-weight: 550; letter-spacing: .06em; color: var(--beige-2);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--beige); border-bottom-color: var(--camel); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: none; border: 1px solid var(--line); border-radius: 4px;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--beige); transition: transform .25s, opacity .25s; }
.site-head.open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.site-head.open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================================
   hero — restrained, small portrait
   ============================================================ */
.hero { padding: 208px 0 110px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 290px;
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 500; line-height: 1.32; letter-spacing: -0.015em;
  margin-bottom: 30px; color: var(--beige);
}
.hero-title em { font-style: normal; color: var(--camel); }
.hero-sub { font-size: 14.5px; color: var(--beige-2); max-width: 480px; margin-bottom: 26px; }
.hero-name { display: flex; align-items: baseline; gap: 14px; margin-bottom: 56px; }
.hero-name .kr { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--beige); }
.hero-name .en { font-family: var(--display); font-size: 13px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  border-radius: 1px;
  box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .7);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--camel); border-radius: 1px; z-index: -1; opacity: .5;
}

.hero-cred {
  border-top: 1px solid var(--line); padding-top: 26px;
  font-size: 12px; letter-spacing: .14em; color: var(--beige-2);
}
.hero-cred span { color: var(--camel); margin: 0 6px; }

/* ============================================================
   business 2020 – 2026
   ============================================================ */
.biz-list { border-top: 1px solid rgba(194, 162, 118, .55); }
.biz {
  display: grid; grid-template-columns: 118px 1fr auto; gap: clamp(16px, 3vw, 48px);
  align-items: baseline; padding: 30px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s;
}
.biz:hover { background: rgba(194, 162, 118, .05); }
.biz .by { font-family: var(--display); font-size: 15px; letter-spacing: .12em; color: var(--camel); white-space: nowrap; }
.biz .bt { font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.55; color: var(--beige); }
.biz .bt small { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 450; color: var(--muted); margin-top: 7px; max-width: 74ch; letter-spacing: .02em; }
.biz .bt small a { color: var(--camel); font-weight: 600; }
.biz .br { font-family: var(--display); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ============================================================
   consulting
   ============================================================ */
.client-list { border-top: 1px solid rgba(194, 162, 118, .55); }
.client {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--line-soft);
  transition: background .25s;
}
.client:hover { background: rgba(194, 162, 118, .05); }
.client .cn { font-family: var(--serif); font-size: clamp(16px, 1.9vw, 19px); font-weight: 500; color: var(--beige); }
.client .cs { font-family: var(--display); font-size: 11.5px; color: var(--muted); letter-spacing: .18em; text-align: right; text-transform: uppercase; }

/* ============================================================
   archive 2010 – 2020 (compact)
   ============================================================ */
.archive { background: var(--navy-2); border-block: 1px solid var(--line); }
.arch { padding: 34px 0; border-top: 1px solid var(--line); }
.arch:first-of-type { border-top: 0; padding-top: 0; }
.arch-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.arch-head h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--beige); }
.arch-head h3 .en { font-family: var(--display); letter-spacing: .05em; }
.arch-head .ay { font-family: var(--display); font-size: 14px; letter-spacing: .12em; color: var(--camel); }
.arch p { font-size: 13.5px; color: var(--beige-2); max-width: 78ch; margin-bottom: 16px; }

.strip-track {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x proximity;
}
.strip-track::-webkit-scrollbar { height: 4px; }
.strip-track::-webkit-scrollbar-track { background: var(--navy); border-radius: 2px; }
.strip-track::-webkit-scrollbar-thumb { background: var(--camel-deep); border-radius: 2px; }
.strip-track img {
  height: 224px; width: auto; flex: 0 0 auto; border-radius: 1px;
  scroll-snap-align: start;
  filter: grayscale(1) contrast(1.02);
  opacity: .88;
  transition: opacity .35s, filter .35s;
}
.strip-track img:hover { opacity: 1; filter: grayscale(0); }

/* ---- archive gallery: category sections → image + caption cards ---- */
.arc-cat { margin-bottom: 72px; }
.arc-cat:last-child { margin-bottom: 0; }
.arc-cat-head {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--beige);
  padding-bottom: 14px; margin-bottom: 26px;
  border-bottom: 1px solid rgba(194, 162, 118, .55);
}
.arc-cat-head span {
  font-family: var(--display); font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

.arc-grid {
  display: grid; gap: 30px 20px;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
}

.arc-card { display: flex; flex-direction: column; gap: 11px; }

/* plate = unified gallery ground; image keeps its own ratio, never cropped */
.arc-plate {
  position: relative;
  background: var(--plate);
  border-radius: 1px;
  padding: 9px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .35s;
}
.arc-card:hover .arc-plate {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -20px rgba(0,0,0,.65);
}
.arc-plate img {
  width: 100%; height: auto; display: block;
  object-fit: contain;
}
/* placeholder shown only when no image file exists yet */
.arc-ph { display: none; }
.arc-card.no-img .arc-plate {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, #E7DBC4 0 10px, #E1D4BA 10px 20px);
}
.arc-card.no-img .arc-ph {
  display: block; padding: 0 12px;
  font-family: var(--serif); font-size: 12.5px; line-height: 1.5; text-align: center;
  color: #6C6350;
}

.arc-cap { display: flex; flex-direction: column; gap: 3px; }
.ac-name {
  font-family: var(--serif); font-size: 13px; font-weight: 500; line-height: 1.45;
  color: var(--beige); letter-spacing: .01em;
}
.ac-meta {
  font-family: var(--display); font-size: 11px; letter-spacing: .1em; line-height: 1.5;
  color: var(--muted);
}
.ac-meta i { font-style: normal; color: var(--camel); letter-spacing: .14em; }

/* brand index — one elegant line per brand */
.arch-index { border-top: 1px solid rgba(194, 162, 118, .55); }
.ai {
  display: grid; grid-template-columns: 1fr 1.1fr auto; gap: clamp(14px, 3vw, 40px);
  align-items: baseline; padding: 20px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s;
}
.ai:hover { background: rgba(194, 162, 118, .05); }
.ai .an { font-family: var(--serif); font-size: 15.5px; font-weight: 500; color: var(--beige); }
.ai .an .en { font-family: var(--display); letter-spacing: .06em; }
.ai .ad { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.ai .ay { font-family: var(--display); font-size: 13.5px; letter-spacing: .12em; color: var(--camel); white-space: nowrap; }

/* ============================================================
   columnist
   ============================================================ */
.column-intro { display: grid; grid-template-columns: 1fr 380px; gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: 56px; }
.writing-quote {
  font-family: var(--serif); font-size: clamp(20px, 2.5vw, 26px); font-weight: 500; line-height: 1.85;
  color: var(--beige); margin-top: 26px;
}
.writing-quote span { color: var(--camel); }
.anchor-shot img { border-radius: 1px; box-shadow: 0 20px 50px -22px rgba(0,0,0,.6); }
.anchor-shot figcaption { font-size: 11px; color: var(--muted); margin-top: 12px; letter-spacing: .1em; }

.col-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid rgba(194, 162, 118, .55); padding-bottom: 14px; margin-bottom: 4px;
}
.col-head h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--beige); }
.col-head h3 small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .02em; }
.col-head .cnt { font-family: var(--display); font-size: 12.5px; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }

.col-list { columns: 2; column-gap: 60px; }
.col-item { break-inside: avoid; border-bottom: 1px solid var(--line-soft); }
.col-item a {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: baseline;
  padding: 14px 4px; transition: background .25s;
}
.col-item a:hover { background: rgba(194, 162, 118, .06); }
.col-item .no { font-family: var(--display); font-size: 12.5px; color: var(--camel); letter-spacing: .06em; }
.col-item .tt { font-size: 13px; font-weight: 550; line-height: 1.6; color: var(--beige); letter-spacing: .01em; }
.col-item .st { display: block; font-size: 11.5px; color: var(--muted); font-weight: 450; margin-top: 3px; line-height: 1.55; }

.writing-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.wx { border: 1px solid var(--line-soft); border-radius: 2px; background: var(--navy-2); padding: 30px 32px; }
.wx .k { font-family: var(--display); font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--camel); font-weight: 700; margin-bottom: 11px; }
.wx h4 { font-family: var(--serif); font-size: 15.5px; font-weight: 500; margin-bottom: 8px; line-height: 1.55; color: var(--beige); }
.wx p { font-size: 12.5px; color: var(--muted); }
.wx a { color: var(--camel); font-weight: 600; }

/* ============================================================
   press
   ============================================================ */
.press-list { display: grid; gap: 0; border-top: 1px solid rgba(194, 162, 118, .55); }
.press-item { border-bottom: 1px solid var(--line-soft); }
.press-item a {
  display: grid; grid-template-columns: 130px 1fr auto; gap: clamp(16px, 3vw, 40px);
  align-items: baseline; padding: 22px 4px; transition: background .25s;
}
.press-item a:hover { background: rgba(194, 162, 118, .06); }
.press-item .venue { font-size: 10.5px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.press-item .head { font-size: 13.5px; font-weight: 550; line-height: 1.6; color: var(--beige); letter-spacing: .01em; }
.press-item .head small { display: block; font-size: 12px; color: var(--muted); font-weight: 450; margin-top: 5px; max-width: 78ch; }
.press-item .arrow { color: var(--camel); font-size: 13px; }

/* ============================================================
   contact / footer
   ============================================================ */
.contact { padding-bottom: 64px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.contact .sec-title { max-width: 16ch; }
.contact-cred { font-size: 13px; color: var(--muted); margin-top: 24px; line-height: 1.9; max-width: 46ch; }
.contact-links { display: grid; gap: 0; border-top: 1px solid rgba(194, 162, 118, .55); }
.cl {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 18px 4px; border-bottom: 1px solid var(--line-soft);
  transition: background .25s;
}
.cl:hover { background: rgba(194, 162, 118, .06); }
.cl .k { font-family: var(--display); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.cl .v { font-size: 13.5px; font-weight: 600; color: var(--beige); letter-spacing: .01em; }

.site-foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-bar .fm { font-family: var(--display); font-weight: 700; letter-spacing: .2em; font-size: 14px; color: var(--beige); }
.foot-bar .fc { font-size: 12px; color: var(--muted); }

/* ============================================================
   responsive
   ============================================================ */
/* archive grid — desktop 5 · tablet 4/3 · mobile 2 */
@media (max-width: 1100px) { .arc-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .arc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  {
  .arc-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .arc-cat { margin-bottom: 54px; }
}

@media (max-width: 780px) {
  section { padding: 68px 0; }
  .nav-toggle { display: flex; order: 3; }
  .head-right {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 5vw 20px;
    background: var(--navy); border-bottom: 1px solid var(--line);
  }
  .site-head.open .head-right { display: flex; }
  .site-nav { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
  .lang-switch {
    padding-left: 0; border-left: 0; border-top: 1px solid var(--line);
    margin-top: 12px; padding-top: 16px; gap: 20px;
  }
  .lang-btn { font-size: 14px; }

  .hero { padding-top: 132px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 220px; }
  .hero-cred { font-size: 11px; letter-spacing: .08em; }

  .biz { grid-template-columns: 1fr; gap: 4px; }
  .biz .br { display: none; }

  .column-intro { grid-template-columns: 1fr; }
  .anchor-shot { max-width: 380px; }
  .col-list { columns: 1; }
  .writing-extra { grid-template-columns: 1fr; }

  .strip-track img { height: 150px; }
  .ai { grid-template-columns: 1fr auto; }
  .ai .ad { grid-column: 1 / -1; margin-top: -6px; }

  .press-item a { grid-template-columns: 1fr auto; }
  .press-item .venue { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
