/* Site typography requested by the owner. Color and the existing page layout stay intact. */
:root {
  --serif: "Gowun Batang", "Noto Serif KR", serif;
  --sans: "Manrope", Arial, sans-serif;
  --brush: "Nanum Brush Script", "Gowun Batang", serif;
}

* { font-family: inherit !important; }
body { font-family: var(--serif) !important; font-size: 16px; }
h1, h2, h3, h4, .brand-name, .footer-brand,
.pedigree-view-header h3, .generation-heading h4,
.pedigree-card-name, .surname-card-copy strong, .pedigree-empty strong {
  font-family: var(--brush) !important;
}
.hero h1 { font-size: clamp(48px, 5vw, 72px); line-height: 1.42; letter-spacing: -.025em; }
.hero h1 em, h1 em, h2 em, h3 em { font-family: var(--brush) !important; }
.hero-description, .intro-body, .muted-copy, .philosophy-copy p,
.care-intro, .care-guide p, .care-guide li, .contact-section>p:not(.eyebrow),
.pedigree-morph, .pedigree-traits, .pedigree-details dl {
  font-family: var(--serif) !important;
}
.hero-description { font-size: 16px; line-height: 2.05; }
.eyebrow, .brand-name span, .footer-brand span, .hero-caption, .scroll-cue,
.card-meta small, .image-number, .site-footer small, .top-link,
.pedigree-code, .pedigree-tools, .pedigree-tools button,
.surname-card-index, .surname-card-copy small, .surname-card-mark,
.surname-card-arrow, .generation-heading>span:last-child,
.pedigree-sex, .guide-number {
  font-family: var(--sans) !important;
}
.eyebrow { font-size: 11px; }
.section-index { font-family: var(--sans) !important; font-size: 10px; }
.section-index:first-letter { font-family: var(--brush) !important; }
.nav-links a, .brand-name, .footer-brand, .text-link, .contact-button,
.care-list>a strong, .pedigree-tabs button {
  font-family: var(--serif) !important;
}
.brand-name { font-size: 20px; }
.brand-name span, .footer-brand span { font-size: 10px; letter-spacing: .12em; }
.nav-links a { font-size: 14px; }
.text-link, .contact-button { font-size: 14px; }
.hero h1, .intro h2, .gecko-heading h2, .philosophy h2,
.care-section h2, .contact-section h2, .lineage-heading h2 {
  font-family: var(--brush) !important;
  line-height: 1.45;
  letter-spacing: -.025em;
}
.pedigree-view-header h3, .generation-heading h4, .pedigree-card-name,
.surname-card-copy strong, .pedigree-empty strong { line-height: 1.3; }
.pedigree-code, .pedigree-sex { font-size: 10px; }
.pedigree-card-name { font-size: 24px; }
.generation-heading h4 { font-size: 26px; }
.lineage-heading h2 { font-size: clamp(36px, 4vw, 52px); }
.hero-description, .intro-body, .muted-copy, .philosophy-copy p,
.care-guide p, .care-guide li, .care-intro { line-height: 1.9; }

@media (max-width: 800px) {
  .hero h1 { font-size: clamp(42px, 8vw, 58px); line-height: 1.4; }
  .hero-description { font-size: 15px; line-height: 1.9; }
  .nav-links a { font-size: 16px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: clamp(34px, 9.3vw, 39px); line-height: 1.5; }
  .hero-description { font-size: 14px; line-height: 1.9; }
  .brand-name { font-size: 18px; }
  .brand-name span { font-size: 9px; }
  .lineage-heading h2 { font-size: 33px; }
}

