:root {
  /* Semantic color */
  --background: #f7fbfb;
  --foreground: #14242b;
  --muted-foreground: #5c6b71;
  --surface: #ffffff;
  --border: #d9e5e7;

  --primary: #0e74b8;
  --primary-foreground: #ffffff;
  --primary-strong: #08486f;
  --primary-soft: #4d8db8;
  --accent: #c8944f;
  --ring: rgba(14, 116, 184, 0.45);

  /* Naver brand */
  --naver: #03c75a;
  --naver-strong: #029846;
  --naver-foreground: #ffffff;

  /* Spacing scale (4-grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* Elevation */
  --elev-1: 0 1px 2px rgba(8, 72, 111, 0.06);
  --elev-2: 0 8px 22px rgba(8, 72, 111, 0.10);
  --elev-3: 0 18px 45px rgba(8, 72, 111, 0.16);

  /* Motion */
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Backward-compatible aliases */
  --ink: var(--foreground);
  --muted: var(--muted-foreground);
  --line: var(--border);
  --paper: var(--background);
  --white: var(--surface);
  --teal: var(--primary);
  --teal-dark: var(--primary-strong);
  --green: var(--primary-soft);
  --amber: var(--accent);
  --shadow: var(--elev-3);
}

* {
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: inherit;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 98px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}

img {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-brand {
  padding: 0;
  background: transparent;
}

.brand-logo {
  display: block;
  width: clamp(170px, 17vw, 224px);
  max-height: 42px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(14, 116, 184, 0.42);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 800;
  white-space: nowrap;
  transition: border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}

.header-call:hover,
.header-call:focus {
  border-color: var(--teal);
  background: rgba(14, 116, 184, 0.08);
  color: var(--teal);
}

.header-call [data-lucide] { display: none; }
.header-call svg { display: none; width: 16px; height: 16px; stroke-width: 2.2; }
.icons-ready .header-call .icon-fallback { display: none; }
.icons-ready .header-call svg { display: block; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus {
  border-color: var(--teal);
  color: var(--teal);
}

.nav-toggle .icon-fallback {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.nav-toggle [data-lucide] { display: none; }
.nav-toggle svg { display: none; width: 22px; height: 22px; stroke-width: 2.2; }
.icons-ready .nav-toggle .icon-fallback { display: none; }
.icons-ready .nav-toggle .icon-menu { display: block; }
.icons-ready .nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-fallback { display: none; }
.icons-ready .nav-open .nav-toggle .icon-menu { display: none; }
.icons-ready .nav-open .nav-toggle .icon-close { display: block; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #eef7f6 0%, #f8fcfc 72%, var(--paper) 100%);
  color: var(--ink);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 124px 0 72px;
}

.hero-headline {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.hero-meta {
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}

.hero-carousel {
  min-width: 0;
  width: 100%;
}

.hero-carousel-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 222, 225, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  touch-action: pan-y;
  cursor: grab;
}

.hero-carousel-stage:active {
  cursor: grabbing;
}

.hero-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--white);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track {
    transition: none;
  }
}

.hero-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(8, 72, 111, 0.82);
  color: var(--white);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(8, 72, 111, 0.28);
  backdrop-filter: blur(6px);
}

.hero-carousel-btn [data-lucide] {
  display: none;
}

.hero-carousel-btn svg {
  display: none;
  width: 24px;
  height: 24px;
  stroke-width: 2.6;
}

.icons-ready .hero-carousel-btn .icon-fallback {
  display: none;
}

.icons-ready .hero-carousel-btn svg {
  display: block;
}

.hero-carousel-btn.prev {
  left: 20px;
}

.hero-carousel-btn.next {
  right: 20px;
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus {
  background: rgba(14, 116, 184, 0.92);
}

.hero-carousel-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.hero-carousel-caption strong {
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  max-width: 820px;
  margin: 0;
  color: #0a2d5c;
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.05;
}

.hero h1::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-underline-draw 700ms 250ms var(--ease) forwards;
}

@keyframes hero-underline-draw {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1::after {
    animation: none;
    transform: scaleX(1);
  }
}


