/* Pungryu Jeonbuk — "the folding fan". Colours are the app's PungryuColors: walnut #120E0A, bar
   #1E1812, hanji cream #F4ECDF, muted #B3A592, outline #3E3428, red ochre (주토) #D9774F with
   #1A0F08 on it, icon cream #F3E8D6 and fan wood #6B4A2E. */
.page-pungryu {
  --pj-bg: #120e0a; --pj-panel: #1e1812; --pj-line: #3e3428; --pj-text: #f4ecdf; --pj-muted: #b3a592;
  --pj-ochre: #d9774f; --pj-on: #1a0f08; --pj-cream: #f3e8d6; --pj-wood: #6b4a2e; --pj-seal: #b8432e;
  --pj-grad: linear-gradient(90deg, #e9c79b, #d9774f 55%, #b8432e);
  --pj-serif: 'Nanum Myeongjo', 'AppleMyungjo', 'Batang', 'Noto Serif KR', Georgia, serif;
  --pj-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  /* Hanji fibres: two faint scatters of short strokes. */
  --pj-fibre: radial-gradient(ellipse 6px 1px at 30% 40%, #ffffff0d, transparent 70%) 0 0 / 46px 38px, radial-gradient(ellipse 1px 5px at 70% 60%, #ffffff0a, transparent 70%) 0 0 / 34px 52px;
}
@property --open { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --pj-r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
html:has(.page-pungryu) { scroll-padding-top: 156px; }

/* Shared header: walnut with a thin ochre line. */
.page-pungryu .site-header { background: var(--pj-bg); color: var(--pj-text); box-shadow: none; }
.page-pungryu .site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--pj-grad); opacity: .45; }
.page-pungryu .language-link { border-color: #45392c; }
.page-pungryu .language-link:hover, .page-pungryu .language-link:focus-visible,
.page-pungryu .menu-toggle:hover, .page-pungryu .menu-toggle[aria-expanded=true] { background: #2a2118; border-color: var(--pj-ochre); }
.page-pungryu .main-nav a:hover, .page-pungryu .main-nav a:focus-visible { color: var(--pj-ochre); }
.page-pungryu .main-nav a::after { background: var(--pj-grad); }
.page-pungryu .menu-toggle span { background: var(--pj-text); }
.page-pungryu .site-header :focus-visible, .pj-page :focus-visible { outline-color: var(--pj-ochre); }
.page-pungryu .pj-paper :focus-visible { outline-color: var(--accent-ink); }
@media (max-width: 520px) { .page-pungryu .main-nav { background: #120e0afa; border-bottom-color: #2a2118; } }

.pj-page { background: var(--pj-fibre), var(--pj-bg); color: var(--pj-text); }
.pj-page ::selection { background: var(--pj-ochre); color: var(--pj-on); }
.pj-eyebrow { margin-bottom: 22px; font-family: var(--pj-mono); font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--pj-ochre); }
html:lang(ko) .pj-eyebrow { font-family: var(--font-ko); font-size: var(--text-label); letter-spacing: .06em; }
.pj-head h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.18; font-weight: 700; }
.pj-head > p:not(.pj-eyebrow) { max-width: 640px; margin-top: 24px; font-size: var(--text-lead); line-height: 1.8; color: #d4c7b4; }
.pj-note { margin-top: 26px; font-size: 13px; line-height: 1.6; color: #9b8d79; }

/* Section index with a brush stroke that lengthens as you read. */
.pj-nav { position: sticky; top: var(--nav-height, 86px); z-index: 40; background: rgba(18, 14, 10, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #ffffff10; }
.pj-nav .wrap { display: flex; align-items: center; gap: 22px; min-height: 58px; }
.pj-nav-name { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: var(--text-ui); font-weight: 650; }
.pj-nav-name img { width: 28px; height: 28px; }
.pj-nav-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.pj-nav-links::-webkit-scrollbar { display: none; }
.pj-nav-links a { padding: 8px 14px; border-radius: 4px; font-size: var(--text-small); color: var(--pj-muted); white-space: nowrap; transition: color .2s, background .2s; }
.pj-nav-links a:hover { color: var(--pj-text); background: #ffffff10; }
.pj-nav-links a[aria-current=true] { color: var(--pj-on); background: var(--pj-ochre); font-weight: 650; }
.pj-brush { position: relative; flex-shrink: 0; width: 44px; height: 10px; }
.pj-brush i { --ink: 0; position: absolute; left: 0; top: 2px; width: calc(8% + var(--ink) * 92%); height: 6px; border-radius: 6px 2px 4px 1px; background: linear-gradient(90deg, var(--pj-ochre), #b8432e); transition: width .4s var(--ease); }
.pj-brush::before { content: ''; position: absolute; inset: 4px 0; border-top: 1px dashed #ffffff26; }

/* Hero: a fan whose every fold is a different filter on the app's default photo. */
.pj-hero { position: relative; overflow: hidden; isolation: isolate; padding: 46px 0 70px; background: radial-gradient(80% 70% at 80% 30%, #3a2716 0%, transparent 62%), radial-gradient(60% 50% at 10% 100%, #2b1d12 0%, transparent 60%); }
.pj-hero-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; min-height: calc(100svh - var(--nav-height, 86px) - 58px - 120px); }
.pj-back { color: var(--pj-muted); margin-bottom: 30px; }
.pj-back:hover { color: var(--pj-text); }
.pj-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: var(--text-label); color: var(--pj-muted); }
.pj-kicker strong { color: var(--pj-ochre); font-weight: 700; }
.pj-kicker span::before { content: ''; display: inline-block; width: 22px; height: 1px; margin-right: 14px; vertical-align: middle; background: var(--pj-grad); }
.pj-hero h1 { margin: 24px 0; font-size: clamp(46px, 5.6vw, 82px); font-weight: 720; line-height: 1.14; }
html:lang(en) .pj-hero h1 { font-size: clamp(40px, 4.8vw, 68px); }
.pj-line { display: block; padding-bottom: .04em; }
.pj-line:last-child { color: var(--pj-cream); background: linear-gradient(90deg, #f3e8d6, #e9c79b 40%, #d9774f 70%, #f3e8d6) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.pj-lead { max-width: 520px; font-size: var(--text-lead); line-height: 1.75; color: #d4c7b4; }
.pj-platforms { --ui-icon-size: 24px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pj-platforms > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 13px 4px 6px; border: 1px solid var(--pj-line); border-radius: 20px; font-size: var(--text-small); color: #d4c7b4; }
.pj-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.pj-button { --ui-icon-size: 30px; display: inline-flex; align-items: center; gap: 16px; min-height: 54px; padding: 12px 16px 12px 26px; border-radius: 6px; background: var(--pj-ochre); color: var(--pj-on); font-size: var(--text-ui); font-weight: 700; box-shadow: inset 0 -3px 0 #0000002e; transition: transform .3s var(--ease), box-shadow .3s; }
.pj-button:hover { transform: translateY(-3px); box-shadow: inset 0 -3px 0 #0000002e, 0 16px 34px -12px #d9774f99; }
.pj-store { --ui-icon-size: 26px; display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px 10px 22px; border: 1px solid var(--pj-line); border-radius: 6px; font-weight: 600; }
.pj-soon { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-small); color: var(--pj-muted); }
.pj-soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--pj-ochre); box-shadow: 0 0 0 4px #d9774f22; }
.pj-fan { margin: 0; }
.pj-fan-art { position: relative; aspect-ratio: 2 / 1; margin-bottom: 86px; }
.pj-fan-leaf { position: absolute; inset: 0; z-index: 1; filter: drop-shadow(0 26px 30px #0009); }
/* Each fold turns about the pivot at the bottom centre; closed, all of them point straight up. */
.pj-fold { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; transform: rotate(calc((1 - var(--open)) * var(--a) * -1)); transition: transform .5s var(--ease), filter .4s ease; -webkit-tap-highlight-color: transparent; }
.pj-fold img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
/* The crease: each fold a little darker on one side, lighter on the other, like folded paper. */
.pj-fold::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: conic-gradient(from calc(var(--a) - 7.4deg) at 50% 100%, #0000004d, #ffffff12 7.4deg, #0000001a 14.8deg, transparent 0); }
.pj-fold.is-active { z-index: 2; transform: rotate(var(--a)) translateY(-2.6%) rotate(calc(var(--a) * -1)); filter: brightness(1.08) drop-shadow(0 0 12px #f3e8d64d); }
.pj-fan-leaf:has(.is-active) .pj-fold:not(.is-active) { filter: saturate(.85) brightness(.84); }
.pj-fold:focus-visible { outline: none; filter: brightness(1.12); }
.pj-ribs { position: absolute; inset: 0; pointer-events: none; }
.pj-ribs i { position: absolute; z-index: 0; left: 50%; bottom: 0; width: 5px; height: 98.4%; margin-left: -2.5px; border-radius: 3px 3px 1px 1px; transform-origin: 50% 100%; transform: rotate(calc(var(--a) * var(--open))); background: linear-gradient(to top, #8d6a44, #c49a68 38%, #7a5838 39%, #7a583800 40%); }
.pj-ribs i.is-guard { z-index: 2; width: 10px; margin-left: -5px; background: linear-gradient(90deg, #4e3420, #8d6a44 45%, #5a3d26); box-shadow: 0 4px 10px #0007; }
.pj-hub { position: absolute; left: 50%; bottom: 0; z-index: 3; width: 0; height: 0; }
.pj-hub > i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #f7e2b6, #b98b4d 55%, #6b4a2e); box-shadow: 0 2px 6px #0009; }
.pj-tassel { position: absolute; left: -10px; top: 4px; width: 20px; height: 60px; transform-origin: 50% 0; fill: none; stroke: var(--pj-seal); stroke-width: 2.2; stroke-linecap: round; }
.pj-knot { fill: #c25a3d; stroke: #8d3322; stroke-width: 1.6; }
.pj-cords { stroke: #c25a3d; stroke-width: 1.6; }
.pj-fan-caption { display: grid; justify-items: center; gap: 4px; min-height: 3.6em; margin-top: 28px; text-align: center; }
.pj-fan-caption b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--pj-cream); }
.pj-fan-caption span { font-size: var(--text-small); color: var(--pj-muted); }
.pj-fan figcaption { display: grid; gap: 6px; margin-top: 14px; font-size: 12px; line-height: 1.5; color: #9b8d79; text-align: center; }
.pj-hint { color: #d4c7b4; font-size: 13px; }

/* Overview */
.pj-intro { padding: 70px 0 120px; }
.pj-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.pj-cat { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 4px 20px; padding: 24px; border: 1px solid #ffffff0d; border-radius: 8px; background: var(--pj-panel); transition: border-color .3s, transform .4s var(--ease); }
.pj-cat:hover { border-color: #d9774f66; transform: translateY(-4px); }
.pj-cat-seals { grid-row: 1 / 3; display: grid; grid-template-columns: repeat(2, 34px); gap: 4px; }
.pj-cat-seals img { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px #00000040; }
.pj-cat b { font-size: 34px; line-height: 1; font-weight: 750; }
.pj-cat-count { position: absolute; right: 22px; top: 20px; font-family: var(--pj-mono); font-size: 13px; color: var(--pj-muted); }
.pj-cat small { font-size: var(--text-small); line-height: 1.55; color: var(--pj-muted); }
.pj-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 56px 0 0; border-top: 1px solid var(--pj-line); }
.pj-stats > div { padding: 26px 24px 0 0; }
.pj-stats > div + div { padding-left: 24px; border-left: 1px solid #ffffff10; }
.pj-stats dt { font-family: var(--pj-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--pj-muted); }
html:lang(ko) .pj-stats dt { font-family: var(--font-ko); font-size: var(--text-small); letter-spacing: .04em; }
.pj-stats dd { margin: 0; }
.pj-stats strong { display: block; margin: 12px 0 8px; font-size: clamp(46px, 5vw, 76px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--pj-cream); }
.pj-stats > div:first-child strong { color: var(--pj-ochre); }
.pj-stats span { font-size: var(--text-small); line-height: 1.6; color: var(--pj-muted); }

/* 01 — The folding screen. Without the scrub, a list of panels with their words. */
.pj-view { position: relative; padding: 110px 0 120px; }
.pj-detail { display: none; }
.pj-screen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; margin: 56px 0 0; padding: 0; list-style: none; }
.pj-panel figure { margin: 0; }
.pj-panel-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 5px solid #5a3d26; border-radius: 3px; background: #000; box-shadow: inset 0 0 0 3px var(--pj-cream), 0 24px 40px -24px #000; }
.pj-panel-photo img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; }
/* The title slip of a screen panel, written top to bottom. */
.pj-panel-title { position: absolute; right: 12px; top: 12px; padding: 10px 5px; border: 1px solid #6b4a2e55; background: #f3e8d6e8; color: #2b1d12; font-family: var(--pj-serif); font-size: 15px; font-weight: 700; line-height: 1.1; letter-spacing: .08em; writing-mode: vertical-rl; text-orientation: upright; box-shadow: 0 3px 8px #0005; }
html:lang(en) .pj-panel-title { text-orientation: mixed; font-family: var(--font-en, inherit); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.pj-panel figcaption { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 16px 4px 0; }
.pj-panel figcaption span { grid-row: 1 / 3; padding-top: 6px; font-family: var(--pj-mono); font-size: 14px; color: var(--pj-ochre); }
.pj-panel figcaption b { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.pj-panel figcaption small { font-size: var(--text-small); line-height: 1.6; color: var(--pj-muted); }
.pj-view.is-scrubbing { height: calc(var(--steps) * 58vh + 120svh); padding: 0; }
.pj-view.is-scrubbing .pj-view-stage { position: sticky; top: calc(var(--nav-height, 86px) + 58px); height: calc(100svh - var(--nav-height, 86px) - 58px); overflow: hidden; }
.pj-view.is-scrubbing .pj-view-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: minmax(0, 1fr) auto auto; gap: 18px 44px; height: 100%; padding-block: 30px 18px; }
.pj-view.is-scrubbing .pj-head { align-self: center; }
.pj-view.is-scrubbing .pj-head h2 { font-size: clamp(30px, 3.2vw, 48px); }
.pj-view.is-scrubbing .pj-head > p:not(.pj-eyebrow) { font-size: var(--text-body); }
@media (max-height: 760px) {
  .pj-view.is-scrubbing .pj-head > p:not(.pj-eyebrow) { display: none; }
  .pj-view.is-scrubbing .pj-head h2 { font-size: clamp(28px, 2.8vw, 40px); }
  .pj-view.is-scrubbing .pj-head .pj-eyebrow { margin-bottom: 12px; }
  /* The big photo is small here: the button stays, the hold hint goes. */
  .pj-detail-tag { display: none; }
}
.pj-view.is-scrubbing .pj-detail { display: grid; grid-template-columns: minmax(0, 1fr); align-self: center; margin: 0; }
.pj-detail-photo { position: relative; justify-self: end; width: min(100%, calc((100svh - var(--nav-height, 86px) - 58px - 390px) * 1.5)); aspect-ratio: 3 / 2; overflow: hidden; border: 6px solid #5a3d26; border-radius: 3px; background: #000; cursor: pointer; user-select: none; -webkit-user-select: none; box-shadow: inset 0 0 0 3px var(--pj-cream), 0 30px 60px -30px #000; }
.pj-detail-photo img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; pointer-events: none; }
.pj-detail-photo.is-soaking .pj-detail-after { -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 calc(var(--pj-r) - 14%), transparent var(--pj-r)); mask-image: radial-gradient(circle at 50% 55%, #000 calc(var(--pj-r) - 14%), transparent var(--pj-r)); animation: pj-bleed 1.4s cubic-bezier(.3, .6, .3, 1) forwards; }
.pj-detail-photo:is(.is-holding, .is-comparing) .pj-detail-after { opacity: 0; }
.pj-detail-compare { position: absolute; right: 12px; bottom: 12px; min-height: 36px; padding: 6px 14px; border: 1px solid #ffffff2a; border-radius: 4px; background: #120e0ad0; color: var(--pj-text); font-size: 13px; font-weight: 600; }
.pj-detail-compare[aria-pressed=true] { background: var(--pj-ochre); border-color: transparent; color: var(--pj-on); }
.pj-detail-tag { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 4px; background: #120e0ab8; color: var(--pj-muted); font-size: 12px; font-weight: 600; }
.pj-detail figcaption { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; justify-self: end; width: min(100%, calc((100svh - var(--nav-height, 86px) - 58px - 390px) * 1.5)); padding-top: 12px; }
.pj-detail figcaption span { grid-row: 1 / 3; padding-top: 4px; font-family: var(--pj-mono); font-size: 14px; color: var(--pj-ochre); }
.pj-detail figcaption b { font-size: 22px; font-weight: 700; }
.pj-detail figcaption small { font-size: var(--text-small); color: var(--pj-muted); }
/* Hinged panels: turning each about its centre, alternately, with centres cos(fold) apart, makes
   neighbouring edges meet at the same depth. */
.pj-view.is-scrubbing .pj-screen { --fold: 74deg; --pw: min(116px, calc((100vw - 140px) / 10.4)); grid-column: 1 / -1; display: flex; justify-content: center; gap: 0; margin: 0; padding: 8px 0 26px; perspective: 1600px; transform-style: preserve-3d; }
.pj-view.is-scrubbing .pj-screen::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 8px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, #0009, transparent); z-index: -1; }
.pj-view.is-scrubbing .pj-panel { flex: 0 0 var(--pw); margin-inline: calc(var(--pw) * (cos(var(--fold)) - 1) / 2); transform: rotateY(calc(var(--fold) * var(--dir))); transform-style: preserve-3d; cursor: pointer; transition: transform .6s var(--ease), filter .4s; }
.pj-view.is-scrubbing .pj-panel-photo { aspect-ratio: 1 / 1.75; border-width: 4px; box-shadow: inset 0 0 0 2px var(--pj-cream); }
.pj-view.is-scrubbing .pj-panel-photo img { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }
.pj-view.is-scrubbing .pj-panel-title { right: 6px; top: 8px; padding: 7px 3px; font-size: 12px; }
html:lang(en) .pj-view.is-scrubbing .pj-panel-title { font-size: 9px; }
.pj-view.is-scrubbing .pj-panel figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pj-view.is-scrubbing .pj-panel:focus-visible { outline: 2px solid var(--pj-ochre); outline-offset: 4px; }
.pj-view.is-scrubbing .pj-panel:nth-child(even) .pj-panel-photo { filter: brightness(.78); }
.pj-view.is-scrubbing .pj-panel.is-active { z-index: 2; transform: translateZ(70px) translateY(-12px); filter: drop-shadow(0 0 18px #d9774f66); }
.pj-view.is-scrubbing .pj-panel.is-active .pj-panel-photo { filter: none; border-color: var(--pj-ochre); }
.pj-view.is-scrubbing .pj-note { grid-column: 1 / -1; margin: 0; }

/* 02 — The hanji lab: a lattice window, one slider, and the app's tone curve as a strip. */
.pj-lab { padding: 110px 0 120px; }
.pj-lab-body { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 64px; }
.pj-lab-body > * { min-width: 0; }
.pj-window { padding: 14px; border-radius: 4px; background: linear-gradient(#6b4a2e, #4e3420); box-shadow: inset 0 0 0 1px #ffffff1a, 0 40px 80px -40px #000; }
.pj-window::before { content: ''; display: block; height: 10px; margin: -6px -6px 6px; background: repeating-linear-gradient(90deg, transparent 0 22px, #3a2716 22px 26px), linear-gradient(#f3e8d633, #f3e8d633); border-radius: 2px; }
.pj-stage { --a: 1; --b: .64; position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: #000; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pj-layer, .pj-set { position: absolute; inset: 0; width: 100%; height: 100%; }
.pj-layer { object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.pj-layer-50 { opacity: var(--a); }
.pj-layer-100 { opacity: var(--b); }
.pj-stage.is-comparing :is(.pj-set, .pj-soak) { opacity: 0 !important; }
.pj-soak { position: absolute; inset: 0; pointer-events: none; }
.pj-soak .pj-set { -webkit-mask-image: radial-gradient(circle at 50% 55%, transparent calc(var(--pj-r) - 16%), #000 var(--pj-r)); mask-image: radial-gradient(circle at 50% 55%, transparent calc(var(--pj-r) - 16%), #000 var(--pj-r)); animation: pj-soak 1.3s cubic-bezier(.3, .6, .3, 1) forwards; }
.pj-stage-badge { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 4px; background: #120e0ac0; font-size: 12px; font-weight: 600; color: var(--pj-ochre); opacity: 0; transition: opacity .2s; }
.pj-stage-badge:not(:empty) { opacity: 1; }
.pj-tone { display: grid; gap: 6px; margin-top: 18px; padding: 14px; border: 1px solid var(--pj-line); border-radius: 6px; background: var(--pj-panel); }
.pj-tone-row { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); align-items: center; gap: 10px; font-size: 12px; color: var(--pj-muted); }
.pj-tone-row > div { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); height: 26px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px #00000050; }
.pj-tone-row i { transition: background .35s ease; }
.pj-tone-ends { display: flex; justify-content: space-between; margin: 0 0 0 calc(3.2em + 10px); font-size: 11px; color: #9b8d79; }
.pj-lab-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 16px; }
.pj-lab-caption { min-width: 0; font-size: var(--text-small); line-height: 1.55; color: var(--pj-muted); }
.pj-lab-caption b { display: block; font-size: var(--text-ui); font-weight: 650; color: var(--pj-text); }
.pj-compare { flex-shrink: 0; min-height: 44px; padding: 10px 18px; border: 1px solid #ffffff22; border-radius: 6px; background: var(--pj-panel); color: var(--pj-text); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.pj-compare[aria-pressed=true] { background: var(--pj-ochre); border-color: transparent; color: var(--pj-on); }
.pj-lab-panel { padding: 26px; border: 1px solid #ffffff0d; border-radius: 8px; background: var(--pj-panel); }
.pj-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 6px; background: var(--pj-bg); }
.pj-tabs button { min-height: 40px; min-width: 70px; padding: 8px 18px; border-radius: 4px; background: none; color: var(--pj-muted); font-size: var(--text-ui); font-weight: 650; transition: background .25s, color .25s; }
.pj-tabs button[aria-pressed=true] { background: var(--pj-ochre); color: var(--pj-on); }
/* Seals (낙관): square stamps with the filter's own little swatch. */
.pj-seals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; margin-top: 22px; }
.pj-seals button { display: grid; justify-items: center; gap: 8px; padding: 0; background: none; color: var(--pj-muted); font-size: 12px; line-height: 1.25; word-break: keep-all; text-align: center; }
.pj-seals img { width: 100%; max-width: 64px; aspect-ratio: 1; padding: 3px; border: 1.5px solid transparent; border-radius: 6px; object-fit: cover; transition: border-color .25s, transform .35s var(--ease); }
.pj-seals button:hover img { transform: rotate(-3deg) scale(1.04); }
.pj-seals button[aria-pressed=true] { color: var(--pj-text); font-weight: 650; }
.pj-seals button[aria-pressed=true] img { border-color: var(--pj-seal); box-shadow: 0 0 0 3px #b8432e33; transform: rotate(-3deg); }
.pj-slider { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) 3ch; align-items: center; gap: 12px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--pj-line); font-size: var(--text-ui); color: var(--pj-muted); }
.pj-slider output { color: var(--pj-text); font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.pj-slider input { --fill: 50%; width: 100%; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pj-slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--pj-ochre) var(--fill), #3e3428 var(--fill)); }
.pj-slider input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--pj-ochre) var(--fill), #3e3428 var(--fill)); }
.pj-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border: 3px solid var(--pj-panel); border-radius: 50%; background: var(--pj-ochre); }
.pj-slider input::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--pj-panel); border-radius: 50%; background: var(--pj-ochre); }
.pj-static { font-size: var(--text-small); line-height: 1.7; color: var(--pj-muted); }
.pj-ready .pj-static { display: none; }

/* 03 — The cabinet (사방탁자): paper sliding doors on every shelf. */
.pj-mood { padding: 110px 0 120px; }
.pj-cabinet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 16px; margin-top: 60px; padding: 18px 18px 24px; border-radius: 4px; background: linear-gradient(#3a2716, #2b1d12); box-shadow: inset 0 0 0 4px #5a3d26, inset 0 0 0 5px #00000040, 0 40px 80px -40px #000; }
.pj-cell { margin: 0; }
.pj-cell-view { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 2px; background: #0c0906; cursor: pointer; box-shadow: inset 0 0 0 3px #5a3d26, 0 10px 0 -4px #5a3d26; }
.pj-cell-view img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; transition: opacity .3s; }
.pj-cell-before { opacity: 0; }
.pj-cell-view[aria-pressed=true] .pj-cell-before { opacity: 1; }
.pj-cell-tag { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 3px; background: #120e0ac0; color: var(--pj-muted); font-size: 11px; font-weight: 600; opacity: 0; transition: opacity .3s; }
.pj-cell-view[aria-pressed=true] .pj-cell-tag { opacity: 1; }
.pj-door { display: none; position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; pointer-events: none; background: linear-gradient(90deg, #5a3d26 0 3px, transparent 3px calc(100% - 3px), #5a3d26 calc(100% - 3px)), repeating-linear-gradient(0deg, transparent 0 calc(25% - 2px), #6b4a2e calc(25% - 2px) 25%), repeating-linear-gradient(90deg, transparent 0 calc(33.3% - 2px), #6b4a2e calc(33.3% - 2px) 33.3%), var(--pj-fibre), #efe2c9; box-shadow: inset 0 0 0 3px #5a3d26; transition: transform .4s cubic-bezier(.5, 0, .2, 1); }
.pj-door-l { left: 0; }
.pj-door-r { right: 0; }
.pj-ready .pj-cell-view.is-shut .pj-door { display: block; }
.pj-cell-view.is-open .pj-door { transition: transform .75s calc(var(--col, 0) * 90ms) cubic-bezier(.3, .7, .2, 1); }
.pj-cell-view.is-open .pj-door-l { transform: translateX(-102%); }
.pj-cell-view.is-open .pj-door-r { transform: translateX(102%); }
.pj-cell figcaption { display: grid; gap: 4px; margin-top: 18px; }
.pj-cell figcaption b { font-size: var(--text-ui); font-weight: 700; }
.pj-cell figcaption span { font-size: 13px; line-height: 1.5; color: var(--pj-muted); word-break: keep-all; }

/* 04 — The app: real editor captures on a strip of phones. */
.pj-screens { padding: 110px 0 120px; overflow: hidden; }
.pj-screens-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pj-screens-nav { display: flex; flex: none; gap: 10px; }
.pj-screens-nav[hidden] { display: none; }
.pj-screens-nav button { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--pj-line); border-radius: 50%; background: var(--pj-panel); cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.pj-screens-nav button:hover:not(:disabled) { border-color: #6b5a44; background: #2a2118; }
.pj-screens-nav button:disabled { opacity: .35; cursor: default; }
.pj-screens-nav .icon { width: 24px; height: 24px; }
.pj-phones { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 24vw, 300px); gap: 30px; margin: 44px calc(50% - 50vw) 0; padding: 16px calc(50vw - 50%) 44px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pj-bleed, 0px); scrollbar-width: none; }
.pj-phones::-webkit-scrollbar { display: none; }
.pj-phones:focus-visible { outline: 2px solid var(--pj-ochre); outline-offset: -2px; }
.pj-phone-item { scroll-snap-align: start; }
.pj-phone-item figure { margin: 0; }
.pj-phone { position: relative; padding: 7px; border-radius: 36px; background: linear-gradient(160deg, #4e3420, #1e1812); box-shadow: 0 0 0 1px #ffffff14, 0 30px 60px #0000008c; transition: transform .45s var(--ease); }
.pj-phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.pj-phone-item:hover .pj-phone { transform: translateY(-8px) rotate(-1deg); }
.pj-phone-item figcaption { display: grid; gap: 7px; margin-top: 24px; }
.pj-phone-item figcaption span { font: 600 12px/1 var(--pj-mono); letter-spacing: .08em; color: var(--pj-ochre); }
.pj-phone-item figcaption b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.pj-phone-item figcaption small { font-size: 14px; line-height: 1.65; color: var(--pj-muted); word-break: keep-all; }

/* 05 — Getting started */
.pj-start { padding: 110px 0 90px; }
.pj-start-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 64px 0 0; padding: 0; list-style: none; }
.pj-start-steps li { padding: 30px 28px 32px; border: 1px solid #ffffff0b; border-radius: 8px; background: var(--pj-panel); }
.pj-start-steps span { font-family: var(--pj-mono); font-size: 13px; letter-spacing: .2em; color: var(--pj-ochre); }
.pj-start-steps h3 { margin: 18px 0 12px; font-size: 22px; letter-spacing: -.03em; }
.pj-start-steps p { font-size: var(--text-small); line-height: 1.8; color: var(--pj-muted); }
.pj-spec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 32px 40px; margin-top: 24px; padding: 36px; border: 1px solid #ffffff0b; border-radius: 8px; background: var(--pj-panel); }
.pj-spec-app h3 { margin-top: 18px; font-size: 24px; letter-spacing: -.03em; }
.pj-spec-app p { margin-top: 6px; font-size: var(--text-small); color: var(--pj-muted); }
.pj-spec dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.pj-spec dl div { padding: 14px 0; border-bottom: 1px solid var(--pj-line); }
.pj-spec dt { font-size: 13px; color: var(--pj-muted); }
.pj-spec dd { margin: 6px 0 0; font-size: var(--text-ui); font-weight: 600; }
.pj-spec .product-download { border-top-color: var(--pj-line); }
.pj-spec .product-download p { color: var(--pj-muted); }
.pj-page .pj-spec .button-dark { background: var(--pj-ochre); color: var(--pj-on); }
.pj-page .pj-spec .download-pending { background: transparent; border-color: var(--pj-line); color: var(--pj-muted); }

/* FAQ */
.pj-faq { padding: 90px 0 140px; }
.pj-faq .wrap { display: grid; grid-template-columns: 1fr 1.8fr; gap: 70px; }
.pj-faq h2 { font-size: 34px; line-height: 1.3; }
.pj-faq details { border-bottom: 1px solid var(--pj-line); }
.pj-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; font-size: var(--text-body); font-weight: 600; line-height: 1.5; word-break: keep-all; }
.pj-faq summary::-webkit-details-marker { display: none; }
.pj-faq .faq-close, .pj-faq details[open] .faq-open { display: none; }
.pj-faq details[open] .faq-close { display: block; }
.pj-faq details p { padding: 0 40px 24px 0; font-size: var(--text-body); line-height: 1.85; color: #cbbca6; }

/* The walnut tears open onto hanji, then the site's paper. */
.pj-paper { position: relative; color: var(--ink); background: radial-gradient(ellipse 7px 1px at 30% 40%, #6b4a2e14, transparent 70%) 0 0 / 46px 38px, radial-gradient(ellipse 1px 6px at 70% 60%, #6b4a2e10, transparent 70%) 0 0 / 34px 52px, linear-gradient(#f3e8d6 0, #f3e8d6 380px, var(--paper) 620px); }
.pj-deckle { display: block; width: 100%; height: 34px; fill: var(--pj-bg); }
.pj-print { padding-top: 40px; }
.pj-print-card { position: relative; overflow: hidden; padding: 60px 64px 56px; border-radius: 8px; background: var(--pj-fibre), #1e1812; color: var(--pj-text); box-shadow: 0 34px 70px -28px #2b1d1299; isolation: isolate; }
.pj-print-card::before { content: ''; position: absolute; inset: 10px; z-index: -1; border: 1px solid #d9774f40; border-radius: 4px; pointer-events: none; }
.pj-seal { position: absolute; right: 48px; top: 44px; display: grid; place-items: center; width: 64px; height: 76px; padding: 6px; border: 3px solid var(--pj-seal); border-radius: 6px 8px 5px 7px; color: var(--pj-seal); font-family: var(--pj-serif); font-size: 26px; font-weight: 800; line-height: 1.05; transform: rotate(-6deg); opacity: .92; box-shadow: inset 0 0 0 1px #b8432e55; }
.pj-seal b { display: block; }
.pj-print h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.2; font-weight: 700; }
.pj-print p:not(.pj-eyebrow) { max-width: 620px; margin-top: 20px; font-size: var(--text-body); line-height: 1.85; color: #d4c7b4; }
.pj-print ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 28px 0 32px; padding: 0; list-style: none; }
.pj-print li { --ui-icon-size: 28px; display: flex; align-items: center; gap: 10px; font-size: var(--text-ui); font-weight: 600; }
.pj-print .text-link { --ui-icon-size: 30px; color: var(--pj-ochre); }
.pj-print .text-link:hover { color: var(--pj-ochre); text-decoration-color: var(--pj-cream); }
.pj-paper .related-section { padding-top: 80px; }

@media (prefers-reduced-motion: no-preference) {
  .pj-line { animation: pj-rise 1.1s calc(.35s + var(--line) * .16s) var(--ease) backwards; }
  .pj-line:last-child { animation: pj-rise 1.1s .51s var(--ease) backwards, pj-sheen 10s 2s linear infinite; }
  /* The fan opens fold by fold, ribs and all. */
  .pj-fold, .pj-ribs i { animation: pj-unfold 1.5s calc(.25s + var(--i, 5) * 45ms) cubic-bezier(.2, .8, .2, 1) backwards; }
  .pj-tassel { animation: pj-swing 4.8s ease-in-out infinite alternate; }
  .pj-print:not(.is-waiting) .pj-seal { animation: pj-stamp .7s .35s cubic-bezier(.3, 1.4, .5, 1) backwards; }
}
@keyframes pj-rise { from { opacity: 0; filter: blur(8px); transform: translateY(20px); } }
@keyframes pj-sheen { to { background-position: -220% 0; } }
@keyframes pj-unfold { from { --open: 0; } }
@keyframes pj-swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes pj-stamp { 0% { opacity: 0; transform: scale(1.8) rotate(-14deg); filter: blur(3px); } 60% { opacity: 1; transform: scale(.94) rotate(-5deg); filter: none; } 100% { transform: scale(1) rotate(-6deg); } }
@keyframes pj-soak { from { --pj-r: 0%; } to { --pj-r: 170%; } }
@keyframes pj-bleed { from { --pj-r: 0%; } to { --pj-r: 170%; } }
@media (prefers-reduced-motion: reduce) {
  .pj-soak { display: none; }
  .pj-fold, .pj-door, .pj-panel, .pj-phone, .pj-tone-row i { transition: none !important; }
}

@media (max-width: 1100px) {
  .pj-hero-inner { gap: 40px; }
  .pj-lab-body { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 36px; }
  .pj-cabinet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pj-hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .pj-cats { grid-template-columns: 1fr; gap: 12px; }
  .pj-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pj-stats > div:nth-child(n+3) { margin-top: 34px; }
  .pj-lab-body { grid-template-columns: 1fr; }
  .pj-lab-view { width: min(100%, 460px); }
  .pj-cabinet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-start-steps { grid-template-columns: 1fr; gap: 14px; }
  .pj-spec { grid-template-columns: 1fr; }
  .pj-faq .wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  html:has(.page-pungryu) { scroll-padding-top: 136px; }
  .pj-nav .wrap { gap: 12px; min-height: 52px; }
  .pj-nav-name span { display: none; }
  .pj-nav-links { margin-left: 0; }
  .pj-brush { width: 30px; }
  .pj-hero { padding: 32px 0 50px; }
  .pj-fan-art { margin-bottom: 80px; }
  .pj-intro { padding: 50px 0 80px; }
  .pj-view, .pj-lab, .pj-mood, .pj-start { padding-block: 80px; }
  .pj-faq { padding: 60px 0 100px; }
  .pj-head > p:not(.pj-eyebrow) { font-size: var(--text-body); }
  .pj-cats, .pj-stats, .pj-lab-body, .pj-start-steps { margin-top: 44px; }
  /* Phones: the folding screen becomes panels to swipe through. */
  .pj-screen { display: flex; gap: 16px; margin: 40px -20px 0; padding: 0 20px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pj-screen::-webkit-scrollbar { display: none; }
  .pj-panel { flex: 0 0 82%; scroll-snap-align: center; }
  .pj-lab-panel { padding: 20px 18px; }
  .pj-seals { display: flex; gap: 12px; overflow-x: auto; margin-inline: -18px; padding: 4px 18px 6px; scrollbar-width: none; }
  .pj-seals::-webkit-scrollbar { display: none; }
  .pj-seals button { flex: 0 0 60px; }
  .pj-cabinet { gap: 22px 12px; padding: 12px 12px 18px; margin-top: 44px; }
  .pj-cell figcaption span { display: none; }
  .pj-print-card { padding: 40px 26px 44px; }
  .pj-seal { right: 22px; top: 22px; width: 48px; height: 58px; font-size: 19px; }
  .pj-print ul { grid-template-columns: 1fr; }
  .pj-spec { padding: 26px 22px; }
  .pj-spec dl { grid-template-columns: 1fr; }
  .pj-screens { padding: 80px 0 90px; }
  .pj-screens-head { flex-direction: column; align-items: flex-start; }
  .pj-phones { grid-auto-columns: 66vw; gap: 18px; margin-top: 28px; }
}
@media (max-width: 520px) {
  .pj-hero h1 { font-size: clamp(36px, 10.5vw, 50px); }
  html:lang(en) .pj-hero h1 { font-size: clamp(32px, 9.2vw, 44px); }
  .pj-fan-caption b { font-size: 19px; }
  .pj-stats strong { font-size: 44px; }
  .pj-stats > div { padding-right: 12px; }
  .pj-stats > div + div { padding-left: 14px; }
  .pj-cat { grid-template-columns: 1fr; gap: 14px; }
  .pj-cat-seals { grid-row: auto; grid-template-columns: repeat(4, 34px); }
  .pj-tone-row { grid-template-columns: 2.6em minmax(0, 1fr); }
  .pj-tone-ends { margin-left: calc(2.6em + 10px); }
}
@media print {
  .pj-nav, .pj-fan figcaption, .pj-lab-panel, .pj-screens-nav, .pj-tassel, .pj-door, .pj-deckle, .pj-detail { display: none !important; }
  /* A page opened on a wide screen prints the folding screen as the plain list. */
  .pj-view.is-scrubbing { height: auto; padding: 40px 0; }
  .pj-view.is-scrubbing .pj-view-stage { position: static; height: auto; overflow: visible; }
  .pj-view.is-scrubbing .pj-view-inner { display: block; height: auto; padding: 0; }
  .pj-view.is-scrubbing .pj-screen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; padding: 0; perspective: none; }
  .pj-view.is-scrubbing .pj-panel { margin: 0; transform: none !important; filter: none !important; }
  .pj-view.is-scrubbing .pj-panel-photo { aspect-ratio: 3 / 2; filter: none !important; }
  .pj-view.is-scrubbing .pj-panel figcaption { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: grid; }
  .pj-page, .pj-hero { background: #fff !important; color: #000 !important; }
  .pj-phones { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; padding: 0; overflow: visible; }
}
