/* LOPI 리브랜딩 시안 — Neko Health 밝은 톤 차용
   색: 흰 바탕 + 잉크(LOPI 로고색 #191F28 계열) + 로피 라임(#BEF264)을 '무대 조명' 빛번짐으로만 쓴다. */
:root {
  --paper: #ffffff;
  --mist: #f3f5f4;          /* Neko의 연회색 패널 */
  --ink: #1d242b;           /* 제목·본문 */
  --ink-2: #4e5b63;         /* 보조 글 (흰 바탕 대비 7:1) */
  --ink-3: #6f7c83;         /* 캡션 (흰 바탕 대비 4.6:1) */
  --line: #dfe4e5;
  --lime: #bef264;          /* LOPI 브랜드 라임 */
  --lime-glow: #eefbc9;     /* 라임을 빛으로 푼 값 */
  --lime-ink: #3f5a0e;      /* 라임 계열 글자(대비 확보) */
  --serif: "Noto Serif KR", "Newsreader", Georgia, serif;
  --en: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans KR", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --rhythm: clamp(96px, 12vw, 176px);
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.7 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: keep-all; overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* 타이포 — Neko: 세리프 400, 줄간 1.0~1.1, 큰 크기 */
.display, .display-l, .display-m, .display-s { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; text-wrap: balance; }
.display { font-size: clamp(48px, 7.2vw, 96px); line-height: 1.08; }
.display-l { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.12; }
.display-m { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.16; }
.display-s { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 36em; }
.note { font-size: 14px; color: var(--ink-3); margin-top: 18px; }

/* 버튼 — Neko의 어두운 사각 화살표 + 글자 */
.btn { display: inline-flex; align-items: center; gap: 12px; font: 500 15px/1 var(--sans); text-decoration: none; transition: transform .5s var(--ease); }
.btn svg { width: 40px; height: 40px; padding: 12px; border-radius: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn-ink svg { background: var(--ink); stroke: #fff; }
.btn-ghost svg { background: rgba(255,255,255,.75); stroke: var(--ink); backdrop-filter: blur(6px); }
.btn:hover svg { transform: translateX(4px); }

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px; padding: 18px var(--gutter); transition: background .4s, box-shadow .4s; }
.nav.is-solid { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-logo { display: grid; place-items: center; width: 52px; height: 40px; background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(29,36,43,.08); }
.nav-logo img { width: 34px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--ink); opacity: .78; transition: opacity .3s; }
.nav-links a:hover { opacity: 1; }
.nav-cta svg { width: 34px; height: 34px; padding: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 2px 12px rgba(29,36,43,.08); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.6px; margin: 4px auto; background: var(--ink); transition: transform .4s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.8px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 40; background: #fff; padding: 110px var(--gutter) 40px; display: grid; align-content: start; gap: 6px; }
.sheet[hidden] { display: none; }
.sheet a { font: 400 34px/1.5 var(--serif); text-decoration: none; }

/* HERO */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; clip-path: inset(var(--inset, 0px) round var(--r, 0px)); will-change: clip-path; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(var(--zoom, 1.04)); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.42) 38%, rgba(255,255,255,0) 62%); }
.hero-copy { padding: 120px var(--gutter) 160px; max-width: 760px; }
.hero-en { font: 300 clamp(20px, 1.8vw, 26px)/1.3 var(--en); color: var(--ink-2); margin-top: 18px; }
.hero-sub { margin: 26px 0 34px; max-width: 27em; color: var(--ink-2); }
.hero-facts { position: absolute; left: 0; right: 0; bottom: 36px; margin: 0 auto; display: flex; justify-content: center; gap: 0; }
.hero-facts div { padding: 0 clamp(18px, 3vw, 40px); text-align: center; border-left: 1px solid rgba(29,36,43,.18); }
.hero-facts div:first-child { border-left: 0; }
.hero-facts dt { font: 500 15px/1.3 var(--sans); }
.hero-facts dd { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }

/* STORY */
.story { padding-top: var(--rhythm); }
.story-open { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: end; }
.story-open-text p + p, .story-close-text p + p { margin-top: 1.1em; }
.story-open-text, .story-close-text { color: var(--ink-2); max-width: 34em; }
.story-open-text p:last-child { color: var(--ink); font-weight: 500; }
.story-figure { margin-top: clamp(56px, 7vw, 96px); margin-bottom: 0; }
.story-figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); }

