/* KHUN studio — So, Revive. 바이탈 모니터 / 사이버 톤. */
:root {
  --bg: #020a06;
  --panel: #05140c;
  --fg: #d6ffe6;
  --muted: #5f9478;
  --line: #0f3321;
  --acc: #3dffa2;          /* 바이탈 그린 */
  --acc-soft: rgba(61, 255, 162, .12);
  --alert: #ff4d5e;
  --serif: "Instrument Serif", "Noto Serif KR", serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --mono: "Galmuri11", ui-monospace, "SF Mono", Menlo, monospace; /* 픽셀 폰트: 11px 배수에서 가장 또렷합니다 */
  --gutter: clamp(16px, 8vw, 160px);
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

/* 모니터 격자 + 주사선 */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 255, 162, .10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='2' height='2' fill='%233dffa2' fill-opacity='.09'/%3E%3C/svg%3E"),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 60px 60px;
  opacity: .8;
}
body::after {
  z-index: -1;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .22) 2px 3px);
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--acc); color: var(--bg); }

/* ── HUD (상단 바) ── */
.hud {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 3vw, 40px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(var(--bg) 40%, transparent);
}
.hud__id { color: var(--fg); font-weight: 500; text-transform: none; }
.bn { text-transform: none; }
.hud__id span { color: var(--acc); }
.hud__nav { display: flex; gap: clamp(14px, 2.4vw, 36px); }
.hud__nav a { color: var(--muted); transition: color .2s; }
.hud__nav a:hover { color: var(--acc); }
.hud__vital { display: flex; align-items: center; gap: 8px; color: var(--acc); font-variant-numeric: tabular-nums; }
.hud__vital b { font-weight: 500; }
.hud__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--alert); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* ── HERO ── */
/* .intro가 스크롤 길이를 만들고, .hero는 그동안 화면에 붙어 있습니다. */
.intro.is-scrolly { height: 440svh; }
.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 16px 120px;
  overflow: hidden;
  /* 스크립트가 꺼져 있거나 "움직임 줄이기"일 때는 완성된 모습이 그대로 보입니다 */
  --logo: 1;
  --reveal: 1;
}
/* 심전도 선: 로고 뒤를 가로지릅니다 */
.hero__ecg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: .8;
}
.hero__mark {
  position: relative;
  width: min(56vw, 34svh, 340px);
  aspect-ratio: 1;
  margin-bottom: 8px;
}
/* 픽셀 무대: 로고 칸의 두 배 크기로, 로고 칸과 중심이 같습니다 */
.hero__morph { position: absolute; inset: -50%; width: 200%; height: 200%; pointer-events: none; }
.hero__logo { position: absolute; inset: 0; opacity: var(--logo); }
.hero__logo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1) brightness(.75);
  mix-blend-mode: screen;
  transition: opacity .6s;
}
.hero__logo.is-live .hero__logo-fallback { opacity: 0; }
.hero__below { position: relative; }
.hero__step {
  position: absolute;
  inset: 40px 0 auto 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  opacity: calc(1 - var(--reveal) * 4);
  pointer-events: none;
}
.hero__step-no { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); white-space: pre; }
.hero__step-en { font-family: var(--mono); font-weight: 400; font-size: 33px; letter-spacing: .06em; color: var(--acc); text-shadow: 0 0 24px rgba(61, 255, 162, .5); }
.hero__text { position: relative; opacity: var(--reveal); transform: translateY(calc((1 - var(--reveal)) * 24px)); }
.hero__log {
  position: absolute;
  bottom: 96px;
  left: 0;
  right: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--acc);
  opacity: calc(1 - var(--reveal));
}
.hero__log::after { content: "█"; margin-left: 6px; animation: blink 1s steps(2) infinite; }

.hero__def { position: relative; margin: 0 0 8px; font-size: clamp(13px, 1.2vw, 17px); color: var(--muted); }
.hero__def b { color: var(--fg); font-weight: 500; }
.hero__title {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 208px);
  line-height: .95;
  letter-spacing: -0.03em;
  text-shadow: 0 0 60px rgba(61, 255, 162, .18);
}
.hero__title em { color: var(--acc); text-shadow: 0 0 40px rgba(61, 255, 162, .45); }
.hero__sub {
  position: relative;
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--acc);
}
.hero__role { position: relative; margin: 28px 0 0; font-size: clamp(14px, 1.2vw, 18px); font-weight: 500; }

.hero__corner {
  position: absolute;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: left;
}
.hero__corner--tl { top: 84px; left: clamp(16px, 3vw, 40px); }
.hero__corner--tr { top: 84px; right: clamp(16px, 3vw, 40px); color: var(--fg); }
.hero__corner--bl { bottom: 32px; left: clamp(16px, 3vw, 40px); }
.hero__corner--br { bottom: 32px; right: clamp(16px, 3vw, 40px); }

/* 수치 읽기 (dt = 라벨, dd = 값) */
.readout { display: grid; gap: 6px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.readout div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; }
.readout dt { color: var(--muted); }
.readout dd { margin: 0; color: var(--acc); }

/* ── 섹션 공통 ── */
.section { padding: clamp(72px, 9vw, 150px) var(--gutter); border-top: 1px solid var(--line); }
.section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 72px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acc);
}
.section__head h2 { margin: 0; font: inherit; color: var(--fg); }
.section__head i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--acc), transparent); opacity: .5; }
.section__head span:last-child { color: var(--muted); }

.case,
.tile__visual,
.record { border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 82%, transparent); }

