/* =========================================================
   EKA YOGA — themeable
   Default: NOIR (deep plum × antique gold)
   Toggle:  IVORY (warm light)
   ========================================================= */
:root {
  /* palette (noir defaults) */
  --bg: #140d1a;
  --bg-2: #1b1322;
  --paper: #221830;
  --paper-2: #2a1f3a;
  --ink: #f4ece0;
  --text: #c5bacb;
  --muted: #968aa6;
  --line: rgba(244, 236, 224, 0.12);
  --line-strong: rgba(244, 236, 224, 0.2);
  --gold: #c6a463;
  --gold-2: #e3c88c;
  --gold-soft: rgba(198, 164, 99, 0.14);
  --rose: rgba(201, 139, 180, 0.30);
  --shadow-sm: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow: 0 40px 90px rgba(0, 0, 0, 0.6);

  /* theme-aware surfaces / effects */
  --header-bg: rgba(20, 13, 26, 0.72);
  --strip-bg: rgba(0, 0, 0, 0.16);
  --footer-bg: rgba(0, 0, 0, 0.22);
  --badge-bg: rgba(34, 24, 48, 0.86);
  --accent-border: rgba(227, 200, 140, 0.45);
  --btn-grad: linear-gradient(180deg, var(--gold-2), var(--gold));
  --btn-fg: #1c1326;
  --btn-shadow: rgba(198, 164, 99, 0.26);
  --hero-img-filter: saturate(0.92) brightness(0.96);
  --logo-plate-bg: #fbf6ee;
  --logo-plate-pad: 5px 11px;
  --page-glow:
    radial-gradient(55% 40% at 82% -5%, rgba(201, 139, 180, 0.16), transparent 70%),
    radial-gradient(45% 35% at 0% 8%, rgba(198, 164, 99, 0.10), transparent 70%);

  /* 옴 배경 (noir) */
  --om-fill: rgba(227, 200, 140, 0.10);
  --om-stroke: rgba(230, 200, 130, 0.85);
  --om-glow: rgba(255, 176, 74, 0.6);
  --om-dot: #e6c882;

  /* tokens */
  --radius: 20px;
  --radius-sm: 13px;
  --serif: "Noto Serif KR", "Cormorant Garamond", Georgia, serif;
  --display: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --sans: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  --maxw: 1240px;
}

:root[data-theme="light"] {
  --bg: #eef5f7;            /* 거의 흰색에 가까운 아주 옅은 블루 (#BAD7DE 대비 ~4배 연하게) */
  --bg-2: #f4f9fa;
  --paper: #ffffff;         /* 순백 패널로 카드가 또렷하게 */
  --paper-2: #f7fbfc;
  --ink: #1d3338;          /* deep teal-slate text */
  --text: #3e565c;
  --muted: #6c868c;
  --line: rgba(29, 51, 56, 0.13);
  --line-strong: rgba(29, 51, 56, 0.2);
  --gold: #2b6e7a;          /* accent → deep teal */
  --gold-2: #1d4e58;
  --gold-soft: rgba(43, 110, 122, 0.16);
  --rose: rgba(43, 110, 122, 0.16);
  --shadow-sm: 0 14px 36px rgba(29, 51, 56, 0.10);
  --shadow: 0 40px 90px rgba(29, 51, 56, 0.18);

  --header-bg: rgba(238, 245, 247, 0.82);
  --strip-bg: rgba(29, 51, 56, 0.04);
  --footer-bg: rgba(29, 51, 56, 0.04);
  --badge-bg: rgba(255, 255, 255, 0.92);
  --accent-border: rgba(43, 110, 122, 0.5);
  --btn-fg: #ffffff;
  --btn-shadow: rgba(43, 110, 122, 0.32);
  --hero-img-filter: none;
  --logo-plate-bg: transparent;
  --logo-plate-pad: 0;
  --page-glow:
    radial-gradient(55% 42% at 85% -5%, rgba(43, 110, 122, 0.14), transparent 70%),
    radial-gradient(45% 38% at 0% 6%, rgba(255, 255, 255, 0.55), transparent 70%);

  /* 옴 배경 (light · teal) */
  --om-fill: rgba(43, 110, 122, 0.12);
  --om-stroke: rgba(31, 78, 88, 0.9);
  --om-glow: rgba(43, 110, 122, 0.45);
  --om-dot: #2b6e7a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: var(--page-glow);
  background-attachment: fixed;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--gold-soft); color: var(--gold-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}
