/* ============================================================
   Rigel Lab
   흐린 실험실 위에 놓인 샌딩 유리. 포인트 색은 스크롤에 따라
   시약처럼 다른 색으로 바뀝니다 (--a, --a2 는 main.js 가 바꿈).
   색을 바꾸려면 :root 의 값을 고치세요.
   ============================================================ */
:root {
  --lab: #EEF0F4;
  --ink: #14151A;
  --text: #2B2D36;
  --steel: #5F6472;
  --line: rgba(20, 21, 26, .09);
  --line-2: rgba(20, 21, 26, .16);

  /* 시약 색: 리겔 눈(보라), 플라스크(분홍, 청록), 갈색병(호박), 식물(연두) */
  --violet: #7B5CFF;
  --pink: #FF3D8B;
  --cyan: #00A6C4;
  --amber: #FF7A1A;
  --lime: #5DB82A;
  --a: #7B5CFF;
  --a-rgb: 123, 92, 255;
  --a2: #FF3D8B;
  --a2-rgb: 255, 61, 139;

  /* 제목과 본문: Pretendard (없으면 애플 기기는 산돌고딕 Neo 계열, 그 밖에는 Noto Sans KR, Arial) */
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', Arial, system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);

  --pad: clamp(20px, 5vw, 64px);
  --padL: max(var(--pad), env(safe-area-inset-left, 0px));
  --padR: max(var(--pad), env(safe-area-inset-right, 0px));
  --wrap: 1180px;
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 22px;
  --r-sm: 14px;
  --top: calc(env(safe-area-inset-top, 0px) + 12px);
  --nav-h: 52px;
  --toolbar: 0px;
  --noise: url(/images/rigel/noise.png);
  color-scheme: light;
}
@supports (height: 100lvh) { :root { --toolbar: calc(100lvh - 100svh); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--lab); scroll-padding-top: 88px; }
html.lock { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; background: var(--lab); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.7; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; word-break: keep-all; overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--a); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--a-rgb), .25); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -9999px; top: 12px; z-index: 2000; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { left: 12px; }
.vh-probe { position: fixed; top: 0; left: 0; width: 1px; height: 100vh; height: 100lvh; visibility: hidden; pointer-events: none; }

#app { position: relative; z-index: 2; outline: none; min-height: 70vh; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--padL) + var(--padR)); margin: 0 auto; padding-left: var(--padL); padding-right: var(--padR); }

/* ---------- 배경: 흐린 실험실 사진 + 시약 빛 ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--lab); }
.ambient-img { position: absolute; inset: -4%; background: url(/images/rigel/ambient.jpg) center / cover no-repeat; opacity: .95; transform: scale(1.06); }
.ambient-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 70% at 12% 0%, rgba(var(--a-rgb), .20), transparent 62%),
    radial-gradient(90% 70% at 100% 100%, rgba(var(--a2-rgb), .18), transparent 62%),
    linear-gradient(rgba(240, 242, 247, .52), rgba(240, 242, 247, .72));
}
@media (max-aspect-ratio: 4/5) { .ambient-img { background-image: url(/images/rigel/ambient-m.jpg); } }
.bokeh { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- 유리 ---------- */
.glass {
  position: relative;
  background-image: var(--noise), linear-gradient(150deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .44) 58%, rgba(255, 255, 255, .6));
  background-size: 128px 128px, 100% 100%;
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    0 1px 2px rgba(22, 20, 40, .05),
    0 20px 50px -22px rgba(40, 30, 90, .30);
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .22) 36%, rgba(var(--a-rgb), .32) 72%, rgba(255, 255, 255, .75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.glass-dark {
  background-image: var(--noise), linear-gradient(150deg, rgba(40, 40, 52, .62), rgba(16, 16, 22, .38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .06), 0 30px 70px -30px rgba(0, 0, 0, .8);
}
.glass-dark::before { background: linear-gradient(160deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .05) 40%, rgba(var(--a-rgb), .45) 75%, rgba(255, 255, 255, .2)); }

/* 버튼 */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .35s, background-color .3s, color .3s;
}
.btn-pill:active { transform: scale(.97); }
.btn-solid { background: var(--ink); color: #fff; box-shadow: 0 10px 26px -12px rgba(var(--a-rgb), .9); }
.btn-solid:hover { box-shadow: 0 14px 34px -10px rgba(var(--a-rgb), 1), 0 0 0 4px rgba(var(--a-rgb), .16); }
.btn-glass { color: var(--ink); border-radius: 999px; }
.btn-glass:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgba(var(--a-rgb), .14), 0 16px 40px -18px rgba(40, 30, 90, .35); }

