/* =========================================================
   자황원외탕전실 — 모던 화이트 클리니컬 (제약·바이오)
   공통 디자인 시스템 (2026-07 리스타일)
   ========================================================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
  /* Neutrals — clean white & navy ink */
  --ivory:      #FFFFFF;
  --ivory-2:    #F4F7FB;
  --paper:      #FFFFFF;
  --ink:        #15233F;
  --ink-soft:   #4A5872;
  --muted:      #8592A8;
  --line:       rgba(21, 35, 63, 0.11);
  --line-soft:  rgba(21, 35, 63, 0.06);

  /* Accent — 자황 navy + clinical blue */
  --gold:       #1B3A6B;
  --gold-soft:  #2E6BE6;

  --brand:      #1B3A6B;
  --brand-deep: #12294E;
  --brand-soft: #D6E2F4;
  --brand-tint: #F1F6FC;
  --on-brand:   #FFFFFF;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --serif: "Manrope", "Pretendard", system-ui, sans-serif;
  --serif-ko: "Pretendard", system-ui, sans-serif;
  --sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Type helpers ---------- */
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: .72rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--brand);
}
.hanja { font-family: var(--serif-ko); }

h1, h2, h3 { font-weight: 800; line-height: 1.18; letter-spacing: -.035em; }

.section { padding: clamp(72px, 11vw, 160px) 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Top navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.solid {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(14px);
  padding: 14px var(--gutter);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: .28em;
  font-weight: 500;
  padding-left: .28em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: .6em;
}
.nav__brand .ko { font-family: var(--serif-ko); font-size: .78rem; letter-spacing: .3em; color: var(--brand); font-weight: 500; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 40px); align-items: center; }
.nav__links a {
  font-size: .82rem; letter-spacing: .12em; color: var(--ink-soft); font-weight: 400;
  position: relative; padding: 4px 0; transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--brand); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--brand); }

/* Hamburger toggle (mobile) */
.nav__toggle {
  display: none; width: 40px; height: 40px; position: relative;
  background: none; border: 0; cursor: pointer; z-index: 120; margin: -6px;
}
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink);
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 25px; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Scrim behind the mobile panel */
.nav__scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,16,14,.34);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.nav.open ~ .nav__scrim, body.nav-open .nav__scrim { opacity: 1; visibility: visible; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 40px clamp(30px, 9vw, 52px);
    background: rgba(255, 255, 255, .98);
    -webkit-backdrop-filter: saturate(150%) blur(22px); backdrop-filter: saturate(150%) blur(22px);
    box-shadow: -30px 0 80px -40px rgba(42, 36, 32, .5);
    transform: translateX(100%); transition: transform .55s var(--ease);
  }
  .nav.open .nav__links { transform: none; }
  .nav__links a { font-size: 1.08rem; padding: 14px 0; letter-spacing: .06em; width: 100%;
    border-bottom: 1px solid var(--line-soft); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
  .nav__brand { font-size: 1.3rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .8rem; letter-spacing: .16em; font-weight: 400;
  padding: 15px 30px; border-radius: 100px;
  border: 1px solid var(--ink); color: var(--ink);
  background: transparent; cursor: pointer;
  transition: all .4s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn--brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn--brand:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--brand-deep); }
.btn .arw { transition: transform .4s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* =========================================================
   HOME — house hero
   ========================================================= */
.hero {
  min-height: 100svh; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--gutter) 90px;
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(46,107,230,.07), transparent 60%),
    radial-gradient(120% 90% at 6% 100%, rgba(27,58,107,.05), transparent 55%),
    var(--ivory);
  overflow: hidden;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.hero__eyebrow { margin-bottom: 30px; opacity: 0; animation: rise .9s var(--ease) .1s forwards; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(4.2rem, 17vw, 15rem);
  line-height: .9; font-weight: 500; letter-spacing: .02em;
  color: var(--ink);
  opacity: 0; animation: rise 1.1s var(--ease) .18s forwards;
}
.hero__title .amp { color: var(--gold); font-style: italic; }
.hero__ko {
  font-family: var(--serif-ko); font-weight: 300;
  font-size: clamp(1.05rem, 2.4vw, 1.7rem);
  color: var(--ink-soft); margin-top: 34px; max-width: 30ch; line-height: 1.85;
  opacity: 0; animation: rise 1.1s var(--ease) .34s forwards;
}
.hero__meta {
  display: flex; gap: 28px; flex-wrap: wrap; margin-top: 48px;
  font-size: .78rem; letter-spacing: .18em; color: var(--muted);
  opacity: 0; animation: rise 1.1s var(--ease) .5s forwards;
}
.hero__meta span { display: flex; align-items: center; gap: 10px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .32em; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; animation: fade 1s ease 1.1s forwards;
}
.hero__scroll .line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drop 2.2s ease-in-out infinite; }

