/* ==========================================================================
   JANG YOUNG-HEA — Korean Culinary Master
   Ground: 한지(paper) · 먹(ink) · 인주(seal red) · 유기(brass) · 옻(lacquer)
   The palette is deliberately desaturated: the food supplies the colour.
   ========================================================================== */

:root {
  --hanji: #f4eee2;        /* 한지 — warm paper, quieted so dishes read louder */
  --hanji-deep: #ebe4d5;   /* alternating band */
  --hanji-card: #faf6ec;   /* raised surface */
  --meok: #241d15;         /* 먹 — warm ink */
  --meok-soft: #5b5044;    /* body copy */
  --injoo: #a72f26;        /* 인주 — seal vermilion */
  --injoo-deep: #8c251e;
  --ot: #241c14;           /* 옻칠 — used for the case study only */
  --brass: #a8834b;        /* 유기 — hairlines, hanja */
  --ssuk: #5f6f52;         /* 쑥 — live/in-progress */
  --paper-line: rgba(36, 29, 21, 0.15);

  --font-display: "Noto Serif KR", "Cormorant Garamond", serif;
  --font-body: "Cormorant Garamond", "Gowun Batang", serif;
  --font-ui: "Noto Sans KR", sans-serif;

  --w-page: 1180px;
  --gutter: max(28px, calc((100vw - 1180px) / 2));
  --ease-brush: cubic-bezier(0.22, 0.8, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--hanji);
  color: var(--meok);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 한지 fibre, barely there */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.11 0 0 0 0 0.07 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E");
}
main, header.topbar, footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(167, 47, 38, 0.9); color: var(--hanji); }

/* ---------- language ---------- */
html.lang-ko .en { display: none !important; }
html.lang-en .ko { display: none !important; }

/* ---------- shared ---------- */
.wrap { max-width: var(--w-page); margin: 0 auto; padding: 0 28px; }
section { padding: 104px 0; scroll-margin-top: 88px; }

.eyebrow {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--injoo);
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.eyebrow .hanja {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--brass);
  border: 1px solid rgba(168, 131, 75, 0.55); padding: 3px 9px 2px; border-radius: 2px;
}
.eyebrow::after {
  content: ""; height: 1px; width: 56px;
  background: linear-gradient(90deg, var(--injoo), transparent); opacity: 0.55;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.32; }
h2.section-title {
  font-size: clamp(29px, 3.8vw, 42px); letter-spacing: -0.01em;
  margin-bottom: 26px; text-wrap: balance;
}
.lede { font-size: clamp(17.5px, 1.9vw, 19.5px); color: var(--meok-soft); max-width: 62ch; }
.lede p + p { margin-top: 16px; }
.em { color: var(--meok); font-weight: 700; }
html.lang-ko h1, html.lang-ko h2, html.lang-ko h3,
html.lang-ko p, html.lang-ko li, html.lang-ko dt, html.lang-ko dd { word-break: keep-all; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 500; letter-spacing: 0.14em;
  padding: 15px 30px; border-radius: 2px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease-brush), box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--injoo); outline-offset: 3px;
}
.btn-seal { background: var(--injoo); color: #f9f2e2; box-shadow: 0 8px 22px -10px rgba(140, 37, 30, 0.7); }
.btn-seal:hover { background: var(--injoo-deep); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(36, 29, 21, 0.42); color: var(--meok); background: transparent; }
.btn-ghost:hover { border-color: var(--meok); transform: translateY(-2px); }
.btn-hanji { background: var(--hanji); color: var(--meok); box-shadow: 0 8px 22px -12px rgba(0,0,0,0.8); }
.btn-hanji:hover { transform: translateY(-2px); }

/* ---------- top bar ---------- */
header.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 238, 226, 0.93); backdrop-filter: blur(10px);
  border-bottom: 3px double var(--paper-line);
}
.topbar-inner {
  max-width: var(--w-page); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-seal { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: 18px; letter-spacing: 0.04em; line-height: 1.15;
}
html.lang-en .brand-name { font-size: 16px; letter-spacing: 0.08em; }
.brand-name small {
  display: block; font-family: var(--font-ui); font-weight: 500;
  font-size: 9.5px; letter-spacing: 0.24em; color: var(--meok-soft); margin-top: 2px;
}
nav.primary { display: flex; gap: 26px; }
nav.primary a {
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 500; letter-spacing: 0.05em;
  text-decoration: none; color: var(--meok-soft); padding: 6px 2px; position: relative;
  white-space: nowrap;
}
nav.primary a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--injoo); transition: right 0.3s var(--ease-brush);
}
nav.primary a:hover { color: var(--meok); }
nav.primary a:hover::after { right: 0; }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.btn-topbar { padding: 10px 18px; font-size: 12.5px; letter-spacing: 0.09em; white-space: nowrap; }
@media (max-width: 1100px) { .btn-topbar { display: none; } }

