/* =========================================================
   IM WELLNESS — 회사 소개 페이지 스타일
   컬러 · 글씨체는 IM WELLNESS 디자인 시스템 기준
   ========================================================= */
:root {
  --forest: #1F3D33;
  --forest-deep: #17302A;
  --forest-2: #2A4A3E;
  --gold: #B08D3C;
  --gold-light: #C9A44E;
  --olive: #5E6B32;
  --cream: #F4F0E6;
  --sand: #EDE6D3;
  --text-soft: #E4DED0;
  --text-muted: #C9D2CB;
  --text-dim: #B9C4BB;
  --font-sans: 'Tenor Sans', 'Noto Serif KR', serif;
  --font-serif: 'Noto Serif KR', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-serif);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--gold-light); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--cream); color: var(--forest); border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* 줄바꿈: d = PC에서만, m = 모바일에서만 */
br.m { display: none; }

.container { width: 100%; max-width: 1352px; margin: 0 auto; padding: 0 56px; }
.eyebrow { margin: 0; font-family: 'Tenor Sans', sans-serif; font-size: 13px; letter-spacing: 0.32em; color: var(--gold-light); }

/* ---------- 버튼 ---------- */
.btn-gold, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; border-radius: 6px; text-decoration: none;
  font-family: var(--font-sans); font-size: 14px; letter-spacing: 0.06em;
  transition: background .3s, color .3s, border-color .3s, transform .25s var(--ease);
}
.btn-gold { height: 54px; padding: 0 30px; background: var(--gold-light); color: var(--forest); font-size: 15px; }
.btn-gold:hover { color: var(--forest); background: #D4B260; }
.btn-outline { padding: 0 22px; border: 1px solid rgba(244,240,230,.7); }
.btn-outline:hover { border-color: var(--gold-light); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15px; }

/* ---------- 상단 메뉴 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 56px; border-bottom: 1px solid rgba(244,240,230,.18);
  transition: padding .35s var(--ease), background .35s, backdrop-filter .35s;
}
.site-header.is-scrolled { padding-top: 14px; padding-bottom: 14px; background: rgba(23,48,42,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand img { height: 44px; width: auto; transition: height .35s var(--ease); }
.site-header.is-scrolled .brand img { height: 38px; }
.main-nav { display: flex; gap: 44px; font-family: var(--font-sans); font-size: 14px; letter-spacing: 0.08em; }
.main-nav a { text-decoration: none; padding: 12px 0; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.main-nav a.is-active { border-bottom-color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; font-family: 'Tenor Sans', sans-serif; font-size: 13px; letter-spacing: .1em; color: #8FA597; }
.lang-switch button { background: none; border: 0; cursor: pointer; padding: 12px 8px; color: var(--text-dim); letter-spacing: inherit; }
.lang-switch button[aria-pressed="true"] { color: var(--gold-light); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--cream); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 45; background: rgba(23,48,42,.97); display: flex; align-items: center; justify-content: center; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 28px; font-family: var(--font-sans); font-size: 22px; letter-spacing: .08em; }
.mobile-menu a { text-decoration: none; padding: 8px 12px; }

/* ---------- 오른쪽 페이지 번호 ---------- */
.page-index { position: fixed; right: 44px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: 'Tenor Sans', sans-serif; font-size: 13px; letter-spacing: .1em; }
.page-index a { display: flex; align-items: center; gap: 12px; color: var(--text-dim); text-decoration: none; padding: 4px 0; transition: color .3s, font-size .3s; }
.page-index i { display: block; width: 0; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.page-index a.is-active { color: var(--cream); font-size: 16px; }
.page-index a.is-active i { width: 40px; }

/* ---------- 섹션 공통 ---------- */
.section { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 0; }
.bg { position: absolute; inset: 0; z-index: 0; }
.bg-img { width: 100%; height: 100%; object-fit: cover; }
.bg-overlay { position: absolute; inset: 0; background: rgba(18,36,30,var(--overlay, .5)); }
.section > *:not(.bg) { position: relative; z-index: 1; }

/* 스크롤 페이드 인 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- 1. 히어로 ---------- */
.hero-img { object-position: 50% 55%; }
.hero-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-top: var(--header-h); padding-bottom: 24px; }
.hero-title { margin: 0; max-width: 780px; min-height: 2.44em; font-weight: 500; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.22; letter-spacing: -0.005em; }
html[lang="en"] .hero-title { font-family: 'Tenor Sans', sans-serif; font-weight: 400; }
.typing .ch { animation: ttFade .45s var(--ease) both; }
.type-cursor { display: inline-block; width: 3px; height: .85em; margin-left: .1em; vertical-align: -.06em; border-radius: 1px; background: var(--gold-light); animation: ttBlink 1.1s ease-in-out infinite; }
@keyframes ttFade { from { opacity: 0; filter: blur(.12em); } to { opacity: 1; filter: blur(0); } }
@keyframes ttBlink { 0%,40% { opacity: 1; } 50%,90% { opacity: 0; } 100% { opacity: 1; } }
.hero-sub { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.85; color: var(--text-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-strip { border-top: 1px solid rgba(244,240,230,.2); padding: 26px 0 30px; }
.strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) 120px; gap: 32px; align-items: start; }
.pillar { display: flex; gap: 14px; align-items: flex-start; }
.pillar svg { flex-shrink: 0; width: 30px; height: 30px; fill: none; stroke: var(--gold-light); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar strong { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 15px; letter-spacing: .04em; }
.pillar span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.scroll-hint { justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-family: 'Tenor Sans', sans-serif; font-size: 11px; letter-spacing: .3em; color: var(--text-muted); }
.scroll-hint i { display: block; width: 1px; height: 36px; background: currentColor; transform-origin: top; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2. 비전 & 미션 ---------- */
.vision-img { object-position: 50% 38%; }
.vision-body { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding-top: var(--header-h); padding-bottom: 60px; text-align: center; }
.vision-block { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.label { margin: 0; font-family: 'Tenor Sans', sans-serif; font-size: 14px; letter-spacing: .28em; color: var(--text-soft); }
.vision-text { margin: 0; font-weight: 500; font-size: 40px; line-height: 1.45; letter-spacing: -0.015em; transition: font-size .5s var(--ease), opacity .5s; }
html[lang="en"] .vision-text { font-family: 'Tenor Sans', sans-serif; font-weight: 400; }
.gold-rule { display: block; width: 48px; height: 1px; background: var(--gold-light); }
.mission-block { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 820px; }
.mission-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; background: none; border: 0; cursor: pointer; font-family: 'Tenor Sans', sans-serif; font-size: 14px; letter-spacing: .28em; }
.mission-toggle svg { stroke: var(--gold-light); stroke-width: 1.4; stroke-linecap: round; transition: transform .4s var(--ease); }
.mission-text { margin: 0; font-size: 19px; line-height: 1.85; color: #EDE6D3; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .6s var(--ease), opacity .5s; }
.vision-body.is-vision .vision-text { font-size: 46px; }
.vision-body.is-mission .vision-text { font-size: 34px; opacity: .7; }
.vision-body.is-mission .mission-text { max-height: 160px; opacity: 1; }
.vision-body.is-mission .mission-toggle svg { transform: rotate(45deg); }

/* ---------- 3. 웰니스 솔루션 (아코디언) ---------- */
.solutions { background: var(--forest); border-top: 1px solid rgba(244,240,230,.08); }
.solutions-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 34px; padding-top: calc(var(--header-h) + 20px); padding-bottom: 60px; }
.solutions-head { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.solutions-head .eyebrow { margin-bottom: 14px; }
.section-title { margin: 0; font-weight: 500; font-size: 44px; line-height: 1.25; }
html[lang="en"] .section-title { font-family: 'Tenor Sans', sans-serif; font-weight: 400; }
.solutions-intro { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

.accordion { display: flex; gap: 12px; height: 480px; perspective: 1400px; }
.panel {
  --grow: 1; --rot: 0deg; --shift: 0px; --gray: 1; --dim: .35;
  position: relative; flex: var(--grow) 1 0px; min-width: 0; min-height: 0;
  border-radius: 16px; overflow: hidden; background: var(--forest-deep);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.8);
  transform: rotateY(var(--rot));
  transition: flex-grow .6s var(--ease), transform .6s var(--ease);
}
.panel-media { position: absolute; inset: 0; overflow: hidden; }
.panel-media img { position: absolute; top: 0; left: 50%; width: 780px; max-width: none; height: 100%; object-fit: cover; transform: translateX(calc(-50% + var(--shift))); filter: grayscale(var(--gray)); transition: transform .6s var(--ease), filter .6s; }
.panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,36,30,0) 30%, rgba(18,36,30,.92) 100%), rgba(18,36,30,var(--dim)); transition: background .6s; }
.panel-hit { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.panel-num, .panel-soon-badge { position: absolute; z-index: 2; top: 16px; padding: 4px 8px; border-radius: 4px; background: var(--forest); font-family: 'Tenor Sans', sans-serif; pointer-events: none; }
.panel-num { left: 16px; font-size: 13px; letter-spacing: .1em; }
.panel-soon-badge { right: 16px; padding: 4px 10px; font-size: 11px; letter-spacing: .16em; color: var(--gold-light); }
.panel-caption { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 26px; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.panel-title-row { display: flex; align-items: center; gap: 12px; }
.panel .bar { flex-shrink: 0; width: 3px; height: 26px; border-radius: 3px; background: var(--gold-light); opacity: 0; transition: opacity .6s; }
.panel h3 { margin: 0; font-weight: 500; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: font-size .6s var(--ease); }
html[lang="en"] .panel h3 { font-family: 'Tenor Sans', sans-serif; font-weight: 400; }
.panel-body { display: flex; flex-direction: column; gap: 12px; max-height: 0; overflow: hidden; opacity: 0; transform: translateX(-14px); transition: opacity .6s .08s, transform .6s var(--ease) .08s, max-height .6s; }
.panel-body p { margin: 0; font-size: 14px; line-height: 1.7; color: #DCD6C6; }
.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border: 1px solid rgba(244,240,230,.35); border-radius: 4px; font-size: 12px; color: var(--text-soft); }
.panel-link, .panel-soon { align-self: flex-start; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 6px; font-family: var(--font-sans); font-size: 13px; pointer-events: auto; }
.panel-link { border: 1px solid var(--gold-light); color: var(--gold-light); text-decoration: none; transition: background .3s, color .3s; }
.panel-link:hover { background: var(--gold-light); color: var(--forest); }
.panel-link[hidden] { display: none; }
.panel-soon { border: 1px dashed rgba(244,240,230,.45); background: none; color: var(--text-dim); cursor: not-allowed; }
.panel-soon[hidden] { display: none; }
.panel.is-active .bar { opacity: 1; }
.panel.is-active h3 { font-size: 26px; }
.panel.is-active .panel-body { max-height: 260px; opacity: 1; transform: none; }

/* ---------- 4. 협업 문의 ---------- */
.contact-img { object-position: 55% 50%; }
.contact-inner { flex-grow: 1; display: flex; flex-direction: column; padding-top: var(--header-h); }
.lanyard-wrap { position: relative; height: clamp(360px, 48vh, 460px); flex-shrink: 0; }
.lanyard-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.lanyard-eyebrow { position: absolute; left: 56px; top: 28px; pointer-events: none; }
.contact-body { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-bottom: 40px; text-align: center; }
.contact-intro { margin: 0; font-size: 17px; line-height: 1.85; color: var(--text-soft); }
.contact-email { font-family: 'Tenor Sans', sans-serif; font-size: 28px; letter-spacing: .04em; text-decoration: none; padding-bottom: 8px; border-bottom: 1px solid var(--gold-light); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 56px 26px; border-top: 1px solid rgba(244,240,230,.2); font-size: 13px; color: var(--text-muted); }
.footer-brand { font-family: 'Tenor Sans', sans-serif; letter-spacing: .28em; color: var(--cream); }

/* 빛 테두리 버튼 (Specular) */
@property --sb-a { syntax: '<angle>'; inherits: true; initial-value: -45deg; }
.btn-specular { position: relative; isolation: isolate; height: 54px; padding: 0 32px; border-radius: 8px; margin-top: 10px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); transition: transform .25s var(--ease), --sb-a .35s ease-out, background .3s; }
.btn-specular:active { transform: scale(.97); }
.sb-ring, .sb-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: conic-gradient(from calc(var(--sb-a) - 45deg), transparent 0deg, rgba(255,255,255,.95) 35deg, rgba(255,255,255,.95) 55deg, transparent 90deg, transparent 190deg, rgba(255,255,255,.45) 215deg, rgba(255,255,255,.45) 235deg, transparent 260deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--sb-o, .35); transition: opacity .3s; }
.sb-glow { padding: 3px; filter: blur(5px); opacity: calc(var(--sb-o, .35) * .7); }
.sb-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; }
@keyframes sbSpin { from { --sb-a: -45deg; } to { --sb-a: 315deg; } }
@media (hover: none) { .btn-specular { --sb-o: .8; animation: sbSpin 7s linear infinite; } }

