/* ==========================================================================
   Taewon Moon, MD — v2 design system
   Typography-first: Fraunces (display serif) + Inter + Noto Sans KR/SC
   ========================================================================== */

:root {
  /* palette */
  --ink: #0a1a24;
  --ink-2: #122c3c;
  --ink-3: #1d4356;
  --ivory: #f8f5ef;
  --ivory-2: #efe9df;
  --sand: #ddd0bd;
  --gold: #a9822c;
  --gold-2: #d3b168;
  --gold-3: #f0e2bf;

  /* type */
  --serif: "Fraunces", "Playfair Display", "Nanum Myeongjo", Georgia, serif;
  --sans: "Inter", "Pretendard", "Noto Sans KR", "Noto Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* scale */
  --t-hero: clamp(2.9rem, 7.2vw, 6.4rem);
  --t-h1: clamp(2.1rem, 4.6vw, 3.7rem);
  --t-h2: clamp(1.65rem, 3.1vw, 2.6rem);
  --t-h3: clamp(1.15rem, 1.7vw, 1.4rem);
  --t-lead: clamp(1.06rem, 1.45vw, 1.28rem);
  --t-body: clamp(1rem, 1.06vw, 1.075rem);
  --t-small: 0.875rem;
  --t-micro: 0.72rem;

  --lh-tight: 1.06;
  --lh-head: 1.14;
  --lh-body: 1.72;

  /* space */
  --s-1: 0.5rem;
  --s-2: 0.875rem;
  --s-3: 1.35rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --maxw: 1280px;

  --radius: 3px;
  --shadow: 0 30px 70px -40px rgba(10, 26, 36, 0.45);
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

img,
video,
canvas,
svg { display: block; max-width: 100%; }

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--gold-2);
  color: var(--ink);
}

/* ------------------------------------------------------------ utilities */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: var(--t-small);
}
.skip-link:focus { top: 0.6rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ------------------------------------------------------------- topbar */
.topbar {
  background: var(--ink);
  color: rgba(248, 245, 239, 0.82);
  font-size: var(--t-small);
  letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 44px;
  flex-wrap: wrap;
}
.topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: rgba(248, 245, 239, 0.78);
}
.topbar__note svg { opacity: 0.8; }
.topbar__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
  letter-spacing: 0.06em;
}
.topbar__tel:hover { color: var(--gold-3); }

/* -------------------------------------------------------------- header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(10, 26, 36, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.masthead.is-stuck {
  background: rgba(248, 245, 239, 0.97);
  box-shadow: 0 12px 30px -26px rgba(10, 26, 36, 0.6);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 84px;
  min-width: 0;
}

/* logo — SVG wordmark, crisp at any size */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: none;
}
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__word { display: flex; flex-direction: column; gap: 1px; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.1;
  color: var(--ink);
  font-variation-settings: "opsz" 40;
}
.brand__sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}
.nav__link {
  position: relative;
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  padding: 0.35rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }

/* language switcher */
.lang {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.18rem;
  border: 1px solid rgba(10, 26, 36, 0.16);
  border-radius: 999px;
}
.lang__btn {
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(10, 26, 36, 0.55);
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ivory);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.66rem 1.25rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav__cta:hover {
  background: var(--ink-3);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  margin-left: auto;
  border: 1px solid rgba(10, 26, 36, 0.18);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute; left: 0;
  width: 17px; height: 1.5px;
  background: var(--ink);
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  background: radial-gradient(120% 90% at 78% 8%, #17394b 0%, #0a1a24 48%, #06121a 100%);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 18, 26, 0.86) 0%, rgba(6, 18, 26, 0.55) 48%, rgba(6, 18, 26, 0.15) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  max-width: var(--maxw);
}
.hero__inner > * { max-width: 62ch; }
.hero h1 { max-width: 16ch; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 {
  font-family: var(--serif);
  font-size: var(--t-hero);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: -0.022em;
  margin: 1.1rem 0 0;
  color: #fffdf8;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-2);
}
.hero__lede {
  margin: 1.5rem 0 0;
  max-width: 54ch;
  font-size: var(--t-lead);
  line-height: 1.66;
  color: rgba(248, 245, 239, 0.86);
  font-weight: 300;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.92rem 1.7rem;
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #17120a;
  font-weight: 600;
}
.btn--ghost {
  border: 1px solid rgba(248, 245, 239, 0.32);
  color: var(--ivory);
}
.btn--ghost:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
}
.btn__arrow { transition: transform 0.25s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 3vw, 3rem);
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(248, 245, 239, 0.16);
}
.hero__fact dt {
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.55);
}
.hero__fact dd {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
  color: #fffdf8;
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.5);
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 42px;
  background: linear-gradient(180deg, rgba(211, 177, 104, 0.9), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ------------------------------------------------------------- sections */
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--ivory-2); }
.section--ink {
  background: var(--ink);
  color: var(--ivory);
}
.section--ink .eyebrow { color: var(--gold-2); }