.lang-toggle {
  display: flex; border: 1px solid rgba(36, 29, 21, 0.32); border-radius: 2px;
  overflow: hidden; font-family: var(--font-ui);
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--meok-soft);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em;
  padding: 7px 13px; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button.active { background: var(--meok); color: var(--hanji); }

.menu-btn {
  display: none; border: 1px solid rgba(36, 29, 21, 0.32); background: transparent;
  border-radius: 2px; padding: 9px 11px; cursor: pointer; color: var(--meok);
}
.mobile-nav { display: none; border-top: 1px solid var(--paper-line); background: var(--hanji); }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 15px 28px; text-decoration: none;
  font-family: var(--font-ui); font-size: 15px; color: var(--meok);
  border-bottom: 1px solid rgba(36, 29, 21, 0.08);
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 92px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { position: relative; }

.hero-heading { display: flex; align-items: flex-start; gap: 30px; }
/* Korean vertical writing ends at the lower left, so the seal is stamped there */
html.lang-ko .hero-heading { flex-direction: row-reverse; justify-content: flex-end; align-items: flex-end; }

.v-head {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 4.9vw, 62px); line-height: 1.5; letter-spacing: 0.06em; margin: 0;
}
.v-head .line { display: block; white-space: nowrap; }
.v-head .accent { color: var(--injoo); }

.h-head { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.h-head .line { display: block; }
.h-head .accent { color: var(--injoo); font-style: italic; }

.hero-seal { margin-top: 10px; flex: 0 0 auto; }
.hero-sub { margin-top: 26px; font-size: clamp(17px, 1.9vw, 19.5px); color: var(--meok-soft); max-width: 48ch; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-foot {
  margin-top: 44px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-ui); font-size: 12.5px; letter-spacing: 0.05em; color: var(--meok-soft);
}
.hero-foot .dot { color: var(--brass); }

.hero-visual { position: relative; }
.hero-photo {
  width: min(430px, 100%); margin-left: auto;
  border-radius: 215px 215px 6px 6px;         /* 창호 arch */
  overflow: hidden; border: 6px solid var(--hanji-card);
  box-shadow: 0 30px 60px -30px rgba(36, 29, 21, 0.5); position: relative;
}
.hero-photo img { width: 100%; height: 560px; object-fit: cover; object-position: 50% 30%; }
.hero-inset {
  position: absolute; left: 0; bottom: -26px; width: 172px;
  transform: rotate(-4deg); border: 5px solid var(--hanji-card); border-radius: 4px;
  overflow: hidden; box-shadow: 0 22px 40px -20px rgba(36, 29, 21, 0.55); background: var(--hanji-card);
}

/* ---------- fact band (조각보) ---------- */
.jogakbo { padding: 0; }
.jogakbo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line);
}
.jogakbo-cell { padding: 36px 28px 32px; border-left: 1px solid var(--paper-line); }
.jogakbo-cell:first-child { border-left: 0; }
.jogakbo-cell:nth-child(1) { background: rgba(168, 131, 75, 0.09); }
.jogakbo-cell:nth-child(2) { background: rgba(167, 47, 38, 0.06); }
.jogakbo-cell:nth-child(3) { background: rgba(36, 29, 21, 0.045); }
.jogakbo-cell:nth-child(4) { background: rgba(95, 111, 82, 0.10); }
.jogakbo-cell strong {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(17px, 1.8vw, 21px); line-height: 1.35; margin-bottom: 8px;
}
.jogakbo-cell .desc {
  display: block; font-family: var(--font-ui); font-size: 12.5px;
  letter-spacing: 0.04em; color: var(--meok-soft);
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 64px; align-items: start; }
.about-visual-col { display: grid; gap: 26px; position: sticky; top: 108px; }
.about-visual img { border-radius: 4px; box-shadow: 0 22px 44px -26px rgba(36, 29, 21, 0.5); }
.about-visual figcaption {
  margin-top: 12px; font-family: var(--font-ui); font-size: 12.5px;
  letter-spacing: 0.05em; color: var(--meok-soft);
}