/* Color strip echoing the 4 brands */
.hero__strip { display: flex; height: 6px; margin-top: 60px; border-radius: 3px; overflow: hidden; max-width: 460px;
  opacity: 0; animation: rise 1.1s var(--ease) .62s forwards; }
.hero__strip i { flex: 1; }

/* =========================================================
   Section intro
   ========================================================= */
.sec-head { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 92px); text-align: center; }
.sec-head .eyebrow { display: block; margin-bottom: 22px; }
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: .01em;
}
.sec-head h2 .ko { font-family: var(--serif-ko); }
.sec-head p { margin-top: 24px; color: var(--ink-soft); font-size: clamp(.98rem, 1.4vw, 1.08rem); line-height: 1.95; }
.rule { width: 46px; height: 1px; background: var(--brand); margin: 26px auto 0; }

/* =========================================================
   Brand cards (home)
   ========================================================= */
.brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 30px); }
.bcard {
  position: relative; display: block; border-radius: 6px; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--ink);
  isolation: isolate;
}
.bcard__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.bcard::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,16,14,.05) 0%, rgba(20,16,14,.12) 42%, rgba(20,16,14,.72) 100%);
  transition: opacity .6s var(--ease);
}
.bcard__body {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(24px, 3vw, 40px);
  color: #fff; transform: translateY(6px); transition: transform .6s var(--ease);
}
.bcard__latin { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: .06em; font-weight: 500; line-height: 1; }
.bcard__ko { font-family: var(--serif-ko); font-size: .84rem; letter-spacing: .34em; opacity: .85; margin-top: 12px; }
.bcard__tag { font-size: clamp(.9rem, 1.3vw, 1.02rem); margin-top: 16px; font-weight: 300; max-width: 26ch;
  color: rgba(255,255,255,.9); }
.bcard__more {
  display: inline-flex; align-items: center; gap: .6em; margin-top: 20px;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  max-height: 0; opacity: 0; overflow: hidden; transition: all .5s var(--ease);
}
.bcard:hover .bcard__img { transform: scale(1.05); }
.bcard:hover .bcard__body { transform: translateY(0); }
.bcard:hover .bcard__more { max-height: 40px; opacity: 1; }
.bcard__accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 3; background: var(--c); }

@media (max-width: 680px) {
  .brands { grid-template-columns: 1fr; }
  .bcard { aspect-ratio: 3 / 4; }
}

/* =========================================================
   Philosophy / ingredient strip (home)
   ========================================================= */
.philo { background: var(--ink); color: var(--ivory); }
.philo .sec-head h2 { color: var(--ivory); }
.philo .sec-head p { color: rgba(247,242,234,.72); }
.philo .eyebrow { color: var(--gold-soft); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); margin-top: 20px; }
.pillar { text-align: center; padding: 0 6px; }
.pillar__no { font-family: var(--serif); font-size: 1rem; letter-spacing: .3em; color: var(--gold-soft); }
.pillar__t { font-family: var(--serif-ko); font-size: 1.3rem; margin: 18px 0 14px; color: #fff; }
.pillar__d { font-size: .92rem; color: rgba(247,242,234,.62); line-height: 1.9; font-weight: 300; }
.pillar__line { width: 30px; height: 1px; background: rgba(201,162,75,.5); margin: 20px auto 0; }
@media (max-width: 680px) { .pillars { grid-template-columns: 1fr; gap: 44px; } }

/* =========================================================
   BRAND PAGE — hero
   ========================================================= */
.bhero {
  min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--brand-tint);
}
.bhero__text {
  align-self: center; padding: 150px var(--gutter) 90px clamp(28px, 8vw, 120px);
}
.bhero__eyebrow { color: var(--brand); margin-bottom: 26px; }
.bhero__latin {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.4rem, 8vw, 7rem); line-height: .92; letter-spacing: .04em;
  color: var(--brand-deep);
}
.bhero__ko { font-family: var(--serif-ko); font-size: 1rem; letter-spacing: .3em; color: var(--brand); margin-top: 18px; }
.bhero__tag {
  font-family: var(--serif-ko); font-weight: 300;
  font-size: clamp(1.3rem, 3vw, 2rem); color: var(--ink); margin-top: 36px; line-height: 1.6;
}
.bhero__desc { margin-top: 26px; color: var(--ink-soft); font-size: 1.02rem; max-width: 42ch; line-height: 1.95; }
.bhero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.bhero__media { position: relative; overflow: hidden; }
.bhero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .bhero { grid-template-columns: 1fr; }
  .bhero__media { min-height: 62svh; order: -1; }
  .bhero__text { padding-top: 110px; }
}

