/* 月影學館 / 墨の図鑑 — an original ink-and-paper interface, v3 */
:root{color-scheme:light;--ink:#171715;--ink2:#292a28;--paper:#f5f5f1;--white:#fff;--faint:#d6d5cd;--red:#b51834;--red-deep:#811020;--muted:#74736c;--header:76px;--rail:84px;font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;letter-spacing:-.035em}
*{box-sizing:border-box}
html{height:100%;scroll-behavior:smooth}
body{margin:0;min-width:320px;height:100%;background:var(--paper);color:var(--ink);overflow:hidden;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible{outline:3px solid var(--red);outline-offset:3px}
button:disabled{cursor:not-allowed;opacity:.3}
img{display:block;max-width:100%}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{word-break:keep-all}
.skip{position:fixed;top:-100px;left:10px;z-index:999;background:#fff;padding:12px}.skip:focus{top:10px}
.paper-noise{pointer-events:none;position:fixed;inset:0;z-index:90;opacity:.18;background-image:url("assets/ink-grain.svg");background-size:350px 350px;mix-blend-mode:multiply}
.topbar{height:var(--header);position:fixed;z-index:110;left:0;right:0;top:0;display:flex;align-items:center;padding:0 120px 0 36px;justify-content:space-between;border-bottom:1px solid #15151526;background:#f5f5f1eb;backdrop-filter:blur(11px)}
.topbar-home{border:0;background:transparent;display:flex;align-items:center;gap:12px;text-align:left;padding:0;color:var(--ink)}
.topbar-seal{display:grid;place-items:center;width:39px;height:39px;border:2px solid var(--red);color:var(--red);font-family:serif;font-weight:900;font-size:23px;transform:rotate(-5deg)}
.topbar-brand{font-size:18px;letter-spacing:-.075em;font-weight:900;line-height:1.1;white-space:nowrap}.topbar-brand small{display:block;font-size:10px;letter-spacing:.21em;color:var(--muted);font-weight:500;margin-top:3px}
.topbar-trail{margin-right:auto;margin-left:5.8vw;display:flex;align-items:center;gap:14px;font-size:12px;letter-spacing:.04em;color:var(--muted)}.topbar-trail:before{content:"";width:35px;height:1px;background:#3336}.topbar-trail b{font-size:13px;color:var(--ink);font-weight:700}
.topbar-edition{font:600 11px Georgia,serif;letter-spacing:.21em;color:#686761}
.quick-nav{position:fixed;z-index:120;right:0;top:var(--header);bottom:0;width:var(--rail);display:flex;flex-direction:column;justify-content:center;background:#181818;box-shadow:-8px 0 30px #17171716}
.quick-nav:before{content:"";position:absolute;top:32px;left:calc(50% - 12px);height:16px;width:24px;border-radius:50%;border:2px solid var(--red);transform:rotate(-23deg)}
.quick-nav button{background:transparent;color:#bababa;border:0;border-top:1px solid #ffffff23;min-height:99px;padding:14px 7px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;position:relative;transition:color .2s,background .2s}
.quick-nav button:last-child{border-bottom:1px solid #ffffff23}.quick-nav button:hover,.quick-nav button[aria-current="page"]{color:#fff;background:#ffffff0d}.quick-nav button[aria-current="page"]:before{content:"";position:absolute;left:0;top:15%;height:70%;width:4px;background:var(--red)}
.nav-kanji{font:700 29px/1.2 "Yu Mincho","Noto Serif CJK JP",serif;letter-spacing:0}.quick-nav button span:last-child{font-size:11px;letter-spacing:.03em}
#screens{position:relative;width:calc(100vw - var(--rail));height:100svh;overflow:hidden}
.view{width:100%;height:100%;position:absolute;inset:0;overflow:hidden;animation:arrive .55s cubic-bezier(.23,.9,.28,1) both}
.view[hidden]{display:none!important}
@keyframes arrive{from{opacity:.7;transform:translateY(13px)}to{opacity:1;transform:translateY(0)}}
.page-scroll{height:100%;overflow-y:auto;scrollbar-color:#9996 transparent;scrollbar-width:thin}
.draft-note{position:fixed;z-index:105;bottom:12px;left:24px;color:#777;font-size:10px;opacity:.8;letter-spacing:.04em;pointer-events:none;mix-blend-mode:difference;color:#f1f1f1}
.ink-transition{pointer-events:none;position:fixed;z-index:130;inset:0;opacity:0;transform:translateX(-100%);background:var(--ink);clip-path:polygon(0 0,97% 0,100% 12%,95% 25%,100% 41%,92% 53%,100% 69%,94% 87%,100% 100%,0 100%)}
body.is-switching .ink-transition{animation:inkWipe .48s ease-out both}@keyframes inkWipe{0%{opacity:.85;transform:translateX(-100%)}55%{opacity:.9;transform:translateX(-15%)}100%{opacity:0;transform:translateX(110%)}}

/* Entrance: asymmetric ensō artwork against a photographic scene. */
.home-view{display:grid;grid-template-columns:43% 57%;background:var(--paper)}
.home-left{position:relative;overflow:hidden;min-width:0;padding:calc(var(--header) + 51px) clamp(30px,4.1vw,76px) 44px clamp(28px,4.5vw,80px);display:flex;flex-direction:column;justify-content:center}
.home-rule{position:absolute;top:calc(var(--header) + 28px);left:clamp(28px,4.5vw,80px);font:600 12px Georgia,serif;letter-spacing:.38em;color:#4a4946}.home-rule span{color:var(--red);font-size:20px}
.home-ink{position:absolute;z-index:0;pointer-events:none;width:min(56vw,890px);aspect-ratio:1;top:48%;left:-37%;transform:translateY(-50%) rotate(-12deg);background:url("assets/ink-ring.svg") center/contain no-repeat;opacity:.96}
.home-headline{position:relative;z-index:1;max-width:600px;margin-left:clamp(13px,3vw,60px)}
.home-brush-note{display:block;width:max-content;color:var(--red);font:800 16px/1.2 "Yu Mincho",serif;letter-spacing:.37em;transform:rotate(-6deg);margin:0 0 17px 15px}
.home-headline h1{font-size:clamp(87px,9.8vw,192px);line-height:.89;letter-spacing:-.15em;margin:0 0 35px;font-weight:950;text-shadow:2px 1px #fafaf6,5px 2px #fafaf6}
.home-headline h1 span{display:block;white-space:nowrap}.home-headline h1 span:last-child{margin-left:.23em}
.home-headline p{font-size:clamp(14px,1.15vw,19px);font-weight:600;line-height:1.85;letter-spacing:-.045em;padding-left:6px}
.home-story-link{border:0;border-bottom:3px solid var(--red);background:var(--ink);color:#fff;display:inline-flex;align-items:center;gap:43px;justify-content:space-between;margin:10px 0 0 6px;padding:13px 17px;min-width:210px;font-weight:800;font-size:13px;letter-spacing:-.02em;transition:background .2s,transform .2s}.home-story-link span:last-child{font-size:22px;color:#fc7184;line-height:.75}.home-story-link:hover{background:var(--red);transform:translateX(3px)}.home-story-link:hover span:last-child{color:white}
.home-entry-note{position:absolute;left:clamp(28px,4.5vw,80px);bottom:91px;display:flex;gap:12px;align-items:center}.home-entry-note i{font:900 37px serif;color:var(--red);font-style:normal}.home-entry-note span{font-size:11px;line-height:1.7;letter-spacing:.015em}
.home-bottom-line{position:absolute;bottom:30px;left:clamp(28px,4.5vw,80px);right:33px;border-top:1px solid #2226;padding-top:12px;display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.09em;color:#75736d}
.home-right{position:relative;overflow:hidden;background:#161616}
.home-panorama{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(.7) contrast(1.12) brightness(.7);opacity:.9;transform:scale(1.03)}
.home-right:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0008 0%,transparent 38%,#0002 43%,#050505e9 100%);pointer-events:none}
.home-photo-caption{position:absolute;z-index:2;top:calc(var(--header) + 52px);right:45px;writing-mode:vertical-rl;font:600 12px Georgia,serif;color:#fff;letter-spacing:.29em;text-shadow:1px 2px 3px #0009}
.home-route-label{position:absolute;z-index:2;left:5%;bottom:calc(33% + 42px);color:#fff;font-size:clamp(20px,2.4vw,35px);letter-spacing:-.06em;font-weight:900;text-shadow:0 2px 14px #000}
.entrance-choices{position:absolute;z-index:3;bottom:7.2%;left:5%;right:6%;height:30%;min-height:180px;display:flex;align-items:stretch;background:#1115;border-top:1px solid #ffffff93;border-bottom:1px solid #ffffff93;box-shadow:0 10px 55px #0007}
.entrance-choices button{position:relative;min-width:0;flex:1;border:0;border-right:1px solid #ffffff85;color:white;background:#080808ba;padding:19px clamp(9px,1.4vw,25px) 20px;display:flex;flex-direction:column;justify-content:flex-end;text-align:left;isolation:isolate;overflow:hidden;transition:flex .35s,background .3s}
.entrance-choices button:last-child{border-right:0}.entrance-choices button:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(0deg,#050505e8,#0a0a0a00 80%)}
.entrance-choices button img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.15);opacity:.38;transition:filter .4s,opacity .4s,transform .4s}
.entrance-choices button:nth-child(2) img,.entrance-choices button:nth-child(3) img{object-position:center 22%}
.entrance-choices button:hover,.entrance-choices button:focus-visible{flex:1.25}.entrance-choices button:hover img,.entrance-choices button:focus-visible img{opacity:.7;filter:grayscale(.25);transform:scale(1.08)}
.choice-no{position:absolute;top:15px;left:clamp(9px,1.4vw,25px);color:#ef3353;font:900 25px serif}
.entrance-choices strong{display:block;font-size:clamp(16px,1.4vw,25px);letter-spacing:-.06em;line-height:1.4;white-space:nowrap}.entrance-choices small{font-size:12px;color:#ddd6d6;margin-top:5px;letter-spacing:-.01em}

/* shared paper folios */
.view-head{position:relative;padding-left:54px}.red-slash{position:absolute;left:0;top:0;color:var(--red);font:900 45px/1 "Yu Mincho",serif}.view-head>p{font-size:12px;letter-spacing:.13em;color:#666;margin-bottom:16px}.view-head h2{font-size:clamp(32px,3.3vw,64px);letter-spacing:-.085em;font-weight:900;line-height:1.16;margin:0}
.intro-copy{font-size:15px;line-height:1.95;color:#504e49;word-break:keep-all}

/* The missing narrative core: a complete opening premise, not a teaser card. */
.story-view{display:grid;grid-template-columns:46% 54%;background:var(--paper)}
.story-visual{position:relative;overflow:hidden;background:#111}
.story-visual>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(.83) contrast(1.2) brightness(.62)}
.story-visual:after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,#020202b8,#0808081c 32%,#0505054d 59%,#050505e6)}
.story-visual-ink{position:absolute;z-index:2;width:90%;aspect-ratio:1;left:-39%;top:1%;background:url("assets/ink-ring.svg") center/contain no-repeat;filter:invert(1);opacity:.57;transform:rotate(-17deg);pointer-events:none}
.story-visual-top{position:absolute;z-index:3;top:calc(var(--header) + 37px);left:8%;right:8%;display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-top:1px solid #fffa;padding-top:13px;color:#fff;font:800 13px "Yu Mincho",serif;letter-spacing:.15em}.story-visual-top span{font:600 11px "Noto Sans KR",sans-serif;letter-spacing:.09em;color:#eee}
.story-visual-words{position:absolute;z-index:3;left:8%;bottom:14%;right:8%;color:#fff}.story-kicker{display:block;color:#ff5a76;font-size:14px;font-weight:850;letter-spacing:-.03em;margin-bottom:15px}
.story-visual-words h2{font-weight:950;font-size:clamp(36px,4.1vw,79px);letter-spacing:-.09em;line-height:1.23;margin:0 0 25px;text-shadow:0 5px 18px #000a}.story-visual-words h2 em{font-style:normal;color:#fd4561}.story-visual-words p{font-size:14px;font-weight:650;line-height:1.85;letter-spacing:-.04em;text-shadow:0 3px 7px #000b}
.story-visual-side{position:absolute;z-index:4;right:4%;top:33%;writing-mode:vertical-rl;color:#fff9;font:800 10px Georgia,serif;letter-spacing:.21em}
.story-content{padding:calc(var(--header) + 42px) clamp(32px,4.6vw,93px) 100px}.story-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:3px solid var(--ink);padding-bottom:16px}.story-chapter{color:var(--red);font:800 13px Georgia,serif;letter-spacing:.15em}.story-status{font-size:11px;color:#79786f;letter-spacing:.04em}
.story-content h2{font-weight:950;font-size:clamp(38px,3.6vw,68px);letter-spacing:-.09em;line-height:1.17;margin:30px 0 27px}.story-intro{font-size:clamp(16px,1.4vw,21px);font-weight:800;line-height:1.7;margin:0 0 22px;word-break:keep-all}.story-intro strong{color:var(--red)}
.story-paragraphs{border-top:1px solid #2225;padding-top:19px}.story-paragraphs p{font-size:14px;line-height:1.92;letter-spacing:-.025em;word-break:keep-all;color:#4c4a45;margin:0 0 18px}.story-paragraphs strong{color:var(--ink);font-weight:900}
.story-axes{margin-top:36px;border-top:2px solid var(--ink);border-bottom:2px solid var(--ink)}.story-axes>div{display:grid;grid-template-columns:41px minmax(115px,.85fr) 1.15fr;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #aaa89c}.story-axes>div:last-child{border:0}.story-axes span{color:var(--red);font:900 24px "Yu Mincho",serif}.story-axes strong{font-size:15px;letter-spacing:-.045em}.story-axes small{font-size:12px;color:#6c6b64;line-height:1.5}
.story-freedom{background:#1a1a19;color:white;margin-top:33px;padding:25px 27px 26px;border-left:6px solid var(--red)}.story-freedom>span{display:block;color:#fb5d77;font:900 12px "Yu Mincho",serif;letter-spacing:.23em;margin-bottom:13px}.story-freedom h3{font-size:clamp(21px,2vw,31px);font-weight:900;letter-spacing:-.06em;margin:0 0 12px}.story-freedom p{font-size:13px;line-height:1.85;margin:0;color:#d9d8d2;word-break:keep-all}
.story-next{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:27px}.story-next>span{font-size:11px;color:#777;letter-spacing:.08em;margin-right:auto}.story-next button{padding:10px 11px;min-width:119px;border:1px solid #9c9a8e;background:transparent;color:var(--ink);display:flex;align-items:center;gap:16px;justify-content:space-between;font-weight:750;font-size:12px;transition:background .2s,color .2s}.story-next button:hover{background:var(--ink);color:#fff}.story-next button b{font-size:17px;font-weight:400;color:var(--red)}

/* academy / visual folio and curriculum */
.academy-view{display:grid;grid-template-columns:56% 44%;background:var(--paper)}
.academy-image-panel{position:relative;overflow:hidden;background:#191919}
.academy-image-panel:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#0a0a0ad9,transparent 37%)}
.academy-image-panel>img{width:100%;height:100%;object-fit:cover;filter:contrast(1.06) saturate(.82)}
.image-ink-corner{position:absolute;z-index:2;left:-22%;top:-32%;width:70%;aspect-ratio:1;background:url("assets/ink-ring.svg") center/contain no-repeat;opacity:.8;filter:invert(1);pointer-events:none}
.image-folio{position:absolute;z-index:3;left:5%;bottom:8%;display:flex;gap:18px;align-items:baseline;color:#fff}.image-folio span:first-child{color:#ff5670;font:900 24px Georgia,serif;letter-spacing:.11em}.image-folio span:last-child{font-weight:800;font-size:29px;letter-spacing:-.07em}
.academy-right{padding:calc(var(--header) + 60px) clamp(30px,3.6vw,72px) 75px;background-image:linear-gradient(130deg,#22222204,transparent 60%)}
.academy-right .intro-copy{margin:36px 0 30px}.academy-times,.curriculum-register{border-top:2px solid var(--ink);padding-top:16px;margin-top:32px}.academy-times h3,.curriculum-register h3{font-size:16px;letter-spacing:-.04em;display:flex;justify-content:space-between;align-items:baseline;margin:0 0 18px}.academy-times h3 span,.curriculum-register h3 span{font:700 11px Georgia,serif;color:var(--red);letter-spacing:.16em}
.scene-thumbnails{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.scene-thumbnails button{position:relative;padding:0;border:0;background:transparent;color:var(--ink);text-align:left}.scene-thumbnails img{aspect-ratio:1.36;object-fit:cover;width:100%;filter:grayscale(.8) contrast(1.05);transition:filter .3s}.scene-thumbnails button:hover img,.scene-thumbnails button[aria-pressed=true] img{filter:grayscale(0)}.scene-thumbnails button[aria-pressed=true]:after{content:"";position:absolute;inset:0 0 24px;border:3px solid var(--red);pointer-events:none}.scene-thumbnails span{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px 0}
.class-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--ink)}.class-tabs button{position:relative;border:0;border-right:1px solid var(--ink);background:transparent;font:900 clamp(17px,1.45vw,26px) Georgia,serif;min-height:49px}.class-tabs button:last-child{border-right:0}.class-tabs button[aria-selected=true]{background:var(--ink);color:#fff}.class-tabs button[aria-selected=true]:before{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--red)}
.class-note{margin-top:20px;min-height:130px;padding:20px 23px;border-left:3px solid var(--red);background:#e9e8e2}.class-note small{display:block;color:#777;font-size:11px;letter-spacing:.04em;margin-bottom:5px}.class-note h4{font-size:22px;margin:0 0 8px}.class-note p{font-size:13px;line-height:1.8;margin:0;color:#494843}.uncertain-note{font-size:11px;color:#86847d;line-height:1.8;margin-top:24px}

/* six houses / seals are a vertical index, the portrait is the focal point */
.houses-view{display:grid;grid-template-columns:52% 48%;background:var(--paper)}
.house-background{position:absolute;pointer-events:none;inset:20% 40% 0 -17%;background:url("assets/ink-ring.svg") center/contain no-repeat;opacity:.09}
.house-left{position:relative;z-index:2;padding:calc(var(--header) + 40px) clamp(32px,5vw,92px) 70px clamp(30px,5vw,90px)}.house-left .view-head{margin-bottom:18px}.house-left .intro-copy{max-width:640px;margin:0 0 29px}
.house-seals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--ink);border-left:1px solid var(--ink);margin:10px 0 30px}
.house-seals button{min-width:0;padding:18px 10px 15px;border:0;border-bottom:1px solid var(--ink);border-right:1px solid var(--ink);text-align:center;background:transparent;color:var(--ink);position:relative;transition:background .25s}
.house-seals button:hover{background:#e2e1db}.house-seals button[aria-pressed=true]{background:var(--ink);color:white}.house-seals button[aria-pressed=true]:after{content:"";position:absolute;left:9px;right:9px;bottom:5px;height:2px;background:var(--red)}
.house-seals b{display:block;margin:0 auto 5px;width:43px;height:43px;border:2px solid currentColor;border-radius:3px;line-height:39px;font:900 27px/39px "Yu Mincho",serif;transform:rotate(-4deg)}.house-seals span{display:block;font-size:13px;font-weight:800}.house-seals small{display:block;font:700 9px Georgia,serif;letter-spacing:.07em;opacity:.58;margin-top:4px}
.house-record{display:flex;gap:25px;align-items:flex-start;padding-top:25px;border-top:3px solid var(--ink)}.record-stamp{flex:none;color:var(--red);border:4px double var(--red);width:76px;height:76px;display:grid;place-items:center;font:900 47px "Yu Mincho",serif;transform:rotate(-7deg)}.house-record small{font:700 11px Georgia,serif;letter-spacing:.25em;color:var(--red)}.house-record h3{font-size:clamp(30px,3vw,48px);letter-spacing:-.09em;margin:4px 0 5px}.house-record strong{font-size:14px}.house-record p{margin:12px 0 15px;line-height:1.85;color:#45443e;font-size:14px}.record-link{font-size:12px;color:#78766e;border-left:2px solid var(--red);padding-left:12px}
.house-right{position:relative;overflow:hidden;background:#141414}.house-right:before{content:"";position:absolute;z-index:5;top:-14%;left:-38%;width:84%;height:85%;background:url("assets/ink-ring.svg") center/contain no-repeat;opacity:.7;filter:invert(1);pointer-events:none}
.house-portrait-frame{height:100%;position:relative}.house-portrait-frame img{height:100%;width:100%;object-fit:cover;object-position:center 22%;filter:contrast(1.04)}.house-portrait-frame:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0005,transparent 24%,transparent 66%,#050505ef)}.house-portrait-frame span{position:absolute;z-index:6;bottom:9%;left:7%;font-size:clamp(21px,2.8vw,47px);font-weight:950;letter-spacing:-.075em;color:white}.house-edge{position:absolute;z-index:6;top:calc(var(--header) + 36px);right:25px;writing-mode:vertical-rl;color:#fff8;font:800 32px "Yu Mincho",serif;letter-spacing:.3em}

/* illustrated character register: full portrait, bio and 33 real face thumbnails */
.people-view{display:grid;grid-template-columns:50% 50%;background:var(--paper)}
.people-image{position:relative;overflow:hidden;background:#242424}.people-image>img{height:100%;width:100%;object-fit:cover;object-position:50% 19%;transition:opacity .25s,transform .35s}.people-image-shade{position:absolute;inset:0;background:linear-gradient(180deg,#0006,transparent 23%,transparent 65%,#000a);pointer-events:none}.person-image-mark{position:absolute;top:calc(var(--header) + 45px);left:5%;color:#fffc;font:900 clamp(62px,10vw,175px)/1 Georgia,serif;letter-spacing:-.12em;mix-blend-mode:overlay;pointer-events:none}.person-photo-caption{position:absolute;bottom:8%;left:7%;color:#fff;font:900 17px Georgia,serif;letter-spacing:.19em;text-shadow:0 2px 6px #000c}.person-image-controls{position:absolute;bottom:6%;right:6%;display:flex;gap:2px}.person-image-controls button,.place-pagination button{border:1px solid #fff9;background:#121212bd;color:white;width:55px;height:50px;font-size:26px;transition:background .2s}.person-image-controls button:hover,.place-pagination button:hover{background:var(--red)}
.people-right{padding:calc(var(--header) + 42px) clamp(28px,4.3vw,83px) 55px}.people-register-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:2px solid var(--ink);padding-bottom:14px;color:var(--red);font:800 13px "Yu Mincho",serif;letter-spacing:.1em}.people-register-head span:last-child{color:#817e75;font:700 12px Georgia,serif;letter-spacing:.13em}
.people-right h2{font-size:clamp(36px,4.3vw,76px);font-weight:950;letter-spacing:-.09em;line-height:1.12;margin:25px 0 14px;word-break:keep-all}.people-right h2 small{font:700 12px Georgia,serif;color:var(--red);letter-spacing:.22em;display:block;margin-top:11px}
.person-quote{font-size:clamp(15px,1.5vw,21px);font-weight:750;letter-spacing:-.04em;margin:0 0 25px;padding-left:18px;border-left:4px solid var(--red);line-height:1.6}
.person-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 0;border-top:1px solid #9f9c8f;border-bottom:1px solid #9f9c8f}.person-details>div:last-child{grid-column:1/-1}.person-details small{display:block;color:#777;letter-spacing:.05em;font-size:11px;margin-bottom:5px}.person-details strong{font-size:13px;word-break:keep-all}.person-bio{font-size:14px;line-height:1.95;color:#4f4d45;margin:23px 0 30px;max-width:650px}
.person-searcharea{border-top:3px solid var(--ink);padding-top:12px}.register-caption{display:flex;justify-content:space-between;font-size:14px;align-items:baseline;margin-bottom:13px}.register-caption span{font:800 12px Georgia,serif;color:var(--red);letter-spacing:.06em}.person-searcharea label{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--ink);padding:0 0 4px}.magnifier{font-size:28px;font-family:serif}.person-searcharea input{min-width:0;width:100%;background:transparent;border:0;outline:0;padding:9px 5px;color:var(--ink);font-size:13px}.person-searcharea input:focus-visible{outline:none;border:0}.person-searcharea label:focus-within{border-color:var(--red)}
.people-categories{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 15px}.people-categories button,.place-categories button{border:1px solid #9c998b;background:transparent;color:var(--ink);padding:6px 10px;font-size:11px;white-space:nowrap;transition:background .2s,color .2s}.people-categories button:hover,.people-categories button[aria-pressed=true]{border-color:var(--red);background:var(--red);color:#fff}
.portrait-strip{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:14px;scrollbar-width:thin;scrollbar-color:#aaa transparent}.portrait-strip button{flex:0 0 75px;min-width:0;position:relative;border:0;padding:0;background:transparent;text-align:center;color:var(--ink)}.portrait-strip button img{width:75px;height:95px;object-fit:cover;object-position:center 19%;filter:grayscale(.9);transition:filter .25s,opacity .25s}.portrait-strip button:hover img,.portrait-strip button[aria-pressed=true] img{filter:grayscale(0)}.portrait-strip button[aria-pressed=true] img{outline:3px solid var(--red);outline-offset:-3px}.portrait-strip button small{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.portrait-strip button .num{position:absolute;top:3px;left:3px;color:#fff;background:#131313b9;font:700 9px Georgia,serif;padding:3px;z-index:1}.no-results{font-size:12px;color:var(--muted);padding:15px}

/* place atlas / a panoramic view that the user can actually navigate */
.places-view{background:#0e1010;color:white}.place-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:contrast(1.08) saturate(.82);transition:opacity .23s}.place-ink-gradient{position:absolute;inset:0;background:linear-gradient(90deg,#070707d9,transparent 68%),linear-gradient(0deg,#050505f2 0%,#1119 25%,transparent 64%,#0007 100%);pointer-events:none}
.place-heading{position:absolute;top:calc(var(--header) + 45px);left:5%}.place-heading>span{display:block;color:#ff5470;font:800 16px "Yu Mincho",serif;letter-spacing:.3em;margin-bottom:13px}.place-heading h2{font-size:clamp(32px,4vw,68px);font-weight:950;letter-spacing:-.09em;margin:0;text-shadow:0 3px 12px #0008}
.place-story{position:absolute;bottom:calc(204px + 6%);left:5%;width:min(670px,67%)}.place-counter{font:800 17px Georgia,serif;letter-spacing:.12em;color:#ff5470;margin-bottom:8px}.place-story h3{font-size:clamp(30px,4vw,65px);letter-spacing:-.08em;margin:0 0 12px;text-shadow:0 3px 10px #000a}.place-story p{font-size:clamp(13px,1.2vw,17px);line-height:1.75;max-width:590px;margin:0;text-shadow:0 2px 8px #000}
.place-pagination{position:absolute;right:4%;bottom:calc(204px + 8%);display:flex;gap:2px}.place-pagination button{width:59px;height:54px}
.place-dock{position:absolute;bottom:0;left:0;right:0;background:#151515ef;min-height:207px;padding:17px 4% 17px 5%;border-top:1px solid #ffffff7f;box-shadow:0 -12px 40px #0008}.place-categories{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin-bottom:13px;padding-bottom:1px}.place-categories button{color:#ddd;border-color:#555;background:transparent}.place-categories button:hover,.place-categories button[aria-pressed=true]{background:var(--red);color:white;border-color:var(--red)}
.place-strip{display:flex;gap:12px;overflow-x:auto;padding-bottom:4px;scrollbar-color:#777 #151515;scrollbar-width:thin}.place-strip button{flex:0 0 140px;border:0;background:transparent;color:#fff;padding:0;text-align:left;position:relative}.place-strip button img{width:140px;height:96px;object-fit:cover;filter:grayscale(1) brightness(.7);transition:filter .2s}.place-strip button:hover img,.place-strip button[aria-pressed=true] img{filter:grayscale(0) brightness(1)}.place-strip button[aria-pressed=true]:after{content:"";position:absolute;left:0;right:0;top:0;height:96px;border:3px solid var(--red);pointer-events:none}.place-strip button span{font-size:11px;margin-top:5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.place-strip button .place-thumb-no{position:absolute;top:5px;left:5px;z-index:2;color:white;background:#0009;font:800 10px Georgia,serif;padding:3px}

@media(max-width:1300px){:root{--rail:71px}.topbar{padding-left:24px;padding-right:99px}.home-left{padding-left:30px}.home-rule{left:30px}.home-bottom-line{left:30px}.home-headline{margin-left:8px}.home-ink{width:65vw;left:-52%}.entrance-choices{left:4%;right:4%}.entrance-choices button{padding:12px}.choice-no{left:12px}.home-route-label{left:4%;font-size:24px}.academy-right,.house-left,.people-right{padding-left:32px;padding-right:32px}.house-record{gap:14px}}
@media(max-width:1050px){.home-view{grid-template-columns:44% 56%}.home-headline h1{font-size:clamp(74px,9.3vw,117px)}.home-ink{left:-55%;width:68vw}.home-rule{font-size:10px;letter-spacing:.17em}.home-entry-note{bottom:80px}.home-route-label{bottom:calc(36% + 34px)}.entrance-choices{height:34%;min-height:160px}.entrance-choices strong{font-size:16px}.entrance-choices small{font-size:10px}.academy-view{grid-template-columns:50% 50%}.view-head h2{font-size:39px}.intro-copy{font-size:13px}.houses-view{grid-template-columns:55% 45%}.house-left{padding-top:calc(var(--header) + 32px)}.people-view{grid-template-columns:46% 54%}.people-right h2{font-size:46px}.place-story{bottom:calc(204px + 5%)}}

/* Mobile is its own screen composition, not squeezed desktop cards. */
@media(max-width:780px){:root{--header:58px;--rail:0px}body{height:auto;min-height:100%;overflow-y:auto}.topbar{height:var(--header);padding:0 14px;backdrop-filter:blur(8px)}.topbar-seal{width:31px;height:31px;font-size:19px}.topbar-brand{font-size:15px}.topbar-brand small{font-size:8px}.topbar-trail{margin-left:auto;margin-right:0;gap:7px;font-size:10px}.topbar-trail:before,.topbar-edition{display:none}.topbar-trail b{font-size:11px}.quick-nav{top:auto;bottom:0;left:0;right:0;width:100%;height:69px;flex-direction:row;align-items:stretch;justify-content:stretch;border-top:2px solid var(--red);box-shadow:0 -5px 16px #0003}.quick-nav:before{display:none}.quick-nav button{min-height:0;flex:1;border:0;border-right:1px solid #ffffff20;padding:8px 2px 7px;gap:2px}.quick-nav button:last-child{border:0}.quick-nav button[aria-current="page"]:before{top:0;left:18%;height:3px;width:64%}.nav-kanji{font-size:23px}.quick-nav button span:last-child{font-size:10px}.draft-note{display:none}#screens{width:100%;height:auto;min-height:100svh;overflow:visible}.view{position:relative;inset:auto;height:auto;min-height:calc(100svh - 69px);overflow:visible;padding-bottom:69px;display:block}.page-scroll{overflow:visible;height:auto}.home-view{display:flex;flex-direction:column}.home-left{height:52svh;min-height:360px;padding:calc(var(--header) + 48px) 25px 48px;justify-content:center}.home-rule{top:calc(var(--header) + 19px);left:23px}.home-headline{margin:5px 0 0 19vw}.home-headline h1{font-size:clamp(91px,17.5vw,137px);line-height:.86;margin-bottom:20px}.home-headline p{font-size:13px;line-height:1.65}.home-brush-note{font-size:12px;margin-bottom:10px}.home-ink{height:360px;width:360px;top:52%;left:-111px;opacity:.97}.home-entry-note{left:23px;bottom:34px}.home-entry-note i{font-size:26px}.home-entry-note span{font-size:10px}.home-bottom-line{display:none}.home-right{height:65svh;min-height:420px;flex:none}.home-photo-caption{top:20px;right:18px;font-size:10px}.home-route-label{bottom:calc(43% + 22px);left:5%;font-size:25px}.entrance-choices{bottom:6%;left:4%;right:4%;height:39%;min-height:180px}.entrance-choices button{padding:9px}.choice-no{top:10px;left:9px;font-size:20px}.entrance-choices strong{font-size:14px;word-break:keep-all;white-space:normal;line-height:1.23}.entrance-choices small{font-size:10px;margin-top:5px}.academy-view,.houses-view,.people-view{display:flex;flex-direction:column}.academy-image-panel{height:53svh;min-height:350px;flex:none}.academy-right{padding:43px 24px 100px}.view-head h2{font-size:37px}.academy-right .intro-copy{margin-top:20px}.house-left{padding:calc(var(--header) + 33px) 24px 37px}.house-right{height:65svh;min-height:440px;flex:none}.house-portrait-frame img{object-position:center 18%}.house-edge{top:17px}.people-image{height:62svh;min-height:410px;flex:none}.person-image-mark{top:calc(var(--header) + 23px);font-size:100px}.people-right{padding:40px 24px 105px}.people-right h2{font-size:clamp(38px,8vw,61px)}.person-photo-caption{bottom:6%}.person-image-controls{bottom:5%}.places-view{min-height:calc(100svh - 69px);height:auto;display:flex;flex-direction:column;justify-content:flex-end;padding:calc(var(--header) + 70px) 0 69px}.place-photo{height:100%;position:absolute}.place-ink-gradient{position:absolute}.place-heading{position:relative;top:auto;left:auto;margin:0 22px 12vh;z-index:2}.place-heading h2{font-size:38px}.place-story{position:relative;bottom:auto;left:auto;width:auto;margin:0 24px 35px;z-index:2}.place-story h3{font-size:37px}.place-story p{font-size:13px}.place-pagination{position:absolute;bottom:305px;right:24px;z-index:5}.place-dock{position:relative;bottom:auto;margin-top:20px;z-index:3;min-height:185px;padding:13px 14px 14px}.place-strip button{flex-basis:117px}.place-strip button img{width:117px;height:82px}.place-strip button[aria-pressed=true]:after{height:82px}.place-categories{margin-bottom:11px}.place-categories button{padding:6px 9px;font-size:10px}}
@media(max-width:460px){.home-left{height:50svh;min-height:340px}.home-headline{margin-left:22vw}.home-headline h1{font-size:clamp(76px,19vw,100px)}.home-headline p{font-size:12px}.home-ink{width:310px;height:310px;left:-127px}.home-right{height:67svh;min-height:410px}.entrance-choices{height:42%}.entrance-choices strong{font-size:12px}.entrance-choices small{font-size:9px}.home-route-label{bottom:calc(44% + 26px);font-size:21px}.academy-image-panel{height:43svh;min-height:310px}.scene-thumbnails{gap:5px}.scene-thumbnails span{font-size:9px}.class-note{padding:14px}.class-note h4{font-size:19px}.house-seals button{padding:12px 5px}.house-seals b{width:35px;height:35px;font-size:21px;line-height:31px}.house-seals span{font-size:12px}.house-seals small{font-size:8px}.house-record{gap:13px}.record-stamp{width:49px;height:49px;font-size:28px}.house-record h3{font-size:29px}.people-image{height:57svh;min-height:345px}.people-right h2{font-size:37px}.person-details strong{font-size:12px}.people-categories button{padding:6px 7px;font-size:10px}.portrait-strip button{flex-basis:67px}.portrait-strip button img{width:67px;height:85px}.places-view{padding-top:105px}.place-heading{margin-bottom:14vh}.place-story{margin-bottom:11px}.place-story h3{font-size:30px}.place-pagination{bottom:280px;right:16px}.place-pagination button{width:45px;height:44px}.place-dock{margin-top:66px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Story folio refinements, kept independent of the illustrated indexes. */
@media(max-width:1300px){.story-content{padding-left:clamp(28px,3vw,48px);padding-right:clamp(28px,3vw,48px)}.story-axes>div{grid-template-columns:32px minmax(100px,.9fr) 1.1fr;gap:10px}.story-visual-words h2{font-size:clamp(36px,4vw,60px)}}
@media(max-width:1050px) and (min-width:781px){.story-view{grid-template-columns:42% 58%}.story-content h2{font-size:40px}.story-paragraphs p{font-size:13px}.story-axes small{font-size:11px}.story-visual-words h2{font-size:36px}.home-story-link{margin-top:4px;padding:10px 12px;min-width:182px}}
@media(max-width:780px){.home-left{height:auto;min-height:455px}.home-story-link{margin-top:8px;padding:11px 13px;min-width:175px;font-size:12px}.story-view{display:flex;flex-direction:column}.story-visual{height:55svh;min-height:405px;flex:none}.story-visual-top{top:calc(var(--header) + 20px);left:6%;right:6%}.story-visual-words{left:6%;right:8%;bottom:12%}.story-visual-words h2{font-size:clamp(39px,7.6vw,64px);line-height:1.17}.story-visual-ink{width:80%;left:-22%;top:-17%}.story-content{padding:38px 24px 110px}.story-content h2{font-size:clamp(37px,7.4vw,51px)}.story-paragraphs p{font-size:14px}.story-axes>div{grid-template-columns:36px minmax(98px,.8fr) 1.2fr}.story-next{gap:8px}.story-next>span{flex-basis:100%}}
@media(max-width:460px){.home-left{min-height:430px}.home-story-link{margin-top:2px}.story-visual{height:53svh;min-height:350px}.story-visual-words h2{font-size:36px}.story-visual-words p{font-size:12px}.story-kicker{font-size:12px}.story-content{padding:32px 21px 110px}.story-content h2{font-size:36px}.story-intro{font-size:16px}.story-paragraphs p{font-size:13px}.story-axes>div{grid-template-columns:30px minmax(85px,1fr);gap:7px 10px}.story-axes small{grid-column:2;grid-row:2;font-size:11px}.story-axes span{grid-row:1/3;align-self:center}.story-freedom{padding:22px 20px}.story-next button{flex:1}}

.home-links{display:flex;align-items:center;flex-wrap:wrap;column-gap:15px;row-gap:8px}
.home-trailer-link{color:var(--ink);text-decoration:underline;text-underline-offset:.23em;white-space:nowrap;display:inline-flex;align-items:center;gap:8px;margin:8px 0 0 6px;padding:8px 0;font-size:13px;font-weight:800}
.home-trailer-link span{color:var(--red);font-size:11px}
.home-trailer-link:hover{color:var(--red-deep)}