.pull-quote {
  margin: 34px 0 6px; padding: 26px 0 22px 30px;
  border-left: 3px solid var(--injoo);
}
.pull-quote blockquote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.3vw, 27px); line-height: 1.5; color: var(--meok);
}
.pull-quote figcaption {
  margin-top: 12px; font-family: var(--font-ui); font-size: 12.5px;
  letter-spacing: 0.08em; color: var(--meok-soft);
}

.about-points { margin-top: 32px; display: grid; gap: 18px; }
.about-points li { list-style: none; display: flex; gap: 16px; align-items: flex-start; font-size: 16.5px; color: var(--meok-soft); }
.about-points .mark {
  flex: 0 0 auto; width: 26px; height: 26px; margin-top: 4px; border-radius: 50%;
  background: var(--injoo); color: var(--hanji); font-family: var(--font-display);
  font-weight: 700; font-size: 13px; display: grid; place-items: center;
}

/* ---------- credentials ---------- */
.credentials {
  background: var(--hanji-deep);
  border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line);
}
/* multi-column so the groups flow on from each other; a 2-col grid would
   align them to shared rows and leave a gap under the shorter one */
.cred-cols { margin-top: 44px; columns: 2; column-gap: 56px; }
.cred-group { break-inside: avoid-column; }
.cred-group dl > div { break-inside: avoid; }
.cred-group h3 {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass);
  border-bottom: 1px solid rgba(168, 131, 75, 0.45); padding-bottom: 10px; margin: 26px 0 4px;
}
.cred-group dl > div {
  padding: 13px 0 12px; border-bottom: 1px dotted rgba(36, 29, 21, 0.18);
  display: grid; gap: 3px;
}
.cred-group dt { font-family: var(--font-ui); font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--meok); }
.cred-group dd { font-family: var(--font-ui); font-size: 12.5px; letter-spacing: 0.02em; color: var(--meok-soft); }
.cred-group dd a { color: var(--injoo); text-decoration: none; border-bottom: 1px solid rgba(167,47,38,0.35); }
.cred-group dd a:hover { border-color: var(--injoo); }

.cred-strip { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cred-strip figure { overflow: hidden; border-radius: 4px; background: var(--hanji-card); }
.cred-strip img { width: 100%; height: 210px; object-fit: cover; }
.cred-strip figcaption {
  padding: 10px 12px 12px; font-family: var(--font-ui); font-size: 11.5px;
  letter-spacing: 0.05em; color: var(--meok-soft);
}

/* ---------- services ---------- */
.services-head { max-width: 700px; margin-bottom: 54px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--hanji-card); border: 1px solid var(--paper-line); border-radius: 4px;
  padding: 30px 26px 28px; display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease-brush), box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -24px rgba(36, 29, 21, 0.4); }
