:root {
  --brand-brown: #92826d;
  --forest: #796650;
  --ink: #514234;
  --paper: #faf8f5;
  --cream: #eee5d8;
  --muted: #6c6155;
  --line: #ddd3c7;
}

.header .brand {
  width: 230px;
  height: 84px;
  flex: 0 0 230px;
  justify-content: center;
  align-items: flex-start;
}
.brand-art {
  display: block;
  position: relative;
  width: 230px;
  height: 50px;
  overflow: hidden;
  flex: none;
}
.brand-logo {
  position: absolute;
  top: -21px;
  left: 0;
  width: 230px;
  height: auto;
}
.brand-tagline {
  display: block;
  margin: 5px 0 0 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.9px;
  line-height: 1.25;
  white-space: nowrap;
}

.hero h1 em,
.ttc-monogram em,
.about h2 em {
  color: var(--brand-brown);
}
.hero h1 em { color: #f3e6d1; }
.light,
.hero-bottom,
.hero p,
.business-copy > p,
.business-subtitle,
.light-link,
.footer p,
.footer .eyebrow,
.footer-bottom {
  color: #f0e6d9 !important;
}
.hero-bottom strong { color: #fff8ed; }
.practice { background: #f2ede7; }
.practice-layout { align-items: start; }
.practice-photo { height: auto; }
.practice-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  filter: brightness(1.1);
}
.practice-photo figcaption {
  position: static;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-shadow: none;
}
.program-list details { border-color: #c8b9a7; }
.detail-content a { border-color: #ab967d; }
.business { grid-template-columns: 43% 57%; }
.business-tags span { border-color: #b49d83; color: #fff8ed; }
.business-action-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.business-action-buttons .button { white-space: nowrap; }
.business figure { min-width: 0; }
.business figure img { object-position: 50% 40%; }
.ttc-photo { width: 100%; aspect-ratio: 1426 / 1080; overflow: hidden; }
.ttc-photo img { width: 100%; height: 100%; object-fit: cover; }
.ttc-monogram em { color: #a98f72; }
.journal-category { color: #82694f; }
.closing { background: #e9dfd0; }
.closing h2 { max-width: 900px; margin: 17px auto 28px; font-size: clamp(25px, 3vw, 36px); }
.footer { background: #3f3227; color: #f8f0e4; }
.footer-brand { width: 230px; height: auto; display: flex; align-items: flex-start; }
.footer-logo { filter: brightness(0) invert(1); }
.footer-brand .brand-tagline { color: #f0e6d9; }
.footer-bottom { border-color: #766553; }
.green:hover { background: #604e3e; }

/* The destination begins at the class table, below the sticky header. */
#class-schedule { scroll-margin-top: 0; }

/* Restore readable body copy after the original stylesheet's compact rules. */
.hero p,
.about-description p,
.section-heading > p,
.detail-content,
.schedule-intro p,
.visit-guide > p,
.business-copy > p,
.ttc-copy > p,
.journal-item p { font-size: 16px; }

@media (max-width: 760px) {
  .header .brand { width: 155px; height: 69px; flex-basis: 155px; }
  .header .brand-art { width: 155px; height: 34px; }
  .header .brand-logo { top: -14px; width: 155px; }
  .header .brand-tagline { margin: 3px 0 0 8px; font-size: 9px; letter-spacing: 1.3px; }
  .business { grid-template-columns: 1fr; }
  .business figure { min-height: 0; height: auto; aspect-ratio: 1024 / 955; }
  .business figure img { object-position: 50% 40%; }
  .ttc-photo { order: 1; }
  .footer-brand { width: 200px; }
  .footer-brand .brand-art { width: 200px; height: 44px; }
  .footer-brand .brand-logo { top: -18px; width: 200px; }
  .footer-brand .brand-tagline { margin-left: 10px; font-size: 9px; letter-spacing: 1.6px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-top > div:first-child { grid-column: auto; }
}
@media (max-width: 360px) {
  .header .brand { width: 135px; flex-basis: 135px; }
  .header .brand-art { width: 135px; height: 30px; }
  .header .brand-logo { top: -12px; width: 135px; }
  .header .brand-tagline { margin-left: 7px; font-size: 8px; letter-spacing: 1.2px; }
}
/* PC: 싱잉볼 사진 전체를 보여주고 양옆은 흐린 배경으로 채움 (모바일은 칸을 꽉 채움) */
@media (min-width: 761px) {
  .soft-fit-photo { overflow: hidden; background: #8a7a68; }
  .soft-fit-photo::before { content: ""; position: absolute; inset: -40px; background: url(assets/singing-bowl.jpg) center / cover; filter: blur(28px) brightness(.9); }
  figure.soft-fit-photo > img { object-fit: contain; object-position: center; }
}
/* 히어로 하단 수상 내역: 두 항목을 나란히, 사이에 구분선 */
.hero-awards { display: flex; align-items: flex-end; gap: 22px; }
.hero-awards > span + span { padding-left: 22px; border-left: 1px solid rgba(240, 230, 217, .35); }
.hero-bottom .hero-awards > span { font-size: 12px; }
@media (max-width: 760px) {
  .hero-bottom { flex-wrap: wrap; gap: 14px; }
  .hero-awards { gap: 16px; }
  .hero-awards > span + span { padding-left: 16px; }
}

.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8%; padding-top: 48px; }
.contact-info h2 { margin-bottom: 30px; }
.contact-info dl { margin: 0; border-top: 1px solid var(--line); }
.contact-info dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.8; }
.contact-info dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.contact-info dd { margin: 0; }
.contact-info dd a { border-bottom: 1px solid var(--line); }
.contact-info dd a:hover { border-color: var(--ink); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }
.kakao { background: #fee500; color: #191919; }
.kakao:hover { background: #fdd800; }
.contact-map-links { display: flex; gap: 22px; font-size: 13px; }
.contact-map-links a { border-bottom: 1px solid #ab967d; padding: 4px 0; }
.contact-map { min-height: 420px; background: var(--cream); }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(.85); }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 30px; }
  .contact-info h2 { font-size: 31px; margin-bottom: 22px; }
  .contact-info dl > div { grid-template-columns: 64px 1fr; gap: 12px; font-size: 14px; }
  .contact-map, .contact-map iframe { min-height: 320px; }
}
.journal-link { justify-content: flex-start; gap: 10px; }

/* Photo slider (about hero, main page moments) */
.space-slider { position: relative; overflow: hidden; overflow: clip; background: #6b5a47; }
.b2b-hero .space-slider { min-height: 620px; }
.space-track { position: absolute; inset: 0; display: flex; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.space-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; }
.space-slide img { position: absolute; inset: 0; }
.space-slide::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, #0007); pointer-events: none; }
.space-slide figcaption { position: absolute; left: 30px; bottom: 56px; z-index: 1; color: #fff; font-size: 13px; letter-spacing: .02em; }
.space-arrow { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; border: 1px solid #fffc; border-radius: 50%; background: #3a2e2259; box-shadow: 0 2px 10px #0002; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s; }
.space-arrow span { margin-top: -3px; }
.space-arrow:hover { background: #3a2e2299; }
.space-arrow.prev { left: 22px; }
.space-arrow.next { right: 22px; }
.space-dots { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; display: flex; justify-content: center; gap: 4px; }
.space-dots button { width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.space-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #fff; background: #0000002e; box-shadow: 0 0 4px #0004; transition: background .2s; }
.space-dots button[aria-current]::before { background: #fff; }
.space-arrow:focus-visible, .space-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) {
  .b2b-hero .space-slider { min-height: 0; height: 300px; }
  .space-arrow { width: 38px; height: 38px; margin-top: -19px; font-size: 22px; }
  .space-arrow.prev { left: 12px; }
  .space-arrow.next { right: 12px; }
  .space-slide figcaption { left: 18px; bottom: 44px; font-size: 11px; }
  .space-dots { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .space-track { transition: none; } }

/* 05 / SPECIAL MOMENTS (main page) */
.moments-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 7%; align-items: center; }
.moments-copy h2 { margin: 14px 0 24px; }
.moments-copy p { font-size: 15px; line-height: 2.05; }
.moments-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.moments-slider { aspect-ratio: 3 / 2; }

/* Moments gallery page */
.moments-page .moments-intro { padding-bottom: 40px; }
.moments-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11%; padding-top: 50px; align-items: end; }
.moments-intro h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.4; }
.moments-intro p { color: #5b5149; font-size: 16px; line-height: 2; }
.moments-page .moments-gallery-wrap { padding-top: 0; }
.moments-gallery figure { margin: 0; }
.moments-gallery { --photo-h: clamp(210px, 19vw, 300px); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 22px; counter-reset: moment; }
.moments-gallery li { counter-increment: moment; }
.moments-gallery li.is-wide { grid-column: span 2; }
.moments-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e9e1d6; cursor: zoom-in; overflow: hidden; }
.moments-open img { height: var(--photo-h); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .9s ease, filter .6s ease; }
.moments-open::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, #2a20174d); opacity: 0; transition: opacity .6s ease; }
.moments-open::after { content: "+"; position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #fffc; border-radius: 50%; color: #fff; font-size: 19px; font-weight: 300; line-height: 1; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.moments-open:hover img, .moments-open:focus-visible img { transform: scale(1.045); }
.moments-open:hover::before, .moments-open:hover::after, .moments-open:focus-visible::before, .moments-open:focus-visible::after { opacity: 1; transform: none; }
.moments-gallery figcaption { position: relative; display: flex; align-items: baseline; gap: 12px; margin-top: 14px; padding-bottom: 9px; color: #6c6155; font-size: 13px; letter-spacing: .01em; }
.moments-gallery figcaption::before { content: counter(moment, decimal-leading-zero); color: #a8957f; font-family: var(--serif); font-size: 12px; letter-spacing: .04em; }
.moments-gallery figcaption::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: #b8a793; transform: scaleX(.12); transform-origin: left; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.moments-gallery li:hover figcaption::after { transform: scaleX(1); }
/* Scroll reveal and soft image load (only when JS runs) */
.js .moments-gallery li { opacity: 0; transform: translateY(28px); transition: opacity .9s ease var(--delay, 0s), transform 1.1s cubic-bezier(.2, .7, .2, 1) var(--delay, 0s); }
.js .moments-gallery li.is-visible { opacity: 1; transform: none; }
.js .moments-open img { opacity: 0; transform: scale(1.06); }
.js .moments-open img.is-loaded { opacity: 1; transform: none; }
.js .moments-open:hover img.is-loaded, .js .moments-open:focus-visible img.is-loaded { transform: scale(1.045); }
.js .intro-reveal h1, .js .intro-reveal p { opacity: 0; transform: translateY(18px); animation: moments-rise 1s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .intro-reveal p { animation-delay: .18s; }
@keyframes moments-rise { to { opacity: 1; transform: none; } }
/* Lightbox open and photo crossfade */
.moments-lightbox[open] { animation: moments-fade .45s ease; }
.moments-lightbox[open] figure { animation: moments-zoom .55s cubic-bezier(.2, .7, .2, 1); }
.moments-lightbox img { transition: opacity .35s ease; }
.moments-lightbox img.is-switching { opacity: 0; }
@keyframes moments-fade { from { opacity: 0; } }
@keyframes moments-zoom { from { opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  .js .moments-gallery li, .js .moments-open img, .js .intro-reveal h1, .js .intro-reveal p { opacity: 1; transform: none; animation: none; transition: none; }
  .moments-lightbox[open], .moments-lightbox[open] figure { animation: none; }
}
.moments-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #1d1813f2; color: #fff; }
.moments-lightbox::backdrop { background: #0008; }
.moments-lightbox figure { position: absolute; inset: 56px 86px 30px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.moments-lightbox img { width: auto; height: auto; max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; }
.moments-lightbox figcaption { font-size: 14px; color: #eadfce; white-space: pre; }
.lightbox-close { position: absolute; top: 14px; right: 20px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.moments-lightbox .space-arrow.prev { left: 22px; }
.moments-lightbox .space-arrow.next { right: 22px; }
@media (max-width: 1100px) {
  .moments-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); --photo-h: clamp(200px, 28vw, 300px); }
  .moments-gallery li.is-wide { grid-column: auto; }
}
@media (max-width: 760px) {
  .moments-grid { grid-template-columns: 1fr; gap: 32px; }
  .moments-copy p { font-size: 14px; }
  .moments-intro-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 30px; }
  .moments-intro h1 { font-size: 34px; }
  .moments-intro p { font-size: 14px; }
  .moments-gallery { grid-template-columns: 1fr; gap: 30px; --photo-h: 62vw; }
  .moments-lightbox figure { inset: 60px 12px 70px; }
  .moments-lightbox .space-arrow { top: auto; bottom: 18px; margin-top: 0; }
}