/* Back link */
.backlink { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; letter-spacing: .16em; color: var(--brand); }
.backlink .arw { transition: transform .3s var(--ease); }
.backlink:hover .arw { transform: translateX(-4px); }

/* ---------- Statement band ---------- */
.statement { background: var(--brand); color: var(--on-brand); text-align: center; }
.statement q { font-family: var(--serif-ko); font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.55; quotes: none; }
.statement .src { display: block; margin-top: 28px; font-size: .8rem; letter-spacing: .22em; opacity: .8; }

/* ---------- Feature / benefit grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 34px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 34px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 26px); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.tile {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 6px;
  padding: clamp(26px, 3vw, 40px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(42,36,32,.35); border-color: var(--brand-soft); }
.tile__no { font-family: var(--serif); color: var(--brand); font-size: 1.05rem; letter-spacing: .2em; }
.tile__ic { width: 46px; height: 46px; color: var(--brand); margin-bottom: 22px; }
.tile__ic svg { width: 100%; height: 100%; }
.tile h3 { font-family: var(--serif-ko); font-size: 1.28rem; margin: 6px 0 12px; color: var(--ink); }
.tile p { color: var(--ink-soft); font-size: .96rem; line-height: 1.85; font-weight: 300; }

/* ---------- Ingredient rows ---------- */
.ingredient { display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 4vw, 60px); align-items: start;
  padding: clamp(30px, 4vw, 52px) 0; border-top: 1px solid var(--line); }
.ingredient:last-child { border-bottom: 1px solid var(--line); }
.ingredient__label { }
.ingredient__k { font-family: var(--serif); font-size: 1.7rem; color: var(--brand-deep); letter-spacing: .04em; }
.ingredient__ko { font-family: var(--serif-ko); font-size: 1.15rem; color: var(--ink); margin-top: 6px; }
.ingredient__sub { font-size: .74rem; letter-spacing: .18em; color: var(--muted); margin-top: 8px; text-transform: uppercase; }
.ingredient__body p { color: var(--ink-soft); font-size: 1rem; line-height: 1.95; max-width: 60ch; }
.ingredient__body .roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { font-size: .8rem; letter-spacing: .06em; padding: 8px 16px; border-radius: 100px;
  background: var(--brand-tint); color: var(--brand-deep); border: 1px solid var(--brand-soft); }