.service-card .num {
  font-family: var(--font-display); font-weight: 900; font-size: 28px;
  color: var(--brass); line-height: 1; margin-bottom: 16px;
  transition: transform 0.4s var(--ease-brush), color 0.4s;
}
.service-card:hover .num { transform: translateY(-4px); color: var(--injoo); }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 15.5px; color: var(--meok-soft); }
.service-note { margin-top: 30px; font-family: var(--font-ui); font-size: 13.5px; color: var(--meok-soft); }

/* ==========================================================================
   PORTFOLIO — 두루마리. Each band is a scroll the reader unrolls sideways.
   ========================================================================== */
.work { padding-bottom: 96px; }
.strips { margin-top: 58px; display: grid; gap: 54px; }
/* grid items default to min-width:auto, which would let the track push the page
   wide instead of scrolling inside itself */
.strip { min-width: 0; }
.strip-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--paper-line); padding-bottom: 12px; margin-bottom: 20px;
}
.strip-head h3 { font-size: clamp(19px, 2.1vw, 24px); }
.strip-count {
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.2em; color: var(--brass); margin-left: auto;
}

.strip-track {
  display: flex; gap: 16px;
  padding: 6px var(--gutter) 18px;
  max-width: 100%;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(168,131,75,0.55) transparent;
}
.strip-track::-webkit-scrollbar { height: 6px; }
.strip-track::-webkit-scrollbar-track { background: rgba(36,29,21,0.06); border-radius: 3px; }
.strip-track::-webkit-scrollbar-thumb { background: rgba(168,131,75,0.55); border-radius: 3px; }