.header-right { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 18px); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo {
  width: clamp(120px, 13vw, 172px);
  height: auto;
  display: block;
  background: var(--logo-plate-bg);
  padding: var(--logo-plate-pad);
  border-radius: 10px;
}
.brand-tagline {
  display: block;
  max-width: 210px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:not(.nav-cta) {
  position: relative;
  padding: 6px 0;
  color: var(--text);
  transition: color 0.2s ease;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:not(.nav-cta):hover { color: var(--ink); }
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-2); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: block; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* ---------- Buttons ---------- */
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 26px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.nav-cta, .button.primary {
  background: var(--btn-grad);
  color: var(--btn-fg);
  border: 1px solid var(--gold);
  box-shadow: 0 14px 30px var(--btn-shadow);
}
.nav-cta:hover, .button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px var(--btn-shadow);
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.button.secondary:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); }

.header-tools { display: flex; align-items: center; gap: 12px; }

/* ---------- Typography ---------- */
.eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); opacity: 0.85; }

h1, h2, h3 { color: var(--ink); }
.hero-copy h1, .page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.26;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
h3 { margin: 14px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text); line-height: 1.85; }

/* ---------- Layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 64px); }
.section.tight { padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(44px, 6vw, 76px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(30px, 4vw, 56px); }
.section-head p { margin: 14px 0 0; color: var(--muted); max-width: 520px; }
.two-col { display: grid; grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
.rich-text p { color: var(--text); line-height: 1.9; }
.rich-text p + p { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px) clamp(60px, 9vw, 120px);
}
.hero-copy { max-width: 640px; }
.hero-copy > p { margin: 28px 0 0; max-width: 500px; font-size: clamp(16px, 1.3vw, 18px); color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px 30px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-meta div { min-width: 96px; }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--gold-2); line-height: 1.1; }
.hero-meta span { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

.hero-media { position: relative; margin: 0; }
.hero-media::before {
  content: ""; position: absolute; inset: -8% -6% -10% -8%; z-index: 0;
  background: radial-gradient(60% 60% at 70% 25%, var(--rose), transparent 70%);
  filter: blur(10px);
}
.hero-media img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 240px 240px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  filter: var(--hero-img-filter);
}
.hero-media::after {
  content: ""; position: absolute; z-index: 2; inset: 0;
  border-radius: 240px 240px var(--radius) var(--radius);
  border: 1px solid var(--accent-border);
  pointer-events: none;
}
.hero-badge {
  position: absolute; z-index: 3; left: -14px; bottom: 34px;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 20px;
  background: var(--badge-bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px var(--gold-soft); }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--strip-bg); }
.strip-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(26px, 3.6vw, 40px) clamp(20px, 5vw, 64px);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(18px, 3.4vw, 48px); flex-wrap: wrap;
  font-family: var(--serif); font-size: clamp(17px, 1.9vw, 24px); color: var(--muted);
}
.strip-inner span { color: var(--ink); white-space: nowrap; }
.strip-inner em { color: var(--gold); font-style: normal; }

/* ---------- Programs (home) ---------- */
.home-programs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) clamp(72px, 9vw, 124px);
}
.home-programs a {
  position: relative; display: block; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.home-programs img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; transition: transform 0.7s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease; }
.home-programs a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,9,18,0.82) 4%, rgba(14,9,18,0.05) 55%); }
.home-programs span { position: absolute; left: 22px; bottom: 22px; z-index: 2; color: #f4ece0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.home-programs a:hover img { transform: scale(1.06); opacity: 1; }
.home-programs a:hover { border-color: var(--accent-border); }

/* ---------- Value cards ---------- */
.values, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values article, .card-grid article {
  position: relative; padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--paper), var(--bg-2));
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s ease, border-color 0.32s ease;
}
.values article:hover, .card-grid article:hover { transform: translateY(-5px); border-color: var(--accent-border); }
.values article strong, .card-grid article strong { display: block; margin-top: 14px; font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--ink); }
.values article p, .card-grid article p { margin: 12px 0 0; color: var(--muted); }
.values .idx, .card-grid .idx { font-family: var(--display); font-size: 28px; font-style: italic; font-weight: 500; color: var(--gold); }

