/* ============ Tokens ============ */
:root {
  --page: #F0F9FF;
  --surface: #FFFFFF;
  --panel-top: #9FD3F9;
  --panel-bottom: #D6EDFD;
  --soft: #B8E6FE;
  --sky: #00A6F4;
  --sky-deep: #0A6FAE;
  --ink: #0C2F4A;
  --ink-soft: #4A6478;
  --line: #D5E8F5;
  --plaster: #F4F0E7;
  --ring: rgba(255, 255, 255, 0.8);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --f-head: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --sh-card: 0 14px 36px -14px rgba(12, 47, 74, 0.30);
  --sh-soft: 0 1px 2px rgba(12, 47, 74, 0.06);
  --sh-btn: 0 8px 24px -10px rgba(0, 166, 244, 0.45);

  --outer: 8px;
  --pad: 24px;
  --gap-section: 80px;
}

@media (min-width: 1024px) {
  :root {
    --outer: 16px;
    --pad: 40px;
    --gap-section: 120px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

main, section, header, footer, div, li, figure { min-width: 0; }

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding-top: var(--gap-section); }
section[id] { scroll-margin-top: 84px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--sky-deep);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}

.h2 {
  margin-top: 12px;
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin-top: 16px;
  max-width: 36em;
  color: var(--ink-soft);
}

/* Text link: underline draws from left */
.tlink {
  display: inline-block;
  padding: 10px 0;
  line-height: 24px;
  color: var(--sky-deep);
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  background-origin: content-box;
  background-clip: content-box;
  transition: background-size 250ms var(--ease);
}
.tlink:hover, .tlink:focus-visible { background-size: 100% 1px; }
.tlink-ink { color: var(--ink); }
.tlink .ar {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-left: 4px;
  transition: transform 250ms var(--ease);
}
.tlink:hover .ar { transform: translate(2px, -1px); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  min-height: 56px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--sky-deep);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  box-shadow: var(--sh-btn);
  transition: transform 200ms var(--ease), box-shadow 250ms var(--ease);
}
.btn-txt { min-width: 0; flex: 1 1 auto; }
.btn-ico {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  overflow: hidden;
  transition: transform 250ms var(--ease);
}
.btn-ico svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
}
.btn:hover { box-shadow: 0 12px 28px -10px rgba(0, 166, 244, 0.55); }
.btn:hover .btn-ico { transform: translate(3px, -3px); }
.btn:hover .btn-ico svg { animation: arrowPass 250ms var(--ease); }
.btn:active { transform: scale(0.98); }

@keyframes arrowPass {
  0% { transform: translate(0, 0); }
  49% { transform: translate(150%, -150%); }
  50% { transform: translate(-150%, 150%); }
  100% { transform: translate(0, 0); }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 24px;
  padding: 0 28px;
  border: 1px solid var(--sky-deep);
  border-radius: 999px;
  background: transparent;
  color: var(--sky-deep);
  font-weight: 500;
  cursor: pointer;
  transition: background 250ms var(--ease), color 250ms var(--ease), transform 200ms var(--ease);
}
.btn-outline:hover { background: var(--sky-deep); color: #fff; }
.btn-outline:active { transform: scale(0.98); }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: var(--outer);
  left: var(--outer);
  right: var(--outer);
  z-index: 50;
}

.hdr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 6px 0 16px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--sh-soft);
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.logo svg { width: 18px; height: 18px; color: var(--sky); flex: none; }

.hdr-label { display: none; }
.hdr-nav { display: none; }