.numbers { margin-top: var(--rhythm); }
.numbers-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.numbers-list li { padding: 30px 28px 8px 0; }
.numbers-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.num { font: 300 clamp(44px, 4.6vw, 64px)/1 var(--en); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.num span { font-size: .5em; margin-left: 2px; color: var(--ink-2); }
.num-label { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

.belief { position: relative; margin: var(--rhythm) 0 0; }
.belief img { width: 100%; height: min(92vh, 900px); object-fit: cover; }
.belief-quote { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: min(520px, 44vw); margin: 0; padding: 36px 36px 30px; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); border-radius: var(--radius); }
.belief-quote p { font: 400 clamp(20px, 1.8vw, 25px)/1.55 var(--serif); letter-spacing: -0.015em; }
.belief-quote footer { margin-top: 18px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.belief-quote footer::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-glow); }

.story-close { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); padding-top: var(--rhythm); align-items: start; }

/* STATEMENT */
.statement { padding: var(--rhythm) 0; }
.statement-text { font: 400 clamp(28px, 3.3vw, 46px)/1.42 var(--serif); letter-spacing: -0.02em; max-width: 22em; margin-left: auto; }
.statement-text .w { color: #c7cfd2; transition: color .5s linear; }
.statement-text .w.on { color: var(--ink); }

/* DAILY — 라임 빛번짐 위 카드 4장 */
.daily { position: relative; padding: var(--rhythm) 0; overflow: hidden; }
.glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 50% 0%, var(--lime-glow) 0%, rgba(238,251,201,0) 70%),
  radial-gradient(40% 40% at 85% 70%, rgba(238,251,201,.7) 0%, rgba(238,251,201,0) 70%); }
.daily .wrap { position: relative; }
.cards { list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card h3 { font: 400 26px/1.3 var(--serif); margin-top: 22px; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 22em; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 8px 10px; border-radius: 8px; background: rgba(29,36,43,.38); backdrop-filter: blur(8px); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* CYCLE — 스크롤에 따라 원이 그려진다 */
.cycle { position: relative; height: 320vh; }
.cycle-sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr; padding-top: clamp(84px, 11vh, 120px); overflow: hidden; }
.glow-center { background: radial-gradient(closest-side at 50% 60%, var(--lime-glow) 0%, rgba(238,251,201,.55) 45%, rgba(255,255,255,0) 100%); }
.cycle-head .lead { margin: 14px auto 0; }
.ring { position: relative; width: min(56vh, 82vw, 480px); aspect-ratio: 1; margin: auto; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 1.2; }
.ring-base { stroke: rgba(29,36,43,.12); }
.ring-draw { stroke: var(--ink); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.node { position: absolute; display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--sans); letter-spacing: .06em; color: var(--ink-3); transition: color .4s; white-space: nowrap; }
.node i { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.4px solid var(--ink-3); transition: background .4s, border-color .4s, box-shadow .4s; }
.node.is-on { color: var(--ink); }
.node.is-on i { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 6px var(--lime-glow); }
.n0 { left: 50%; top: 0; transform: translate(-4.5px, -50%); }
.n1 { left: 93.3%; top: 75%; transform: translate(-4.5px, -50%); }
.n2 { left: 6.7%; top: 75%; transform: translate(calc(-100% + 4.5px), -50%); flex-direction: row-reverse; }
.ring-center { position: absolute; inset: 18%; display: grid; place-items: center; text-align: center; }
.step { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.step.is-on { opacity: 1; transform: none; filter: none; }
.step h3 { font: 400 clamp(24px, 2.4vw, 32px)/1.25 var(--serif); }
.step p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* PATH — 연회색 패널, 왼쪽 사진·오른쪽 탭 */
.path { background: var(--mist); }
.path-grid { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 100svh; }
.path-media { position: relative; overflow: hidden; border-radius: 0 var(--radius) var(--radius) 0; min-height: 60vh; }
.path-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.path-media img.is-on { opacity: 1; transform: none; }
.path-copy { align-self: center; padding: var(--rhythm) var(--gutter); max-width: 640px; }
.tabs { display: flex; gap: 26px; margin: 40px 0 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { appearance: none; background: none; border: 0; padding: 0 0 12px; margin-bottom: -1px; font: 500 13px/1.2 var(--sans); letter-spacing: .04em; color: var(--ink-3); border-bottom: 1.5px solid transparent; cursor: pointer; transition: color .3s, border-color .3s; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.tabs button:hover { color: var(--ink); }
.pane { padding-top: 22px; min-height: 8.5em; color: var(--ink-2); max-width: 32em; animation: pane-in .6s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } }
.ladder { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: step; }
.ladder li { counter-increment: step; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 14px 8px 10px; background: #fff; border-radius: 10px; }
.ladder li::before { content: counter(step); font: 500 11px/1 var(--sans); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--lime-glow); color: var(--lime-ink); }

/* NOW — 기록 장부 */
.now { padding: var(--rhythm) 0; }
.now-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 120px); align-items: start; }
.now .lead { margin-top: 20px; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger tr { border-top: 1px solid var(--line); }
.ledger tr:last-child { border-bottom: 1px solid var(--line); }
.ledger th { text-align: left; font-weight: 400; font-size: 15px; color: var(--ink-2); padding: 22px 12px 22px 0; }
.ledger th em { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.ledger td:nth-child(2) { font: 300 clamp(32px, 3vw, 44px)/1 var(--en); letter-spacing: -0.02em; text-align: right; padding: 0 20px; white-space: nowrap; }
.ledger td:nth-child(2) span { font: 400 14px/1 var(--sans); color: var(--ink-2); margin-left: 4px; }
.ledger td:last-child { font-size: 13px; color: var(--ink-3); text-align: right; white-space: nowrap; }

/* GLOBAL */
.global { padding-bottom: var(--rhythm); }
.global-media { margin: 0 var(--gutter); }
.global-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.global-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); margin-top: clamp(48px, 6vw, 80px); }
.cities { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.cities li { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 400 20px/1.4 var(--serif); }
.cities span { flex: 0 0 64px; font: 500 13px/2.1 var(--sans); color: var(--ink-3); }

/* CLOSING */
.closing { position: relative; padding: var(--rhythm) 0; isolation: isolate; overflow: hidden; }
.closing-media { position: absolute; inset: 0; z-index: -1; }
.closing-media img { width: 100%; height: 100%; object-fit: cover; }
.closing-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.2) 50%, rgba(255,255,255,.7)); }
.closing-copy { padding-block: clamp(40px, 8vw, 120px); }
.closing .lead { margin: 22px auto 34px; }