/* ---------- Effect list ---------- */
.effect-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.effect-list p {
  margin: 0; display: flex; gap: 14px; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--text); line-height: 1.65;
}
.effect-list p::before { content: ""; flex: none; margin-top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.about-effects { border-top: 1px solid var(--line); }

/* ---------- Facility ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.facility-grid article {
  padding: clamp(30px, 3.4vw, 46px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--paper), var(--bg-2));
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.facility-grid article:hover { transform: translateY(-5px); border-color: var(--accent-border); }
.facility-grid h2 { font-size: clamp(22px, 2.4vw, 28px); }
.facility-grid p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Programs page ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform 0.34s ease, border-color 0.34s ease;
}
.program-card:hover { transform: translateY(-6px); border-color: var(--accent-border); }
.program-card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.program-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.program-card:hover .thumb img { transform: scale(1.05); opacity: 1; }
.program-card .tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(20,13,26,0.72); border: 1px solid rgba(255,255,255,0.16);
  color: #e7d2a0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.program-card .body { padding: 24px 26px 30px; }
.program-card h2 { font-size: 24px; }
.program-card p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ---------- Quote band (always dark feature) ---------- */
.quote-band { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 80px); }
.quote-inner {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(60% 80% at 88% 6%, rgba(201,139,180,0.20), transparent 60%),
    linear-gradient(150deg, #1d1426, #281b38);
  color: #f4ece0;
  padding: clamp(52px, 7vw, 104px) clamp(28px, 6vw, 88px);
}
.quote-inner .mark { font-family: var(--display); font-size: 96px; line-height: 0.5; color: #c6a463; }
.quote-inner blockquote { margin: 14px 0 0; max-width: 800px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.3vw, 42px); line-height: 1.45; word-break: keep-all; }
.quote-inner cite { display: block; margin-top: 26px; font-style: normal; color: #e3c88c; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  max-width: var(--maxw); margin: 0 auto clamp(72px, 9vw, 124px);
  padding: clamp(42px, 5vw, 70px) clamp(28px, 5vw, 72px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(70% 130% at 100% 0%, var(--gold-soft), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--bg-2));
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 42px); }
.cta-band p { margin: 12px 0 0; color: var(--muted); max-width: 540px; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 64px) clamp(30px, 4vw, 56px); }
.page-hero h1 { font-size: clamp(34px, 5vw, 66px); }
.page-hero p { max-width: 700px; margin: 24px 0 0; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--footer-bg); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 7vw, 92px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 40px); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.footer-brand h3 { margin: 0 0 14px; font-size: 26px; color: var(--ink); }
.footer-brand p { color: var(--muted); max-width: 340px; }
.footer-brand .button { margin-top: 24px; }
.footer-col h4 { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }
.footer-col a, .footer-col p { display: block; margin: 0 0 10px; color: var(--text); font-size: 15px; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 22px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; letter-spacing: 0.02em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 11; border-radius: 140px 140px var(--radius) var(--radius); }
  .hero-media::after { border-radius: 140px 140px var(--radius) var(--radius); }
  .home-programs, .values, .card-grid, .program-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute;
    left: clamp(16px, 4vw, 40px); right: clamp(16px, 4vw, 40px); top: 72px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--paper); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.nav-cta) { padding: 12px 8px; border-radius: 10px; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 6px; }
  .brand-tagline { display: none; }
  .home-programs, .values, .card-grid, .program-grid, .effect-list, .facility-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .strip-inner em { display: none; }
}

/* =========================================================
   옴(ॐ) 만트라 — 촛불처럼 일렁이는 3D 집중 모티프 (Trataka)
   ========================================================= */
.om-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 50% 128%, #34210f 0%, #1a0f12 46%, #0d0710 100%);
}
.om-stage {
  position: relative;
  min-height: clamp(380px, 56vh, 580px);
  display: grid;
  place-items: center;
}
/* 촛불 불꽃 */
.om-flame {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: clamp(200px, 28vw, 360px);
  height: clamp(400px, 56vw, 680px);
  transform: translate(-50%, -52%);
  background: radial-gradient(50% 42% at 50% 60%, rgba(255, 200, 102, 0.55), rgba(255, 138, 40, 0.22) 44%, transparent 72%);
  border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
  filter: blur(28px);
  mix-blend-mode: screen;
  animation: omFlicker 4.6s ease-in-out infinite;
}
/* 은은한 후광 */
.om-glow {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: clamp(360px, 52vw, 760px);
  height: clamp(360px, 52vw, 760px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 184, 86, 0.30), rgba(198, 135, 59, 0.10) 42%, transparent 66%);
  filter: blur(10px);
  animation: omPulse 7s ease-in-out infinite;
}
/* ॐ 3D 글자 */
.om-symbol {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  line-height: 1;
  font-family: "Noto Serif Devanagari", "Noto Serif KR", serif;
  animation: omBreathe 7s ease-in-out infinite;
}
.om-symbol span {
  grid-area: 1 / 1;
  display: block;
  font-size: clamp(170px, 30vw, 400px);
  font-weight: 600;
}
.om-depth {
  color: #3a240f;
  transform: translate(3px, 6px);
  text-shadow:
    1px 1px 0 #311f0c, 2px 3px 0 #2a1a0a, 3px 5px 0 #241608,
    5px 8px 0 #1d1107, 7px 12px 0 #160c06, 10px 16px 22px rgba(0, 0, 0, 0.6);
}
.om-face {
  background: linear-gradient(165deg, #fff1c6 0%, #ffd07b 32%, #d68a32 62%, #9c5a22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 176, 74, 0.5)) drop-shadow(0 0 40px rgba(255, 140, 40, 0.32));
  animation: omShine 4.6s ease-in-out infinite;
}
/* 떠오르는 불씨 */
.ember {
  position: absolute; left: 50%; bottom: 32%; z-index: 2;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 196, 104, 0.95);
  filter: blur(0.4px);
  opacity: 0;
  animation: omEmber 6s ease-in infinite;
}
.ember.e1 { margin-left: -34px; animation-delay: 0.4s; }
.ember.e2 { margin-left: 16px; animation-delay: 2.3s; }
.ember.e3 { margin-left: -8px; animation-delay: 4s; }