/* ---------- 실험실 문 (첫 화면) ---------- */
.doors { position: fixed; inset: 0; z-index: 1000; overflow: hidden; transform-origin: 50% 46%; animation: doorsFailsafe .6s ease 12s forwards; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50.2%; overflow: hidden;
  background-image: var(--noise), linear-gradient(180deg, rgba(232, 236, 244, .74), rgba(214, 220, 232, .66) 60%, rgba(226, 230, 240, .72));
  background-size: 128px 128px, 100% 100%;
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  backdrop-filter: blur(30px) saturate(1.3);
  transition: transform 1.35s var(--ease-io);
  will-change: transform;
}
.door-l { left: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .95), inset -18px 0 30px -24px rgba(20, 21, 40, .35); }
.door-r { right: 0; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .95), inset 18px 0 30px -24px rgba(20, 21, 40, .35); }
.door::before {
  content: ''; position: absolute; inset: -20% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
  animation: sheen 2.6s var(--ease-io) infinite;
}
.door-r::before { animation-delay: .12s; }
@keyframes sheen { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
.door-etch { position: absolute; top: 38%; width: var(--etch); aspect-ratio: 1925 / 1594; transform: translateY(-50%); --etch: min(58vw, 340px); }
.door-l .door-etch { left: calc(100% - var(--etch) / 2); }
.door-r .door-etch { left: calc(var(--etch) / -2); }
.door-etch svg { width: 100%; height: 100%; fill: rgba(255, 255, 255, .92); filter: drop-shadow(0 1px 0 rgba(30, 30, 60, .16)) drop-shadow(0 -1px 0 rgba(255, 255, 255, .9)); }
.door-bar {
  position: absolute; top: 58%; width: 8px; height: min(20vh, 170px); border-radius: 8px;
  background: linear-gradient(90deg, #B9BFCC, #FFFFFF 45%, #C8CDD8);
  box-shadow: 0 6px 16px -6px rgba(20, 20, 40, .45), inset 0 0 0 .5px rgba(0, 0, 0, .12);
}
.door-l .door-bar { right: clamp(26px, 7vw, 110px); }
.door-r .door-bar { left: clamp(26px, 7vw, 110px); }
.door-seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-.5px); background: rgba(255, 255, 255, .9); box-shadow: 0 0 12px rgba(255, 255, 255, .9); transition: opacity .3s; }
.doors-status {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--toolbar) + 36px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 999px;
  color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: opacity .35s, transform .5s var(--ease);
}
.led { width: 10px; height: 10px; border-radius: 50%; background: #FF453A; box-shadow: 0 0 0 3px rgba(255, 69, 58, .18), 0 0 14px rgba(255, 69, 58, .8); animation: led 1.1s ease-in-out infinite; }
@keyframes led { 50% { opacity: .45; } }
.doors.granted .led { background: #30D158; box-shadow: 0 0 0 4px rgba(48, 209, 88, .22), 0 0 18px rgba(48, 209, 88, .9); animation: none; }
.doors-pct { min-width: 3.2ch; color: var(--steel); font-variant-numeric: tabular-nums; text-align: right; }
.doors-pct::after { content: '%'; }
.doors-inst {
  position: absolute; left: 0; right: 0; top: calc(var(--top) + 18px); margin: 0; text-align: center;
  color: rgba(20, 21, 26, .55); font-size: 11px; font-weight: 600; letter-spacing: .14em; transition: opacity .3s;
}
.doors.open { transform: scale(1.16); opacity: 0; transition: transform 1.5s var(--ease-io), opacity .7s ease .75s; pointer-events: none; }
.doors.open .door-l { transform: translate3d(-101%, 0, 0); }
.doors.open .door-r { transform: translate3d(101%, 0, 0); }
.doors.open .door-seam, .doors.open .doors-inst { opacity: 0; }
.doors.open .doors-status { opacity: 0; transform: translateX(-50%) translateY(12px); }
@keyframes doorsFailsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- 페이지 전환: 초점이 나갔다 돌아옴 ---------- */
.veil {
  position: fixed; inset: 0; z-index: 950; pointer-events: none; opacity: 0; visibility: hidden;
  background-image: var(--noise), linear-gradient(rgba(240, 242, 247, .5), rgba(240, 242, 247, .58));
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  transition: opacity .32s ease, visibility 0s linear .32s;
}
.veil.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease, visibility 0s; }

/* ---------- 떠 있는 로고 ----------
   뒤로 지나가는 배경의 밝기를 읽어 색을 바꿉니다 (--lc1, --lc2, --lg-glow 는 main.js 가 바꿈) */
.sprite { --lc1: #14151A; --lc2: #7B5CFF; --oc1: #EEF3FF; --oc2: #AFC6FF; }
.float-logo {
  position: fixed; z-index: 850; top: calc(env(safe-area-inset-top, 0px) + 10px); left: max(10px, calc(env(safe-area-inset-left, 0px) + 6px));
  display: block; padding: 8px 12px; border-radius: 16px;
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.float-logo svg {
  width: clamp(78px, 6.4vw, 100px); height: auto; aspect-ratio: 2409 / 1262; fill: url(#g-logo);
  filter: drop-shadow(0 0 var(--lg-r, 12px) var(--lg-glow, rgba(255, 255, 255, .75)));
  transition: transform .5s var(--spring);
}
.float-logo:hover svg { transform: scale(1.05); }
.float-logo:active svg { transform: scale(.96); }
.float-logo.away { opacity: 0; transform: translateY(-12px); pointer-events: none; }
html.pre .float-logo { opacity: 0; transform: translateY(-12px); }
html.reacting .float-logo svg { --lg-r: 18px; }

/* ---------- 등장 효과: 초점이 맞아 들어옴 ---------- */
[data-reveal] { opacity: 0; filter: blur(12px); transform: translate3d(0, 26px, 0); transition: opacity 1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
[data-reveal].in { opacity: 1; filter: none; transform: none; }
.shot { opacity: 0; filter: blur(16px); transform: scale(.965); transition: opacity 1.1s var(--ease), filter 1.2s var(--ease), transform 1.3s var(--ease); }
.shot.in { opacity: 1; filter: none; transform: none; }
[data-split] .word { display: inline-block; white-space: nowrap; }
[data-split] .ch {
  display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.22em);
  color: var(--ink);
  color: color-mix(in oklab, var(--ink) calc(100% - var(--i) / var(--n, 10) * 70%), var(--a));
  transition: opacity .8s var(--ease), filter .9s var(--ease), transform .9s var(--ease), color .6s;
  transition-delay: calc(var(--i) * 30ms);
}
[data-split].ready .ch { opacity: 1; filter: none; transform: none; }

/* ---------- 처음 화면 ----------
   사진(.stage)은 화면 뒤에 고정되어 있고 글이 그 위로 지나갑니다.
   사진은 잘려 올라가지 않고, 초점이 나간 뒤 안개처럼 옅어지며 사라집니다. */
.stage, .hero-pin {
  /* 사진 틀: 화면을 덮는 16:10 크기 (휴대폰은 10:16). 로고를 사진 속 같은 자리에 두려고 씁니다 */
  --fw: max(100vw, 160vh); --fw: max(100vw, 160lvh); --fh: calc(var(--fw) / 1.6); --fx: .58; --fy: .35;
  --vw: 100vw; --vh: 100vh; --vh: 100lvh;
}
@media (max-aspect-ratio: 4/5) {
  .stage, .hero-pin { --fw: max(100vw, 62.5vh); --fw: max(100vw, 62.5lvh); --fh: calc(var(--fw) * 1.6); --fx: .5; --fy: .4; }
}
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #E9ECF1; opacity: var(--stage, 1); }
.stage.gone { visibility: hidden; }
.hero-enter { position: absolute; inset: 0; transition: transform 2s var(--ease-io); }
html.pre .hero-enter { transform: scale(1.14); }
.hero-media { position: absolute; inset: 0; transform: scale(calc(1 + var(--p, 0) * .08 + var(--mist, 0) * .06)); transform-origin: 50% 55%; will-change: transform; }
.hero-frame { position: absolute; width: var(--fw); height: var(--fh); left: calc((var(--vw) - var(--fw)) * var(--fx)); top: calc((var(--vh) - var(--fh)) * var(--fy)); }
.hero-frame picture, .hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-frame img { object-fit: cover; }
.hero-blur { opacity: var(--defocus, 0); transition: opacity .12s linear; }
html.pre .hero-blur { opacity: 1; }
.stage.entering .hero-blur { transition: opacity 1.7s var(--ease-io); }
.hero-fg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
/* 사진이 사라질 때 유리에 김이 서리듯 밝아지는 안개 */
.stage-mist {
  position: absolute; inset: 0; opacity: var(--mist, 0);
  background:
    radial-gradient(120% 90% at 50% 55%, rgba(246, 247, 251, .66), rgba(240, 242, 247, .94)),
    var(--noise);
}

.hero { position: relative; height: 220vh; height: 220lvh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }

/* 선반 사이 흰 벽의 로고 (가로 화면) */
.hero-mark {
  position: absolute; margin: 0;
  left: max(var(--padL), calc((var(--vw) - var(--fw)) * var(--fx) + var(--fw) * .035));
  top: calc((var(--vh) - var(--fh)) * var(--fy) + var(--fh) * .335);
  width: min(calc(var(--fw) * .2), 34vw, 420px);
  opacity: clamp(0, 1 - var(--p, 0) * 4.5, 1);
  transform: translate3d(0, calc(var(--p, 0) * -70px), 0);
}
.hero-mark svg { width: 100%; height: auto; aspect-ratio: 2409 / 1262; fill: url(#g-ink); filter: drop-shadow(0 0 16px rgba(255, 255, 255, .9)); }
html.pre .hero-mark { opacity: 0; transform: translate3d(0, 24px, 0); }
.hero.entering .hero-mark { transition: opacity 1.3s var(--ease) .75s, transform 1.5s var(--ease) .75s; }
@media (max-aspect-ratio: 4/5) { .hero-mark { display: none; } }

/* 초점이 옮겨 온 뒤의 가운데 로고. 문장으로 넘어갈 때 다시 흐려지며 사라집니다 */
.hero-title {
  position: absolute; left: 0; right: 0; top: 50%; margin: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 var(--padR) 0 var(--padL);
  --show: clamp(0, (var(--p, 0) - .34) * 3.4, 1);
  --vis: calc(var(--show) * (1 - var(--exit, 0)));
  opacity: var(--vis);
  filter: blur(calc((1 - var(--vis)) * 14px));
  transform: translate3d(0, calc(-50% + (1 - var(--show)) * 34px), 0) scale(calc(1.06 - var(--show) * .06 + var(--exit, 0) * .05));
  pointer-events: none;
}
.hero-title.live { pointer-events: auto; }
.hero-big { width: min(72vw, 660px); height: auto; aspect-ratio: 2409 / 1262; fill: url(#g-ink); filter: drop-shadow(0 10px 40px rgba(255, 255, 255, .8)); }
.hero-motto { margin: 14px 0 0; color: var(--steel); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 0 16px #fff; }
.hero-role { margin: clamp(18px, 3vh, 30px) 0 22px; color: var(--ink); font-size: clamp(18px, 1.9vw, 24px); font-weight: 700; letter-spacing: -.025em; line-height: 1.4; text-shadow: 0 0 24px rgba(255, 255, 255, .9); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-cue {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--toolbar) + 22px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; transform: translateX(-50%);
  color: var(--ink); font-size: 12px; font-weight: 600; text-shadow: 0 0 12px #fff, 0 0 4px #fff;
  opacity: clamp(0, 1 - var(--p, 0) * 6, 1);
}
.hero-cue i { width: 1.5px; height: 40px; border-radius: 2px; background: linear-gradient(var(--ink), transparent); animation: cue 2s var(--ease-io) infinite; transform-origin: top; }
html.pre .hero-cue { opacity: 0; }
.hero.entering .hero-cue { transition: opacity 1s ease 1.2s; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .hero-big { width: min(80vw, 360px); }
  .hero-role { font-size: 18px; margin-bottom: 18px; }
  .hero-cta { width: 100%; max-width: 360px; }
  .hero-cta .btn-pill { flex: 1 1 0; padding: 0 14px; }
}

/* ---------- 리겔 소개: 사진, 이름, 문장, 프로필이 차례로 떠오름 ----------
   배경은 뒤에 고정된 첫 화면 사진이 안개처럼 흐려진 흰 샌딩 그러데이션입니다.
   --ph 사진, --nm 이름, --sf 문장이 물러남(휴대폰), --ct 숫자 (main.js) */
.profile { position: relative; height: 400vh; height: 400lvh; }
.pf-pin {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  max-width: 1320px; margin: 0 auto;
  padding: calc(var(--top) + 64px) var(--padR) calc(var(--toolbar) + 32px) var(--padL);
}
.pf-text { opacity: var(--enter, 1); }
.pf-photo {
  position: relative; margin: 0; height: min(78vh, 760px); display: flex; align-items: center; justify-content: center;
  opacity: var(--ph, 0); transform: translate3d(0, calc((1 - var(--ph, 0)) * 30px + (.5 - var(--p, 0)) * 24px), 0) scale(calc(1.04 - var(--ph, 0) * .04));
}
.pf-photo::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 14%; bottom: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--a-rgb), .22), rgba(var(--a2-rgb), .1) 45%, transparent 70%); filter: blur(24px);
}
.pf-photo img { position: relative; display: block; width: auto; height: 100%; max-width: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(40, 30, 90, .18)); }
.pf-text { min-width: 0; }
.pf-kicker { margin: 0 0 8px; color: var(--steel); font-size: 14px; font-weight: 700; letter-spacing: .06em; opacity: var(--nm, 0); }
.pf-name {
  margin: 0 0 clamp(16px, 2.4vh, 28px); color: var(--ink); font-size: clamp(44px, 6vw, 92px); font-weight: 800; letter-spacing: -.05em; line-height: 1;
  opacity: var(--nm, 0); filter: blur(calc((1 - var(--nm, 0)) * 10px)); transform: translate3d(0, calc((1 - var(--nm, 0)) * 20px), 0);
}
.pf-stage { display: flex; flex-direction: column; gap: clamp(18px, 3vh, 34px); }
.scrub {
  margin: 0; color: var(--ink);
  font-size: clamp(22px, 2.5vw, 38px); font-weight: 800; line-height: 1.42; letter-spacing: -.035em;
}
.scrub .w { opacity: .14; filter: blur(3px); transition: opacity .45s ease, color .6s ease, text-shadow .6s, filter .6s ease; }
.scrub .w.on { opacity: 1; filter: none; }
.scrub .w.front { color: var(--a); text-shadow: 0 0 28px rgba(var(--a-rgb), .45); }
.pf-facts { margin: 0; display: flex; flex-direction: column; }
.pf-row { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); }
.pf-row dt, .pf-row dd { padding: 10px 0; opacity: .14; filter: blur(3px); transition: opacity .5s ease, filter .6s ease, color .6s ease, transform .6s var(--ease); transform: translate3d(0, 8px, 0); }
.pf-row dt { flex: 0 0 6.2em; color: var(--steel); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pf-row dd { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); font-size: clamp(17px, 1.6vw, 23px); font-weight: 700; letter-spacing: -.02em; }
.pf-row.on dt, .pf-row.on dd { opacity: 1; filter: none; transform: none; }
.pf-row.front dd { color: var(--a); text-shadow: 0 0 24px rgba(var(--a-rgb), .35); }
.pf-count { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; opacity: var(--ct, 0); transform: translate3d(0, calc((1 - var(--ct, 0)) * 12px), 0); }
.pf-count span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 6px 18px -10px rgba(30, 30, 70, .35); color: var(--steel); font-size: 13.5px; }
.pf-count b { margin-right: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* 세로 화면과 낮은 화면: 사진은 위, 글은 아래. 문장을 다 읽으면 그 자리에 프로필이 이어서 떠오릅니다 */
@media (max-width: 899px), (max-height: 720px) {
  .pf-stage { display: grid; }
  .pf-stage > * { grid-area: 1 / 1; }
  .pf-statement { opacity: calc(1 - var(--sf, 0)); filter: blur(calc(var(--sf, 0) * 8px)); transform: translate3d(0, calc(var(--sf, 0) * -16px), 0); }
  .pf-rows { align-self: start; opacity: var(--sf, 0); }
}
@media (max-width: 899px) {
  .pf-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 14px; padding-top: calc(var(--top) + 58px); }
  .pf-photo { height: 34vh; height: 34svh; }
  .pf-name { font-size: clamp(40px, 11vw, 60px); }
  .scrub { font-size: clamp(20px, 5.4vw, 28px); line-height: 1.45; }
  .pf-row dt, .pf-row dd { padding: 8px 0; }
  .pf-row dd { font-size: 16.5px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .pf-photo { height: 26vh; height: 26svh; }
  .scrub { font-size: 19px; }
}

/* ---------- 이름의 유래: 오리온자리 ----------
   별자리가 그려진 뒤 리겔(β Ori)로 다가가면 이름과 캐릭터 포인트 컬러가 떠오릅니다.
   --o-in, --o-nm, --o-pl 은 main.js 가 스크롤에 맞춰 바꿉니다. */
.origin { position: relative; height: 360vh; height: 360lvh; background: #02030A; color: #EEF0F8; }
.origin::before {
  content: ''; position: absolute; left: 0; right: 0; top: -42vh; height: 42vh; pointer-events: none;
  background: linear-gradient(rgba(2,3,10,0), rgba(2,3,10,.03) 18%, rgba(2,3,10,.12) 34%, rgba(2,3,10,.3) 50%, rgba(2,3,10,.55) 66%, rgba(2,3,10,.8) 82%, #02030A);
}
.origin::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -42vh; height: 42vh; pointer-events: none; z-index: 1;
  background: linear-gradient(#02030A, rgba(2,3,10,.8) 18%, rgba(2,3,10,.55) 34%, rgba(2,3,10,.3) 50%, rgba(2,3,10,.12) 66%, rgba(2,3,10,.03) 82%, rgba(2,3,10,0));
}
.origin + .sec { padding-top: calc(42vh + clamp(32px, 6vw, 80px)); }
.origin-pin { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.origin-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.origin-intro {
  position: absolute; left: var(--padL); top: 50%; width: min(40vw, 470px); margin: 0;
  opacity: var(--o-in, 0); filter: blur(calc((1 - var(--o-in, 0)) * 8px));
  transform: translate3d(0, calc(-50% + (1 - var(--o-in, 0)) * 24px), 0);
}
.origin-kicker { margin: 0 0 12px; color: rgba(238, 240, 248, .55); font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.origin-title { margin: 0 0 16px; color: #fff; font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1.15; }
.origin-lede { margin: 0; color: rgba(238, 240, 248, .78); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; }
.origin-name {
  position: absolute; left: 0; right: 0; top: 41%; margin: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 var(--padR) 0 var(--padL);
  opacity: var(--o-nm, 0); filter: blur(calc((1 - var(--o-nm, 0)) * 14px));
  transform: translate3d(0, calc(-50% + (1 - var(--o-nm, 0)) * 30px - var(--o-pl, 0) * 6vh), 0) scale(calc(1.08 - var(--o-nm, 0) * .08));
}
.origin-desig { margin: 0 0 14px; color: rgba(238, 240, 248, .72); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.origin-logo { width: min(62vw, 520px); height: auto; aspect-ratio: 2409 / 1262; fill: url(#g-origin); filter: drop-shadow(0 0 34px rgba(var(--oc-rgb, 175, 198, 255), .55)); }
.origin-story { max-width: 34em; margin: 22px 0 0; color: rgba(238, 240, 248, .86); font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.75; text-shadow: 0 1px 14px rgba(2, 3, 10, .9); }
.origin-palette {
  position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--toolbar) + clamp(28px, 7vh, 72px));
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 var(--padR) 0 var(--padL);
  opacity: var(--o-pl, 0);
}
.origin-next { margin: 0; color: rgba(238, 240, 248, .6); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.origin-palette > p { margin: 0; color: rgba(238, 240, 248, .7); font-size: 14px; font-weight: 700; }
.swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.swatches li {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  --r: clamp(0, var(--o-pl, 0) * 4.2 - var(--i) * .9, 1);
  opacity: var(--r); transform: translate3d(0, calc((1 - var(--r)) * 14px), 0);
}
.swatches i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 18px var(--sw), inset 0 0 0 1px rgba(255, 255, 255, .3); }
.swatches b { color: #fff; font-size: 14px; font-weight: 700; }
.swatches span { color: rgba(238, 240, 248, .6); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .origin-intro { left: var(--padL); right: var(--padR); width: auto; top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--toolbar) + 36px); transform: translate3d(0, calc((1 - var(--o-in, 0)) * 24px), 0); }
  .origin-title { font-size: 28px; }
  .origin-name { top: 38%; }
  .origin-logo { width: min(64vw, 300px); }
  .origin-story { font-size: 15px; }
  .swatches { gap: 8px; }
  .swatches li { padding-right: 12px; }
}
@media (max-height: 700px) and (max-width: 760px) { .origin-story { font-size: 14px; line-height: 1.6; margin-top: 14px; } .origin-desig { margin-bottom: 8px; } }

/* 표본실 (검은 방) */
.specimen { position: relative; height: 240vh; height: 240lvh; background: #02030A; color: #F3F4F8; }
.specimen::before, .specimen::after { content: ''; position: absolute; left: 0; right: 0; height: 42vh; pointer-events: none; z-index: 1; }
.specimen + .sec { padding-top: calc(42vh + clamp(32px, 6vw, 80px)); }
.specimen::before { top: -42vh; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.03) 18%, rgba(0,0,0,.12) 34%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.55) 66%, rgba(0,0,0,.8) 82%, #000); }
.specimen::after { bottom: -42vh; background: linear-gradient(#000, rgba(0,0,0,.8) 18%, rgba(0,0,0,.55) 34%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.12) 66%, rgba(0,0,0,.03) 82%, rgba(0,0,0,0)); }
.spec-pin {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 4vw;
  max-width: 1320px; margin: 0 auto;
  padding: calc(var(--top) + var(--nav-h) + 12px) var(--padR) calc(28px + var(--toolbar)) var(--padL);
}
.spec-figure { position: relative; margin: 0; height: min(76vh, 780px); display: grid; place-items: center; }
.spec-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--a-rgb), .75), rgba(var(--a2-rgb), .25) 45%, transparent 68%);
  filter: blur(18px); opacity: calc(.25 + var(--p, 0) * .75); transform: scale(calc(.75 + var(--p, 0) * .45));
}
.spec-figure img {
  position: relative; width: auto; height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: screen;
  transform: translate3d(0, calc((.5 - var(--p, 0)) * 50px), 0) scale(calc(.9 + var(--p, 0) * .12)) rotate(calc((var(--p, 0) - .5) * -5deg));
}
.spec-card {
  padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-xl);
  --show: clamp(0, (var(--p, 0) - .1) * 4, 1);
  opacity: var(--show); transform: translate3d(0, calc((1 - var(--show)) * 48px), 0);
}
.spec-no { margin: 0; color: rgba(243, 244, 248, .6); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.spec-name { margin: 6px 0 20px; font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: #fff; }
.spec-facts { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; margin: 0; }
.spec-facts dt { color: rgba(243, 244, 248, .55); font-size: 14px; }
.spec-facts dd { margin: 0; color: #fff; font-size: 16px; font-weight: 500; }
.spec-count { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.spec-count span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: 13.5px; }
.spec-count b { color: #fff; font-variant-numeric: tabular-nums; margin-right: 4px; }
@media (max-width: 860px) {
  .spec-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
  .spec-figure { height: 100%; min-height: 0; max-height: 50vh; align-self: stretch; }
  .spec-figure img { transform: translate3d(0, calc((.5 - var(--p, 0)) * 30px), 0) scale(calc(.94 + var(--p, 0) * .08)) rotate(calc((var(--p, 0) - .5) * -4deg)); }
  .spec-card { position: relative; margin: 0; padding: 20px 18px; border-radius: 26px; }
  .spec-name { font-size: 40px; margin-bottom: 14px; }
  .spec-facts { gap: 8px 16px; }
  .spec-facts dd { font-size: 15px; }
}

/* 공통 섹션 머리 */
.sec { position: relative; z-index: 2; padding-top: clamp(96px, 13vw, 180px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 32px; margin-bottom: clamp(32px, 5vw, 64px); }
.display {
  margin: 0; color: var(--ink); font-weight: 800;
  font-size: clamp(52px, 9.6vw, 144px); line-height: .95; letter-spacing: -.05em;
}
.sec-lead { max-width: 30ch; margin: 18px 0 0; color: var(--ink); font-size: clamp(19px, 2vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
.sec-link { flex: none; }

/* 향료 선반: 향조별 시약병 */
.vials {
  display: flex; gap: clamp(10px, 1.1vw, 16px); overflow-x: auto; overscroll-behavior-x: contain;
  padding: 28px var(--padR) 26px var(--padL); margin: 0 calc(-1 * var(--padR)) 0 calc(-1 * var(--padL));
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.vials::-webkit-scrollbar { display: none; }
.vial:first-child { margin-left: auto; }
.vial:last-child { margin-right: auto; }
.vial { flex: 0 0 auto; width: clamp(56px, 4.4vw, 66px); display: flex; flex-direction: column; align-items: center; gap: 10px; scroll-snap-align: center; text-align: center; }
.vial-tube {
  position: relative; width: 100%; height: clamp(190px, 24vw, 270px); overflow: hidden;
  border-radius: 14px 14px 999px 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .22) 42%, rgba(255, 255, 255, .5));
  box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, .95), inset 0 0 0 2px rgba(20, 21, 26, .05), 0 16px 34px -16px rgba(30, 30, 70, .4);
  transition: transform .6s var(--spring), box-shadow .4s;
}
.vial-liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fill) * 100%);
  background: linear-gradient(180deg, var(--c), var(--c));
  background: linear-gradient(180deg, color-mix(in oklab, var(--c) 72%, #fff), var(--c) 70%, color-mix(in oklab, var(--c) 82%, #000));
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 1.6s var(--spring) calc(var(--i) * 55ms);
}
.vial-liquid::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--c) 55%, #fff); }
.vials.in .vial-liquid { transform: none; }
.vial-shine { position: absolute; top: 7%; left: 18%; width: 13%; bottom: 16%; border-radius: 999px; background: linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .05)); }
.vial-name { color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.vial-count { margin-top: -6px; color: var(--steel); font-size: 12px; font-variant-numeric: tabular-nums; }
.vial:hover .vial-tube, .vial:focus-visible .vial-tube { transform: translateY(-8px); box-shadow: inset 0 0 0 1.2px #fff, 0 0 0 4px rgba(var(--a-rgb), .16), 0 22px 40px -16px rgba(30, 30, 70, .45); }

/* 사진 띠 */
.strip {
  display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; overscroll-behavior-x: contain;
  padding: 10px var(--padR) 34px var(--padL); scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-left: var(--padL);
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { scroll-snap-type: none; cursor: grabbing; }
.strip-item {
  flex: 0 0 auto; height: clamp(300px, 58vh, 560px); scroll-snap-align: start; overflow: hidden; border-radius: var(--r-lg);
  box-shadow: 0 26px 60px -30px rgba(30, 30, 70, .55);
}
.strip-item img { height: 100%; width: auto; max-width: none; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }

/* 소개 맛보기 */
.teaser { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 4vw, 52px); border-radius: var(--r-xl); }
.teaser img { width: clamp(120px, 18vw, 220px); height: auto; filter: drop-shadow(0 18px 30px rgba(40, 30, 90, .25)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.teaser h2 { margin: 0 0 10px; color: var(--ink); font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.teaser p { margin: 0 0 20px; max-width: 46ch; }
@media (max-width: 640px) { .teaser { grid-template-columns: minmax(0, 1fr); text-align: left; } .teaser img { width: 120px; } }


/* ---------- 캐릭터 컬러: 샌딩 그러데이션 카드 ----------
   카드 안의 색 덩어리가 기울기(자이로) 또는 마우스에 따라 물처럼 흐릅니다 (--tx, --ty 는 main.js) */
.colours { --tx: 0; --ty: 0; }
.col-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 6vw, 80px); }
.kicker { margin: 0 0 18px; color: var(--steel); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.col-title { margin: 0; color: var(--ink); font-size: clamp(40px, 5.6vw, 84px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.col-title span { display: block; }
.col-title .thin { font-weight: 300; letter-spacing: -.035em; color: #2A2C36; }
.col-text { margin: 0 0 8px; color: var(--steel); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.75; }
.col-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; }
.col-card {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: clamp(22px, 2.4vw, 32px); isolation: isolate;
  margin-top: calc(var(--i) * clamp(18px, 3vw, 48px));
  background: linear-gradient(180deg, #F7F8FB 0%, color-mix(in oklab, var(--c) 45%, #fff) 38%, var(--c) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 24px 50px -28px color-mix(in oklab, var(--c) 60%, #000), 0 2px 6px rgba(20, 21, 26, .05);
  transition: transform .6s var(--spring);
}
.col-card:hover { transform: translateY(-6px); }
.col-fluid { position: absolute; inset: -30%; z-index: -1; filter: blur(26px) saturate(1.15); }
.col-fluid i {
  position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  transform: translate3d(calc(var(--tx) * var(--kx) * 1px), calc(var(--ty) * var(--ky) * 1px), 0);
  will-change: transform;
}
.col-fluid .b1 { left: 5%; top: 18%; background: color-mix(in oklab, var(--c) 78%, #000); opacity: .55; --kx: 48; --ky: 70; }
.col-fluid .b2 { right: -4%; top: 34%; width: 74%; background: var(--c); opacity: .8; --kx: -36; --ky: 54; }
.col-fluid .b3 { left: 26%; top: -6%; width: 58%; background: #fff; opacity: .85; --kx: 26; --ky: -60; }
.col-card::after { content: ''; position: absolute; inset: 0; background: var(--noise); background-size: 128px 128px; opacity: .9; mix-blend-mode: soft-light; pointer-events: none; }
.col-num, .col-name { position: absolute; left: 10%; color: rgba(20, 21, 26, .72); font-weight: 600; letter-spacing: .06em; }
.col-num { top: 9%; font-size: 13px; }
.col-name { bottom: 9%; font-size: clamp(13px, 1.3vw, 17px); text-transform: uppercase; }
.col-card.is-light .col-num, .col-card.is-light .col-name { color: rgba(20, 21, 26, .6); }
.col-card.is-dark .col-num, .col-card.is-dark .col-name { color: rgba(255, 255, 255, .9); }
.tilt-note { display: flex; justify-content: center; margin: 32px 0 0; }
@media (max-width: 760px) {
  .col-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .col-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .col-card { margin-top: 0; }
  .col-card:nth-child(2) { margin-top: 44px; }
  .col-card:nth-child(4) { margin-top: 44px; }
  .col-num { font-size: 12px; }
}

/* ---------- 기록: 연구실 책상 위의 연구 노트 ----------
   책상 전경에서 시작해 스크롤하면 책 위의 노트로 다가가고, 표지가 열리면 안의 글이 실제 게시글입니다 */
.desk { position: relative; height: 340vh; height: 340lvh; }
.desk-pin { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; perspective: 1400px; perspective-origin: 50% 40%; }
.desk-room { position: absolute; inset: 0; background: linear-gradient(180deg, #F3F4F7 0%, #E9ECF1 52%, #DADFE7 52.2%, #CFD5DE 100%); }
.desk-room::before { content: ''; position: absolute; left: 0; right: 0; top: 52%; height: 12px; background: linear-gradient(rgba(20, 21, 26, .12), transparent); }
.desk-lamp { position: absolute; left: 8%; top: -20%; width: 60vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 225, .85), rgba(255, 246, 225, 0) 62%); pointer-events: none; }
.desk-scene {
  position: absolute; inset: 0; transform-origin: var(--ox, 50%) var(--oy, 62%);
  transform: translate3d(calc(var(--zt, 0) * var(--dx, 0px)), calc(var(--zt, 0) * var(--dy, 0px)), 0) scale(calc(1 + var(--zt, 0) * (var(--zmax, 2) - 1)));
  will-change: transform; pointer-events: none;
}
.desk-scene.live { pointer-events: auto; }
.prop { position: absolute; pointer-events: none; }
.flask { left: 12%; top: 34%; width: clamp(70px, 9vw, 130px); aspect-ratio: 3 / 4; }
.flask::before { content: ''; position: absolute; inset: 0; clip-path: polygon(38% 0, 62% 0, 62% 30%, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .35) 60%, rgba(var(--a-rgb), .55) 60.5%, rgba(var(--a-rgb), .75)); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .9); }
.flask::after { content: ''; position: absolute; left: 12%; bottom: 8%; width: 12%; height: 42%; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.pencil { right: 14%; top: 66%; width: clamp(120px, 16vw, 240px); height: 10px; border-radius: 6px; background: linear-gradient(90deg, #F2C9A0 0 6%, var(--ink) 6% 9%, #F5D98B 9%); transform: rotate(-14deg); box-shadow: 0 6px 12px -6px rgba(20, 21, 26, .35); }
.stack { position: absolute; left: 50%; top: 58%; width: var(--nbw); height: calc(var(--nbw) * 1.33); transform: translate(-50%, -46%); }
.bk { position: absolute; inset: 0; border-radius: 10px; box-shadow: 0 14px 30px -14px rgba(20, 21, 26, .45), inset 0 0 0 1px rgba(255, 255, 255, .35); }
.bk1 { background: linear-gradient(180deg, #E4C7C4, #D9948E); transform: translate(6%, 10%) rotate(5deg) scale(1.08); }
.bk2 { background: linear-gradient(180deg, #CFD8EA, #B7C3DE); transform: translate(-4%, 5%) rotate(-3deg) scale(1.04); }
.bk3 { background: linear-gradient(180deg, #E9E9EB, #C8C9CC); transform: translate(2%, 1%) rotate(1.5deg) scale(1.01); }
.notebook { position: absolute; left: 50%; top: 58%; width: var(--nbw); height: calc(var(--nbw) * 1.33); transform: translate(-50%, -50%) rotate(calc(-3deg * (1 - var(--zt, 0)))); transform-style: preserve-3d; }
.nb-page {
  position: absolute; inset: 0; overflow: hidden; border-radius: 4px 14px 14px 4px; color: var(--ink);
  background: #FBFAF6 repeating-linear-gradient(180deg, transparent 0 27px, rgba(20, 21, 26, .07) 27px 28px);
  box-shadow: 0 30px 60px -30px rgba(20, 21, 26, .6), inset 0 0 0 1px rgba(20, 21, 26, .06);
}
.nb-page::before { content: ''; position: absolute; left: 9%; top: 0; bottom: 0; width: 1px; background: rgba(217, 148, 142, .7); }
.nb-inner { position: absolute; inset: 0; padding: 7% 8% 6% 12%; display: flex; flex-direction: column; gap: 2%; font-size: calc(var(--nbw) * .034); line-height: 1.5; }
.nb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 3%; color: var(--ink); font-weight: 800; font-size: 1.45em; letter-spacing: -.03em; }
.nb-head small { color: var(--steel); font-size: .55em; font-weight: 600; letter-spacing: .06em; }
.nb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nb-list li { opacity: clamp(0, var(--ls, 0) * 5 - var(--i) * .9, 1); transform: translate3d(0, calc((1 - clamp(0, var(--ls, 0) * 5 - var(--i) * .9, 1)) * 6px), 0); }
.nb-list a { display: block; padding: 3% 0 4%; border-bottom: 1px dashed rgba(20, 21, 26, .12); }
.nb-list time { display: block; color: #C46F68; font-size: .74em; font-weight: 700; letter-spacing: .04em; }
.nb-list b { display: block; color: var(--ink); font-size: 1.08em; font-weight: 800; letter-spacing: -.025em; line-height: 1.3; }
.nb-list span { display: block; color: var(--steel); font-size: .84em; margin-top: .2em; }
.nb-list a:hover b { color: var(--a); }
.nb-more { margin-top: auto; align-self: flex-end; color: var(--ink); font-size: .84em; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(var(--a-rgb), .6); text-underline-offset: 3px; }
.nb-page.has-photo .nb-head, .nb-page.has-photo .nb-list li:first-child a, .nb-page.has-photo .nb-list li:nth-child(2) a { padding-right: 40%; }
.nb-photo { position: absolute; right: 5%; top: 4%; width: 24%; aspect-ratio: 4 / 5; padding: 5% 5% 14%; background: #fff; box-shadow: 0 10px 24px -12px rgba(20, 21, 26, .5); transform: rotate(6deg); }
.nb-photo img { width: 100%; height: 100%; object-fit: cover; }
.nb-photo::before { content: ''; position: absolute; left: 30%; top: -6%; width: 40%; height: 10%; background: rgba(255, 244, 200, .8); transform: rotate(-4deg); }
.nb-cover {
  position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d;
  transform: rotateY(calc(var(--open, 0) * -168deg));
}
.nb-face { position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.nb-front { background: linear-gradient(160deg, #262B3B, #15171F); box-shadow: 0 30px 60px -28px rgba(20, 21, 26, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); display: grid; place-items: center; }
.nb-front svg { width: 46%; aspect-ratio: 1925 / 1594; height: auto; fill: rgba(255, 255, 255, .16); }
.nb-band { position: absolute; right: 9%; top: -2%; bottom: -2%; width: 5%; background: rgba(217, 148, 142, .95); border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.nb-label { position: absolute; left: 12%; bottom: 10%; width: 62%; padding: 5% 6%; background: #F6F3EA; border-radius: 3px; color: var(--ink); font-size: calc(var(--nbw) * .034); font-weight: 700; letter-spacing: .06em; line-height: 1.3; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.nb-label small { display: block; color: var(--steel); font-size: .78em; font-weight: 600; margin-top: .3em; }
.nb-back { background: #EFEDE6; transform: rotateY(180deg); box-shadow: inset 0 0 0 1px rgba(20, 21, 26, .06); border-radius: 14px 4px 4px 14px; }
.nb-back p { position: absolute; left: 12%; right: 12%; top: 12%; margin: 0; color: var(--steel); font-size: calc(var(--nbw) * .032); line-height: 1.7; }
.nb-back svg { position: absolute; left: 12%; bottom: 10%; width: 34%; aspect-ratio: 2409 / 1262; height: auto; fill: var(--ink); opacity: .7; }
.desk-cap {
  position: absolute; left: 0; right: 0; top: 16%; margin: 0; text-align: center; color: var(--ink);
  font-size: clamp(22px, 3vw, 40px); font-weight: 800; letter-spacing: -.035em; text-shadow: 0 1px 20px rgba(243, 244, 247, .9);
  opacity: var(--cap, 0); transform: translate3d(0, calc((1 - var(--cap, 0)) * 16px), 0);
}
.desk-cap small { display: block; margin-top: 8px; color: var(--steel); font-size: 15px; font-weight: 600; letter-spacing: 0; }
@media (max-width: 760px) {
  .nb-list span { display: none; }
  .desk-room { background: linear-gradient(180deg, #F3F4F7 0%, #E9ECF1 46%, #DADFE7 46.2%, #CFD5DE 100%); }
  .desk-room::before { top: 46%; }
  .flask { left: 6%; top: 30%; }
  .pencil { right: 4%; top: 72%; }
  .nb-back { display: none; }
}

/* ---------- 사진: 책상 위에 흩어진 인화 사진 ---------- */
.prints { position: relative; height: 240vh; height: 240lvh; }
.prints-pin { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.prints-head { position: absolute; left: var(--padL); right: var(--padR); top: calc(var(--top) + 64px); z-index: 2; pointer-events: none; }
.prints-head .display { font-size: clamp(44px, 7vw, 104px); }
.prints-head .sec-lead { margin-top: 10px; }
.prints-head .btn-pill { pointer-events: auto; margin-top: 18px; }
.prints-head > * { opacity: calc(1 - var(--hd, 0)); transform: translate3d(0, calc(var(--hd, 0) * -14px), 0); }
.prints-more { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--toolbar) + 28px); z-index: 6; display: flex; justify-content: center; margin: 0; opacity: var(--spread, 0); pointer-events: none; }
.prints-more a { pointer-events: auto; }
.prints-field { position: absolute; inset: 0; }
.print {
  position: absolute; left: 50%; top: 54%; width: var(--pw, clamp(150px, 19vw, 260px)); padding: 4% 4% 12%;
  background: #fff; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(20, 21, 26, .6), 0 2px 6px rgba(20, 21, 26, .08);
  --s: var(--spread, 0);
  transform: translate3d(calc(-50% + var(--s) * var(--dx)), calc(-50% + var(--s) * var(--dy)), 0) rotate(calc(var(--r0) + var(--s) * (var(--rot) - var(--r0)))) scale(calc(.82 + var(--s) * .18));
  transition: box-shadow .4s, filter .4s; cursor: zoom-in;
}
.print:hover { z-index: 5; box-shadow: 0 40px 70px -30px rgba(20, 21, 26, .7); filter: brightness(1.03); }
.print img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.print-cap { position: absolute; left: 6%; right: 6%; bottom: 3.5%; color: var(--steel); font-size: clamp(11px, 1vw, 13px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
@media (max-width: 760px) {
  .prints-head { top: calc(var(--top) + 60px); }
  .print { --pw: 42vw; padding: 4% 4% 13%; top: 60%; }
}

/* ---------- 사진 페이지: 콜라주 ---------- */
.collage { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); align-items: start; }
.collage .m-item { margin: 0; grid-column: span 2; transform: rotate(var(--rot, 0deg)) translateY(var(--dy, 0)); }
.collage .m-item:nth-child(5n+1) { grid-column: span 3; }
.collage .m-item:nth-child(5n+2) { grid-column: span 3; --dy: 48px; --rot: .8deg; }
.collage .m-item:nth-child(5n+3) { grid-column: span 2; --dy: 12px; --rot: -.6deg; }
.collage .m-item:nth-child(5n+4) { grid-column: span 4; --rot: .5deg; }
.collage .m-item:nth-child(5n+5) { grid-column: span 2; --dy: 36px; --rot: -1deg; }
.collage .m-item button { border-radius: 12px; }
.collage figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .82); color: var(--ink); font-size: 12.5px; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(20, 21, 26, .4); }
.collage .m-item { position: relative; }
@media (max-width: 760px) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .collage .m-item, .collage .m-item:nth-child(n) { grid-column: span 1; }
  .collage .m-item:nth-child(3n+1) { grid-column: span 2; }
  .collage .m-item:nth-child(2n) { --dy: 24px; }
}

/* ---------- 하위 페이지 머리 ---------- */
.page-head { position: relative; z-index: 2; padding-top: calc(var(--top) + var(--nav-h) + clamp(48px, 9vw, 110px)); padding-bottom: clamp(32px, 5vw, 60px); }
.page-title { margin: 0; color: var(--ink); font-weight: 800; font-size: clamp(56px, 11.5vw, 172px); line-height: .95; letter-spacing: -.055em; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-sub { max-width: 42ch; margin: 22px 0 0; color: var(--text); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap;
  background: rgba(255, 255, 255, .56); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 4px 14px -8px rgba(30, 30, 70, .25);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.chip:hover { background: rgba(255, 255, 255, .88); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(var(--a-rgb), .9); }
.chip-dot { display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
@media (max-width: 640px) { .chip { min-height: 44px; } }

/* 카드, 격자 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(16px, 2.4vw, 32px); }
@media (min-width: 1100px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { transition: opacity .35s, transform .45s var(--ease); }
.card.out { opacity: 0; transform: scale(.96); }
.card > a { display: block; border-radius: var(--r-lg); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: rgba(255, 255, 255, .5); box-shadow: 0 28px 60px -32px rgba(30, 30, 70, .55); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card > a:hover .card-media img { transform: scale(1.045); }
.card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 6px 0; }
.card-title { margin: 0; color: var(--ink); font-size: clamp(19px, 1.8vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.card-meta { display: flex; gap: 12px; margin: 0; color: var(--steel); font-size: 14px; white-space: nowrap; }

.masonry { columns: 3 280px; column-gap: clamp(12px, 1.6vw, 22px); }
.m-item { break-inside: avoid; margin: 0 0 clamp(14px, 2vw, 26px); }
.m-item button { display: block; width: 100%; overflow: hidden; border-radius: var(--r-md); box-shadow: 0 22px 50px -28px rgba(30, 30, 70, .5); }
.m-item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.m-item button:hover img { transform: scale(1.035); }
.m-item figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 6px 0; color: var(--steel); font-size: 13px; }
.m-item figcaption span:first-child { color: var(--ink); font-weight: 500; }

/* ---------- 글 머리, 본문 ---------- */
.post-head { position: relative; z-index: 2; max-width: calc(980px + var(--padL) + var(--padR)); margin: 0 auto; padding: calc(var(--top) + var(--nav-h) + clamp(40px, 7vw, 90px)) var(--padR) clamp(28px, 4vw, 52px) var(--padL); }
.back {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  color: var(--ink); font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95);
}
.back:hover { background: rgba(255, 255, 255, .9); }
.post-title { margin: 26px 0 28px; color: var(--ink); font-size: clamp(36px, 6vw, 80px); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.meta > div { display: flex; align-items: baseline; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
.meta dt { color: var(--steel); font-size: 13px; }
.meta dd { margin: 0; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.lede { max-width: 38ch; margin: 0; color: var(--ink); font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -.02em; line-height: 1.5; }

.cover { position: relative; z-index: 2; max-width: calc(var(--wrap) + 0px); margin: 0 auto; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-xl); box-shadow: 0 40px 80px -40px rgba(30, 30, 70, .6); }
.cover-wrap { padding: 0 var(--padR) 0 var(--padL); }
.cover img, .cover button { display: block; width: 100%; height: 100%; }
.cover img { object-fit: cover; }
@media (max-width: 640px) { .cover { aspect-ratio: 4 / 5; border-radius: var(--r-lg); } }

.prose-wrap { position: relative; z-index: 2; padding: 0 var(--padR) 0 var(--padL); margin-top: clamp(40px, 6vw, 80px); }
.prose { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4.4vw, 56px); border-radius: var(--r-xl); color: var(--text); font-size: 17.5px; line-height: 1.9; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; margin: 2em 0 .6em; }
.prose h2 { font-size: 27px; }
.prose h3 { font-size: 22px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(var(--a-rgb), .6); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--a); }
.prose img { margin: 2em 0; border-radius: var(--r-md); }
.prose figure { margin: 2em 0; }
.prose blockquote { margin: 1.8em 0; padding: 14px 20px; border-radius: 16px; background: rgba(var(--a-rgb), .08); box-shadow: inset 3px 0 0 var(--a); color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-size: .9em; padding: .12em .4em; border-radius: 6px; background: rgba(20, 21, 26, .06); }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: rgba(20, 21, 26, .06); line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2.4em 0; }

/* 글자 크기와 색: 글쓰기 화면의 서식, 관리자 화면의 {크게 빨강|글자} */
.prose .s-sm { font-size: .84em; }
.prose .s-lg { font-size: 1.32em; line-height: 1.5; }
.prose .s-xl { font-size: 1.72em; line-height: 1.35; letter-spacing: -.02em; }
.prose .c-base { color: var(--text); }
.prose .c-red { color: #E0262C; }
.prose .c-yellow { color: #D69A00; }
.prose .c-blue { color: #1F5EFF; }
.prose .c-black { color: #000; }
/* 밝은 유리 위에서도 흰 글자가 보이도록 짙은 바탕을 깝니다 */
.prose .c-white { color: #fff; background: #1B1C22; padding: .02em .32em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose .ing-ref { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(var(--a-rgb), .55); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose b.ing-ref { text-decoration-style: dotted; }
.prose a.ing-ref:hover { color: var(--a); }

.pics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); max-width: calc(var(--wrap) + var(--padL) + var(--padR)); margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--padR) 0 var(--padL); }
.pics .pic:nth-child(3n+1) { grid-column: 1 / -1; }
.pic { margin: 0; }
.pic button { display: block; width: 100%; overflow: hidden; border-radius: var(--r-lg); box-shadow: 0 26px 60px -32px rgba(30, 30, 70, .55); }
.pic img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.pic button:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .pics { grid-template-columns: minmax(0, 1fr); } }

.next { position: relative; z-index: 2; display: block; max-width: 760px; margin: clamp(80px, 11vw, 150px) auto 0; padding: clamp(26px, 4vw, 44px); border-radius: var(--r-xl); text-align: center; transition: transform .5s var(--spring); }
.next-wrap { padding: 0 var(--padR) 0 var(--padL); }
.next:hover { transform: translateY(-4px); }
.next small { display: block; margin-bottom: 8px; color: var(--steel); font-size: 14px; }
.next-title { display: block; color: var(--ink); font-size: clamp(28px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }

/* 소개 페이지 */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-side { position: sticky; top: calc(var(--top) + var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.about-photo { margin: 0; padding: clamp(20px, 3vw, 34px); border-radius: var(--r-xl); display: grid; place-items: center; }
.about-photo img { width: min(100%, 320px); height: auto; filter: drop-shadow(0 18px 30px rgba(40, 30, 90, .25)); }
.about-facts { margin: 0; padding: 20px 24px; border-radius: var(--r-lg); display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.about-facts dt { color: var(--steel); font-size: 14px; }
.about-facts dd { margin: 0; color: var(--ink); font-weight: 600; font-size: 15px; }
.about .prose { margin: 0; max-width: none; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } .about-side { position: relative; top: 0; } }

.empty { max-width: 48ch; color: var(--steel); }
.work-filters { margin-bottom: clamp(28px, 4vw, 48px); }
.mat-sec { padding-top: clamp(48px, 7vw, 90px); }
.mat-sec .sec-lead { margin: 0 0 18px; }
.teaser { margin-top: clamp(56px, 8vw, 110px); }
.empty a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(var(--a-rgb), .6); text-underline-offset: 3px; }

/* ---------- 목록 (기록, 조향 노트) ---------- */
.jlist, .flist { list-style: none; margin: 0; padding: 8px clamp(14px, 2.4vw, 28px); border-radius: var(--r-xl); }
.jlist li + li, .flist li + li { border-top: 1px solid var(--line); }
.jrow {
  display: grid; grid-template-columns: 11ch minmax(0, 1fr); column-gap: clamp(16px, 3vw, 40px); row-gap: 4px; align-items: baseline;
  padding: clamp(20px, 2.6vw, 30px) 6px;
}
.jrow time { color: var(--steel); font-size: 14px; font-variant-numeric: tabular-nums; }
.jtitle { color: var(--ink); font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.35; transition: color .3s, transform .6s var(--ease); }
.jex { grid-column: 2; color: var(--steel); font-size: 15px; }
.jrow:hover .jtitle { color: var(--a); transform: translateX(6px); }
@media (max-width: 640px) { .jrow { grid-template-columns: minmax(0, 1fr); } .jex { grid-column: 1; } }

.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 36%); align-items: center; gap: 16px clamp(20px, 4vw, 56px); padding: clamp(22px, 3vw, 34px) 6px; }
.frow-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.frow-title { color: var(--ink); font-size: clamp(22px, 2.8vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; transition: color .3s, transform .6s var(--ease); }
.frow:hover .frow-title { color: var(--a); transform: translateX(6px); }
.frow-concept { max-width: 52ch; color: var(--text); font-size: 15px; line-height: 1.6; }
.frow-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--steel); font-size: 13px; font-variant-numeric: tabular-nums; }
.frow-blotter { display: flex; flex-direction: column; gap: 10px; }
.frow-fams { color: var(--steel); font-size: 13px; }
@media (max-width: 760px) { .frow { grid-template-columns: minmax(0, 1fr); } }

.peek { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(200px, 19vw, 280px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); pointer-events: none; opacity: 0; scale: .85; box-shadow: 0 30px 60px -24px rgba(30, 30, 70, .55); transition: opacity .35s, scale .6s var(--ease); }
.peek.on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 배합 (perfume.js) ---------- */
.fx-wrap { position: relative; z-index: 2; padding: 0 var(--padR) 0 var(--padL); }
.fx {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(22px, 4vw, 52px); border-radius: var(--r-xl);
  background-image: var(--noise), linear-gradient(150deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5));
  background-size: 128px 128px, 100% 100%;
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 1px 0 #fff, 0 30px 70px -36px rgba(40, 30, 90, .4);
}
.fx-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 18px; }
.fx-h { margin: 0; color: var(--ink); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.02em; }
.fx-basis { margin: 0; color: var(--steel); font-size: 13px; }
.fx-strip { display: flex; gap: 2px; height: 14px; overflow: hidden; }
.fx-strip span { flex-basis: 0; min-width: 3px; }
.fx-strip-lg { height: 48px; gap: 3px; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 50%, calc(100% - 34px) 100%, 0 100%); border-radius: 8px 0 0 8px; }
.fx-strip-blotter { height: 34px; border-radius: 6px 0 0 6px; transform-origin: 0 50%; transition: transform .7s var(--ease); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); }
.frow:hover .fx-strip-blotter { transform: scaleX(1.04); }
.fx-legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink); }
.fx-legend li { display: flex; align-items: center; gap: 8px; }
.fx-legend i, .fx-fam i { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; }
.fx-legend span { color: var(--steel); font-variant-numeric: tabular-nums; }
.fx-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 60px); margin-top: clamp(28px, 4vw, 52px); }
@media (max-width: 900px) { .fx-grid { grid-template-columns: minmax(0, 1fr); } }
.fx-sub { margin: 0 0 14px; color: var(--steel); font-size: 14px; font-weight: 600; }
.fx-tiers { display: flex; flex-direction: column; gap: 14px; }
.fx-tier { width: var(--w); margin: 0 auto; }
.fx-tier-box { position: relative; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 16px; overflow: hidden; border-radius: 16px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 6px 16px -10px rgba(30, 30, 70, .3); }
.fx-tier-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(var(--a-rgb), .5), rgba(var(--a2-rgb), .38)); }
.fx-tier-label, .fx-tier-pct { position: relative; color: var(--ink); font-size: 15px; font-weight: 600; }
.fx-tier-pct { font-variant-numeric: tabular-nums; }
.fx-tier-names { margin: 8px 0 0; color: var(--steel); font-size: 13px; line-height: 1.6; text-align: center; }
.fx-scroll { overflow-x: auto; }
.fx-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; color: var(--ink); }
.fx-table th, .fx-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.fx-table th:first-child, .fx-table td:first-child { padding-left: 0; }
.fx-table th:last-child, .fx-table td:last-child { padding-right: 0; }
.fx-table thead th { color: var(--steel); font-size: 12.5px; font-weight: 600; }
.fx-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-name b { display: block; font-weight: 600; transition: color .3s; }
.fx-name small { display: block; color: var(--steel); font-size: 12px; line-height: 1.4; }
.fx-name a:hover b { color: var(--a); }
.fx-fam { white-space: nowrap; font-size: 14px; }
.fx-fam i { margin-right: 8px; }
.fx-note { color: var(--steel); font-size: 14px; white-space: nowrap; }
.fx-pct { font-weight: 700; }
.fx-table tfoot th, .fx-table tfoot td { border-bottom: 0; color: var(--steel); font-size: 14px; font-weight: 600; }
.fx-private { margin: 20px 0 0; color: var(--steel); font-size: 14px; }
@media (max-width: 640px) {
  .fx { padding: 20px 16px; border-radius: var(--r-lg); }
  .fx-table { min-width: 0; font-size: 14px; }
  .fx-table .fx-note, .fx-table .fx-fam, .fx-table thead th:nth-child(2), .fx-table thead th:nth-child(3) { display: none; }
  .fx-table th, .fx-table td { padding: 10px 6px; }
}

/* ---------- 향료 목록 ---------- */
.mfilter { display: flex; flex-direction: column; gap: 12px; padding: clamp(14px, 2vw, 22px); border-radius: var(--r-lg); margin-bottom: clamp(28px, 4vw, 48px); }
@media (min-width: 901px) { .mfilter { position: sticky; top: calc(var(--top) + var(--nav-h) + 12px); z-index: 5; } }
.msearch input {
  width: 100%; min-height: 48px; padding: 0 20px; font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(255, 255, 255, .75); border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(20, 21, 26, .08);
  -webkit-appearance: none; appearance: none;
}
.msearch input::placeholder { color: var(--steel); }
.msearch input:focus { outline: 2.5px solid var(--a); outline-offset: 1px; }
.mf-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px; }
.mf-row::-webkit-scrollbar { display: none; }
@media (min-width: 901px) { .mf-row { flex-wrap: wrap; } }
.mf-split { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mcount { margin: 0; color: var(--steel); font-size: 14px; }
.mgroups { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.mgroup { padding: clamp(16px, 2.6vw, 28px); border-radius: var(--r-xl); }
.mgroup-title { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; color: var(--ink); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.mgroup-title i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.mgroup-title span { color: var(--steel); font-size: 15px; font-weight: 500; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mitem + .mitem { border-top: 1px solid var(--line); }
.mitem a {
  display: grid; grid-template-columns: 6ch minmax(0, 15rem) minmax(0, 1fr) 8ch; grid-template-areas: "code name desc note";
  gap: 4px 22px; align-items: baseline; padding: 14px 8px; border-radius: 14px; transition: background-color .25s;
}
.mitem a:hover { background: rgba(255, 255, 255, .6); }
.mitem a:hover b { color: var(--a); }
.mcode { grid-area: code; color: var(--steel); font-size: 13px; font-variant-numeric: tabular-nums; }
.mname { grid-area: name; }
.mname b { display: block; color: var(--ink); font-size: 16.5px; font-weight: 600; line-height: 1.4; transition: color .25s; }
.mname small { display: block; color: var(--steel); font-size: 13px; line-height: 1.4; }
.mdesc { grid-area: desc; color: var(--text); font-size: 14.5px; line-height: 1.6; }
.mnote { grid-area: note; color: var(--steel); font-size: 13px; text-align: right; white-space: nowrap; }
@media (max-width: 860px) {
  .mitem a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name code" "desc note"; }
  .mcode { text-align: right; }
}
.mat-en { margin: -12px 0 24px; color: var(--steel); font-size: clamp(16px, 1.6vw, 20px); }
.mat-code { display: inline-block; margin-left: 12px; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--ink); font-size: 13px; font-weight: 600; vertical-align: 2px; }
.meta dd .chip-dot { vertical-align: 0; }
.mat-tip { max-width: 60ch; margin: 24px 0 0; padding: 16px 20px; border-radius: 18px; background: rgba(var(--a-rgb), .1); box-shadow: inset 3px 0 0 var(--a); color: var(--ink); font-size: 15px; line-height: 1.7; }
.mat-tip b { display: block; margin-bottom: 2px; font-size: 13px; }
.mchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 사진 크게 보기 ---------- */
.lb { position: fixed; inset: 0; z-index: 940; display: grid; place-items: center; touch-action: pan-y; }
.lb-bg { position: absolute; inset: 0; background: rgba(12, 12, 18, .82); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); opacity: 0; transition: opacity .5s; }
.lb.open .lb-bg { opacity: 1; }
.lb-stage { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none; }
.lb-img { max-width: 92vw; max-height: 76vh; width: auto; height: auto; border-radius: 18px; will-change: transform; }
.lb-cap { display: flex; gap: 20px; padding: 0 var(--pad); color: rgba(255, 255, 255, .75); font-size: 14px; text-align: center; opacity: 0; transition: opacity .4s .35s; }
.lb.open .lb-cap { opacity: 1; }
.lb-btn { position: absolute; z-index: 2; min-width: 44px; min-height: 44px; padding: 0 18px; border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .4s .2s; }
.lb.open .lb-btn { opacity: 1; }
.lb-close { top: calc(env(safe-area-inset-top, 0px) + 16px); right: var(--padR); }
.lb-prev { left: var(--padL); top: 50%; translate: 0 -50%; }
.lb-next { right: var(--padR); top: 50%; translate: 0 -50%; }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }
@media (max-width: 760px) { .lb-prev, .lb-next { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--toolbar) + 20px); translate: none; } }

/* ---------- 바닥 ---------- */
.site-foot { position: relative; z-index: 2; padding: clamp(96px, 13vw, 170px) var(--padR) calc(env(safe-area-inset-bottom, 0px) + 24px) var(--padL); }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(26px, 4.6vw, 60px); border-radius: var(--r-xl); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; }
.foot-nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding-bottom: clamp(24px, 3.4vw, 40px); border-bottom: 1px solid var(--line); }
.foot-nav a { display: flex; flex-direction: column; gap: 2px; min-height: 64px; justify-content: center; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); transition: background-color .3s, transform .4s var(--spring), box-shadow .3s; }
.foot-nav a:hover { background: rgba(255, 255, 255, .9); transform: translateY(-2px); box-shadow: inset 0 0 0 1px #fff, 0 0 0 4px rgba(var(--a-rgb), .14); }
.foot-nav b { color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.foot-nav span { color: var(--steel); font-size: 12.5px; }
.foot-nav a[aria-current="page"] { background: rgba(var(--a-rgb), .14); }
.foot-tools { display: flex; gap: 14px; }
.foot-tools a { display: inline-flex; align-items: center; min-height: 44px; color: var(--steel); text-decoration: underline; text-decoration-color: rgba(20, 21, 26, .2); text-underline-offset: 3px; }
.foot-tools a:hover { color: var(--ink); }
@media (max-width: 900px) { .foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-logo { width: min(100%, 300px); aspect-ratio: 1925 / 1594; height: auto; fill: url(#g-ink); }
.foot-lead { margin: 22px 0 6px; color: var(--steel); font-size: 15px; }
.foot-mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere; transition: color .3s; }
.foot-mail:hover { color: var(--a); }
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.foot-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.foot-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 24px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--steel); font-size: 13px; }
@media (max-width: 760px) { .foot-inner { grid-template-columns: minmax(0, 1fr); } .foot-side { align-items: flex-start; } .foot-social { justify-content: flex-start; } .foot-logo { width: 200px; } }

/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], .shot, [data-split] .ch { opacity: 1; filter: none; transform: none; }
  .vial-liquid { transform: none; }
  .hero, .statement, .specimen, .origin, .profile { height: auto; }
  .pf-pin { position: relative; height: auto; min-height: 100svh; }
  .pf-photo, .pf-name, .pf-kicker, .pf-count { opacity: 1; transform: none; filter: none; }
  .pf-stage { display: flex; }
  .pf-statement { opacity: 1; filter: none; transform: none; }
  .pf-row dt, .pf-row dd { opacity: 1; filter: none; transform: none; }
  .origin-pin { position: relative; height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding: 120px 0 80px; }
  .origin-intro, .origin-name, .origin-palette { position: relative; inset: auto; left: auto; top: auto; bottom: auto; width: auto; transform: none; opacity: 1; filter: none; padding: 0 var(--padR) 0 var(--padL); }
  .swatches li { opacity: 1; transform: none; }
  .desk, .prints { height: auto; }
  .desk-pin, .prints-pin { position: relative; height: auto; min-height: 100svh; }
  .desk-scene { --zt: 1; }
  .nb-cover { --open: 1; }
  .nb-list li { opacity: 1; transform: none; }
  .desk-cap { display: none; }
  .prints-pin { height: 140vh; }
  .print { --s: 1; }
  .stage { position: absolute; height: 100vh; height: 100svh; }
  .hero-title { opacity: 1; filter: none; transform: none; pointer-events: auto; top: auto; bottom: 10%; }
  .hero-mark { display: none; }
  .scrub .w { filter: none; }
  .hero-pin, .statement-pin, .spec-pin { position: relative; }
  .hero-pin { height: 100vh; height: 100svh; }
  .statement-pin { height: auto; padding-top: 120px; padding-bottom: 120px; }
  .scrub .w { opacity: 1; }
  .spec-card { opacity: 1; transform: none; }
}