.menu-btn {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--page);
  cursor: pointer;
}
.mb-line {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 250ms var(--ease), top 250ms var(--ease);
}
.mb-line:nth-child(1) { top: 18px; }
.mb-line:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] .mb-line:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-line:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mmenu {
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(12, 47, 74, 0.35);
}
.mmenu[hidden] { display: none; }
.mmenu a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-head);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.mmenu a:last-child { border-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  .mmenu:not([hidden]) { animation: menuIn 300ms var(--ease); }
  .mmenu:not([hidden]) a { animation: menuItem 400ms var(--ease) both; }
  .mmenu:not([hidden]) a:nth-child(2) { animation-delay: 40ms; }
  .mmenu:not([hidden]) a:nth-child(3) { animation-delay: 80ms; }
  .mmenu:not([hidden]) a:nth-child(4) { animation-delay: 120ms; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes menuItem { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  .hdr-bar {
    height: 72px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transition: height 300ms var(--ease);
  }
  .hdr-left, .hdr-nav {
    height: 100%;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--sh-soft);
    transition: box-shadow 300ms var(--ease);
  }
  .hdr-left { padding: 0 24px 0 20px; }
  .hdr-label {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
  }
  .hdr-label::before {
    content: "";
    width: 1px;
    height: 20px;
    background: var(--line);
  }
  .hdr-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 8px 0 16px;
  }
  .nlink {
    display: inline-block;
    padding: 10px 10px;
    line-height: 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 100%;
    background-origin: content-box;
    background-clip: content-box;
    transition: background-size 250ms var(--ease);
  }
  .nlink:hover, .nlink:focus-visible { background-size: 100% 1px; }
  .hdr-kakao {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 160px;
    margin-left: 8px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--sky-deep);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity 300ms var(--ease), max-width 300ms var(--ease), padding 300ms var(--ease), margin 300ms var(--ease), visibility 300ms;
  }
  .hdr-kakao:hover { background: var(--ink); }
  .js .site-header:not(.is-scrolled) .hdr-kakao {
    max-width: 0;
    margin-left: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
  }
  .site-header.is-scrolled .hdr-bar { height: 56px; }
  .site-header.is-scrolled .hdr-left,
  .site-header.is-scrolled .hdr-nav { box-shadow: 0 10px 30px -14px rgba(12, 47, 74, 0.28); }
  .menu-btn { display: none; }
  .mmenu { display: none !important; }
}

/* ============ Hero ============ */
.hero { padding: var(--outer) var(--outer) 0; }

.hero-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--panel-top), var(--panel-bottom));
  padding: 88px 24px 28px;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
}

.hero-title {
  margin-top: 12px;
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.55rem + 3.1vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-title .ln { display: block; }

.hero-intro {
  margin-top: 16px;
  max-width: 34em;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
}

.hero-cta { margin-top: 24px; max-width: 100%; }

.hero-links {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 10px;
}
.hero-links .sep { color: var(--ink-soft); }

.hero-stage {
  position: relative;
  z-index: 1;
  height: 200px;
  margin-top: 20px;
  --p: 0;
}

.rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 0;
  transform: scale(calc(1 + var(--p) * 0.06));
  transition: transform 300ms linear;
}
.ring {
  --d: 280px;
  --a: 0.8;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, var(--a));
}
.ring:nth-child(1) { --d: 280px; --a: 0.8; }
.ring:nth-child(2) { --d: 420px; --a: 0.6; }
.ring:nth-child(3) { --d: 560px; --a: 0.42; }
.ring:nth-child(4) { --d: 700px; --a: 0.25; }

.hcard {
  --r: 0deg;
  position: absolute;
  display: block;
  padding: 6px;
  background: var(--plaster);
  border-radius: 16px;
  box-shadow: var(--sh-card);
  text-decoration: none;
  color: var(--ink);
  transform:
    translate3d(calc(var(--ex, 0px) + var(--sx, 0px)), calc(var(--ey, 0px) + var(--hy, 0px)), 0)
    rotate(calc(var(--r) + var(--dr, 0deg) + var(--hr, 0deg)));
  transition: transform 500ms var(--ease), opacity 500ms var(--ease), box-shadow 400ms var(--ease);
}
.hcard .ph-in {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}
.hcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.hcard:hover { --hy: -4px; box-shadow: 0 22px 44px -16px rgba(12, 47, 74, 0.36); }
.hcard:hover img { transform: scale(1.04); }

