@import url("/fonts/lxgw-wenkai/lxgwwenkai-regular.css");
:root {
  --ink: #1b1c1a;
  --paper: #f6f3eb;
  --muted: #777971;
  --line: rgba(27, 28, 26, .17);
  --amber: #bd8b3f;
  --blue: #496b7a;
  --panel: rgba(255, 255, 255, .38);
  --site-font: "LXGW WenKai", "Noto Serif SC", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body {
  font-family: var(--site-font);
  color: var(--ink); background: var(--paper); overflow: hidden;
}
button, a { font: inherit; }
button { color: inherit; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.shell { height: 100dvh; padding: clamp(18px, 3vw, 40px) clamp(18px, 4.5vw, 72px) 22px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 18px; position: relative; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-style: italic; }
.brand b, .brand small { display: block; }
.brand b { font-family: var(--site-font); font-size: 17px; letter-spacing: .08em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.top-actions { display: flex; gap: 18px; align-items: center; }
.hub-entry { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding: 5px 0; font-size: 12px; letter-spacing: .08em; }
.hub-entry:hover { border-color: var(--amber); }
.chapter-count { font-family: Georgia, serif; color: var(--muted); }
.chapter-count b { color: var(--ink); font-size: 22px; font-weight: 400; }
.lang { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 12px; }
.stage { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); align-items: center; gap: clamp(24px, 5vw, 88px); }
.copy-panel { width: min(100%, 650px); min-height: 420px; animation: enter .7s ease both; }
.eyebrow { color: var(--amber); font-size: 12px; letter-spacing: .19em; font-weight: 650; margin: 0 0 20px; }
h1 { font-family: var(--site-font); font-size: clamp(39px, 4.45vw, 67px); font-weight: 400; line-height: 1.25; letter-spacing: .025em; margin: 0; max-width: 760px; min-height: 2.5em; text-wrap: balance; }
.lead { margin: 24px 0 0; font-family: var(--site-font); font-size: clamp(18px, 1.65vw, 24px); font-weight: 400; line-height: 1.75; color: #565852; max-width: 650px; }
.note { margin: 18px 0 0; color: var(--muted); line-height: 1.75; font-size: 15px; }
.advance { margin-top: 28px; display: inline-flex; gap: 42px; align-items: center; border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 9px; background: transparent; cursor: pointer; font-weight: 650; }
.advance span:last-child { color: var(--amber); transition: transform .25s; }
.advance:hover span:last-child { transform: translate(4px, -4px); }
.visual-panel { height: min(55vh, 570px); min-height: 370px; border: 0; background: transparent; position: relative; overflow: hidden; }
.scene-index { position: absolute; z-index: 2; top: 20px; left: 22px; margin: 0; display: flex; align-items: baseline; gap: 12px; color: var(--amber); }
.scene-index span { font-family: Georgia, serif; font-size: 20px; }
.scene-index small { font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.traveler-stack { position: absolute; inset: 13% 9% 18%; }
.traveler-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: 0; visibility: hidden; transition: transform .65s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
.traveler-image.active { opacity: 1; visibility: visible; }
.idea-line { position: absolute; left: 12%; right: 12%; bottom: 19%; height: 1px; background: var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 26px; padding-right: 8%; }
.idea-line span, .idea-line i { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; display: block; }
.idea-line span { width: 10px; height: 10px; margin-right: auto; animation: pulse 2.8s infinite; }
.idea-line i { opacity: .4; }
.visual-caption { position: absolute; z-index: 2; right: 11%; bottom: 2.5%; margin: 0; text-align: right; font-family: var(--site-font); font-size: 12px; line-height: 1.6; color: #5f615c; }
.visual-caption em { color: var(--muted); font-family: Georgia, serif; font-size: 11px; }
.domain-nav { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.domain { min-width: 0; text-align: left; border: 0; border-right: 1px solid var(--line); background: transparent; padding: 14px 12px 12px; cursor: pointer; position: relative; }
.domain-link { color: inherit; text-decoration: none; }
.domain:last-child { border-right: 0; }.domain::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--amber); transition: width .35s; }.domain.active::before, .domain:hover::before { width: 100%; }
.domain span, .domain b, .domain small { display: block; }.domain span { color: var(--muted); font-size: 10px; }.domain b { margin-top: 8px; font-family: var(--site-font); font-size: 16px; font-weight: 500; }.domain small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.footer { color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.status { display: flex; align-items: center; gap: 8px; }.status span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
body[data-view="space"] { --amber: #a5783e; --blue: #657169; }
body[data-view="product"] { --amber: #b16f38; --blue: #6d716c; }
body[data-view="intelligence"] { --amber: #597f8a; --blue: #3d6979; }
body[data-view="culture"] { --amber: #9f5140; --blue: #625e58; }
body[data-view="growth"] { --amber: #67865d; --blue: #52725b; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(189,139,63,0); } 100% { box-shadow: 0 0 0 0 rgba(189,139,63,0); } }
@media (max-width: 880px) {
  body { overflow: auto; }
  .shell { min-height: 100dvh; height: auto; grid-template-rows: auto auto auto auto; padding: 18px; }
  .stage { grid-template-columns: 1fr; gap: 28px; padding-top: 26px; }
  .copy-panel, h1 { min-height: 0; }
  h1 { font-size: clamp(38px, 11vw, 58px); }
  .visual-panel { min-height: 330px; height: 42vh; }
  .domain-nav { grid-template-columns: repeat(3, 1fr); }
  .domain { border-bottom: 1px solid var(--line); }
  .footer { gap: 20px; padding-top: 8px; }
}
@media (max-width: 520px) {
  .brand small, .chapter-count, .footer > p:first-child { display: none; }
  .brand { gap: 6px; }
  .brand b { font-size: 14px; }
  .top-actions { gap: 4px; }
  .hub-entry { font-size: 11px; }
  .top-actions { gap: 8px; }
  .eyebrow { margin-bottom: 14px; }
  .lead { font-size: 18px; margin-top: 18px; }
  .note { font-size: 14px; }
  .visual-panel { min-height: 285px; }
  .domain { padding: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }

/* A2-R6 · Original field-paper material, not a notebook grid */
body { background-color: #f6f3eb; background-image: linear-gradient(rgba(246,243,235,.48),rgba(246,243,235,.48)), url("./assets/jj-field-paper-v2-rhythm.webp"); background-position: center, center; background-size: auto, cover; background-attachment: fixed, fixed; }
.stage { position: relative; isolation: isolate; }
.stage::before, .stage::after { content: ""; position: absolute; width: 102px; height: 31px; pointer-events: none; opacity: .54; background: linear-gradient(rgba(189,139,63,.56),rgba(189,139,63,.56)) left 15px/1px 30px no-repeat, linear-gradient(90deg,rgba(189,139,63,.56),rgba(189,139,63,.56)) left top 28px/1px no-repeat, repeating-linear-gradient(90deg,rgba(119,113,102,.38) 0 1px,transparent 1px 16px) right 15px/65px 1px no-repeat; }
.stage::before { left: 4%; bottom: 5%; }
.stage::after { right: 5%; bottom: 4%; transform: scaleX(-1); }
@media (max-width: 880px) {
  body { background-attachment: scroll, scroll; }
  .stage::before, .stage::after { display: none; }
}