/* Data-driven family tree and replaceable media slots. */
.intro-photo {
  position: absolute; right: 8%; top: 22%; width: 230px; height: 175px;
  object-fit: cover; opacity: .12; filter: grayscale(1); pointer-events: none; z-index: 0;
}
.intro-photo[hidden], .cms-image-gallery[hidden] { display: none; }
.lineage-section { padding: 100px 0 115px; background: #e9e9e6; }
.lineage-wrap { padding: 0 7.5%; }
.lineage-wrap>.section-index { margin-bottom: 52px; }
.lineage-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.lineage-heading h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1.5; font-weight: 400; letter-spacing: -.045em; margin: 0; }
.lineage-heading>p { font-size: 14px; line-height: 2; color: #666660; }
.pedigree-data-tabs { display: flex; gap: 9px; margin: 28px 0 13px; }
.pedigree-data-tabs button, .pedigree-close { border: 1px solid #6d6d66; background: transparent; color: #252525; padding: 10px 17px; font: 14px var(--serif); cursor: pointer; }
.pedigree-data-tabs button[aria-selected="true"] { background: #252525; color: #f7f7f4; }
.pedigree-source-note, .pedigree-hint { font-size: 12px; line-height: 1.8; color: #666660; }
.surname-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.surname-card { display: grid; grid-template-columns: 36px 1fr auto 20px; gap: 12px; align-items: center; text-align: left; padding: 18px; background: #f7f7f4; border: 1px solid #cecec9; color: #171717; cursor: pointer; transition: border-color .2s, transform .2s; }
.surname-card:hover, .surname-card.is-selected { border-color: #333; transform: translateY(-2px); }
.surname-card-index, .surname-card-mark, .surname-card-arrow { font: 12px var(--sans); color: #6c6c65; }
.surname-card-copy strong { font: 400 23px var(--brush); display: block; }
.surname-card-copy small { font: 11px var(--sans); color: #777; display: block; margin-top: 5px; }
.surname-card-mark { border: 1px solid #bbb; padding: 3px 6px; }
.pedigree-empty { background: #f7f7f4; border: 1px solid #cecec9; padding: 30px; margin-top: 12px; }
.pedigree-empty strong { font: 400 24px var(--brush); }
.pedigree-empty p { font-size: 14px; line-height: 1.8; color: #666; }
.show-samples { border: 1px solid #222; background: #222; color: #fff; padding: 10px 14px; cursor: pointer; }
.pedigree-view { margin-top: 42px; padding: 26px; background: #f7f7f4; border: 1px solid #cecec9; }
.pedigree-view[hidden] { display: none; }
.pedigree-view-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pedigree-view-header .eyebrow { font: 11px var(--sans); letter-spacing: .08em; color: #62625b; margin-bottom: 7px; }
.pedigree-view-header h3 { font: 400 34px var(--brush); margin: 0; }
.pedigree-close { padding: 9px 13px; white-space: nowrap; }
.pedigree-tools { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 10px; font: 13px var(--sans); }
.pedigree-tools>div { display: flex; align-items: center; gap: 5px; }
.pedigree-tools button { min-width: 37px; height: 35px; border: 1px solid #aaa; background: #fff; font: 15px var(--sans); cursor: pointer; }
.pedigree-tools button:nth-child(2) { min-width: 55px; font-size: 11px; }
.pedigree-viewport { overflow: auto; max-width: 100%; border: 1px solid #d6d5cf; background: #f1f0eb; overscroll-behavior-inline: contain; scrollbar-color: #686861 #deddd8; }
.pedigree-canvas { position: relative; zoom: 1; width: max-content; min-width: 100%; padding: 26px 26px 32px; }
.pedigree-connectors { position: absolute; inset: 0; z-index: 0; overflow: visible; pointer-events: none; }
.pedigree-connection { fill: none; stroke: #4b4438; stroke-width: 1.6; opacity: .8; }
.pedigree-generations { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 28px; width: max-content; min-width: 1120px; }
.generation-row { width: max-content; min-width: 1120px; position: relative; }
.generation-heading { display: flex; align-items: baseline; gap: 12px; width: max-content; margin: 0 auto 13px; padding: 0 2px 8px; border-bottom: 1px solid #aaa9a2; }
.generation-hanja { font: 14px var(--serif); color: #74736c; }
.generation-heading h4 { font: 400 25px var(--brush); margin: 0; }
.generation-heading>span:last-child { font: 10px var(--sans); color: #777; }
.generation-members { display: flex; justify-content: center; align-items: flex-start; gap: 17px; min-height: 212px; }
.generation-empty { color: #888; font-size: 13px; }
.pedigree-node { width: 218px; flex: 0 0 218px; background: #fff; border: 1px solid #c8c6bd; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.pedigree-card { width: 100%; display: block; padding: 0; border: 0; background: #fff; color: #171717; text-align: left; cursor: pointer; }
.pedigree-photo-wrap { height: 120px; display: block; position: relative; background: #ddd; overflow: hidden; }
.pedigree-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 48%; filter: grayscale(1); }
.pedigree-photo-wrap>small { position: absolute; right: 7px; bottom: 7px; background: rgba(15,15,15,.78); color: #fff; padding: 3px 6px; font: 10px var(--sans); }
.pedigree-photo-wrap>small:empty { display: none; }
.pedigree-card-body { display: block; padding: 11px 12px 13px; }
.pedigree-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pedigree-sex { font: 11px var(--serif); color: #666; }
.pedigree-code { font: 9px var(--sans); color: #777; overflow-wrap: anywhere; }
.pedigree-card-name { font: 400 24px var(--brush); display: block; margin: 7px 0 3px; line-height: 1.2; }
.pedigree-morph, .pedigree-traits { font: 12px var(--serif); display: block; line-height: 1.6; color: #4f4f49; }
.pedigree-traits { font-size: 11px; color: #777; }
.pedigree-details { border-top: 1px solid #e0dfd9; padding: 10px 12px 12px; }
.pedigree-details[hidden] { display: none; }
.pedigree-details dl { display: grid; grid-template-columns: 67px 1fr; gap: 6px 8px; margin: 0; font-size: 11px; line-height: 1.6; }
.pedigree-details dt { color: #777; }
.pedigree-details dd { margin: 0; overflow-wrap: anywhere; }
.pedigree-hint { margin: 12px 0 0; }
.cms-image-gallery:not([hidden]) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.cms-image-gallery figure { margin: 0; background: #f4f4f0; }
.cms-image-gallery img { display: block; width: 100%; height: 220px; object-fit: cover; filter: grayscale(1); }
.cms-image-gallery figcaption { font: 14px var(--serif); padding: 10px 12px; }
.store-gallery-section .cms-image-gallery { padding: 25px 7.5%; }
.care-image-gallery img { height: 190px; }

@media (max-width: 800px) {
  .intro-photo { right: 5%; top: 15%; width: 180px; height: 145px; }
  .lineage-section { padding: 80px 0; }
  .lineage-wrap { padding: 0 7%; }
  .lineage-wrap>.section-index { margin-bottom: 35px; }
  .lineage-heading { display: block; }
  .lineage-heading h2 { font-size: clamp(34px, 7vw, 44px); }
  .lineage-heading>p { margin-top: 18px; }
  .surname-list { grid-template-columns: 1fr; }
  .pedigree-view { padding: 17px; }
  .pedigree-view-header h3 { font-size: 29px; }
  .pedigree-generations, .generation-row { min-width: 1020px; }
  .pedigree-canvas { padding: 21px 15px 28px; }
  .generation-members { gap: 12px; }
  .cms-image-gallery:not([hidden]) { grid-template-columns: repeat(2, 1fr); }
  .cms-image-gallery img { height: 180px; }
  .hero h1 { font-size: clamp(42px, 8vw, 58px); line-height: 1.4; }
  .hero-description { font-size: 15px; line-height: 1.9; }
  .nav-links a { font-size: 16px; }
}
@media (max-width: 430px) {
  .lineage-heading h2 { font-size: 33px; }
  .pedigree-data-tabs button { flex: 1; padding: 10px 8px; font-size: 13px; }
  .surname-card { grid-template-columns: 28px 1fr auto 16px; padding: 15px 12px; }
  .surname-card-copy strong { font-size: 21px; }
  .pedigree-view { margin-top: 30px; padding: 13px; }
  .pedigree-view-header { align-items: flex-start; }
  .pedigree-view-header h3 { font-size: 25px; }
  .pedigree-close { font-size: 12px; padding: 8px; }
  .pedigree-tools { font-size: 12px; }
  .pedigree-generations, .generation-row { min-width: 940px; }
  .generation-members { gap: 10px; }
  .pedigree-node { width: 195px; flex-basis: 195px; }
  .pedigree-photo-wrap { height: 105px; }
  .cms-image-gallery:not([hidden]) { grid-template-columns: 1fr; }
  .cms-image-gallery img { height: 210px; }
  .store-gallery-section .cms-image-gallery { padding: 18px 7%; }
  .hero h1 { font-size: clamp(34px, 9.3vw, 39px); line-height: 1.5; }
  .hero-description { font-size: 14px; line-height: 1.9; }
  .brand-name { font-size: 18px; }
  .brand-name span { font-size: 9px; }
}

/* ABOUT brand story: wider columns and word-safe Korean wrapping. */
#about.section-wrap {
  max-width: 1400px;
  padding: 145px clamp(34px, 5.5vw, 78px) 115px;
  grid-template-columns: minmax(145px, .65fr) minmax(420px, 1.65fr) minmax(330px, 1.3fr);
  column-gap: clamp(24px, 3vw, 42px);
  row-gap: 0;
}
#about .section-index { align-self: start; padding-top: 8px; grid-row: 1; }
#about .intro-main { min-width: 0; }
#about .intro-main h2 {
  max-width: 620px; font-size: clamp(48px, 4.6vw, 66px); line-height: 1.48;
  letter-spacing: -.02em; word-break: keep-all; overflow-wrap: normal; line-break: strict;
}
#about .intro-body {
  grid-column: 3; align-self: center; max-width: 430px; margin: 28px 0 0;
  font-size: 16px; line-height: 2.1; word-break: keep-all; overflow-wrap: normal; line-break: strict;
}
#about .brand-extra { grid-column: 1 / -1; min-width: 0; margin-top: 52px; }
.brand-principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 30px;
  padding: 30px 0 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.brand-principles>.eyebrow { grid-column: 1 / -1; margin: 0; }
.brand-principles article { border-left: 1px solid var(--line); padding: 2px 18px 4px; min-width: 0; }
.brand-principles article>span { font: 11px var(--sans); color: #777; }
.brand-principles article h3 { font: 400 27px/1.3 var(--brush); margin: 7px 0 4px; word-break: keep-all; }
.brand-principles article p { font: 14px/1.9 var(--serif); color: var(--soft-ink); margin: 0; word-break: keep-all; overflow-wrap: normal; }
.brand-record-story {
  display: grid; grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.2fr);
  gap: 14px 8%; align-items: center; padding: 54px 4% 58px;
}
.brand-record-story .eyebrow { grid-column: 1 / -1; margin: 0; }
.brand-record-story h3 { font: 400 clamp(30px, 3vw, 40px)/1.45 var(--brush); margin: 0; word-break: keep-all; }
.brand-record-story>p:last-child { max-width: 590px; font: 15px/2.1 var(--serif); color: var(--soft-ink); margin: 0; word-break: keep-all; overflow-wrap: normal; }
.brand-philosophy { position: relative; padding: 48px 4% 68px; border-top: 1px solid var(--line); }
.brand-philosophy>.section-index { margin-bottom: 28px; }
.brand-philosophy .philosophy-layout { grid-template-columns: minmax(0, 1.1fr) minmax(350px, 1fr); gap: 8%; }
.brand-philosophy .philosophy-copy { max-width: 520px; padding-top: 26px; }
.brand-philosophy .philosophy-copy p { word-break: keep-all; overflow-wrap: normal; }
.brand-philosophy .philosophy-seal { bottom: 22px; right: 2%; }
.brand-philosophy .cms-image-gallery { margin-top: 26px; }

@media (max-width: 1100px) {
  #about.section-wrap { grid-template-columns: minmax(110px, .45fr) minmax(360px, 1.4fr) minmax(285px, 1.1fr); column-gap: 24px; }
  #about .intro-main h2 { font-size: clamp(44px, 5vw, 58px); }
  #about .intro-body { font-size: 15px; }
  .brand-philosophy .philosophy-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr); }
}
@media (max-width: 800px) {
  #about.section-wrap { padding: 90px 7% 90px; grid-template-columns: minmax(92px, .42fr) minmax(0, 1.58fr); gap: 18px 22px; }
  #about .section-index { grid-row: 1; grid-column: 1; }
  #about .intro-main { grid-column: 2; }
  #about .intro-main h2 { font-size: clamp(42px, 7vw, 55px); }
  #about .intro-body { grid-column: 2; max-width: 560px; margin: 0; font-size: 16px; }
  #about .brand-extra { margin-top: 26px; }
  .brand-principles { gap: 16px; }
  .brand-principles article { padding-left: 12px; }
  .brand-principles article h3 { font-size: 24px; }
  .brand-record-story { padding-left: 2%; padding-right: 2%; gap: 12px 5%; }
  .brand-philosophy { padding: 38px 2% 58px; }
  .brand-philosophy .philosophy-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, .9fr); gap: 5%; }
}
@media (max-width: 600px) {
  #about.section-wrap { padding: 82px 7% 78px; grid-template-columns: 1fr; gap: 18px; }
  #about .section-index, #about .intro-main, #about .intro-body { grid-column: 1; }
  #about .intro-main h2 { max-width: 100%; font-size: clamp(37px, 9vw, 44px); line-height: 1.55; }
  #about .intro-body { max-width: 100%; font-size: 15px; line-height: 2; }
  #about .brand-extra { margin-top: 24px; }
  .brand-principles { grid-template-columns: 1fr; gap: 15px; padding: 24px 0 28px; }
  .brand-principles>.eyebrow { margin-bottom: 2px; }
  .brand-principles article { padding: 0 0 0 14px; }
  .brand-principles article h3 { font-size: 25px; }
  .brand-record-story { grid-template-columns: 1fr; gap: 12px; padding: 36px 0 42px; }
  .brand-record-story h3 { font-size: 32px; }
  .brand-record-story>p:last-child { font-size: 14px; line-height: 2; }
  .brand-philosophy { padding: 34px 0 55px; }
  .brand-philosophy .philosophy-layout { grid-template-columns: 1fr; gap: 10px; }
  .brand-philosophy .philosophy-copy { max-width: 100%; padding-top: 0; }
  .brand-philosophy .philosophy-copy p { font-size: 14px; line-height: 2; }
}

/* Contact options: scoped to the existing footer inquiry section. */
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: 38px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-option { padding: 23px 18px 21px; }
.contact-option + .contact-option { border-left: 1px solid var(--line); }
.contact-option h3 { margin: 0 0 17px; font: 20px/1.4 var(--serif); }
.contact-option .contact-button { gap: 26px; padding: 12px 15px; font-size: 14px; }
.contact-option .contact-phone { margin-top: 12px; font-size: 15px; }
.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  text-decoration: none;
  text-underline-offset: 4px;
}
.contact-social-link[href] { text-decoration: underline; }
.contact-social-link span { color: #77736a; font-size: 11px; }
.contact-social-link[aria-disabled="true"] { color: #77736a; cursor: default; }
.contact-hours {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  margin: 22px 0 0 !important;
  color: #77736a !important;
  font: 11px var(--sans) !important;
}
.contact-hours strong { color: var(--ink); font-weight: 400; }
@media (max-width: 800px) {
  .contact-options { max-width: 560px; margin-top: 30px; }
  .contact-option { padding: 20px 10px; }
}
@media (max-width: 520px) {
  .contact-options { grid-template-columns: 1fr; max-width: 340px; }
  .contact-option { padding: 17px 8px; }
  .contact-option + .contact-option { border-left: 0; border-top: 1px solid var(--line); }
  .contact-option h3 { margin-bottom: 13px; font-size: 20px; }
  .contact-option .contact-button { font-size: 14px; }
  .contact-social-link { font-size: 15px; }
  .contact-social-link span { font-size: 11px; }
  .contact-option .contact-phone { margin-top: 8px; }
  .contact-hours { font-size: 10px !important; }
}