.hcard-c {
  z-index: 3;
  width: 216px;
  height: 138px;
  left: calc(50% - 108px);
  top: 28px;
}
.hcard-l {
  z-index: 1;
  width: 112px;
  height: 150px;
  left: calc(50% - 146px);
  top: 4px;
  --r: -7deg;
  --sx: calc(var(--p) * -14px);
  --dr: calc(var(--p) * -2deg);
}
.hcard-r {
  z-index: 2;
  width: 150px;
  height: 113px;
  left: calc(50% - 2px);
  top: 54px;
  --r: 6deg;
  --sx: calc(var(--p) * 14px);
  --dr: calc(var(--p) * 2deg);
}
.hcard-l:hover { --hr: 2deg; }
.hcard-r:hover { --hr: -2deg; }

.hcard-cap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}

@media (min-width: 768px) {
  .hero-stage { height: 320px; margin-top: 40px; }
  .hcard-c { width: 340px; height: 218px; left: calc(50% - 170px); top: 40px; }
  .hcard-l { width: 170px; height: 227px; left: calc(50% - 300px); top: 8px; }
  .hcard-r { width: 232px; height: 174px; left: calc(50% + 70px); top: 92px; }
  .ring:nth-child(1) { --d: 440px; }
  .ring:nth-child(2) { --d: 620px; }
  .ring:nth-child(3) { --d: 800px; }
  .ring:nth-child(4) { --d: 980px; }
}

@media (min-width: 1024px) {
  .hero-panel { border-radius: 40px; padding: 148px 40px 64px; }
  .hero-intro { margin-top: 20px; }
  .hero-cta { margin-top: 32px; }
  .hero-links { margin-top: 8px; }
  .hero-stage { height: 420px; margin-top: 48px; }
  .hcard-c { width: 440px; height: 282px; left: calc(50% - 220px); top: 50px; }
  .hcard-l { width: 220px; height: 293px; left: calc(50% - 400px); top: 10px; }
  .hcard-r { width: 300px; height: 225px; left: calc(50% + 120px); top: 118px; }
  .ring:nth-child(1) { --d: 560px; }
  .ring:nth-child(2) { --d: 720px; }
  .ring:nth-child(3) { --d: 880px; }
  .ring:nth-child(4) { --d: 1040px; }
}

/* Hero entrance (hidden only under html.js, motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .hero-label { transition: opacity 400ms var(--ease) 100ms; }
  .js .hero .hero-title .ln {
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
    transition-delay: calc(160ms + var(--i) * 90ms);
  }
  .js .hero .hero-rise {
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
    transition-delay: calc(560ms + var(--i) * 80ms);
  }
  .js .hero .ring {
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
    transition-delay: calc(200ms + var(--k) * 120ms);
  }
  .js .hero:not(.settled) .hcard-c {
    transition: transform 800ms var(--ease) 380ms, opacity 800ms var(--ease) 380ms;
  }
  .js .hero:not(.settled) .hcard-l,
  .js .hero:not(.settled) .hcard-r {
    transition: transform 700ms var(--ease) 530ms, opacity 500ms var(--ease) 530ms;
  }

  .js .hero:not(.is-in) .hero-label { opacity: 0; }
  .js .hero:not(.is-in) .hero-title .ln { opacity: 0; transform: translateY(24px); }
  .js .hero:not(.is-in) .hero-rise { opacity: 0; transform: translateY(12px); }
  .js .hero:not(.is-in) .ring { opacity: 0; transform: scale(0.92); }
  .js .hero:not(.is-in) .hcard-c { opacity: 0; --ey: 40px; }
  .js .hero:not(.is-in) .hcard-l { opacity: 0; --r: 0deg; --ex: 70px; --ey: 20px; }
  .js .hero:not(.is-in) .hcard-r { opacity: 0; --r: 0deg; --ex: -70px; --ey: 10px; }
}

/* ============ Scroll reveal (groups observed, children animate) ============ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .rv {
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal] .rv-title {
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal] .rv-photo {
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal]:not(.is-in) .rv { opacity: 0; transform: translateY(16px); }
  .js [data-reveal]:not(.is-in) .rv-title { opacity: 0; transform: translateY(20px); }
  .js [data-reveal]:not(.is-in) .rv-photo { opacity: 0; transform: scale(1.04); }
}

/* ============ Photo card ============ */
.pcard .ph {
  padding: 6px;
  background: var(--plaster);
  border-radius: 16px;
  box-shadow: var(--sh-card);
}
.pcard .ph-in {
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}
.pcard img {
  transition: transform 600ms var(--ease);
}
.pcard:hover img { transform: scale(1.04); }
.pcard figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ============ Statement ============ */
.statement-in { max-width: 100%; }
.big {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.statement-small {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sky-deep);
}
.statement-small::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--sky);
}
@media (min-width: 1024px) {
  .statement-in { margin: 0 calc(100% / 12); }
  .statement-small { margin-top: 28px; }
}