.om-caption {
  position: relative; z-index: 3;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) clamp(52px, 7vw, 96px);
}
.om-caption .eyebrow { justify-content: center; color: #e3c88c; }
.om-caption .eyebrow::before { background: #c6a463; }
.om-caption h2 { color: #f6efe2; }
.om-caption p { margin: 16px auto 0; max-width: 540px; color: #c3b6a6; }

@keyframes omBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes omPulse {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes omShine {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 176, 74, 0.48)) drop-shadow(0 0 36px rgba(255, 140, 40, 0.28)); }
  35% { filter: drop-shadow(0 0 24px rgba(255, 200, 96, 0.72)) drop-shadow(0 0 54px rgba(255, 150, 50, 0.42)); }
  62% { filter: drop-shadow(0 0 13px rgba(255, 168, 70, 0.42)) drop-shadow(0 0 30px rgba(255, 130, 38, 0.24)); }
}
@keyframes omFlicker {
  0%, 100% { opacity: 0.86; transform: translate(-50%, -52%) scale(1, 1); }
  18% { opacity: 1; transform: translate(-50.6%, -52%) scale(1.02, 1.05); }
  33% { opacity: 0.7; transform: translate(-49.6%, -51.5%) scale(0.97, 0.95); }
  50% { opacity: 0.93; transform: translate(-50.4%, -52.5%) scale(1.03, 1.06); }
  67% { opacity: 0.74; transform: translate(-49.8%, -51.7%) scale(0.99, 0.98); }
  84% { opacity: 0.9; transform: translate(-50.2%, -52.1%) scale(1.01, 1.02); }
}
@keyframes omEmber {
  0% { opacity: 0; transform: translateY(0) translateX(0) scale(1); }
  14% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(-200px) translateX(16px) scale(0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .om-flame, .om-glow, .om-symbol, .om-face, .ember { animation: none; }
  .ember { display: none; }
}

@media (max-width: 720px) {
  .om-stage { min-height: clamp(320px, 50vh, 460px); }
}

/* =========================================================
   옴(ॐ) 배경 — 스크롤해도 고정. 깔끔한 텍스트 ॐ + 외곽선이
   시계방향으로 흐르며 반짝이는 애니메이션 (테마별 색상)
   ========================================================= */
.om-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.om-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.om-svg {
  position: relative;
  width: min(80vmin, 720px);
  height: min(80vmin, 720px);
  overflow: visible;
  opacity: 1; /* JS가 점 응집 후 0→1로 페이드인. 스크립트 없으면 그대로 표시 */
}
.om-svg text {
  font-family: "Noto Serif Devanagari", "Noto Serif KR", serif;
  font-size: 60px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
}
/* 면(텍스트처럼 또렷한 글자) */
.om-fill { fill: var(--om-fill); stroke: none; }
/* 외곽선(흐르는 반짝임) */
.om-stroke {
  fill: none;
  stroke: var(--om-stroke);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3.5 22;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 2.5px var(--om-glow));
  animation: omTrace 7s linear infinite, omTwinkle 2.6s ease-in-out infinite;
}
/* dasharray 합(25.5)의 정수배만큼 이동 → 끊김 없이 시계방향 순환 */
@keyframes omTrace { to { stroke-dashoffset: -255; } }
@keyframes omTwinkle { 0%, 100% { opacity: 0.78; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .om-dots { display: none; }
  .om-stroke { stroke-dasharray: none; animation: none; opacity: 0.7; }
}