@media (max-width: 640px) { .ingredient { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { border-radius: 6px; overflow: hidden; aspect-ratio: 4/5; background: var(--brand-tint); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3rem); }
.split .eyebrow { display:block; margin-bottom: 20px; }
.split p { margin-top: 22px; color: var(--ink-soft); line-height: 1.95; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }

/* ---------- Checklist (recommend) ---------- */
.checks { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px 40px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 1.02rem; color: var(--ink); font-weight: 300; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--brand); position: relative;
  -webkit-mask: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  mask: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Timeline / age steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.step { padding: clamp(28px,3.4vw,44px); border-right: 1px solid var(--line); background: var(--paper); }
.step:last-child { border-right: none; }
.step__age { font-family: var(--serif); font-size: 1.5rem; color: var(--brand-deep); }
.step__age small { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; color: var(--muted); display:block; margin-top:6px; }
.step h4 { font-family: var(--serif-ko); font-weight: 500; font-size: 1.05rem; margin: 20px 0 6px; color: var(--ink); }
.step p { font-size: .92rem; color: var(--ink-soft); font-weight: 300; }
@media (max-width: 720px){ .steps{ grid-template-columns:1fr; } .step{ border-right:none; border-bottom:1px solid var(--line);} .step:last-child{border-bottom:none;} }

/* ---------- Type variants (DiNA R/S) ---------- */
.variants { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 30px); }
.variant { border-radius: 8px; padding: clamp(30px,3.6vw,48px); color: #fff; position: relative; overflow: hidden; }
.variant h3 { font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; }
.variant .vk { font-family: var(--serif-ko); letter-spacing:.2em; font-size:.82rem; opacity:.85; margin-top:6px; }
.variant p { margin-top: 20px; font-weight: 300; line-height: 1.85; font-size: .98rem; color: rgba(255,255,255,.9); }
.variant ul { margin-top: 20px; display: grid; gap: 12px; }
.variant li { display:flex; gap:12px; font-size:.95rem; font-weight:300; }
.variant li::before{ content:"—"; opacity:.7; }
@media (max-width:600px){ .variants{ grid-template-columns:1fr; } }

/* ---------- Process / notice list ---------- */
.notice { display: grid; gap: 2px; }
.notice li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.notice .n { font-family: var(--serif); color: var(--brand); font-size: 1.1rem; }
.notice p { color: var(--ink-soft); font-weight: 300; }
.notice b { font-weight: 500; color: var(--ink); }

/* ---------- Data / study cards ---------- */
.study { background: var(--brand-tint); border-radius: 6px; padding: clamp(26px,3vw,40px); border:1px solid var(--brand-soft); }
.study h4 { font-family: var(--serif-ko); font-size: 1.12rem; color: var(--ink); margin-bottom: 12px; }
.study p { font-size: .95rem; color: var(--ink-soft); font-weight: 300; line-height: 1.85; }
.study .ref { font-size: .74rem; color: var(--muted); margin-top: 16px; letter-spacing: .02em; }

/* =========================================================
   CTA band
   ========================================================= */
.cta { text-align: center; background:
    radial-gradient(90% 120% at 50% 0%, var(--brand-tint), transparent 70%), var(--ivory-2); }
.cta h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); }
.cta h2 .ko { font-family: var(--serif-ko); }
.cta p { margin: 22px auto 38px; max-width: 44ch; color: var(--ink-soft); }

/* =========================================================
   Footer
   ========================================================= */
.foot { background: var(--ink); color: rgba(247,242,234,.7); padding: clamp(60px,8vw,96px) 0 40px; }
.foot__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(247,242,234,.12); }
.foot__brand { font-family: var(--serif); font-size: 2rem; letter-spacing: .3em; color: #fff; padding-left:.3em; }
.foot__brand small { display:block; font-family: var(--serif-ko); font-size:.72rem; letter-spacing:.34em; color: var(--gold-soft); margin-top:10px; padding-left:.05em;}
.foot__nav { display: flex; gap: clamp(28px,5vw,72px); flex-wrap: wrap; }
.foot__col h5 { font-size:.72rem; letter-spacing:.24em; text-transform:uppercase; color: var(--gold-soft); margin-bottom:18px; font-weight:500; }
.foot__col a, .foot__col li { display:block; font-size:.92rem; color: rgba(247,242,234,.66); padding:6px 0; font-weight:300; transition: color .3s var(--ease); }
.foot__col a:hover { color:#fff; }
.foot__bottom { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-top:32px; font-size:.76rem; letter-spacing:.04em; color: rgba(247,242,234,.42); }
.foot__disc { max-width: 70ch; line-height:1.8; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@keyframes rise { from { opacity:0; transform: translateY(30px);} to { opacity:1; transform:none; } }
@keyframes fade { to { opacity:1; } }
@keyframes drop { 0%,100%{ transform: scaleY(.3); opacity:.3; transform-origin:top;} 50%{ transform: scaleY(1); opacity:1; transform-origin:top;} }

/* =========================================================
   Polish — accessibility, selection, touch, fine details
   ========================================================= */
::selection { background: var(--brand); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px;
}
.nav__brand { transition: opacity .3s var(--ease); }
.nav__brand:hover { opacity: .72; }

/* Hairline gold underline accent under section eyebrows on home */
.hero__title { text-wrap: balance; }
.sec-head h2, .cta h2 { text-wrap: balance; }

/* Touch devices: reveal brand-card details (no hover) */
@media (hover: none) {
  .bcard__body { transform: none; }
  .bcard__more { max-height: 40px; opacity: 1; }
  .bcard::after { opacity: .96; }
}

/* Slightly tighter section rhythm + safe-area on small screens */
@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .hero__meta { gap: 14px 22px; }
  .btn { padding: 14px 24px; }
  .foot__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