/* ============ Treatments ============ */
.treat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.treat-fig { margin-top: 32px; }

.arch-panel {
  position: relative;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sh-soft);
  overflow: hidden;
}
.arch-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: 120%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(184, 230, 254, 0.45), rgba(184, 230, 254, 0) 70%);
  pointer-events: none;
}

.arch {
  position: relative;
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
.arch-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
}
.arch-line {
  fill: none;
  stroke: var(--sky);
  stroke-width: 3;
  stroke-linecap: round;
}
.arch-dot .dot-in {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 250ms var(--ease);
}
.arch-dot circle {
  fill: var(--sky);
  stroke: #fff;
  stroke-width: 4;
  transition: fill 300ms var(--ease);
}
.dot-n {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 600;
  fill: #fff;
  text-anchor: middle;
  transition: fill 300ms var(--ease);
}
.arch-dot.is-off circle { fill: var(--soft); }
.arch-dot.is-off .dot-n { fill: var(--ink); }
.arch-dot.is-hot .dot-in { transform: scale(1.3); }
.arch-dot.is-hot circle { fill: var(--sky); }
.arch-dot.is-hot .dot-n { fill: #fff; }

.arch-label {
  display: none;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  fill: var(--ink);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.treat-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.treat-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 4px;
  border-top: 1px solid var(--line);
  outline-offset: -2px;
  -webkit-tap-highlight-color: transparent;
}
.tdot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background 250ms var(--ease), color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.treat-row:hover .tdot,
.treat-row:focus-visible .tdot,
.treat-row.is-hot .tdot { background: var(--sky); color: #fff; }
.treat-row.is-lit .tdot { box-shadow: inset 0 0 0 1.5px var(--sky); }
.tname {
  font-family: var(--f-head);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 300ms var(--ease);
}
.tdesc {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}
.js .treat-list.is-live .treat-row.is-dim .tname { color: var(--ink-soft); }
.js .treat-list.is-live .treat-row.is-dim:hover .tname,
.js .treat-list.is-live .treat-row.is-dim:focus-visible .tname { color: var(--ink); }

.treat-more { margin-top: 16px; }

@media (min-width: 1024px) {
  .treat-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr);
    column-gap: 24px;
    grid-template-areas:
      "head . fig"
      "list . fig"
      "more . fig";
    grid-template-rows: auto auto 1fr;
  }
  .treat-head { grid-area: head; }
  .treat-list { grid-area: list; margin-top: 40px; }
  .treat-more { grid-area: more; margin-top: 24px; }
  .treat-fig {
    grid-area: fig;
    align-self: start;
    position: sticky;
    top: 112px;
    margin-top: 0;
  }
  .arch-panel { padding: 56px 40px 40px; border-radius: 40px; }
  .arch { max-width: none; }
  .arch-label { display: inline; }
  .treat-row { padding: 22px 8px; }
}

/* ============ Band ============ */
.band {
  margin-top: var(--gap-section);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.band-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}