.slogan {
  margin: 0;
  color: var(--teal-dark);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.sub-slogan {
  margin: 0;
  color: var(--teal-dark);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sub-slogan strong {
  color: inherit;
  font-weight: 800;
}

.hero-headline .eyebrow {
  margin: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions,
.visit-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero .hero-actions {
  justify-content: center;
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 800;
  line-height: 1.2;
  transition: transform var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.btn [data-lucide] { display: none; }
.btn svg { display: none; width: 18px; height: 18px; stroke-width: 2.2; }
.icons-ready .btn svg { display: block; }

button.btn {
  cursor: pointer;
  font: inherit;
}

.btn.primary {
  background: var(--teal);
  color: var(--white);
}

.btn.secondary {
  border-color: rgba(14, 116, 184, 0.38);
  background: var(--white);
  color: var(--teal-dark);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn.naver {
  border-color: var(--naver);
  background: var(--naver);
  color: var(--naver-foreground);
}

.btn.naver:hover,
.btn.naver:focus {
  background: var(--naver-strong);
  border-color: var(--naver-strong);
}

.btn.naver-outline {
  border-color: var(--naver);
  background: var(--white);
  color: var(--naver-strong);
}

.btn.naver-outline:hover,
.btn.naver-outline:focus {
  background: rgba(3, 199, 90, 0.08);
}

.hero .btn.ghost {
  border-color: rgba(14, 116, 184, 0.32);
  background: rgba(255, 255, 255, 0.62);
  color: var(--teal-dark);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.share-mobile {
  display: none;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(217, 229, 231, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quick-info div {
  padding: 22px 24px;
}

.quick-info span {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 800;
}

.quick-info strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.45;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid rgba(200, 148, 79, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: 2.4rem;
  letter-spacing: 0;
  line-height: 1.22;
}

.section-note {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--teal-dark);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.45;
}

.doctor-layout,
.visit-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.care-section,
.treatment-section {
  width: 100%;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5faf9 100%);
}

.care-section > *,
.treatment-section > * {
  width: min(1120px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.principles,
.treatment-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principles article,
.treatment-list article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.principles span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 116, 184, 0.1);
  color: var(--teal);
  font-size: 1rem;
  font-weight: 900;
}

.principles h3,
.treatment-list h3,
.visit-copy h3 {
  margin: 12px 0 10px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.principles p,
.treatment-list p,
.visit-copy p,
.hours p {
  margin: 0;
  color: var(--muted);
}

.doctor-section {
  width: 100%;
  max-width: none;
  padding-bottom: 72px;
  background:
    linear-gradient(180deg, var(--paper) 0%, #eef7f6 100%);
}

.doctor-section > * {
  width: min(1120px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.doctor-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: 56px;
  row-gap: 22px;
}

.doctor-photo {
  grid-row: 1 / span 2;
  align-self: start;
  margin: 0;
}

.doctor-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 8px;
  border: 8px solid var(--white);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}

.doctor-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.doctor-copy {
  grid-column: 2;
  font-size: 1.08rem;
  color: var(--muted);
}

.doctor-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.36;
}

.career-panel {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.career-group {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 198px;
  padding: 20px 22px;
  border: 1px solid rgba(203, 222, 225, 0.9);
  border-radius: 6px;
  background:
    linear-gradient(180deg, var(--white), #fbfefe);
  box-shadow: 0 12px 26px rgba(8, 72, 111,0.08);
}

.career-group h3 {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(14, 116, 184, 0.08);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.35;
}

.career-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-group li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.career-group li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.treatment-list {
  grid-template-columns: repeat(4, 1fr);
  counter-reset: treatment;
}

.treatment-list article {
  position: relative;
  min-height: 190px;
  background: var(--white);
}

.treatment-list article::before {
  counter-increment: treatment;
  content: "0" counter(treatment);
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(200, 148, 79, 0.13);
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 900;
}

.gallery-section {
  width: 100%;
  max-width: none;
  padding-bottom: 108px;
  background: #f9fcfc;
}

.gallery-section > * {
  width: min(1120px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 280px;
  gap: 16px;
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #d7e5e7;
}

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 25, 31, 0) 58%, rgba(5, 25, 31, 0.44) 100%);
  pointer-events: none;
}

.gallery-grid figure.wide {
  grid-row: span 2;
}

.gallery-grid figcaption {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(8, 29, 35, 0.76);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.visit-section {
  width: 100%;
  background:
    linear-gradient(180deg, #eaf3f4 0%, #f6fbfb 100%);
}

.visit-section > * {
  width: min(1120px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.visit-copy,
.hours {
  align-self: start;
  padding: 32px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(8, 72, 111,0.08);
}

.visit-copy {
  background:
    linear-gradient(180deg, var(--white), #fbfefe);
}

.hours {
  border: 1px solid rgba(203, 222, 225, 0.9);
}

.hours dl {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
}

.hours div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 16px;
  margin: 0 -12px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
}

.hours dt {
  color: var(--green);
  font-weight: 900;
}

.hours dd {
  margin: 0;
  font-weight: 800;
}

.hours div.is-today {
  border-color: rgba(14, 116, 184, 0.28);
  background: linear-gradient(90deg, #edf7f4, #f8fcfb);
  box-shadow: 0 8px 22px rgba(8, 72, 111,0.08);
}

.today-badge {
  display: none;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  vertical-align: middle;
}

.is-today .today-badge {
  display: inline-flex;
}

.map-embed {
  display: grid;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(8, 72, 111,0.08);
}

.map-image-link {
  display: block;
  background: #edf4f3;
}

.map-image-link img {
  width: 100%;
  aspect-ratio: 886 / 415;
  object-fit: cover;
}

.map-info {
  display: grid;
  gap: 3px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.map-info strong {
  font-size: 1.06rem;
  line-height: 1.35;
}

.map-info span {
  color: var(--muted);
  font-size: 1rem;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0;
}

.final-cta h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.26;
}

.final-cta p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 36px;
  background: #07344e;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 4px 0 0;
}

.mobile-cta {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 64px;
    padding: 10px 18px;
  }

  .header-call {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 4px 18px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 14px 28px rgba(8, 72, 111, 0.10);
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-call {
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.96rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 142px;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .slogan {
    font-size: 1.55rem;
  }

  .quick-info,
  .doctor-layout,
  .visit-layout {
    grid-template-columns: 1fr;
  }

  .doctor-section > *,
  .gallery-section > * {
    width: min(1120px, calc(100% - 48px));
  }

  .doctor-photo,
  .doctor-copy,
  .career-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .career-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-info {
    margin-top: 0;
  }

  .quick-info div + div {
    border-top: 1px solid var(--line);
  }

  .principles,
  .treatment-list {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-grid figure.wide {
    grid-column: 1 / -1;
    grid-row: span 1;
  }

  .final-cta,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 62px;
  }

  .brand small,
  .header-call {
    display: none;
  }

  .logo-brand {
    padding: 6px 8px;
  }

  .brand-logo {
    width: 170px;
    max-height: 38px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .quick-info,
  .section,
  .care-section > *,
  .treatment-section > *,
  .doctor-section > *,
  .gallery-section > *,
  .visit-section > *,
  .final-cta {
    width: min(100% - 32px, 1120px);
  }

  .doctor-section,
  .gallery-section {
    width: 100%;
    max-width: none;
  }

  .hero-content {
    gap: 24px;
    padding-top: 136px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 2.36rem;
  }

  .slogan {
    font-size: 1.32rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-carousel-btn {
    width: 40px;
    height: 40px;
  }

  .hero-carousel-btn.prev {
    left: 10px;
  }

  .hero-carousel-btn.next {
    right: 10px;
  }

  .hero-carousel-caption {
    font-size: 0.98rem;
  }

  .share-mobile {
    display: inline-flex;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading h2 {
    font-size: 1.9rem;
  }

  .principles,
  .treatment-list,
  .career-panel,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .principles article,
  .treatment-list article {
    min-height: auto;
    padding: 24px;
  }

  .doctor-copy .lead {
    font-size: 1.28rem;
  }

  .gallery-grid {
    grid-auto-rows: 250px;
  }

  .visit-copy,
  .hours {
    padding: 24px;
  }

  .hours div {
    grid-template-columns: 86px 1fr;
    gap: 10px;
  }

  .map-info {
    padding: 16px 18px;
  }

  .final-cta {
    padding: 58px 0;
  }

  .final-actions {
    width: 100%;
  }

  .site-footer {
    padding: 30px 18px;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(217, 229, 231, 0.86);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 24px rgba(8, 72, 111,0.12);
    backdrop-filter: blur(10px);
  }

  .mobile-cta a,
  .mobile-cta button {
    display: grid;
    grid-auto-flow: row;
    justify-items: center;
    gap: 2px;
    min-height: 58px;
    padding: 8px 0;
    align-content: center;
    border: 0;
    background: transparent;
    color: var(--teal-dark);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
  }

  .mobile-cta .naver { color: var(--naver-strong); }

  .mobile-cta [data-lucide] { display: none; }
  .mobile-cta svg { display: none; width: 20px; height: 20px; stroke-width: 2.2; }
  .icons-ready .mobile-cta svg { display: block; }
}

/* — Scroll reveal (cards) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible {
  animation: card-reveal 600ms var(--ease) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes card-reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* — Card hover lift */
.principles article,
.treatment-list article,
.gallery-grid figure {
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}

.principles article:hover,
.treatment-list article:hover,
.gallery-grid figure:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-2);
}

/* — Today row accent + badge pulse */
.hours div.is-today {
  position: relative;
}

.hours div.is-today::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -2px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.is-today .today-badge {
  animation: today-badge-pulse 1200ms var(--ease) 300ms 1;
}

@keyframes today-badge-pulse {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.10); }
}

/* — Header scrolled shadow */
.site-header {
  transition: box-shadow var(--duration-base) var(--ease), background var(--duration-base) var(--ease);
}

.is-scrolled .site-header {
  box-shadow: 0 6px 22px rgba(8, 72, 111, 0.10);
}

/* — Honor reduced motion globally for new effects */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .principles article:hover,
  .treatment-list article:hover,
  .gallery-grid figure:hover { transform: none; }
  .is-today .today-badge { animation: none; }
  .site-header { transition: none; }
}