/* ── WORK: 메인 케이스 ── */
.case { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 24px; }
.case__visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #050a07; border-right: 1px solid var(--line); }
.case__visual img,
.tile__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s; }
.case:hover .case__visual img,
.tile:hover .tile__visual img { transform: scale(1.02); }
.case__visual--empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    #050a07;
}
.case__visual--empty span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); padding: 8px 14px; border: 1px dashed var(--muted); background: var(--bg); }
.case__info { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 48px); }
.case__no { margin: 0 0 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
.case__title { margin: 0 0 20px; font-weight: 500; font-size: clamp(30px, 3vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.case__title em { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: .6em; letter-spacing: 0; color: var(--muted); }
.case__body { margin: 0 0 32px; color: #b4c7ba; font-weight: 300; line-height: 1.75; }
.case__info .readout { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
/* 차트 카드: 화면에 들어오기 전엔 FLATLINE(무채색), 들어오면 REVIVED(원래 색 + 뛰는 심전도) */
.case__visual img,
.tile__visual img { filter: grayscale(1) brightness(.55); transition: filter 1.4s .15s, transform .8s; }
.is-alive .case__visual img,
.is-alive .tile__visual img { filter: none; }
.case__status { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.case__status::before { content: "● FLATLINE"; }
.is-alive .case__status { color: var(--acc); border-color: var(--acc); transition: color .4s 1s, border-color .4s 1s; }
.is-alive .case__status::before { content: "● REVIVED"; }
.case__ecg { grid-column: 1 / -1; display: block; width: 100%; height: 44px; border-top: 1px solid var(--line); }
.case__ecg path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.case__ecg .flat { stroke: var(--muted); stroke-dasharray: 6 4; transition: opacity .6s; }
.case__ecg .beat { stroke: var(--acc); stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 5px var(--acc)); }
.is-alive .case__ecg .flat { opacity: 0; }
.is-alive .case__ecg .beat { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s .3s linear; }

/* 카드 전체가 눌리는 링크 */
.case { position: relative; }
.case__link { margin-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--bg); background: var(--acc); padding: 10px 14px; align-self: flex-start; transition: box-shadow .2s; }
.case__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.case:hover .case__link { box-shadow: 0 0 24px rgba(61, 255, 162, .6); }
.case--sub { grid-template-columns: 1fr 1.6fr; }
.case--sub .case__visual { aspect-ratio: 16 / 7; }

/* ── WORK: 스튜디오 작업 그리드 ── */
.section__sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin: clamp(56px, 6vw, 96px) 0 28px; }
.section__sub h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3vw, 48px); letter-spacing: -0.01em; }
.section__sub span { color: var(--muted); font-size: 15px; }
.grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; }
.tile__visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 16px; }
.tile__no { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
.tile h4 { margin: 4px 0 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.tile p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* ── ABOUT ── */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.about__lead { position: sticky; top: 96px; }
.about__hello { margin: 0 0 28px; font-size: clamp(30px, 3.2vw, 52px); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; }
.about__hello b { font-weight: 500; color: var(--acc); }
.about__tag { margin: -8px 0 36px; font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; letter-spacing: -0.01em; color: var(--acc); }
.about__body { margin: 0 0 1.1em; max-width: 34em; color: #c4d6ca; font-weight: 400; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.8; word-break: keep-all; }

.records { display: grid; gap: 16px; }
.record { padding: clamp(20px, 2vw, 32px); }
.record h3 { margin: 0 0 18px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.record dl { margin: 0; display: grid; gap: 10px; font-size: 15px; }
.record dl div { display: grid; grid-template-columns: 128px 1fr; gap: 16px; }
.record dt { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.record dd { margin: 0; }
.record--ai { border-color: var(--acc); box-shadow: 0 0 24px rgba(61, 255, 162, .12); }
.record--ai .chips li { border-color: rgba(61, 255, 162, .5); color: var(--fg); }
.record__sub { margin-top: 22px !important; color: var(--muted) !important; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); font-family: var(--mono); font-size: 14px; color: #c4d6ca; background: var(--acc-soft); }

/* ── CONTACT ── */
.contact { text-align: center; }
.contact .section__head { text-align: left; }
.contact__lead { margin: 0 0 16px; color: var(--muted); font-size: clamp(16px, 1.4vw, 22px); }
.contact__mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(30px, 6.4vw, 124px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: color .2s, text-shadow .2s;
}
.contact__cta { margin: 40px 0 0; }
.contact__cta a { display: inline-block; padding: 14px 22px; border: 1px solid var(--acc); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.contact__cta b { font-weight: 400; color: var(--acc); }
.contact__cta a:hover { background: var(--acc); color: var(--bg); box-shadow: 0 0 40px rgba(61, 255, 162, .5); }
.contact__cta a:hover b { color: var(--bg); }
.contact__mail:hover { color: var(--acc); text-shadow: 0 0 40px rgba(61, 255, 162, .35); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}
.footer span:last-child { font-family: var(--sans); letter-spacing: 0; }

/* ── SYMBOL: 3D 심볼 (symbol.js) ── */
.sym-card__no { margin: 18px 0 0 !important; font-family: var(--mono); font-size: 11px !important; letter-spacing: .14em; color: var(--acc) !important; }
.case__visual--mark { background: radial-gradient(circle at 50% 45%, #0d2a1d, #000 70%); }
.case__visual--mark img { object-fit: contain !important; padding: 12%; filter: none !important; }
.cp-mark { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at 50% 45%, #0d2a1d, #000 70%); }
.cp-mark img { width: 72%; }
.cp-mark--photo { aspect-ratio: 1589 / 994; overflow: hidden; background: #000; }
.cp-mark--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-origin { display: grid; gap: 20px; }
.cp-origin img { display: block; width: 100%; padding: 8% 12%; border: 1px solid var(--line); background: #f4efe8; }
.cp-flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--fg); }
.cp-flow li { padding: 12px 0; border-top: 1px solid var(--acc); }
.cp-flow span { display: block; margin-bottom: 4px; color: var(--muted); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.tile__link { margin-left: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
.sym-hero { position: relative; height: min(78svh, 720px); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #000; }
.sym-hero canvas, .sym-card__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.sym-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 0; padding: 0; }
.sym-cards li { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #000; padding-bottom: 36px; text-align: center; }
.sym-cards h3 + p { min-height: 3.4em; }
.sym-card__stage { position: relative; aspect-ratio: 1 / 1; }
.sym-cards h3 { margin: 8px 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: .02em; }
.sym-cards p { margin: 0 auto; max-width: 22em; padding: 0 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── 3단 리플렛 목업 (leaflet.js) ── */
.lf-list { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.4vw, 22px); margin: 16px 0 0; padding: 0; }
.lf-item { all: unset; display: block; width: 100%; cursor: pointer; text-align: left; }
.lf-item__cover { position: relative; display: block; aspect-ratio: 800 / 1710; overflow: visible; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
/* 접힌 리플렛: 표지 뒤로 종이 한 겹이 살짝 비치고, 왼쪽 접힌 면에 은은한 음영 */
.lf-item__cover::before { content: ""; position: absolute; inset: 1.5% -2.2% 1.5% 2%; z-index: -1; border-radius: 2px; background: linear-gradient(90deg, #cfd6da, #f2f5f6 60%, #dfe5e8); box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .55); }
.lf-item__cover::after { content: ""; position: absolute; inset: 0; border-radius: 2px; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 9%, rgba(255, 255, 255, .06) 55%, rgba(0, 0, 0, .1)); }
.lf-item__cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; border-radius: 2px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.lf-item:hover .lf-item__cover, .lf-item:focus-visible .lf-item__cover { transform: translateY(-8px) rotate(-1.5deg); }
.lf-item:focus-visible { outline: 1px solid var(--acc); outline-offset: 6px; }
.lf-item__tag { display: block; margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--acc); }
.lf-item h4 { margin: 4px 0 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--fg); }

.lf-lock, .lf-lock body { overflow: hidden; }
/* 앞뒤 보기 창 */
.lf-box { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: rgba(2, 8, 5, .95); opacity: 0; transition: opacity .3s; }
.lf-box.is-on { opacity: 1; }
.lf-box__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(16px, 3vw, 40px); background: var(--bg); border-bottom: 1px solid var(--line); }
.lf-box__title { font-size: 16px; font-weight: 500; }
.lf-box__close, .lf-feature__ctrl button { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--fg); background: transparent; border: 1px solid var(--line); padding: 9px 12px; cursor: pointer; }
.lf-box__close:hover, .lf-feature__ctrl button:hover { border-color: var(--acc); color: var(--acc); }
.lf-box__body { display: grid; gap: 32px; max-width: 1400px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 40px) 64px; }
.lf-box figure { margin: 0; }
.lf-box figcaption { margin-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--acc); }
.lf-box figure img { display: block; width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }

/* 대표 리플렛: 페이지 안에서 접고 펼치기 */
.lf-feature { margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(ellipse at 50% 40%, #0d2a1d, #000 75%); }
.lf-feature__stage { display: grid; place-items: center; padding: clamp(28px, 4vw, 56px) 16px; perspective: 2600px; -webkit-perspective: 2600px; container-type: inline-size; overflow: hidden; }
.lf-feature__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lf-feature__bar b { color: var(--fg); font-weight: 500; }
.lf-feature__ctrl { display: flex; gap: 8px; }
.lf { --h: min(64svh, 640px, calc((100cqi - 32px) / 3 * 1710 / 800)); /* 펼친 세 면이 무대 폭 안에 들어가게 */ --w: calc(var(--h) * 800 / 1710); position: relative; width: var(--w); height: var(--h); cursor: pointer; outline: none; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; }
.lf-feature:has(.lf:focus-visible) { outline: 1px solid var(--acc); outline-offset: 4px; }
.lf__turn { position: absolute; inset: 0; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.3, .7, .2, 1); }
.lf.is-flipped .lf__turn { transform: rotateY(180deg); }
.lf__panel { position: absolute; inset: 0; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform 1s cubic-bezier(.45, .05, .2, 1); }
.lf__face { position: absolute; inset: 0; background: #e9eef0 center / cover no-repeat; backface-visibility: hidden; -webkit-backface-visibility: hidden; } /* 그림자 없음: 겹친 면마다 쌓여 가장자리가 일렁였습니다 */
.lf__face--back { transform: rotateY(180deg); }
/* 접힌 상태: 오른쪽 날개가 먼저 안으로, 그 위에 왼쪽 날개(표지)가 덮습니다 */
.lf__left { transform-origin: 100% 50%; transform: translateX(-100%) translateZ(3px) rotateY(180deg); }
.lf__right { transform-origin: 0 50%; transform: translateX(100%) translateZ(1px) rotateY(-180deg); }
.lf.is-open-left .lf__left { transform: translateX(-100%) translateZ(0) rotateY(0deg); }
.lf.is-open-right .lf__right { transform: translateX(100%) translateZ(0) rotateY(0deg); }

/* 키비주얼 + 리플렛 */
.kv { display: grid; gap: clamp(28px, 4vw, 56px); margin-top: 16px; }
.kv__posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); max-width: 1040px; }
.kv__poster { margin: 0; }
.kv__poster figcaption { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.kv__poster figcaption b { margin-right: 8px; color: var(--acc); font-weight: 400; }
.kv__poster img { display: block; width: 100%; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
.kv__label { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--acc); }
.kv .lf-feature { margin-top: 0; }
.kv .lf-list { grid-template-columns: repeat(7, 1fr); gap: 24px 12px; margin-top: 28px; }
.kv .lf-item h4 { font-size: 12px; }
.kv__label--banners { margin-top: 48px !important; }
.kv__banners { display: grid; gap: 10px; }
.kv__banners-mock { display: block; width: min(100%, 560px); margin: 14px auto 0; border: 1px solid var(--line); }
.kv__banners-list { display: grid; gap: 10px; }
.kv__banners img { display: block; width: 100%; border: 1px solid var(--line); }

/* 홍보영상 */
.film { margin-top: 16px; display: grid; gap: 24px; }
.film__player { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; }
.film__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__acts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.film__acts figure { margin: 0; }
.film__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.film__grid img { display: block; width: 100%; height: auto; }
.film__acts figcaption { padding-top: 18px; }
.film__acts span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
.film__acts h4 { margin: 8px 0 10px; font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; }
.film__acts p { margin: 0; color: #b9d6c5; font-weight: 300; line-height: 1.8; }
.film__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.film__meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.film__meta dd { margin: 0; color: var(--fg); font-size: 14px; }

/* 종합책자 넘김 */
.book-wrap { container-type: inline-size; margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(ellipse at 50% 40%, #0d2a1d, #000 75%); overflow: hidden; }
.book { --h: min(62svh, 620px, calc((100cqi - 48px) / 2 * 1426 / 1000)); /* 펼친 두 쪽이 무대 폭 안에 */ --pw: calc(var(--h) * 1000 / 1426); position: relative; width: calc(var(--pw) * 2); height: var(--h); margin: clamp(28px, 4vw, 56px) auto; perspective: 3200px; cursor: pointer; outline: none; transform: translateX(-25%); transition: transform .9s cubic-bezier(.4, .1, .2, 1); }
.book.is-open { transform: none; }
.book.is-back { transform: translateX(25%); }
.book__leaves { position: absolute; inset: 0; transform-style: preserve-3d; }
.book__leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.45, .05, .2, 1); }
.book__leaf.is-turned { transform: rotateY(-180deg); }
.book.is-riffle .book__leaf { transition-duration: .5s; } /* 도착 시 차라락 넘김 */
.book__face { position: absolute; inset: 0; background: #f3f5f6 center / cover no-repeat; backface-visibility: hidden; -webkit-backface-visibility: hidden; } /* 그림자 없음: 겹친 장마다 그림자가 쌓여 테두리가 울렁여 보였습니다 */
.book__face--back { transform: rotateY(180deg); }
.book.is-flat { transform: none; } /* 날개 표지: 앞 · 뒤표지를 펼친 상태 */
.book__jacket { position: absolute; top: 0; left: 0; width: 50%; height: 100%; transform-origin: 100% 50%; transform: rotateY(-180deg); transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(.45, .05, .2, 1); pointer-events: none; }
.book.is-flat .book__jacket { transform: none; }
.book__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }

/* 굿즈: 3D 머그컵 + 책갈피 */
.goods { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: 16px; }
.goods figure { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.goods figcaption { padding: 14px 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.goods img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 0; }
.goods__full { grid-column: 1 / -1; }
.goods__set { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.goods__set img { aspect-ratio: 3 / 4; }
.goods__set--pc { grid-template-columns: 1fr 1fr; }
.goods__set--pc img { aspect-ratio: 1400 / 993; }
.goods__set--kit { grid-template-columns: 1fr 1fr; }
.goods__set--kit img { aspect-ratio: 4 / 3; }
.goods__set--tall img { aspect-ratio: 3 / 4; }
.goods__set--wide img { aspect-ratio: 16 / 9; }
.goods__mug img { aspect-ratio: 16 / 9; }
/* 카드 케이스: 왼쪽 세로 1장(3:4) = 오른쪽 가로 2장(3:2) 높이 */
.goods__set--case { grid-template-columns: 1fr 1fr; align-items: start; }
.goods__set--case img { aspect-ratio: 3 / 2; }
.goods__set--case img:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
/* 볼펜: 세로(3:4) + 가로(4:3), 높이 맞춤 → 폭 9 : 16 */
.goods__set.goods__set--pen2 { grid-template-columns: 9fr 16fr; } /* 모바일에서도 두 사진 높이가 같게 */
.goods__set--pen2 img:first-child { aspect-ratio: 3 / 4; }
.goods__set--pen2 img:last-child { aspect-ratio: 4 / 3; }
/* 엽서 번호 */
.pc { position: relative; }
.pc span { position: absolute; top: 12px; left: 14px; z-index: 1; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.pc span b { margin-right: 8px; font-weight: 400; }
/* 볼펜: 체커보드 — 전체(2:1) + 확대(1:1) / 디테일(1:1) + 확대(2:1) */
.goods__set--pen { grid-template-columns: repeat(3, 1fr); }
.goods__set--pen img { aspect-ratio: 1; }
.goods__set--pen img.w2 { grid-column: span 2; aspect-ratio: 2 / 1; }
.goods__set--strap { grid-template-columns: repeat(3, 1fr); }
/* 음악회: 포스터 높이 = 리플렛 두 장 높이 */
.concert { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.concert { align-items: stretch; }
.concert .lf-feature { display: flex; flex-direction: column; margin-top: 0; } /* 카드 높이는 포스터에 맞춥니다 */
.concert .lf-feature__stage { flex: 1; }

/* ── 바이탈 모니터 (모든 페이지 아래 고정, vital.js) ── */
.vitalbar { position: fixed; inset: auto 0 0 0; z-index: 15; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; height: 44px; padding: 0 clamp(16px, 3vw, 40px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.vitalbar canvas { width: 100%; height: 30px; display: block; }
.vitalbar__status::before { content: "● "; color: var(--alert); }
.vitalbar.is-alive .vitalbar__status { color: var(--acc); }
.vitalbar.is-alive .vitalbar__status::before { color: var(--acc); }
.vitalbar__where { color: var(--fg); min-width: 8em; text-align: right; }
body { padding-bottom: 44px; }
.hero__corner--bl, .hero__corner--br { bottom: 68px; }
.hero__log { bottom: 128px; }

/* ── 케이스 상세 페이지 (work/*.html) ── */
.cp-hero { padding: 140px var(--gutter) clamp(48px, 6vw, 96px); }
.cp-back { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.cp-back:hover { color: var(--acc); }
.cp-no { margin: 40px 0 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--acc); }
.cp-title { margin: 0; font-weight: 500; font-size: clamp(36px, 4.6vw, 76px); line-height: 1.05; letter-spacing: -0.03em; }
.cp-title em { display: block; margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: .42em; letter-spacing: 0; color: var(--acc); }
.cp-lead { margin: 28px 0 40px; max-width: 34em; color: #b9d6c5; font-weight: 300; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.7; }
.cp-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.cp-meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.cp-meta dd { margin: 0; }
.cp-cover { display: block; width: 100%; margin-top: clamp(32px, 4vw, 64px); border: 1px solid var(--line); }

.cp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 96px); align-items: center; margin-bottom: clamp(32px, 4vw, 64px); }
.cp-split .cp-cover { margin-top: 0; }
.cp-cover--wide { aspect-ratio: 21 / 9; object-fit: cover; } /* 넓은 화면에서도 꽉 차게, 위아래 하늘만 조금 잘림 */
/* 윙스피킹 표지: 흐린 외벽 위에 로고가 입체로 떠 있습니다 */
.ws-hero { position: relative; overflow: hidden; perspective: 1000px; }
.ws-hero__bg { display: block; width: 100%; }
.ws-hero__logo { position: absolute; left: 60%; top: 50%; width: 32%; filter: drop-shadow(0 18px 22px rgba(10, 30, 60, .35)); transform: translateY(-50%); animation: wsfloat 7s ease-in-out infinite; }
@keyframes wsfloat {
  0%, 100% { transform: translateY(-50%) rotateY(-16deg) rotateX(6deg); }
  50% { transform: translateY(-58%) rotateY(12deg) rotateX(-4deg) translateZ(40px); }
}
@media (prefers-reduced-motion: reduce) { .ws-hero__logo { animation: none; } }
.cp-kicker { margin: 20px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.3; color: var(--muted); }
.cp-split .cp-lead { margin-bottom: 0; }
.cp-hl { color: var(--acc) !important; font-weight: 500 !important; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.6 !important; }
.cp-before { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.cp-before img { display: block; width: 100%; border: 1px solid var(--line); }
.cp-before img:first-child { grid-row: span 2; }
.cp-scope { list-style: none; margin: 0; padding: 0; font-size: clamp(17px, 1.4vw, 22px); font-weight: 300; }
.cp-scope li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cp-scope li::before { content: "> "; font-family: var(--mono); font-size: 11px; color: var(--acc); }
.cp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: clamp(40px, 5vw, 80px) 0 0; padding: 0; }
.cp-steps > li { padding: clamp(20px, 2.4vw, 36px); border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 82%, transparent); }
.cp-steps > li:nth-child(2) { margin-top: 40px; }
.cp-steps > li:nth-child(3) { margin-top: 80px; }
.cp-steps span { font-family: var(--mono); font-size: 22px; color: var(--acc); }
.cp-steps h3 { margin: 12px 0 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.1; color: var(--acc); }
.cp-steps b { font-weight: 500; }
.cp-steps p { margin: 16px 0 12px; color: #b9d6c5; }
.cp-steps ul { margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }
.cp-steps ul li::before { content: "· "; color: var(--acc); }
.cp-vitals.cp-vitals--film { grid-template-columns: 1fr 1fr; }
.film__result { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; padding-top: 24px; border-top: 1px solid var(--line); }
.film__result ul { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.film__result li { width: 180px; }
.film__result img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.film__result li span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.film__result li b { display: block; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--acc); }
.film__result p { margin: 0 !important; max-width: 40em; }
.cp-vitals--film img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 24px; border: 1px solid var(--line); }
.cp-after { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.cp-after .cp-vitals { grid-template-columns: 1fr 1fr; }
.cp-after img { display: block; width: 100%; border: 1px solid var(--line); }

/* 구간 사이의 심전도: flat = 멈춤, beat = 살아남 */
.cp-ecg { display: block; width: 100%; height: 64px; margin-bottom: 32px; }
.cp-ecg path { fill: none; stroke: var(--acc); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px var(--acc)); }
.cp-ecg--flat path { stroke: var(--muted); filter: none; stroke-dasharray: 6 4; }

.cp-cols { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.cp-h { margin: 0; font-weight: 300; font-size: clamp(30px, 3.4vw, 56px); line-height: 1.15; letter-spacing: -0.02em; }
.cp-h b { font-weight: 500; color: var(--acc); }
.cp-body { color: #c4e0d0; font-weight: 300; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.85; }
.cp-body p { margin: 0 0 1.2em; }
.cp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cp-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 82%, transparent); }
.cp-list span { font-family: var(--mono); font-size: 11px; color: var(--acc); padding-top: 4px; }
.cp-list b { display: block; font-weight: 500; margin-bottom: 4px; }
.cp-list p { margin: 0; color: var(--muted); font-size: 15px; }
.cp-todo { color: var(--alert) !important; font-family: var(--mono); font-size: 11px !important; letter-spacing: .06em; }

.cp-out { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; padding: clamp(24px, 3vw, 48px) 0; border-top: 1px solid var(--line); }
.cp-out img { display: block; width: 100%; border: 1px solid var(--line); }
.cp-out__imgs { display: grid; gap: 12px; }
.cp-out img.light { background: #f4efe8; }
.cp-out__imgs--2 { grid-template-columns: 1fr 1fr; }
.booth { margin-top: 12px; }
.booth__cap { margin: 12px 0 0 !important; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted) !important; }
.cp-out__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-out--wide { grid-template-columns: 1fr; }
.cp-out--wide .cp-out__info { position: static; max-width: 46em; }

/* 전용 타이포그래피: 큰 그리드 + 조형 원리 두 장 */
.cp-type { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: 16px; }
.cp-type figure { margin: 0; }
.cp-type__main { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); padding: clamp(16px, 4vw, 64px); }
.cp-type__main img { display: block; width: min(100%, 980px); margin: 0 auto; }
.cp-type figure:not(.cp-type__main):not(.cp-type__apply) img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: contain; padding: clamp(12px, 1.6vw, 22px); background: #fff; border: 1px solid var(--line); } /* 투명 PNG라 어느 화면에서든 흰 바탕 위에 */
.cp-type figcaption { padding-top: 20px; }
.cp-type__apply { grid-column: 1 / -1; }
.cp-type__apply figcaption { padding: 0 0 20px; max-width: 46em; }
.cp-type__apply ul { list-style: none; display: grid; gap: clamp(12px, 1.6vw, 20px); margin: 0; padding: 0; }
.cp-type__apply li { font-size: 13px; color: var(--muted); }
.cp-type__apply li span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
/* 브랜드 가이드 보드 */
.guide { --tile-bg: #ffffff; --ink: #0E284F; padding: clamp(16px, 2.4vw, 32px); border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent); }
[data-theme="dark"] .guide { --tile-bg: #0b1a14; --ink: #cfe3ff; }
.guide__label { margin: 0 0 12px !important; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted) !important; }
.guide__label b { margin-right: 8px; color: var(--acc); font-weight: 400; }
.guide__grid + .guide__label { margin-top: 28px !important; }
.guide__grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; gap: 10px; margin: 0; padding: 0; }
.guide__grid li { font-size: 12px; color: var(--muted); }
.guide__grid li span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acc); }
.guide__grid li.w2 { grid-column: span 2; }
.tile { position: relative; height: clamp(110px, 11vw, 168px); background: var(--tile-bg); border: 1px solid var(--line); }
.mk { position: absolute; inset: 14% 12%; background: var(--ink); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.guide__lockups .thin .mk { inset: 34% 8%; }
.cv-navy-w { --tile-bg: #fff; --ink: #0E284F; background: #fff; } .cv-navy-w .mk { background: #0E284F; }
.cv-w-navy { background: #0E284F; } .cv-w-navy .mk { background: #fff; }
.cv-black-w { background: #fff; } .cv-black-w .mk { background: #000; }
.cv-w-black { background: #000; } .cv-w-black .mk { background: #fff; }
.guide__palette { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.sw i { display: block; height: clamp(44px, 4.4vw, 64px); border: 1px solid var(--line); }
.sw span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.sw.is-campaign span { color: var(--acc); }
.sw b { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--fg); }
.sw em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.sw dl { margin: 8px 0 0; padding-top: 6px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0; }
.sw dl div { display: flex; justify-content: space-between; gap: 6px; }
.sw dt { color: var(--muted); }
.sw dd { margin: 0; color: var(--fg); }
.cp-symbols { grid-template-columns: repeat(3, 1fr); }
.cp-symbols li { text-align: center; font-size: 14px; }
.cp-symbols b { display: block; margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--fg); }
.sym { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(ellipse at 50% 50%, #ffffff, #e7f1fb 80%); border: 1px solid var(--line); }
.sym { --inv: invert(0); }
.cp-out .sym img { border: 0; }
.sym img { position: relative; display: block; }
.sym--flare img { width: 22%; animation: twinkle 3.2s ease-in-out infinite; }
.sym--jet img { width: 62%; animation: jetfly 4.5s ease-in-out infinite; }
.sym--orbit img { width: 56%; animation: orbit 9s ease-in-out infinite; }
.sym::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .85) 50%, transparent 58%); transform: translateX(-60%); animation: shine 5.5s ease-in-out infinite; pointer-events: none; }
.cp-symbols li:nth-child(2) .sym::after { animation-delay: -1.8s; }
.cp-symbols li:nth-child(3) .sym::after { animation-delay: -3.6s; }
@keyframes twinkle { 0%, 100% { transform: scale(.88) rotate(0deg); filter: var(--inv) drop-shadow(0 0 2px rgba(120, 190, 255, .3)); } 50% { transform: scale(1.06) rotate(8deg); filter: var(--inv) drop-shadow(0 0 18px rgba(120, 190, 255, .9)); } }
@keyframes jetfly { 0%, 100% { transform: translateY(6%) scale(.96); filter: var(--inv) drop-shadow(0 6px 6px rgba(20, 40, 80, .15)); } 50% { transform: translateY(-6%) scale(1.02); filter: var(--inv) drop-shadow(0 0 16px rgba(120, 190, 255, .8)); } }
@keyframes orbit { 0%, 100% { transform: rotate(-8deg) scale(.96); filter: var(--inv) drop-shadow(0 0 3px rgba(120, 190, 255, .3)); } 50% { transform: rotate(8deg) scale(1.03); filter: var(--inv) drop-shadow(0 0 16px rgba(120, 190, 255, .9)); } }
@keyframes shine { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .sym img, .sym::after { animation: none; } .sym img { filter: var(--inv); } }
[data-theme="dark"] .sym { background: radial-gradient(ellipse at 50% 50%, #0d2a1d, #000 80%); }
[data-theme="dark"] .sym::after { background: linear-gradient(115deg, transparent 42%, rgba(160, 220, 255, .18) 50%, transparent 58%); }
[data-theme="dark"] .sym { --inv: invert(1) hue-rotate(180deg); } /* 네이비 심볼을 밝게 뒤집고 빛은 그대로 */
/* 어두운 화면: 흰 카드 대신 어두운 판 + 그림 색 반전(네이비 → 밝은 하늘, 그리드색은 유지) */
[data-theme="dark"] .cp-type__main { background: var(--panel); }
[data-theme="dark"] .cp-type figure:not(.cp-type__main):not(.cp-type__apply) img { background: transparent; } /* 반전 필터가 바탕까지 뒤집지 않게 */
[data-theme="dark"] .cp-type__main img, [data-theme="dark"] .cp-type figure:not(.cp-type__main):not(.cp-type__apply) img { filter: invert(1) hue-rotate(180deg); }
.cp-type figcaption span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--acc); }
.cp-type h4 { margin: 8px 0 10px; font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.01em; }
.cp-type figcaption p { margin: 0; color: #b9d6c5; font-weight: 300; line-height: 1.8; }

/* 하늘색 카드 월 */
.skywall { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.4vw, 22px); margin: 16px 0 0; padding: 12px 0; perspective: 1800px; }
/* 같은 세로줄의 카드는 함께 움직여서 카드 사이 간격이 항상 같습니다. 줄마다 박자만 조금씩 다릅니다. */
.skycard { position: relative; aspect-ratio: 840 / 1180; cursor: pointer; animation: skyfloat 5.6s ease-in-out infinite alternate; outline: none; }
.skycard:nth-child(5n + 1) { animation-delay: 0s; }
.skycard:nth-child(5n + 2) { animation-delay: -1.1s; }
.skycard:nth-child(5n + 3) { animation-delay: -2.2s; }
.skycard:nth-child(5n + 4) { animation-delay: -3.3s; }
.skycard:nth-child(5n + 5) { animation-delay: -4.4s; }
@keyframes skyfloat { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
.skycard__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.45, 1.6, .5, 1); } /* 빠르게 넘기고 끝에서 살짝 튕김 */
.skycard.is-flipped .skycard__in,
.skycard:hover .skycard__in,
.skycard:focus-visible .skycard__in { transform: rotateY(180deg); }
.skycard__face { position: absolute; inset: 0; overflow: hidden; border-radius: clamp(8px, 1vw, 16px); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.skycard__face--back { transform: rotateY(180deg); }
.cp-out .skycard__face img { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.skycard__face:not(.skycard__face--back) img { transform: scale(1.22); }
.cp-out video { display: block; width: 100%; border: 1px solid var(--line); background: #000; }
.cp-out__no { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--acc); }
.cp-out h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 46px); line-height: 1.1; }
.cp-out p { margin: 0 0 20px; color: #b9d6c5; font-weight: 300; line-height: 1.75; }
.cp-out__info { position: sticky; top: 96px; }
.bars { margin: 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.bars div { display: grid; grid-template-columns: 96px 1fr 40px; gap: 12px; align-items: center; }
.bars dt { color: var(--muted); }
.bars dd { margin: 0; color: var(--acc); text-align: right; }
.bars i { height: 8px; background: repeating-linear-gradient(90deg, var(--acc) 0 6px, transparent 6px 8px) 0 0 / var(--v) 100% no-repeat, repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 8px); }

.cp-vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; }
.cp-vitals div { padding: clamp(20px, 2.4vw, 36px); border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 82%, transparent); }
.cp-vitals dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.cp-vitals dd { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 68px); line-height: 1; color: var(--acc); }
.cp-vitals p { margin: 12px 0 0; color: #b9d6c5; font-size: 15px; }

.cp-next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: clamp(40px, 5vw, 80px) var(--gutter); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }
.cp-next a { color: var(--acc); }
.cp-next a:hover { text-shadow: 0 0 16px var(--acc); }

@media (max-width: 1100px) {
  .cp-cols, .cp-out { grid-template-columns: 1fr; }
  .cp-split, .cp-steps, .cp-after { grid-template-columns: 1fr; }
  .kv, .film__acts, .goods, .concert { grid-template-columns: 1fr; }
  .goods__set { grid-template-columns: 1fr 1fr; }
  /* 휴대폰에서도 2열 유지: 사진이 길게 늘어지지 않게 */
  .goods__set--case { grid-template-columns: 1fr; grid-template-rows: none; }
  .goods__set--case img:first-child { grid-row: auto; }
  .goods__set--pen { grid-template-columns: 1fr 1fr; }
  .goods__set--pen img.w2 { grid-column: 1 / -1; }
  .goods__set--strap { grid-template-columns: 1fr 1fr 1fr; }
  .film__meta { grid-template-columns: 1fr 1fr; }
  .cp-type { grid-template-columns: 1fr; }
  .kv__banners { grid-template-columns: 1fr; }
  .guide__grid { grid-template-columns: 1fr 1fr; }
  .guide__palette { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .book__bar { padding: 12px 14px; }
  .book__bar .lf-feature__ctrl button { padding: 8px 9px; white-space: nowrap; }
  .book__count { white-space: nowrap; }
  .cp-symbols { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .lf-list { grid-template-columns: repeat(3, 1fr); }
  .skywall { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .cp-steps > li:nth-child(n) { margin-top: 0; }
  .cp-out__info { position: static; }
  .cp-meta { grid-template-columns: 1fr 1fr; }
  .cp-meta div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cp-vitals, .cp-vitals.cp-vitals--film { grid-template-columns: 1fr; }
  .film__result { grid-template-columns: 1fr; }
  .film__result li { width: auto; flex: 1; }
}

/* ── 좁은 화면 ── */
@media (max-width: 1100px) {
  .case, .case--sub, .about { grid-template-columns: 1fr; }
  .sym-cards, .grid--2, .cp-flow { grid-template-columns: 1fr 1fr; }
  .sym-cards { grid-template-columns: 1fr; }
  .case__visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .about__lead { position: static; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .hud__nav { display: none; }
  .hero__corner--tl, .hero__corner--tr { top: 82px; font-size: 10px; }
  .hero__corner--tl { max-width: 60%; }
  .hero__corner--br { display: none; }
  .vitalbar__where { min-width: 0; }
  .hero__sub { letter-spacing: .3em; }
  .grid { grid-template-columns: 1fr; }
  .record dl div { grid-template-columns: 1fr; gap: 0; }
  .section__head span:last-child { display: none; }
}

@media (max-width: 700px) {
  .skywall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lf-list { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  /* 휴대폰: 7종을 옆으로 밀어 보는 한 줄 */
  .kv .lf-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 12px 4px 8px; }
  .kv .lf-list li { flex: 0 0 38%; scroll-snap-align: start; }
  .skycard:nth-child(n) { animation-delay: 0s; }
  .skycard:nth-child(even) { animation-delay: -2.8s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ── 밝은 화면 (기본). 어두운 화면은 상단 버튼으로 바꿉니다 ── */
:root[data-theme="light"] {
  --bg: #f4f2ec;
  --panel: #ffffff;
  --fg: #17211b;
  --muted: #6f7a72;
  --line: #dcdcd3;
  --acc: #0a8f55;
  --acc-soft: rgba(10, 143, 85, .07);
  --alert: #e5394a;
  color-scheme: light;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(10, 143, 85, .06), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 60px 60px;
  opacity: .45;
}
[data-theme="light"] body::after { display: none; }
[data-theme="light"] :is(.hero__step-en, .hero__title, .hero__title em, .contact__mail:hover) { text-shadow: none; }
[data-theme="light"] :is(.case:hover .case__link, .record--ai, .contact__cta a:hover) { box-shadow: 0 8px 24px rgba(10, 143, 85, .15); }
[data-theme="light"] .record--ai .chips li { border-color: rgba(10, 143, 85, .4); }
[data-theme="light"] :is(.case__body, .about__body, .chips li, .film__acts p, .cp-lead, .cp-steps p, .cp-body, .cp-type figcaption p, .cp-out p, .cp-vitals p) { color: #3f4b44; }
[data-theme="light"] .case__visual { background: #e9e8e1; }
[data-theme="light"] .case__visual--empty { background-color: #e9e8e1; }
[data-theme="light"] :is(.lf-feature, .book-wrap) { background: radial-gradient(ellipse at 50% 40%, #ffffff, #e6e5dd 80%); }
[data-theme="light"] :is(.kv__poster img, .lf-box figure img) { box-shadow: 0 20px 40px rgba(30, 40, 30, .18); }
[data-theme="light"] .lf-item__cover img { box-shadow: 0 10px 22px rgba(30, 40, 30, .18); }
[data-theme="light"] .lf-item__cover::before { box-shadow: 0 16px 26px -10px rgba(30, 40, 30, .25); }
[data-theme="light"] .skycard__face { box-shadow: 0 12px 26px rgba(30, 40, 30, .16); }
[data-theme="light"] .bm__face { box-shadow: 0 14px 26px rgba(30, 40, 30, .2), inset 0 0 0 1px rgba(0, 0, 0, .06); }
[data-theme="light"] .lf-box { background: rgba(244, 242, 236, .97); }
[data-theme="light"] .hero__logo-fallback { filter: none; mix-blend-mode: multiply; }

.theme-btn { all: unset; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--acc); padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); border-radius: 99px; background: color-mix(in srgb, var(--acc) 10%, transparent); white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.theme-btn:hover, .theme-btn:focus-visible { background: var(--acc); border-color: var(--acc); color: var(--bg); }

/* 강조: 본문 속 핵심 구절 */
:is(.cp-lead, .cp-out p, .cp-body, .cp-steps p, .film__acts p, .cp-type figcaption p, .case__body, .about__body) b { font-weight: 600; color: var(--fg); }

/* 리플렛 안내: 흐르는 한 줄 */
.kv > * { min-width: 0; } /* 흐르는 안내 줄이 칸을 밀어내지 않게 */
.lf-hint { display: flex; overflow: hidden; width: 100%; min-width: 0; contain: inline-size; margin: 24px 0 0 !important; padding: 10px 0; border-block: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--acc) !important; white-space: nowrap; }
.lf-hint span { flex: none; padding-right: 0; animation: lfhint 28s linear infinite; }
@keyframes lfhint { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .lf-hint span { animation: none; } }

/* 큰 화면에서 내용이 끝없이 퍼지지 않게: 본문 폭 최대 1280px, 가운데 정렬 */
.section, .cp-hero, .cp-next { padding-inline: max(var(--gutter), calc((100% - 1280px) / 2)); }
.kv__posters { margin-inline: auto; }
@media (max-width: 700px) { .cp-cover--wide { aspect-ratio: 16 / 10; } }

/* 윙스피킹 브랜드 가이드 */
.ws-primary { display: grid; place-items: center; aspect-ratio: 21 / 8; background: #031465; border: 1px solid var(--line); }
.ws-primary { overflow: hidden; }
.ws-primary img { width: 100%; height: 100%; object-fit: cover; border: 0 !important; }
.ws-cons-wrap { margin: 0; }
.ws-cons { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.ws-cons-wrap figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.ws-cons-wrap figcaption b { color: var(--fg); font-weight: 600; }
.guide .tile img { position: absolute; inset: 14% 10%; width: 80%; height: 72%; object-fit: contain; border: 0 !important; }
.tile--navy { background: #031465; }
.tile--photo img { inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
.ws-apps { grid-template-columns: repeat(4, 1fr); }
.ws-apps li.w3 { grid-column: span 3; }
.ws-apps .tile { height: auto; aspect-ratio: 1200 / 630; }
.ws-apps li:not(.w3) .tile { aspect-ratio: auto; height: 100%; min-height: 0; }
.ws-apps li:not(.w3) { display: grid; grid-template-rows: 1fr auto auto; }
@media (max-width: 700px) {
  .ws-apps li.w3 { grid-column: 1 / -1; }
  .ws-apps li:not(.w3) .tile { aspect-ratio: 1; height: auto; }
}
.guide > :is(.ws-primary, figure, .guide__palette) + .guide__label { margin-top: 28px !important; }

/* 윙스피킹 웹: 목업 + 실제 화면이 천천히 스크롤되는 브라우저 + 사용 툴 */
.web { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(12px, 1.6vw, 20px); margin-top: 16px; }
.cp-out .web__mock { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.web__side { grid-column: 1; grid-row: 1; display: grid; grid-template-rows: 1fr auto; gap: 10px; min-height: 0; }
.cp-out .web__mock { grid-column: 2; grid-row: 1; align-self: stretch; }
.web__browser { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.web__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef0f3; border-bottom: 1px solid #dde1e6; }
.web__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9ced6; }
.web__bar span { margin-left: 8px; font-family: var(--mono); font-size: 10px; color: #6b7280; }
.web__screen { position: relative; flex: 1; min-height: 420px; overflow: hidden; container-type: size; }
.cp-out .web__screen img { position: absolute; top: 0; left: 0; width: 100%; border: 0; animation: webscroll 26s ease-in-out infinite alternate; }
.web__screen:hover img { animation-play-state: paused; }
@keyframes webscroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
@media (prefers-reduced-motion: reduce) { .cp-out .web__screen img { animation: none; } }
.web__live { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; background: #031465; color: #fff; text-decoration: none; transition: background .2s; }
.web__live span { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; opacity: .7; }
.web__live b { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.web__live i { font-style: normal; font-size: 16px; }
.web__live:hover { background: #3A64C2; }
.web__tools { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr 1fr .5fr; gap: 10px; }
.web__tools > div { padding: 14px 16px; border: 1px solid var(--line); }
.web__tools span { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.web__tools .chips { margin: 0; }
.web__tools b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--fg); }
.web__imweb { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 6px 10px; width: fit-content; background: #111; color: #fff !important; font-size: 12px; font-weight: 600; }
.cp-out .web__imweb img { width: 72px; border: 0; }
@media (max-width: 900px) {
  .web { grid-template-columns: 1fr; }
  .web__screen { min-height: 360px; }
  .web__tools { grid-template-columns: 1fr 1fr; }
}
.web__tools .chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.web__tools .chips li { padding: 4px 9px; font-size: 12px; }
.web__imweb { white-space: nowrap; }

/* 윙스피킹 네이버 마케팅 보드: 자르지 않고, 한 줄의 사진 높이를 원본 비율로 맞춥니다 */
.mkt { display: grid; gap: 14px; margin-top: 16px; }
.mkt__row { display: grid; gap: 10px; align-items: start; }
.mkt__row--a { grid-template-columns: 1.1785fr .323fr; }  /* 2000×1697 : 646×2000 */
.mkt__row--b { grid-template-columns: 1.956fr .957fr; }   /* 1252×640 : 1914×2000 */
.mkt figure { margin: 0; min-width: 0; }
.cp-out .mkt img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.mkt figcaption { padding-top: 8px; font-size: 12px; color: var(--muted); }
.mkt figcaption span { margin-right: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acc); }
.mkt__tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mkt__tools li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line); font-size: 12px; color: var(--fg); background: var(--panel); }
.ico { display: inline-block; width: 14px; height: 14px; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.ico--naver { background: #03C75A; }
.ico--googleanalytics { background: #E37400; }
@media (max-width: 700px) {
  .mkt__row--a, .mkt__row--b { grid-template-columns: 1fr; }
  .mkt__row--a figure:last-child img { width: 60%; margin: 0 auto; }
}

/* 윙스피킹 공간 · 문구 */
.space { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.space figure { margin: 0; }
.cp-out .space img { display: block; width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.space figcaption { padding-top: 8px; font-size: 12px; color: var(--muted); }
.space figcaption span { margin-right: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acc); }

/* 윙스피킹 리플렛 시리즈: 색 고르기 + 4종 목록 */
.lf-feature--sets { transition: background .8s; }
[data-theme] .lf-feature--sets { background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--tone) 22%, #fff), color-mix(in srgb, var(--tone) 6%, #e9e8e1) 78%); }
[data-theme="dark"] .lf-feature--sets { background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--tone) 35%, #000), #000 78%); }
.lf-sets { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-sets button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; transition: color .2s, border-color .2s; }
.lf-sets button i { width: 10px; height: 10px; border-radius: 50%; }
.lf-sets button.is-on, .lf-sets button:hover { color: var(--fg); border-color: var(--fg); }
.lf-list--4 { grid-template-columns: repeat(4, 1fr) !important; max-width: 760px; }
@media (max-width: 700px) { .lf-list--4 { grid-template-columns: repeat(2, 1fr) !important; } }
/* 작은 사용 예시 줄 */
.goods__set--mini { display: flex; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.goods__set--mini img { flex: 1; width: auto; min-width: 0; } /* 위 두 장과 같은 너비로 2×2 */
.goods__set--mini img { aspect-ratio: 16 / 9; }

.mkt__row--c { grid-template-columns: .920fr .380fr 1.098fr; } /* 1106×1202 · 626×1648 · 1918×1746 */
.mkt__row--d { grid-template-columns: 2.079fr .870fr; }         /* 790×380 · 687×790 */
.mkt__row--e { grid-template-columns: 2.065fr .541fr .806fr; }  /* 1020×494 · 538×994 · 801×994 */
.mkt__row--g { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .mkt__row--g { grid-template-columns: 1fr; } }
.mkt__row--d img, .mkt__row--e img { border: 0 !important; background: none !important; }
.ico--google { background: #4285F4; } .ico--instagram { background: #E4405F; } .ico--youtube { background: #FF0000; }
.lf-list--4 { max-width: none; }
@media (max-width: 700px) { .mkt__row--c, .mkt__row--d, .mkt__row--e { grid-template-columns: 1fr 1fr; } .mkt__row--c figure:last-child, .mkt__row--d figure:first-child, .mkt__row--e figure:first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .web__side, .cp-out .web__mock { grid-column: auto; grid-row: auto; } }
/* 윙스피킹: 웹 목업 · 공간 · 콘텐츠 보강 */
.web__pages { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cp-out .web__pages img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.space__wide { grid-column: 1 / -1; }
.cp-out .space__wide img { aspect-ratio: 1363 / 1154; max-height: 760px; object-fit: cover; }
.mkt__row--f { grid-template-columns: .381fr .75fr .707fr; }  /* 696×1826 · 1080×1440 · 1414×2000 */
.mkt > figure { margin: 0; }
.yts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yts__cap { margin: -4px 0 0 !important; font-size: 12px; color: var(--muted) !important; }
.yts__cap span { margin-right: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acc); }
@media (max-width: 700px) { .web__pages, .yts { grid-template-columns: 1fr; } .mkt__row--f { grid-template-columns: 1fr 1fr; } .mkt__row--f figure:first-child { grid-row: span 2; } }
/* KHUN studio 원형 심볼: 숨 쉬듯 뛰고, 겉으로 진동이 퍼져 나갑니다 */
.origin-mark { position: relative; display: grid; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); background: #f4efe8; }
.origin-mark img { grid-area: 1 / 1; place-self: center; width: 70%; padding: 0 !important; border: 0 !important; background: none !important; }
.origin-mark__chrome { grid-area: 1 / 1; position: relative; height: 92%; aspect-ratio: 1; place-self: center; }
.origin-mark__chrome canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.origin-mark .origin-mark__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6% !important; transition: opacity .6s; }
.origin-mark__chrome.is-live .origin-mark__fallback { opacity: 0; }
[data-theme="dark"] .origin-mark { background: #0b1a14; }
[data-theme="dark"] .origin-mark__fallback { filter: invert(1); }
/* KHUN studio 아이덴티티 가이드 */
.kg { margin-top: clamp(24px, 3vw, 40px); }
.kg-cons { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: center; }
.kg-cons__stage { position: relative; display: grid; margin: 0; aspect-ratio: 2000 / 1108; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.kg-cons__stage img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; }
.kg-cons__grid { opacity: .9; }
.kg-cons__line { animation: kgline 8s ease-in-out infinite; }
.kg-cons__mark { animation: kgreveal 8s ease-in-out infinite; }
@keyframes kgline { 0%, 12% { opacity: 0; } 28%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes kgreveal { 0%, 40% { opacity: 0; } 56%, 86% { opacity: 1; } 100% { opacity: 0; } }
.kg-cons figcaption { font-size: 14px; line-height: 1.8; color: var(--muted); }
.kg-cons figcaption b { color: var(--fg); font-weight: 600; }
.guide .kg-cons + .guide__label, .guide .kg-mean + .guide__label, .guide .kg-var + .guide__label { margin-top: 28px !important; }
.kg-mean { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; }
.kg-mean li { font-size: 12px; color: var(--muted); }
.kg-mean li span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acc); }
.kg-mean li b { display: block; margin: 2px 0; font-size: 18px; font-weight: 600; color: var(--fg); }
.kg-tile { position: relative; display: grid; aspect-ratio: 4 / 3; overflow: hidden; background: #383838; border: 1px solid var(--line); }
.kg-tile img { grid-area: 1 / 1; place-self: center; width: 78%; }
/* 의미 타일: 진동 = 바이탈 선의 격동, 바퀴 = 두 고리가 각자 돈다 */
.kg-vib { position: absolute; inset: 0; width: 100%; height: 100%; } /* 일부 모바일 브라우저에서 높이 0이 되던 문제 */
/* 바퀴: 두 고리를 나란히 떼어 놓고, 각자 자기 중심에서 다른 속도로 빙글빙글 */
.kg-wheels { grid-area: 1 / 1; place-self: center; display: flex; align-items: center; justify-content: center; gap: 4%; width: 86%; }
.kg-wheels img { width: 46%; height: auto; filter: invert(1); transform-origin: 50% 50%; }
.kg-tile--wheel .kg-pair__b { animation: kgwheel 3.2s cubic-bezier(.55, .05, .45, .95) infinite; }
.kg-tile--wheel .kg-pair__a { animation: kgwheel 4.7s cubic-bezier(.7, 0, .3, 1) infinite reverse; }
@keyframes kgwheel { to { transform: rotate(360deg); } }
.kg-tile--khun img { width: auto; max-width: 64%; max-height: 56%; opacity: 0; /* 다른 세 칸과 같은 높이감 */ animation: kgkhun 7.5s ease-in-out infinite; }
.kg-tile--khun img:nth-child(2) { animation-delay: 2.5s; }
.kg-tile--khun img:nth-child(3) { animation-delay: 5s; }
@keyframes kgkhun { 0% { opacity: 0; transform: scale(.94); } 8%, 30% { opacity: 1; transform: scale(1); } 40%, 100% { opacity: 0; transform: scale(1.04); } }
.kg-v img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.kg-v--chrome { background: #000; } .kg-v--line { background: #383838; } .kg-v--rev { background: #020a06; } .kg-v--rev img { filter: invert(1); }
.kg-v:not(.kg-v--chrome):not(.kg-v--line):not(.kg-v--rev):not(.kg-v--sight) { background: #fff; }
@media (prefers-reduced-motion: reduce) { .kg img { animation: none !important; } .kg-tile--khun img:first-child, .kg-cons__mark, .kg-cons__line { opacity: 1; } }
@media (max-width: 700px) { .kg-cons { grid-template-columns: 1fr; } .kg-mean { grid-template-columns: repeat(2, 1fr); gap: 10px; } .kg-mean li { font-size: 10px; } .kg-mean li b { font-size: 14px; } }
.kg-tile--x { grid-auto-flow: column; place-content: center; align-items: center; gap: 4%; }
.kg-tile--x > * { grid-area: auto; }
.kg-tile--x img { grid-area: auto; place-self: center; width: 100%; max-width: 150px; justify-self: center; filter: invert(1); animation: kgx 3.2s ease-in-out infinite; }
.kg-tile--x em { font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); color: #9fe8c4; }
@keyframes kgx { 0%, 100% { transform: scale(.94); opacity: .85; } 50% { transform: scale(1.04); opacity: 1; } }
/* 취업용: 직무 정체성 · 프로젝트 요약 */
.hero__role b { font-weight: 600; }
.hero__pos { position: relative; margin: 8px 0 0; font-size: clamp(13px, 1vw, 16px); color: var(--muted); }
.contact__note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.section__head h2 small { margin-left: 8px; font-size: .7em; color: var(--muted); }
.cp-brief { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: clamp(20px, 2.4vw, 32px) 0 0; padding: 0; counter-reset: none; }
.cp-brief li { padding: 16px 18px; border: 1px solid var(--line); border-top: 2px solid var(--acc); background: color-mix(in srgb, var(--panel) 70%, transparent); }
.cp-brief span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--acc); }
.cp-brief b { display: block; margin: 4px 0 8px; font-size: 16px; font-weight: 600; }
.cp-brief p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.cp-brief p b { display: inline; margin: 0; font-size: inherit; color: var(--fg); }
@media (max-width: 900px) { .cp-brief { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cp-brief { grid-template-columns: 1fr; } }

/* 모각 */
.mg-guide { --tile-bg: #F1EAE0; --acc-mg: #40210D; }
.mg-primary { display: grid; place-items: center; aspect-ratio: 21 / 6; background: #F1EAE0; border: 1px solid var(--line); }
.mg-primary img { width: 66%; border: 0 !important; }
.mg-marks .tile, .mg-var .tile { height: auto; aspect-ratio: 1; }
.mg-marks .tile { background: #F1EAE0; }
.guide .mg-marks .tile img { inset: 16%; width: 68%; height: 68%; }
.mg-v .mk { inset: 20%; background: #40210D; }
.mg-v { background: #F1EAE0; }
.mg-v--rev { background: #40210D; } .mg-v--rev .mk { background: #F1EAE0; }
.mg-v--gold { background: #5a3a26; } .mg-v--gold .mk { background: linear-gradient(135deg, #e8cf98, #b8925a 55%, #f0dcae); }
.mg-v--blush { background: #DCC3B0; } .mg-v--blush .mk { background: #40210D; }
.mg-pack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.cp-out .mg-pack img { height: 100%; object-fit: cover; }
.cp-out .mg-pack img { aspect-ratio: 4 / 3; }
.cp-out .mg-pack .mg-pack__hero { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.mg-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.cp-out .mg-photo img { height: 100%; object-fit: cover; }
.cp-out .mg-photo img:not(:last-child) { aspect-ratio: 3 / 2; }
.mg-photo img:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

/* 심볼 카드: 검은 카드 위 제목이 묻히지 않게 */
.sym-cards h3 { color: #eef5f1; }
.sym-cards p { color: #9aa8a1; }

.kg-var { grid-template-columns: repeat(4, 1fr); }
.kg-v--sight { background: #020a06; }
@media (max-width: 700px) { .kg-var { grid-template-columns: 1fr 1fr; } }
.cp-credit { margin-top: 6px !important; font-size: 12px !important; color: var(--muted); opacity: .7; }
.web__prog { grid-column: 1 / -1; }
.web__cap { margin: 18px 0 8px !important; font-size: 12px !important; color: var(--muted); }
.web__cap span { margin-right: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acc); }
.web__banners { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.web__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cp-out .web__prog img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
@media (max-width: 700px) { .web__banners { grid-template-columns: 1fr; } .web__thumbs { grid-template-columns: 1fr 1fr; } }
.kg-wheels--eyes img { filter: none; } /* 흰 눈 원본을 그대로 */
/* SIGHT: 두 궤도 위를 두 눈이 같은 박자로 빙글빙글 — 고개 대신 시선만 굴리는 느낌 */
.kg-orbits { grid-area: 1 / 1; place-self: center; display: flex; justify-content: center; gap: 2%; width: 92%; }
.kg-orbit { position: relative; width: 48%; aspect-ratio: 1853 / 1717; container-type: inline-size; }
.kg-tile .kg-orbit__path { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.kg-orbit__track { position: absolute; left: var(--cx); top: var(--cy); width: 0; height: 0; transform: rotate(var(--t)); }
.kg-orbit__x { animation: kgox 2.2s ease-in-out infinite alternate; }
.kg-orbit__y { animation: kgoy 2.2s ease-in-out -1.1s infinite alternate; }
.kg-tile .kg-orbit__eye { position: absolute; width: 48cqw; left: -24cqw; top: -29cqw; transform: rotate(calc(var(--t) * -1)); filter: none !important; }
@keyframes kgox { from { transform: translateX(-15cqw); } to { transform: translateX(15cqw); } }
@keyframes kgoy { from { transform: translateY(-9cqw); } to { transform: translateY(9cqw); } }
@media (prefers-reduced-motion: reduce) { .kg-orbit__x, .kg-orbit__y { animation: none; } }

/* ── 아주 좁은 화면 (갤럭시 폴드 접은 화면 · 작은 폰) ── */
@media (max-width: 420px) {
  .hud { gap: 10px; }
  .hud__vital { display: none; } /* 같은 정보가 아래 바이탈 바에 있습니다 */
  /* 윙스피킹 웹 목업: 도구 칸을 한 줄씩 쌓아 화면 밖으로 밀리지 않게 */
  .web { grid-template-columns: minmax(0, 1fr); }
  .web__tools { grid-template-columns: 1fr; }
  .web__live { flex-wrap: wrap; text-align: center; }
}

/* ── KHUN 심볼 칸 크기 통일 (CODE · VARIATION) ──
   기준: 진동 칸 캔버스의 로고가 칸 너비의 54% → 모든 로고를 같은 54%로.
   두 눈(SIGHT)은 궤도 선까지 포함해 68% — 안쪽 두 눈이 로고와 같은 크기로 보입니다.
   칸은 위아래 줄 모두 4:3. */
.kg-mean, .kg-var { --mk: 54%; --mk-sight: 68%; }
.kg-tile, .guide .kg-v { container-type: inline-size; }
.guide .kg-v { height: auto; aspect-ratio: 4 / 3; }
.guide .kg-v img { inset: auto; left: 50%; top: 50%; width: var(--mk); height: auto; transform: translate(-50%, -50%); object-fit: contain; }
.guide .kg-v--sight img { width: var(--mk-sight); }
.kg-orbits { width: var(--mk-sight); gap: 0; }
.kg-orbit { width: 50%; }
.kg-tile--khun img { max-width: var(--mk); max-height: 38%; }
.kg-tile--khun img:first-child { max-height: 52%; } /* 세로로 긴 손글씨 쿤은 높이로 맞춥니다 */
.kg-tile--x { display: flex; justify-content: center; align-items: center; gap: 2cqw; }
.kg-tile--x img { width: 54cqw; max-width: none; flex: none; }
.kg-tile--x em { font-size: 13cqw; line-height: 1; margin: 0 -2cqw; } /* 기울어진 글자의 빈 옆 공간을 당겨 괄호를 로고에 붙입니다 */
.kg-tile--x img { animation: none; transform: none; opacity: 1; } /* 미지수: 크기 변화 없이 고정 */

/* 모각 상세페이지: 흐름 · 6단 전체 보드 · 섹션별 설계 의도 */
.mg-flow { list-style: none; display: grid; grid-template-columns: 1fr 1.6fr 1.6fr 1fr; gap: 4px; margin: 8px 0 0; padding: 0; }
.mg-flow li { padding: 12px 14px; border: 1px solid var(--line); border-top: 2px solid var(--acc); font-size: 14px; font-weight: 500; }
.mg-flow span { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--acc); font-weight: 400; }
.mg-board { margin: 16px 0 0; padding: clamp(14px, 2.4vw, 36px); background: #efe6da; border: 1px solid var(--line); }
.mg-board__cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1vw, 16px); align-items: start; }
.mg-board__col { position: relative; aspect-ratio: 540 / 2171; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(64, 33, 13, .14); }
.cp-out .mg-board__col img { position: absolute; left: 0; top: calc(var(--k) * -100%); width: 100%; height: auto; border: 0; }
.mg-board figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #8a5a3b; }
.mg-board figcaption a { color: #40210D; text-decoration: none; border-bottom: 1px solid currentColor; }
.mg-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; margin: 28px 0 0; padding: 0; }
.mg-steps figure { margin: 0 0 12px; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); background: #f1eae0; }
.cp-out .mg-steps img { width: 100%; height: 100%; object-fit: cover; object-position: top; border: 0; }
.mg-steps span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
.mg-steps > li > b { display: block; margin: 4px 0 6px; font-weight: 500; font-size: 16px; }
.mg-steps p b { font-weight: 500; color: var(--fg); }
.cp-out .mg-steps p { margin: 0; font-size: 14px; line-height: 1.65; }
@media (max-width: 900px) { .mg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mg-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mg-board__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* KHUN studio: 서비스 · 클라이언트 작업 · 사이트 설명 */
.kw-svc, .kw-web { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 48px 0 0; padding: 0; }
.kw-svc li, .kw-web li { padding: 20px; border: 1px solid var(--line); border-top: 2px solid var(--acc); color: var(--muted); font-size: 14px; line-height: 1.6; background: color-mix(in srgb, var(--panel) 82%, transparent); }
.kw-svc span, .kw-web span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
.kw-svc b, .kw-web b { display: block; margin: 6px 0 4px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--fg); }
.kw-web { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kw-web b { font-family: var(--sans); font-weight: 500; font-size: 16px; }
.kw-works { list-style: none; display: grid; gap: 0; margin: 48px 0 0; padding: 0; }
.kw-work { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line); }
.kw-work__img { display: block; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.kw-work__img img { display: block; width: 100%; height: auto; transition: transform .8s; }
.kw-work:hover .kw-work__img img { transform: scale(1.02); }
.kw-work--feature .kw-work__img img { aspect-ratio: 1400 / 989; object-fit: cover; }
.kw-work__no { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
.kw-work h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.1; }
.kw-work__info > p:not(.kw-work__no):not(.kw-work__tags) { margin: 0 0 18px; color: var(--muted); font-weight: 300; line-height: 1.75; }
.kw-work__info b { color: var(--fg); font-weight: 500; }
.kw-work__tags { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.kw-work__tags i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); }
.kw-work__link { display: inline-block; margin-top: 20px; padding: 10px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--bg); background: var(--acc); text-decoration: none; }
@media (max-width: 900px) { .kw-svc { grid-template-columns: 1fr 1fr; } .kw-web { grid-template-columns: 1fr 1fr; } .kw-work { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kw-svc, .kw-web { grid-template-columns: 1fr; } }

/* 모각 로고 적용 사진: 세로 두 장 + 가로 두 장 */
.mg-use { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; margin: 16px 0 0; padding: 0; }
.mg-use li { font-size: 14px; color: var(--muted); }
.cp-out .mg-use img { aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 10px; }
.cp-out .mg-use li:nth-child(n+3) img { aspect-ratio: 3 / 2; }
.mg-use span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
@media (max-width: 600px) { .mg-use { grid-template-columns: 1fr; } }

/* 모각 장롱 접지 안내문: 가운데 판 + 양쪽 문. 닫으면 문 두 짝의 바깥면이 하나의 표지가 됩니다 */
.mgl { --w: min(100cqi - 32px, 980px, 66svh * 1827 / 1300); position: relative; width: var(--w); aspect-ratio: 1827 / 1300; cursor: pointer; outline: none; }
.mgl__body { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.45, .05, .2, 1); }
.mgl.is-back .mgl__body { transform: rotateY(180deg); }
.mgl__c, .mgl__door { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; }
.mgl__c { left: 25%; width: 50%; }
.mgl__door { width: 25%; transition: transform 1.4s cubic-bezier(.5, .05, .15, 1); }
.mgl__door--l { left: 25%; transform-origin: 0 50%; transform: translateZ(1px); }
.mgl__door--r { left: 50%; transform-origin: 100% 50%; transform: translateZ(1px); transition-delay: .12s; }
.mgl.is-open .mgl__door--l { transform: translateZ(1px) rotateY(-180deg); }
.mgl.is-open .mgl__door--r { transform: translateZ(1px) rotateY(180deg); }
.mgl__face { position: absolute; inset: 0; background: #eee3cb center / 100% 100% no-repeat; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mgl__face--back { transform: rotateY(180deg); }
.mgl__c .mgl__face { box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .45); }
.mgl__door .mgl__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.mgl__door--l > .mgl__face:first-child::after { background: linear-gradient(90deg, rgba(0, 0, 0, .06), transparent 12%); }
.mgl__door--r > .mgl__face:first-child::after { background: linear-gradient(270deg, rgba(0, 0, 0, .06), transparent 12%); }
.mgl-wrap:has(.mgl:focus-visible) { outline: 1px solid var(--acc); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .mgl__door, .mgl__body { transition: none; } }
.cp-out .mg-pack .mg-pack__wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }

/* ── VITAL SIGNS: 메인 역량 검진표 ── */
.vs-lead { margin: 0 0 clamp(24px, 3vw, 40px); font-size: clamp(20px, 2.2vw, 34px); font-weight: 300; line-height: 1.5; letter-spacing: -0.01em; }
.vs-lead b { font-weight: 500; color: var(--acc); }
.vs-flow { position: relative; list-style: none; display: flex; justify-content: space-between; gap: 8px; margin: 0 0 clamp(28px, 3.4vw, 48px); padding: 0 0 18px; font-size: clamp(14px, 1.1vw, 17px); font-weight: 500; color: var(--muted); }
.vs-flow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.6, 0, .2, 1) .2s; box-shadow: 0 0 12px var(--acc); }
.vs-flow li { position: relative; opacity: .35; transition: opacity .3s, color .3s; transition-delay: calc(.2s + var(--i) * .22s); }
.vs-flow li::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--acc); }
.vs-flow li:last-child { color: var(--acc); }
.vitals.is-on .vs-flow::after { transform: scaleX(1); }
.vitals.is-on .vs-flow li { opacity: 1; color: var(--fg); }
.vitals.is-on .vs-flow li:last-child { color: var(--acc); }
.vs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.vs { position: relative; display: flex; flex-direction: column; gap: 6px; padding: clamp(18px, 2vw, 28px); border: 1px solid var(--line); background: var(--panel); color: inherit; text-decoration: none; overflow: hidden;
  opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .2s; transition-delay: calc(.3s + var(--i) * .14s), calc(.3s + var(--i) * .14s), 0s, 0s; }
.vitals.is-on .vs { opacity: 1; transform: none; }
.vs:hover, .vs:focus-visible { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 12px 32px var(--acc-soft); }
.vs__no { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.vs__name { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
.vs__ko { font-size: 13px; color: var(--muted); }
.vs__val { display: flex; align-items: baseline; gap: 0; margin-top: 8px; color: var(--acc); font-weight: 400; }
.vs__val i { font-style: normal; font-family: var(--mono); font-size: clamp(44px, 4.6vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px var(--acc-soft); }
.vs__val small { margin-left: 6px; font-size: 14px; color: var(--fg); }
.vs__ecg { width: 100%; height: 30px; margin: 4px 0; }
.vs__ecg path { fill: none; stroke: var(--acc); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.vitals.is-on .vs__ecg path { animation: vsecg 2.4s linear infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes vsecg { 0% { stroke-dashoffset: 1; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.vs__proof { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.65; color: var(--fg); opacity: .85; }
.vs__cases { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
@media (max-width: 1100px) { .vs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .vs-flow { font-size: 12px; letter-spacing: -0.02em; gap: 2px; }
  .vs-flow li { text-align: center; }
  .vs { padding: 14px; }
  .vs__name { font-size: 18px; }
  .vs__val i { font-size: 38px; }
  .vs__val small, .vs__proof { font-size: 12px; }
  .vs__cases { font-size: 10px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) { .vs, .vs-flow li, .vs-flow::after { transition: none; } .vitals .vs { opacity: 1; transform: none; } .vitals .vs-flow::after { transform: none; } .vs__ecg path { stroke-dashoffset: 0; animation: none !important; } }
.cp-out[id] { scroll-margin-top: 90px; } /* 메인 검진표에서 바로 들어올 때 상단 바에 가리지 않게 */

/* 케이스 상단: 담당 범위를 아이콘 + 비율 막대로 */
.cp-meta__scope { grid-column: 1 / -1; order: 9; }
.scope { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.scope li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.scope b { font-weight: 600; font-size: 15px; line-height: 1.35; word-break: keep-all; }
.scope em { grid-row: 1; grid-column: 3; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--acc); }
.scope__bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.scope__bar::after { content: ""; position: absolute; inset: 0; width: var(--p, 100%); background: var(--acc); transform-origin: left; animation: scopefill 1.2s cubic-bezier(.3, 0, .2, 1) .3s both; }
.scope__bar--part::after { width: 100%; background: repeating-linear-gradient(90deg, var(--acc) 0 6px, transparent 6px 10px); }
@keyframes scopefill { from { transform: scaleX(0); } }
.ic { width: 22px; height: 22px; background: var(--acc); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.cp-meta__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-meta__tools span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .scope__bar::after { animation: none; } }
.ic--brand { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l8%209-8%209-8-9z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222.5%22/%3E%3C/svg%3E"); }
.ic--web { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M3%209h18M6.5%206.5h.01M9%206.5h.01%22/%3E%3C/svg%3E"); }
.ic--content { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2213%22%20y%3D%223%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%223%22%20y%3D%2213%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2213%22%20y%3D%2213%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%221.5%22/%3E%3C/svg%3E"); }
.ic--search { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%226.5%22/%3E%3Cpath%20d%3D%22M20%2020l-4.2-4.2%22/%3E%3C/svg%3E"); }
.ic--camera { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208h3l2-3h6l2%203h3v11H4z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2213%22%20r%3D%223.5%22/%3E%3C/svg%3E"); }
.ic--plan { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018h6M10%2021h4M12%203a6%206%200%200%200-4%2010.5c.7.7%201%201.5%201%202.5h6c0-1%20.3-1.8%201-2.5A6%206%200%200%200%2012%203z%22/%3E%3C/svg%3E"); }
.ic--type { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%206V4h14v2M12%204v16M9%2020h6%22/%3E%3C/svg%3E"); }
.ic--print { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h9l4%204v14H6z%22/%3E%3Cpath%20d%3D%22M15%203v4h4M9%2012h7M9%2016h7%22/%3E%3C/svg%3E"); }
.ic--gift { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%2218%22%20height%3D%225%22%20rx%3D%221%22/%3E%3Cpath%20d%3D%22M5%2013v8h14v-8M12%208v13M12%208c-2-4-6-4-6-1.5S10%208%2012%208zm0%200c2-4%206-4%206-1.5S14%208%2012%208z%22/%3E%3C/svg%3E"); }
.ic--film { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M10%209.5v5l4.5-2.5z%22/%3E%3C/svg%3E"); }
.ic--box { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207.5L12%203l9%204.5v9L12%2021l-9-4.5z%22/%3E%3Cpath%20d%3D%22M3%207.5L12%2012l9-4.5M12%2012v9%22/%3E%3C/svg%3E"); }
.ic--page { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%226%22%20y%3D%222.5%22%20width%3D%2212%22%20height%3D%2219%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M9%207h6M9%2011h6M9%2015h3%22/%3E%3C/svg%3E"); }
.ic--tag { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012V4h8l10%2010-7%207z%22/%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%228%22%20r%3D%221.3%22/%3E%3C/svg%3E"); }
.ic--eye { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012s3.5-6%2010-6%2010%206%2010%206-3.5%206-10%206S2%2012%202%2012z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222.8%22/%3E%3C/svg%3E"); }
.ic--wave { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012h3l2-6%203%2012%203-9%202%205%202-2h5%22/%3E%3C/svg%3E"); }
.ic--code { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%207l-5%205%205%205M16%207l5%205-5%205M13.5%204l-3%2016%22/%3E%3C/svg%3E"); }
@media (max-width: 700px) { .scope { grid-template-columns: 1fr 1fr; gap: 6px; } .scope li { padding: 10px 12px; gap: 8px; } .scope b { font-size: 13px; } .ic { width: 18px; height: 18px; } }

/* TOOLS: 아주 작은 단색 로고 */
.cp-meta__tools span[data-i] { display: inline-flex; align-items: center; gap: 5px; }
.cp-meta__tools span[data-i]::before { content: ""; width: 11px; height: 11px; flex: none; background: var(--muted); -webkit-mask: var(--ti) center / contain no-repeat; mask: var(--ti) center / contain no-repeat; }
.cp-meta__tools [data-i="adobeillustrator"] { --ti: url("assets/icons/tools/adobeillustrator.svg"); }
.cp-meta__tools [data-i="adobeindesign"] { --ti: url("assets/icons/tools/adobeindesign.svg"); }
.cp-meta__tools [data-i="adobelightroom"] { --ti: url("assets/icons/tools/adobelightroom.svg"); }
.cp-meta__tools [data-i="adobephotoshop"] { --ti: url("assets/icons/tools/adobephotoshop.svg"); }
.cp-meta__tools [data-i="adobepremierepro"] { --ti: url("assets/icons/tools/adobepremierepro.svg"); }
.cp-meta__tools [data-i="adobexd"] { --ti: url("assets/icons/tools/adobexd.svg"); }
.cp-meta__tools [data-i="claude"] { --ti: url("assets/icons/tools/claude.svg"); }
.cp-meta__tools [data-i="figma"] { --ti: url("assets/icons/tools/figma.svg"); }
.cp-meta__tools [data-i="google"] { --ti: url("assets/icons/tools/google.svg"); }
.cp-meta__tools [data-i="html5"] { --ti: url("assets/icons/tools/html5.svg"); }
.cp-meta__tools [data-i="openai"] { --ti: url("assets/icons/tools/openai.svg"); }
.cp-meta__tools [data-i="threedotjs"] { --ti: url("assets/icons/tools/threedotjs.svg"); }

.film__ad { display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.film__ad img { display: block; width: 100%; border: 1px solid var(--line); }
.film__ad p { margin: 0 !important; max-width: 40em; }
.film__ad span { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acc); }
@media (max-width: 700px) { .film__ad { grid-template-columns: 140px 1fr; gap: 16px; } }
/* 모각 상세페이지 대표 컷 */
.mg-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.mg-keys figure { margin: 0; }
.cp-out .mg-keys img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.mg-keys figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.mg-keys span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc); }
@media (max-width: 600px) { .mg-keys { grid-template-columns: 1fr; } }
/* 모각 제품 상세페이지 3종: 브라우저 속에서 천천히 스크롤 */
.mg-line { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(16px, 3vw, 48px); margin-top: 16px; }
.mg-line__item { margin: 0; }
.mg-line .web__screen { flex: none; height: 560px; min-height: 0; }
.cp-out .mg-line .web__screen img { animation-duration: 60s; }
.mg-line figcaption { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.mg-line figcaption b { display: block; font-weight: 500; font-size: 15px; color: var(--fg); }
@media (max-width: 760px) { .mg-line { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .mg-line .web__screen { height: 380px; } .mg-line .web__bar span { display: none; } }

/* 가독성: 배경 눈금은 한 톤 낮추고, 글이 든 상자는 흐린 유리판으로 뒤 눈금을 가립니다 */
:root { --grid: rgba(15, 51, 33, .42); }
body::before {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 255, 162, .08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='2' height='2' fill='%233dffa2' fill-opacity='.045'/%3E%3C/svg%3E"),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 60px 60px;
}
:is(.record, .cp-steps > li, .cp-list li, .cp-vitals div, .cp-brief li, .kw-svc li, .kw-web li, .scope li) {
  background: linear-gradient(160deg, rgba(61, 255, 162, .045), transparent 55%), color-mix(in srgb, var(--panel) 90%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
[data-theme="light"] :is(.record, .cp-steps > li, .cp-list li, .cp-vitals div, .cp-brief li, .kw-svc li, .kw-web li, .scope li) {
  background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hud { background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
/* 다크 모드에서도 남색 로고가 보이도록, 로고 이미지가 든 가이드 칸은 밝은 바탕 */
[data-theme="dark"] .guide .tile:not(.tile--navy):not(.tile--photo):has(> img) { background: #eef2f8; }