.tile {
  flex: 0 0 auto; width: 290px; scroll-snap-align: start;
  background: var(--hanji-card); border-radius: 4px; overflow: hidden;
  box-shadow: 0 14px 30px -22px rgba(36, 29, 21, 0.55);
  cursor: zoom-in; position: relative;
  transition: transform 0.4s var(--ease-brush), box-shadow 0.4s;
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -24px rgba(36, 29, 21, 0.55); }
.tile img { width: 100%; height: 310px; object-fit: cover; transition: transform 0.9s var(--ease-brush); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption {
  padding: 12px 14px 14px; font-family: var(--font-ui);
  font-size: 12.5px; letter-spacing: 0.03em; color: var(--meok-soft);
}
.tile:focus-visible { outline: 2px solid var(--injoo); outline-offset: 3px; }

/* Scroll-driven: tiles develop as they enter the strip horizontally.
   Progressive enhancement — without support the tiles simply sit there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile {
      animation: tileIn linear both;
      animation-timeline: view(inline);
      animation-range: entry 0% entry 70%;
    }
    @keyframes tileIn {
      from { opacity: 0.2; transform: scale(0.93) translateY(12px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ---------- case study (the only lacquer-dark section) ---------- */
.project {
  background: radial-gradient(1100px 460px at 85% -10%, rgba(168, 131, 75, 0.13), transparent 60%), var(--ot);
  color: #f0e7d6; border-top: 6px solid var(--injoo);
}
.project .eyebrow { color: #d8a79f; }
.project .eyebrow .hanja { color: var(--brass); border-color: rgba(168, 131, 75, 0.6); }
.project .eyebrow::after { background: linear-gradient(90deg, #d8a79f, transparent); }
.project h2, .project h3 { color: #f6eeda; }
.project .lede, .project p { color: rgba(240, 231, 214, 0.82); }
.project .em { color: #f6eeda; font-weight: 700; }
.project-copy p + p { margin-top: 18px; }

.project-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(95, 111, 82, 0.35); border: 1px solid rgba(148, 166, 130, 0.5);
  color: #d9e0cb; font-family: var(--font-ui); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.16em; padding: 8px 15px; border-radius: 2px; margin-bottom: 26px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #cfd8bd; position: relative; flex: 0 0 auto; }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(207, 216, 189, 0.8); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.project-head { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: start; }
.project-logo-card {
  background: #f0e7d6; border-radius: 4px; padding: 26px 26px 18px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); transform: rotate(1.4deg);
  max-width: 300px; margin-left: auto;
}
.project-logo-card img { width: 100%; mix-blend-mode: multiply; }
.project-logo-card figcaption {
  text-align: center; font-family: var(--font-ui); font-size: 11.5px;
  letter-spacing: 0.08em; color: var(--meok-soft) !important; padding-top: 10px;
}

.timeline { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 7px; left: 8px; right: 8px; height: 1px;
  background: linear-gradient(90deg, rgba(168, 131, 75, 0.7), rgba(168, 131, 75, 0.15));
}
.tl-step { position: relative; padding-top: 30px; }
.tl-step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px;
  border-radius: 50%; background: var(--ot); border: 2px solid var(--brass);
}
.tl-step.current::before { background: var(--injoo); border-color: #d8a79f; }
.tl-step h3 { font-size: 18px; margin-bottom: 8px; }
.tl-step p { font-size: 14.5px; line-height: 1.65; }
.tl-step .tl-tag {
  display: inline-block; margin-bottom: 10px; font-family: var(--font-ui);
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--brass);
}
.tl-step.current .tl-tag { color: #d8a79f; }

.project-gallery {
  margin-top: 70px; display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 210px; gap: 14px;
}
.pg-item { overflow: hidden; border-radius: 4px; position: relative; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-brush); }
.pg-item:hover img { transform: scale(1.045); }
.pg-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(20, 15, 10, 0.72));
  color: #f0e7d6 !important; font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.06em;
  transition: transform 0.45s var(--ease-brush);
}
.pg-item:hover .pg-cap { transform: translateY(-4px); }
.pg-a { grid-column: span 5; grid-row: span 2; }
.pg-b { grid-column: span 4; }
.pg-c { grid-column: span 3; }
.pg-d { grid-column: span 3; }
.pg-e { grid-column: span 4; }

.project-cta {
  margin-top: 70px; padding: 44px 48px;
  border: 1px solid rgba(168, 131, 75, 0.4); border-radius: 4px;
  background: rgba(240, 231, 214, 0.05);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.project-cta h3 { font-size: clamp(20px, 2.3vw, 26px); max-width: 30ch; }
.project-cta p { margin-top: 8px; font-size: 15.5px; max-width: 52ch; }

/* ---------- why ---------- */
.why { background: var(--hanji-deep); border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; }
.why-item { padding: 30px 28px; border-left: 1px solid var(--paper-line); border-top: 1px solid var(--paper-line); }
.why-item:nth-child(-n+2) { border-top: 0; }
.why-item:nth-child(odd) { border-left: 0; }
.why-item .glyph {
  width: 44px; height: 44px; border-radius: 50%; background: var(--meok); color: var(--hanji);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  display: grid; place-items: center; margin-bottom: 18px;
  transition: transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.why-item:hover .glyph { transform: rotate(-8deg) scale(1.08); }
.why-item:nth-child(2) .glyph { background: var(--injoo); }
.why-item:nth-child(3) .glyph { background: var(--ssuk); }
.why-item:nth-child(4) .glyph { background: var(--brass); }
.why-item h3 { font-size: 19px; margin-bottom: 8px; }
.why-item p { font-size: 15.5px; color: var(--meok-soft); }

/* ---------- contact ---------- */
.contact { background: var(--hanji); border-top: 1px solid var(--paper-line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-grid > * { min-width: 0; }   /* grid items default to min-width:auto */
.contact-line { margin: 34px 0 0; display: grid; gap: 20px; }
.contact-line dt {
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 5px;
}
.contact-line dd { margin: 0; }
.contact-line a.big {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.1vw, 23px);
  text-decoration: none; border-bottom: 2px solid rgba(167, 47, 38, 0.4);
  transition: border-color 0.2s, color 0.2s;
}
.contact-line a.big:hover { color: var(--injoo); border-color: var(--injoo); }
/* social buttons — outlined so they read as controls without competing
   with the vermilion primary action */
.social-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 2px;
  border: 1px solid rgba(36, 29, 21, 0.34);
  font-family: var(--font-ui); font-size: 13.5px; letter-spacing: 0.06em;
  color: var(--meok); text-decoration: none; background: transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-brush);
}
.social-btn svg { flex: 0 0 auto; }
.social-btn:hover {
  background: var(--injoo); border-color: var(--injoo); color: #f9f2e2;
  transform: translateY(-2px);
}

.contact-seal { margin-top: 46px; opacity: 0.9; }

form.inquiry { background: var(--hanji-card); border: 1px solid var(--paper-line); border-radius: 4px; padding: 38px 36px 36px; }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--meok-soft); margin-bottom: 9px;
}
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid rgba(36, 29, 21, 0.28); border-radius: 2px;
  background: var(--hanji); color: var(--meok); font-family: var(--font-body);
  font-size: 16.5px; padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--injoo); box-shadow: 0 0 0 3px rgba(167, 47, 38, 0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
form .btn { width: 100%; justify-content: center; }
.form-note { margin-top: 16px; font-family: var(--font-ui); font-size: 12.5px; color: var(--meok-soft); text-align: center; }

/* ---------- footer ---------- */
footer { background: var(--meok); color: rgba(244, 238, 226, 0.78); padding: 56px 0 40px; }
.footer-inner {
  max-width: var(--w-page); margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-name { color: var(--hanji); }
.footer-brand .brand-name small { color: rgba(244, 238, 226, 0.55); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.05em; color: rgba(244,238,226,0.66); text-decoration: none; }
footer nav a:hover { color: var(--hanji); }
/* studio credit — deliberately the quietest thing in the footer */
.studio-credit { color: rgba(244, 238, 226, 0.34); letter-spacing: 0.08em; }
.studio-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.studio-credit a:hover { color: rgba(244, 238, 226, 0.82); border-bottom-color: rgba(244, 238, 226, 0.45); }

.footer-legal {
  max-width: var(--w-page); margin: 34px auto 0; padding: 22px 28px 0;
  border-top: 1px solid rgba(244, 238, 226, 0.16);
  font-family: var(--font-ui); font-size: 12.5px; letter-spacing: 0.04em;
  color: rgba(244, 238, 226, 0.5);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 17, 12, 0.94);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  padding: 24px; gap: 8px;
}
.lightbox[hidden] { display: none; }
.lb-figure { grid-column: 2; display: grid; place-items: center; gap: 14px; max-height: 92vh; }
.lb-figure img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: 3px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9);
}
.lb-figure figcaption {
  font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.06em;
  color: rgba(244, 238, 226, 0.85); text-align: center;
}
.lb-close, .lb-nav {
  background: transparent; border: 1px solid rgba(244,238,226,0.28); color: rgba(244,238,226,0.9);
  border-radius: 3px; cursor: pointer; font-family: var(--font-ui);
  transition: background 0.2s, border-color 0.2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(244,238,226,0.12); border-color: rgba(244,238,226,0.6); }