.band-item {
  flex: none;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.band-item i {
  font-style: normal;
  color: var(--sky);
  padding: 0 0.18em;
}

/* ============ Work ============ */
.rail-ctrls { display: none; }

.rbtn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 250ms var(--ease), color 250ms var(--ease), opacity 250ms, transform 200ms var(--ease);
}
.rbtn svg { width: 20px; height: 20px; }
.rbtn:hover:not(:disabled) { background: var(--sky); border-color: var(--sky); color: #fff; }
.rbtn:active:not(:disabled) { transform: scale(0.95); }
.rbtn:disabled { opacity: 0.4; cursor: default; }

.rail-wrap { margin: 32px calc(var(--pad) * -1) 0; }
.rail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 4px var(--pad) 24px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }
.rail-item {
  flex: none;
  scroll-snap-align: start;
}
.rail .pcard { width: min-content; }
.rail .ph-in img {
  --h: 228px;
  --ar: 1.3333;
  width: min(calc(var(--h) * var(--ar)), calc(100vw - 72px));
  max-width: none;
  height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
}
.rail .ph-in img.ar-32 { --ar: 1.5; }
.rail .ph-in img.ar-43 { --ar: 1.3333; }
.rail .ph-in img.ar-34 { --ar: 0.75; }

.rail-progress {
  position: relative;
  height: 2px;
  margin-top: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.rail-bar {
  display: block;
  height: 100%;
  background: var(--sky);
  transform-origin: left center;
  transform: scaleX(0.2);
  transition: transform 120ms linear;
}

.clinical { margin-top: 32px; }
.clinical-sum {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--sky-deep);
  border-radius: 999px;
  color: var(--sky-deep);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 250ms var(--ease), color 250ms var(--ease);
}
.clinical-sum::-webkit-details-marker { display: none; }
.clinical-sum::marker { content: ""; }
.clinical-sum svg { width: 18px; height: 18px; transition: transform 250ms var(--ease); }
.clinical-sum:hover { background: var(--surface); }
.clinical[open] .clinical-sum svg { transform: rotate(180deg); }
.clinical-body { padding-top: 20px; }
.clinical-note { color: var(--ink-soft); font-size: 0.875rem; }
.clinical-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.pc-7 { max-width: 420px; }
.pc-7 .ph-in { aspect-ratio: 1; }
.pc-7 img { width: 100%; height: 100%; object-fit: contain; }
.pc-8 { max-width: 520px; }
.pc-8 .ph-in { aspect-ratio: 3 / 2; }
.pc-8 img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .clinical[open] .clinical-body { animation: menuItem 450ms var(--ease); }
}

.work-more { margin-top: 16px; }

@media (min-width: 768px) {
  .work-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
  .rail-ctrls { display: flex; gap: 8px; flex: none; }
  .clinical-grid { grid-template-columns: minmax(0, 420fr) minmax(0, 520fr); align-items: start; }
}

@media (min-width: 1024px) {
  .work-head-copy { max-width: 50%; }
  .rail .ph-in img { --h: 328px; }
  .rail { gap: 24px; }
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.about-media {
  display: flex;
  flex-direction: column;
}
.about-portrait {
  width: 240px;
  max-width: 72%;
}
.about-portrait .ph-in { aspect-ratio: 4 / 5; }
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.95);
  transform-origin: 0% 73%;
}
.about-portrait:hover img { transform: scale(2.03); }
.about-cred {
  position: relative;
  z-index: 2;
  width: 132px;
  max-width: 44%;
  align-self: flex-end;
  margin-top: -120px;
}
.about-cred .ph-in { aspect-ratio: 3 / 4; }
.about-cred img { width: 100%; height: 100%; object-fit: cover; }
.about-p { max-width: 36em; }
.about-p + .about-p { margin-top: 16px; }
.about-body .rv:last-child { margin-top: 12px; }

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 24px;
    grid-template-rows: auto 1fr;
  }
  .about-media { grid-column: 1 / 6; grid-row: 1 / 3; }
  .about-head { grid-column: 7 / 13; grid-row: 1; padding-top: 48px; }
  .about-body { grid-column: 7 / 13; grid-row: 2; align-self: start; }
  .about-body .about-p:first-child {
    font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
    line-height: 1.45;
  }
  .about-portrait { width: 320px; }
  .about-cred { width: 200px; margin-top: -170px; }
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.contact-cta { margin-top: 24px; }