/* =========================================================
   모바일 (폭 900px 이하)
   ========================================================= */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  br.d { display: none; }
  br.m { display: inline; }
  .container { padding: 0 22px; }
  .eyebrow { font-size: 11px; letter-spacing: .28em; }
  .site-header { padding: 12px 14px 12px 20px; }
  .site-header.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
  .brand img, .site-header.is-scrolled .brand img { height: 32px; }
  .main-nav, .header-cta { display: none; }
  .header-actions { gap: 2px; }
  .lang-switch { font-size: 12px; }
  .lang-switch button { padding: 12px 6px; min-width: 36px; }
  .menu-toggle { display: block; }
  .page-index { display: none; }

  .hero-img { object-position: 50% 40%; }
  .hero-body { justify-content: flex-end; gap: 16px; padding-bottom: 26px; }
  .hero-title { font-size: 34px; line-height: 1.28; }
  .hero-sub { font-size: 13px; line-height: 1.7; letter-spacing: -0.01em; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas a { width: 100%; height: 50px; }
  .hero-strip { padding: 18px 0 26px; }
  .strip-grid { grid-template-columns: 1fr; gap: 14px; }
  .pillar { align-items: center; gap: 12px; }
  .pillar svg { width: 24px; height: 24px; stroke-width: 1.6; }
  .pillar div { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 13px; }
  .pillar strong { font-size: 13px; }
  .pillar span { margin: 0; }
  .pillar span::before { content: "· "; }
  .scroll-hint { display: none; }

  .vision-body { gap: 26px; padding-left: 20px; padding-right: 20px; }
  .label { font-size: 12px; }
  .vision-text, .vision-body.is-vision .vision-text, .vision-body.is-mission .vision-text { font-size: 14px; line-height: 1.8; letter-spacing: -0.02em; opacity: 1; }
  .gold-rule { width: 36px; }
  .mission-toggle { pointer-events: none; font-size: 12px; min-height: 0; }
  .mission-toggle svg { display: none; }
  .mission-text { max-height: none; opacity: 1; font-size: 14px; }

  .solutions-body { gap: 22px; padding-top: calc(var(--header-h) + 30px); padding-bottom: 36px; }
  .solutions-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .solutions-head .eyebrow { margin-bottom: 10px; }
  .section-title { font-size: 30px; }
  .solutions-intro { font-size: 14px; line-height: 1.75; }
  .accordion { flex-direction: column; height: 660px; gap: 10px; perspective: none; }
  .panel { border-radius: 14px; transform: none; }
  .panel-media img { left: 0; top: 50%; width: 100%; height: 440px; transform: translateY(calc(-50% + var(--shift))); }
  .panel-caption { left: 18px; right: 18px; bottom: 18px; gap: 10px; }
  .panel-num { display: none; }
  .panel-soon-badge { top: 12px; right: 12px; font-size: 10px; }
  .panel h3 { font-size: 17px; }
  .panel.is-active h3 { font-size: 21px; }
  .panel-body p { font-size: 13px; }
  .panel .tags { display: none; }
  .panel-link, .panel-soon { align-self: stretch; justify-content: center; }
  .panel.is-active .panel-body { max-height: 220px; }

  .lanyard-wrap { height: 400px; }
  .lanyard-eyebrow { left: 20px; top: 18px; }
  .contact-body { padding: 0 24px 36px; }
  .contact-intro { font-size: 14px; line-height: 1.8; letter-spacing: -0.02em; }
  .contact-email { font-size: 18px; letter-spacing: .02em; }
  .btn-specular { align-self: stretch; }
  .site-footer { flex-direction: column; gap: 6px; padding: 20px 24px 28px; font-size: 12px; }
}

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