.section__head {
  display: grid;
  gap: var(--s-3);
  max-width: 62ch;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.section__head h2 {
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: var(--lh-head);
  letter-spacing: -0.018em;
  margin: 0;
}
.section__head p {
  margin: 0;
  color: rgba(10, 26, 36, 0.72);
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.68;
  max-width: 58ch;
}
.section--ink .section__head p { color: rgba(248, 245, 239, 0.72); }

/* split media + copy */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.6rem);
  align-items: center;
}
.split--rev > .split__media { order: 2; }
.split__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.split__media:hover img { transform: scale(1.035); }
.split__body h2 {
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: var(--lh-head);
  letter-spacing: -0.018em;
  margin: 0.9rem 0 0;
}
.split__body p {
  margin: 1.1rem 0 0;
  color: rgba(10, 26, 36, 0.74);
  font-weight: 300;
}
.split__list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.split__list li {
  display: flex;
  gap: 0.7rem;
  font-size: var(--t-body);
  color: rgba(10, 26, 36, 0.8);
}
.split__list li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  margin-top: 0.62rem;
  background: var(--gold);
  border-radius: 50%;
}

/* -------------------------------------------------------------- services */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(10, 26, 36, 0.12);
  border: 1px solid rgba(10, 26, 36, 0.12);
}
.svc { grid-column: span 2; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc { grid-column: span 1; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 2.6vw, 2.3rem);
  background: var(--ivory);
  transition: background 0.35s ease, color 0.35s ease;
  overflow: hidden;
}
.svc::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.svc:hover::before { transform: scaleX(1); }
.svc:hover { background: #fffdf8; }
.svc__num {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.svc__title {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.svc__desc {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.68;
  color: rgba(10, 26, 36, 0.68);
}
.svc__list {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.34rem;
  font-size: var(--t-small);
  color: rgba(10, 26, 36, 0.78);
}
.svc__list li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}
.svc__list li::before {
  content: "—";
  color: var(--gold);
  flex: none;
}

/* --------------------------------------------------------------- doctors */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.6rem, 3.4vw, 3rem);
}
.doc {
  display: grid;
  gap: 1.2rem;
}
.doc__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
  position: relative;
}
.doc__photo--monogram {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 100% at 30% 20%, #1d4356 0%, #0a1a24 70%);
}
.doc__photo--monogram span {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--gold-2);
  opacity: 0.9;
}
.doc__photo--monogram::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(211, 177, 104, 0.28);
  border-radius: 2px;
}
.doc__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}
.doc:hover .doc__photo img {
  transform: scale(1.04);
  filter: saturate(1);
}
.doc__role {
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.doc__name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 400;
  margin: 0.35rem 0 0;
  letter-spacing: -0.012em;
}
.doc__bio {
  margin: 0.7rem 0 0;
  font-size: var(--t-small);
  line-height: 1.72;
  color: rgba(10, 26, 36, 0.72);
  font-weight: 300;
}
.section--ink .doc__bio { color: rgba(248, 245, 239, 0.74); }

