/* Shared typography: Korean words stay intact; only long unbroken tokens may wrap. */
:root {
  --type-hero: clamp(2.5rem, 4.4vw, 4.6rem);
  --type-page: clamp(2.25rem, 4.2vw, 4.5rem);
  --type-section: clamp(1.75rem, 3vw, 3rem);
  --type-card: clamp(1.15rem, 1.55vw, 1.55rem);
  --type-body: clamp(.95rem, 1.05vw, 1.075rem);
  --type-quote: clamp(1.5rem, 2.55vw, 2.6rem);
  --layout-gap: clamp(1.5rem, 3.5vw, 4rem);
}
html { word-break: keep-all; overflow-wrap: break-word; }
body { line-break: strict; font-size: var(--type-body); line-height: 1.75; }
h1,h2,h3,h4,.quote,.case-title {
  word-break: keep-all; overflow-wrap: normal; hyphens: none;
  text-wrap: balance;
}
h1 { font-size: var(--type-page); line-height: 1.3; letter-spacing: -.035em; }
.hero h1 { font-size: var(--type-hero); }
h2,.philosophy-lines h2 { font-size: var(--type-section); line-height: 1.4; letter-spacing: -.025em; }
h3,.card h3,.living-case h3 { font-size: var(--type-card); line-height: 1.45; letter-spacing: -.015em; }
p { text-wrap: pretty; }
.quote { font-size: var(--type-quote); line-height: 1.55; letter-spacing: -.02em; }
.title-phrase { display: inline-block; max-width: 100%; vertical-align: top; }
.semantic-line { display: block; }
.unbroken { white-space: nowrap; }
.eyebrow { font-size: .75rem; letter-spacing: .11em; line-height: 1.6; text-wrap: pretty; }
.tags,small,.status { line-height: 1.65; }
.tags { font-size: .78rem; }
.card p { font-size: .9rem; line-height: 1.7; }
.card h3 { margin-bottom: .5rem; }
.case-title,.living-case.home-case .case-title { font-size: clamp(1.4rem,2.2vw,2rem); line-height: 1.5; }
.living-case.home-case h3 { font-size: .9375rem; letter-spacing: 0; line-height: 1.6; }
.hero,.split { gap: var(--layout-gap); grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
.hero { grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); }
.hero > div,.split > *, .cards > *, .grid3 > *, .living-grid > *, .advisor-grid > *,
.origin-photo-story > *, .card > *, .week > *, .life-curve li { min-width: 0; }
.page-head h1 { max-width: 1160px; }
.hero > div:first-child { max-width: 800px; }
.split h2 { max-width: 24ch; }
.cards { grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(1rem,1.8vw,1.75rem); }
.grid3 { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--layout-gap); }
.advisor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--layout-gap); }
.advisor-grid .card { grid-template-columns: minmax(90px,30%) minmax(0,1fr); gap: 1.25rem; }
.origin-photo-story { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: var(--layout-gap); }
.origin-story h2 { font-size: clamp(1.5rem,2.15vw,2.1rem); line-height: 1.45; letter-spacing: -.02em; }
.origin-story p { font-size: var(--type-body); }
.group-photo figcaption { font-size: .78rem; line-height: 1.7; flex-wrap: wrap; }
.strip { gap: clamp(1rem,2vw,3rem); flex-wrap: wrap; }
.strip > div { min-width: 0; }
.strip span { display: block; margin: .3rem 0 0; line-height: 1.5; }
.strip strong { font-size: clamp(1.8rem,3vw,2.4rem); }
.button,.external-link,button { font-size: .875rem; line-height: 1.5; min-height: 44px; max-width: 100%; }
.button { padding: .8rem 1.15rem; word-break: keep-all; overflow-wrap: normal; text-wrap: pretty; }
.external-link { overflow-wrap: normal; align-items: center; }
.external-link span { flex-shrink: 0; }
.actions { gap: .75rem; }
nav { gap: clamp(.75rem,1.8vw,1.75rem); }
nav a,#menu { white-space: nowrap; }
summary { font-size: clamp(1.1rem,1.65vw,1.4rem); line-height: 1.6; text-wrap: pretty; }
summary small { font-size: .85em; }
.week { grid-template-columns: 60px minmax(110px,.45fr) minmax(0,1fr); gap: 1.25rem; }
.week a { font-size: .95rem; }
.life-curve li b { font-size: .83rem; line-height: 1.5; display: block; }
.life-curve li p { font-size: .95rem; }
.count { font-size: clamp(3rem,7vw,6.25rem); }
footer { font-size: .9rem; }
footer small { font-size: .78rem; line-height: 1.7; }
/* Genuine long machine-readable tokens may break; Korean labels do not. */
textarea,input,code,.url,.email { overflow-wrap: anywhere; }
@media (max-width:1279px) {
  .cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width:761px) and (max-width:1000px) {
  .hero h1 { font-size: clamp(2.15rem,4.4vw,2.75rem); }
  .split h2 { font-size: clamp(1.65rem,3.05vw,2.1rem); }
  .grid3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .advisor-grid { grid-template-columns: 1fr; }
  .advisor-grid .card { grid-template-columns: 150px minmax(0,1fr); }
}
@media (max-width:900px) {
  .origin-photo-story { grid-template-columns: 1fr; }
  header { flex-wrap: wrap; }
  #menu { display: block; padding: 6px 12px; }
  nav { display: none; width: 100%; padding-top: 25px; flex-direction: column; align-items: flex-start; }
  nav.open { display: flex; }
}
@media (max-width:760px) {
  :root {
    --type-hero: clamp(1.45rem,7.4vw,2.75rem);
    --type-page: clamp(1.8rem,7.3vw,3rem);
    --type-section: clamp(1.4rem,6.1vw,2.2rem);
    --type-quote: clamp(1.35rem,5.6vw,2rem);
  }
  .hero,.split,.advisor-grid { grid-template-columns: minmax(0,1fr); }
  .hero h1 { line-height: 1.35; }
  .hero h1 .title-phrase { white-space: nowrap; }
  .hero,.page-head { padding-top: 3rem; }
  .hero-art { min-height: 250px; }
  .hero-art span { bottom: 16px; line-height: 1.7; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid3,.flow,.living-grid { grid-template-columns: minmax(0,1fr); }
  .advisor-grid .card { grid-template-columns: minmax(80px,28%) minmax(0,1fr); }
  .life-curve ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .life-curve li { padding: 1rem; }
  .week { grid-template-columns: 38px minmax(0,1fr); gap: .75rem; }
  .week > div:last-child { grid-column: 2; }
  .week.workshop { padding: 1rem; }
  .button { padding-inline: 1rem; }
  .strip span { font-size: .7rem; }
  .philosophy-lines h2 { font-size: var(--type-section); }
  .note { padding: 1.25rem; }
  .empty { padding: 1.5rem; }
  .page-opening { margin-top: 2rem; }
}
@media (max-width:430px) {
  .cards { grid-template-columns: minmax(0,1fr); }
  .cards .portrait { max-height: 320px; }
  .card h3 { font-size: 1.2rem; }
  .life-curve ol { grid-template-columns: minmax(0,1fr); }
  .life-curve li { transform: none; }
  .button.external-link { font-size: .8rem; padding-inline: .75rem; }
}