.lb-close { position: absolute; top: 20px; right: 22px; width: 42px; height: 42px; font-size: 24px; line-height: 1; }
.lb-nav { width: 52px; height: 78px; font-size: 30px; line-height: 1; }
.lb-prev { grid-column: 1; justify-self: start; }
.lb-next { grid-column: 3; justify-self: end; }
body.lb-open { overflow: hidden; }

/* ==========================================================================
   MOTION — 붓질(brush) · 낙관(seal) · 먹 번짐(ink bloom) · 상 차리기
   Every hidden-until-revealed state is scoped to html.motion, which JS adds
   only when it can drive the reveals. Without JS the page renders in full.
   ========================================================================== */
html.motion .reveal {
  opacity: 0; transform: translateY(18px); filter: blur(7px);
  transition: opacity 1s var(--ease-brush), transform 1s var(--ease-brush), filter 1.1s var(--ease-brush);
}
html.motion .reveal.in { opacity: 1; transform: none; filter: blur(0); }
html.motion .reveal-d1 { transition-delay: 0.1s; }
html.motion .reveal-d2 { transition-delay: 0.2s; }
html.motion .reveal-d3 { transition-delay: 0.3s; }

.brush-word { white-space: nowrap; }
.brush-char { display: inline-block; }
html.motion .brush-char {
  clip-path: inset(0 0 100% 0); opacity: 0; filter: blur(10px);
  transition: clip-path 0.62s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.34s ease-out, filter 0.5s ease-out;
}
html.motion .h-head .brush-char { clip-path: inset(0 100% 0 0); }
html.motion .brush-char.inked { clip-path: inset(0 0 0 0); opacity: 1; filter: blur(0); }