.c-rows {
  list-style: none;
  margin: 32px 0 0;
  padding: 4px 0;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--sh-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.c-rows li + li .c-row { border-top: 1px solid var(--line); }
.c-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
  transition: background 250ms var(--ease);
}
.c-row:hover { background: var(--page); }
.c-row:focus-visible { outline-offset: -3px; }
.c-name { font-weight: 500; flex: none; }
.c-val {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--sky-deep);
  text-align: right;
  overflow-wrap: anywhere;
}
.c-val svg { flex: none; width: 18px; height: 18px; transition: transform 250ms var(--ease); }
.c-row:hover .c-val svg { transform: translateX(4px); }

.consult { margin-top: 32px; }
.consult .ph-in { aspect-ratio: 3 / 2; }
.consult img { width: 100%; height: 100%; object-fit: cover; }

.form-panel {
  padding: 28px 24px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--sh-soft);
  border: 1px solid var(--line);
}
.form-title {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.field label { font-size: 0.875rem; line-height: 1.4; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230A6FAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B5D6EC; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 166, 244, 0.18);
}

.form-note {
  margin-top: 20px;
  padding: 16px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.form-note:focus { outline: none; }
.form-note:focus-visible { outline: 2px solid var(--sky-deep); }
.form-note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .form-note:not([hidden]) { animation: menuItem 450ms var(--ease); }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .contact-main { grid-column: 1 / 6; }
  .form-panel {
    grid-column: 7 / 13;
    align-self: start;
    position: sticky;
    top: 112px;
    padding: 40px;
    border-radius: 40px;
  }
}

/* ============ Footer ============ */
.footer { padding: var(--gap-section) var(--outer) 96px; }
.footer-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 24px 16px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--sh-soft);
}
.footer-arch {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 36px;
  width: 150%;
  height: auto;
  transform: translateX(-50%);
  color: var(--line);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.f-big {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(3.5rem, 2rem + 8vw, 8.5rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.f-line { margin-top: 12px; color: var(--ink-soft); }
.f-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.f-contacts .tlink { overflow-wrap: anywhere; }
.f-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.f-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.f-nav .tlink { font-size: 0.875rem; }
.f-copy { font-size: 0.875rem; color: var(--ink-soft); padding: 10px 0; }

@media (min-width: 1024px) {
  .footer { padding-bottom: 16px; }
  .footer-panel { padding: 72px 40px 24px; border-radius: 40px; }
  .footer-arch { width: 90%; top: 40px; left: auto; right: -12%; transform: none; }
  .footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 56px;
  }
  .f-brand { grid-column: 1 / 7; }
  .f-contacts { grid-column: 8 / 13; align-self: end; }
  .f-bottom { grid-column: 1 / -1; }
}

/* ============ Mobile contact bar ============ */
.mbar {
  position: fixed;
  z-index: 40;
  left: 8px;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 8px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 12px 32px -12px rgba(12, 47, 74, 0.35), var(--sh-soft);
  transition: transform 240ms var(--ease), visibility 240ms;
}
.js .mbar:not(.is-shown) {
  transform: translateY(calc(100% + 24px));
  visibility: hidden;
}
.mbar-kakao {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sky-deep);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms var(--ease), background 200ms;
}
.mbar-kakao:active { transform: scale(0.98); background: var(--ink); }
.mbar-call {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--sky-deep);
}
.mbar-call svg { width: 20px; height: 20px; }
.mbar a:focus-visible { outline-offset: 2px; }

@media (min-width: 1024px) {
  .mbar { display: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* 사진 판 고르기용 감싸개 (optimize_images.py): 배치에 끼지 않음 */
picture{display:contents}