/* --------------------------------------------------------------- gallery */
.gal {
  columns: 3;
  column-gap: clamp(0.6rem, 1.4vw, 1.1rem);
}
.gal__item {
  break-inside: avoid;
  margin-bottom: clamp(0.6rem, 1.4vw, 1.1rem);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ivory-2);
  cursor: zoom-in;
}
.gal__item img {
  width: 100%;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease;
  opacity: 1; /* JS 게이팅 제거: 스크립트/CDN 문제로도 이미지가 보이도록 */
}
.gal__item img.is-loaded { opacity: 1; }
.gal__item:hover img { transform: scale(1.04); }
.gal__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 18, 26, 0.42));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gal__item:hover::after { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 18, 26, 0.93);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 40px 90px -40px #000;
}
.lightbox__close {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(248, 245, 239, 0.3);
  border-radius: 999px;
  color: var(--ivory);
  font-size: 1.1rem;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid rgba(248, 245, 239, 0.25);
  border-radius: 999px;
  color: var(--ivory);
  font-size: 1.2rem;
}
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }
.lightbox__nav:hover,
.lightbox__close:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ------------------------------------------------------------------ video */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.video__poster {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 1.2s ease, opacity 0.4s ease;
}
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  color: var(--ivory);
}
.video__play:hover .video__poster { transform: scale(1.03); opacity: 0.7; }
.video__btn {
  width: 78px; height: 78px;
  display: grid; place-items: center;
  border: 1px solid rgba(248, 245, 239, 0.5);
  border-radius: 999px;
  background: rgba(6, 18, 26, 0.35);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.video__play:hover .video__btn {
  transform: scale(1.08);
  border-color: var(--gold-2);
}
.video iframe { width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------------------- cta band */
.cta {
  position: relative;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 62%, #1b3f52 100%);
  color: var(--ivory);
  overflow: hidden;
}
.cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.6rem, 3vw, 3rem);
  padding-block: clamp(3.4rem, 6vw, 5.6rem);
}
.cta h2 {
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 0.6rem 0 0;
  max-width: 22ch;
}
.cta p {
  margin: 0.9rem 0 0;
  color: rgba(248, 245, 239, 0.74);
  max-width: 46ch;
  font-weight: 300;
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------------------------------------------------------------- footer */
.foot {
  background: #06121a;
  color: rgba(248, 245, 239, 0.66);
  font-size: var(--t-small);
  padding-block: clamp(3rem, 5vw, 4.4rem);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(1.6rem, 3.4vw, 3.4rem);
}
.foot h3 {
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 1rem;
  font-weight: 600;
}
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.foot a:hover { color: var(--gold-2); }
.foot .brand__name { color: var(--ivory); }
.foot .brand__sub { color: var(--gold-2); }
.foot__note {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(248, 245, 239, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(248, 245, 239, 0.45);
}

/* --------------------------------------------------------------- reveals */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------- CJK type */
/* 한국어/중국어는 가짜 이탤릭(기울임)이 어색하므로 색으로만 강조 */
html[lang="ko"] { word-break: keep-all; }
html[lang="zh"] { line-break: strict; }
html[lang="ko"] .hero h1 em,
html[lang="zh"] .hero h1 em,
html[lang="ko"] h1 em,
html[lang="zh"] h1 em {
  font-style: normal;
  letter-spacing: 0.01em;
}
html[lang="ko"] .hero h1,
html[lang="zh"] .hero h1 { line-height: 1.18; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .masthead__inner { min-height: 72px; }
  .split { grid-template-columns: 1fr; }
  .split--rev > .split__media { order: 0; }
  .gal { columns: 2; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .gal { columns: 1; }
  .hero { min-height: 82vh; }
  .hero__facts { gap: 1.2rem 1.8rem; }
  .foot__grid { grid-template-columns: 1fr; }
  .topbar__inner { font-size: 0.8rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.15rem; }
}

/* 좁은 폭 헤더 — .nav 가 숨겨진 구간에서 .nav__cta 폭까지 더해지면 .menu-btn 이
   화면 밖으로 밀린다(390px 실측 scrollWidth 590, menu-btn right=590).
   실측 필요폭(브랜드 172 + 언어 147 + CTA 126 + 버튼 42 + gap)이 약 620px 이므로
   그 아래에서는 헤더 CTA 를 숨기고, 520px 아래에서는 언어 그룹을 현재 언어만
   노출해 폭을 확보한다. 언어 전환은 드로어 안의 전체 언어 그룹에서 계속 된다. */
@media (max-width: 640px) {
  .nav__cta { display: none; }
  .menu-btn { flex: none; }
  .masthead__inner { gap: var(--s-3); }
}

@media (max-width: 520px) {
  .masthead__inner { gap: var(--s-1); }
  .masthead .lang .lang__btn[aria-pressed="false"] { display: none; }
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  background: var(--ivory);
  padding: 1.4rem var(--gutter) 2rem;
}
.drawer.is-open { display: block; }
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.drawer nav { display: grid; gap: 1.1rem; }
.drawer nav a {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink);
}
.drawer .lang { margin-top: 2rem; width: fit-content; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* print */
@media print {
  .masthead, .topbar, .hero__actions, .scroll-cue, .cta, .video { display: none; }
  body { background: #fff; color: #000; }
}