.seal-wrap { position: relative; display: inline-block; line-height: 0; flex: 0 0 auto; }
.seal-ink {
  position: absolute; inset: 6%; border-radius: 12px; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(167, 47, 38, 0.5), transparent 68%);
}
.seal-ink.go { animation: sealInk 0.95s ease-out 0.16s forwards; }
@keyframes sealInk { 0% { opacity: 0.85; transform: scale(0.5); } 100% { opacity: 0; transform: scale(2.1); } }
.stamp-ready { opacity: 0; }
.stamp-go { animation: stamp 0.72s cubic-bezier(0.2, 1.5, 0.4, 1) forwards; }
@keyframes stamp {
  0%   { opacity: 0; transform: scale(1.75) rotate(-14deg); filter: blur(5px); }
  55%  { opacity: 1; transform: scale(0.93) rotate(2deg); filter: blur(0); }
  78%  { transform: scale(1.04) rotate(-1.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

html.motion .piece {
  opacity: 0; transform: scale(0.9); transform-origin: var(--po, 50% 50%);
  transition: opacity 0.7s var(--ease-brush), transform 0.8s cubic-bezier(0.2, 1.1, 0.35, 1);
}
html.motion .piece.in { opacity: 1; transform: scale(1); }

.bleed { overflow: hidden; }
html.motion .bleed img {
  clip-path: inset(0 0 100% 0); transform: scale(1.09);
  transition: clip-path 1.15s var(--ease-brush), transform 1.5s var(--ease-brush);
}
html.motion .bleed.in img { clip-path: inset(0 0 0 0); transform: scale(1); }

html.motion .timeline::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.5s var(--ease-brush); }
html.motion .timeline.in::before { transform: scaleX(1); }
html.motion .tl-step::before { transform: scale(0); transition: transform 0.55s cubic-bezier(0.2, 1.5, 0.4, 1); }
html.motion .timeline.in .tl-step:nth-child(1)::before { transition-delay: 0.30s; transform: scale(1); }
html.motion .timeline.in .tl-step:nth-child(2)::before { transition-delay: 0.62s; transform: scale(1); }
html.motion .timeline.in .tl-step:nth-child(3)::before { transition-delay: 0.94s; transform: scale(1); }
html.motion .timeline.in .tl-step:nth-child(4)::before { transition-delay: 1.26s; transform: scale(1); }
html.motion .timeline.in .tl-step.current::before { animation: liveDot 2.6s ease-in-out 1.9s infinite; }
@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 167, 159, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(216, 167, 159, 0); }
}