/* FOOTER */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 13px; color: var(--ink-3); }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.foot p { max-width: 60em; }

/* 등장 — 이미 보이는 상태에서 살짝 떠오른다 */
.reveal { opacity: .001; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 반응형 */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .numbers-list { grid-template-columns: repeat(2, 1fr); }
  .numbers-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .numbers-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { align-items: start; }
  .hero-media::after { background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.7) 34%, rgba(255,255,255,0) 62%); }
  .hero-media img { object-position: 62% 50%; }
  .hero-copy { padding: 104px var(--gutter) 0; text-align: center; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-facts { bottom: 24px; }
  .hero-facts div { padding: 0 14px; }
  .hero-facts dt { font-size: 14px; }
  .hero-facts dd { font-size: 12px; }
  .story-open, .story-close, .now-grid, .global-grid { grid-template-columns: 1fr; }
  .story-figure img { aspect-ratio: 4 / 3; }
  .belief img { height: 70vh; }
  .belief-quote { position: relative; right: auto; top: auto; transform: none; width: auto; margin: -64px var(--gutter) 0; }
  .statement-text { margin-left: 0; }
  .path-grid { grid-template-columns: 1fr; }
  .path-media { border-radius: 0; min-height: 62vh; }
  .ledger td:last-child { display: none; }
  .ledger th { font-size: 14px; }
  .foot-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .numbers-list { grid-template-columns: 1fr; }
  .numbers-list li, .numbers-list li + li { padding: 26px 0 10px; border-left: 0; border-top: 1px solid var(--line); }
  .numbers-list li:first-child { border-top: 0; }
  .n1 { left: auto; right: -2px; top: 82%; transform: translate(0, -50%); }
  .n2 { left: -2px; top: 82%; transform: translate(0, -50%); flex-direction: row; }
  .ring { width: min(78vw, 46vh); }
  .global-media { margin: 0; }
  .global-media img { border-radius: 0; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cycle { height: auto; }
  .cycle-sticky { position: relative; height: auto; padding-bottom: 80px; }
  .step { transition: none; }
  .statement-text .w { color: var(--ink); }
}