/* header condenses past the hero + reading thread */
.topbar { transition: box-shadow 0.35s, background 0.35s; }
.topbar-inner { transition: padding 0.35s var(--ease-brush); }
.topbar.condensed .topbar-inner { padding-top: 8px; padding-bottom: 8px; }
.topbar.condensed { box-shadow: 0 10px 30px -22px rgba(36, 29, 21, 0.9); }
.topbar.condensed .brand-seal { width: 32px; height: 32px; }
.topbar.condensed .brand-name small { opacity: 0; height: 0; overflow: hidden; }
.brand-seal, .brand-name small { transition: width 0.35s var(--ease-brush), height 0.35s var(--ease-brush), opacity 0.25s; }
.progress {
  position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: var(--injoo); transform: scaleX(0); transform-origin: left center; opacity: 0.85;
}
.hero-photo, .hero-inset { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.motion .reveal, html.motion .piece, .reveal, .piece { opacity: 1; transform: none; filter: none; transition: none; }
  html.motion .brush-char, .brush-char { opacity: 1; clip-path: none; filter: none; transition: none; }
  html.motion .bleed img, .bleed img { clip-path: none; transform: none; transition: none; }
  html.motion .timeline::before, html.motion .timeline.in::before, .timeline::before { transform: scaleX(1); transition: none; }
  html.motion .tl-step::before, .tl-step::before { transform: scale(1) !important; transition: none; animation: none !important; }
  .stamp-ready, .stamp-go { opacity: 1 !important; animation: none !important; transform: none !important; }
  .seal-ink, .progress { display: none; }
  .pulse::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .about-grid, .why-grid, .contact-grid, .project-head { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-photo { margin: 0 auto; }
  .about-visual-col { position: static; grid-template-columns: 1fr 1fr; }
  .cred-cols { columns: 1; }
  .cred-strip { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 38px 30px; }
  .timeline::before { display: none; }
  .project-gallery { grid-auto-rows: 180px; }
  .pg-a { grid-column: span 12; grid-row: span 2; }
  .pg-b, .pg-c, .pg-d, .pg-e { grid-column: span 6; }
  .project-logo-card { margin: 0 auto; }
}

@media (max-width: 780px) {
  nav.primary { display: none; }
  .menu-btn { display: block; }
  .topbar-inner { gap: 10px; padding-left: 18px; padding-right: 18px; }
  .lang-toggle button { padding: 7px 9px; font-size: 11.5px; letter-spacing: 0.04em; }
  .brand-seal { width: 34px; height: 34px; }
  .brand-name { font-size: 16px; }
  html.lang-en .brand-name { font-size: 13px; }
  .brand-name small { font-size: 8.5px; letter-spacing: 0.16em; }
  section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .hero-heading { gap: 18px; }
  .v-head { font-size: clamp(34px, 9vw, 50px); }
  .hero-photo img { height: 440px; }
  .hero-inset { width: 132px; }
  .eyebrow { flex-wrap: wrap; }
  .eyebrow::after { display: none; }
  .jogakbo-grid { grid-template-columns: 1fr 1fr; }
  .jogakbo-cell { border-top: 1px solid var(--paper-line); }
  .jogakbo-cell:nth-child(-n+2) { border-top: 0; }
  .jogakbo-cell:nth-child(odd) { border-left: 0; }
  .about-visual-col { grid-template-columns: 1fr; }
  .cred-strip { grid-template-columns: 1fr; }
  .cred-strip img { height: 240px; }
  .service-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .why-item { border-left: 0 !important; }
  .why-item:nth-child(2) { border-top: 1px solid var(--paper-line); }
  .timeline { grid-template-columns: 1fr; }
  .project-cta { padding: 32px 26px; }
  form.inquiry { padding: 28px 22px; }
  .tile { width: 232px; }
  .tile img { height: 250px; }
  .lightbox { grid-template-columns: 1fr; padding: 16px; }
  .lb-figure { grid-column: 1; }
  .lb-nav { position: absolute; bottom: 22px; width: 60px; height: 48px; }
  .lb-prev { left: 22px; } .lb-next { right: 22px; }
}

@media (max-width: 460px) {
  /* the header has no room for the qualifier line at this width */
  .brand-name small { display: none; }
  .v-head { font-size: clamp(30px, 8.5vw, 44px); }
  .hero-inset { width: 112px; }
}
