.jipa-feature,.jipa-profile-main{--jipa-wine:#952c40;--jipa-paper:#fffbef;--jipa-ink:#20334b;--jipa-rose:#f5c7ad;}
.jipa-feature{margin-block:clamp(2.5rem,7vw,5.5rem);padding:0 0 1rem}
.jipa-eyebrow.label{display:block;margin:0 0 .8rem;letter-spacing:.17em;color:var(--jipa-wine);font-size:.8125rem;font-weight:850}
.jipa-feature-grid,.jipa-profile-hero{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1fr);align-items:center;gap:clamp(.8rem,4vw,3.25rem)}
.jipa-art{position:relative;isolation:isolate;display:grid;place-items:center;min-width:0;aspect-ratio:1.18;background:var(--jipa-rose);border-radius:46% 46% 1rem 1rem;overflow:hidden;}
.jipa-art::before{content:"";position:absolute;z-index:-1;width:66%;aspect-ratio:1;border-radius:50%;background:#ffe0bc;top:11%;left:17%;}
.jipa-art::after{content:"";position:absolute;z-index:-1;width:58%;height:9%;bottom:12%;border-radius:50%;background:#6f34421f}
.jipa-sprite{display:block;width:61%;aspect-ratio:101/105;background-image:url('/media/character-sheet.webp');background-repeat:no-repeat;background-size:1089.109% auto;background-position:14.5145% 19.586%;clip-path:polygon(4% 48%,14% 26%,21% 14%,28% 4%,39% 3%,47% 17%,55% 18%,65% 4%,75% 3%,82% 16%,87% 28%,93% 42%,98% 54%,98% 83%,89% 94%,78% 99%,21% 99%,11% 91%,5% 79%,2% 67%);}
.jipa-spark{position:absolute;color:#9d384c;font-size:clamp(.9rem,3vw,2rem);line-height:1}.jipa-spark-a{left:10%;top:31%}.jipa-spark-b{right:11%;top:19%}
.jipa-feature-copy{padding:clamp(1.1rem,4vw,3rem);border:1px solid #ead6bf;border-radius:1rem;background:var(--jipa-paper);color:var(--jipa-ink);}
.jipa-feature-copy h3,.jipa-profile-intro h1{margin:0;color:var(--jipa-wine);font-size:clamp(2rem,6vw,4.75rem);line-height:.99;letter-spacing:-.045em;font-weight:900;}
.jipa-feature-copy h3 span,.jipa-profile-intro h1 span{display:block;margin-top:.55em;font-size:.42em;letter-spacing:.025em;color:var(--jipa-ink);}
.jipa-feature-copy p,.jipa-profile-main p:not(.label){font-size:1rem;line-height:1.8;margin:1rem 0 1.2rem;color:var(--jipa-ink);}
.jipa-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;border-radius:999px;padding:.55rem 1.05rem;text-align:center;font-size:.875rem;font-weight:850;line-height:1.25;color:#fff9ec;background:var(--jipa-wine);text-decoration:none;border:1px solid var(--jipa-wine);}
.jipa-button:hover{color:white;background:#6e1f31}.jipa-button:focus-visible,.jipa-return:focus-visible{outline:2px solid var(--jipa-ink);outline-offset:4px;}
.jipa-profile-main{padding-block:1.8rem clamp(3rem,7vw,6rem)}
.jipa-return{display:inline-block;color:var(--jipa-wine);font-weight:750;margin-bottom:1.5rem;text-underline-offset:.2em}
.jipa-profile-hero{background:var(--jipa-paper);border:1px solid #ead6bf;border-radius:1.25rem;padding:clamp(.9rem,4vw,2.5rem);}
.jipa-profile-intro h1{font-size:clamp(2.6rem,8vw,6rem)}
.jipa-profile-intro p:last-child,.jipa-real p:last-child{margin-bottom:0}
.jipa-real{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1fr);gap:clamp(1rem,5vw,4rem);align-items:center;margin-block:clamp(2rem,7vw,5.5rem)}
.jipa-real figure{margin:0;border-radius:1rem;overflow:hidden;background:var(--jipa-rose)}
.jipa-real img{display:block;width:100%;height:auto;}
.jipa-real h2,.jipa-watch h2{color:var(--jipa-ink);line-height:1.2;margin:0;font-size:clamp(1.55rem,4vw,2.55rem)}
.jipa-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:1.2rem 0 0}
.jipa-facts div{border-top:1px solid #cba999;padding-top:.65rem;overflow-wrap:anywhere}
.jipa-facts dt{color:var(--jipa-wine);font-size:.875rem;font-weight:800}
.jipa-facts dd{color:var(--jipa-ink);margin:.22rem 0 0;font-weight:750}
.jipa-watch{text-align:center;border-top:1px solid #dcc8b4;padding-top:2rem}
.jipa-watch div{display:flex;justify-content:center;gap:.65rem;flex-wrap:wrap;margin-top:1.15rem}
.jipa-button-secondary{background:transparent;color:var(--jipa-wine)}
@media(max-width:600px){.jipa-feature-grid{grid-template-columns:minmax(0,.72fr) minmax(0,1.12fr);gap:.55rem}.jipa-feature-copy{padding:.85rem}.jipa-feature-copy p{font-size:.9375rem;margin:.65rem 0 .8rem}.jipa-feature-copy h3{font-size:clamp(1.75rem,8vw,2.6rem)}.jipa-feature .jipa-art{aspect-ratio:.84}.jipa-feature .jipa-sprite{width:85%}.jipa-profile-hero,.jipa-real{grid-template-columns:minmax(0,1fr)}.jipa-profile-hero .jipa-art{max-width:340px;width:100%;margin-inline:auto}.jipa-real figure{max-width:450px}}
/* Homepage only: let the princess silhouette fill the space without a frame. */
.jipa-feature .jipa-feature-grid{grid-template-columns:minmax(0,1.16fr) minmax(0,1fr)}
.jipa-princess-art{display:grid;place-items:center;min-width:0}
.jipa-princess-art img{display:block;width:100%;max-width:34rem;height:auto;object-fit:contain}
@media(max-width:600px){
 .jipa-feature .jipa-feature-grid{grid-template-columns:minmax(0,1fr);gap:.85rem}
 .jipa-princess-art img{width:min(74%,16rem)}
}

/* Dedicated character profile */
.jipa-profile-story .jipa-profile-intro{min-width:0}
.jipa-profile-story .jipa-profile-intro h1{font-size:clamp(1.85rem,3.5vw,3rem);line-height:1.13;letter-spacing:-.035em}
.jipa-profile-story .jipa-profile-intro .jipa-profile-tagline{color:var(--jipa-wine);margin:.85rem 0 0}
.jipa-origin{margin:0 0 clamp(2rem,7vw,5rem);padding:clamp(1.1rem,4vw,2.5rem);background:var(--jipa-paper);border:1px solid #ead6bf;border-radius:1rem}
.jipa-origin h2{margin:0;color:var(--jipa-ink);font-size:clamp(1.55rem,4vw,2.55rem);line-height:1.2}
.jipa-profile-story .jipa-origin p:last-child{max-width:42em;margin-bottom:0}

/* Profile reading order is independent of the homepage feature. */
.jipa-profile-story .jipa-profile-hero{grid-template-columns:minmax(0,1.35fr) minmax(0,.8fr);grid-template-areas:"identity art" "lede art";align-items:start;gap:.2rem clamp(1.25rem,5vw,4rem);padding:clamp(1rem,4vw,3rem)}
.jipa-profile-story .jipa-profile-intro{grid-area:identity;align-self:end}
.jipa-profile-story .jipa-profile-lede{grid-area:lede;max-width:34em;min-width:0}
.jipa-profile-story .jipa-profile-lede p{margin-top:.75rem;margin-bottom:0;line-height:1.9}
.jipa-model-portrait{grid-area:art;align-self:center;justify-self:center;width:min(100%,17rem);margin:0;background:#faf3e6;border-radius:1rem;overflow:hidden}
.jipa-model-portrait img{display:block;width:100%;height:auto}
.jipa-real-heading{grid-area:real-heading;align-self:end}
.jipa-real-copy{grid-area:real-copy;min-width:0;max-width:39em}
.jipa-profile-story .jipa-real-copy p{line-height:1.9}
.jipa-profile-story .jipa-real-copy p:first-child{margin-top:.35rem}
@media(max-width:600px){
 .jipa-profile-story .jipa-profile-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"identity" "art" "lede";gap:.85rem}
 .jipa-model-portrait{width:min(60%,12rem)}
 .jipa-profile-story .jipa-facts dd{font-size:.92rem}
}

.jipa-profile-story .jipa-profile-intro h1 b{display:inline-block;font-weight:inherit;white-space:nowrap}
.jipa-studio-view{margin:1.15rem 0 1.25rem;overflow:hidden;border-radius:.65rem;background:#e6d4b8}
.jipa-studio-view img{display:block;width:100%;height:auto;aspect-ratio:1.85;object-fit:cover;object-position:center 54%}
@media(max-width:600px){.jipa-studio-view img{aspect-ratio:3/2}}

/* Side-by-side stills: the resting pose links life and animation. */
.jipa-profile-story .jipa-real{
 grid-template-columns:minmax(0,1fr);grid-template-areas:"real-heading" "pair" "real-copy";align-items:start;gap:clamp(1.15rem,3vw,2rem);
}
.jipa-resting-pair{
 grid-area:pair;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:clamp(3px,.65vw,8px);overflow:hidden;border-radius:clamp(.5rem,1.5vw,1rem);
}
.jipa-resting-pair figure{min-width:0;width:100%;max-width:none;border-radius:0;background:#e9dfcb}
.jipa-resting-pair img{aspect-ratio:16/9;object-fit:cover}
@media(max-width:600px){
 .jipa-resting-pair img{aspect-ratio:5/4}
 .jipa-resting-pair figure:first-child img{object-position:60% center}
 .jipa-resting-pair figure:last-child img{object-position:37% center}
}

.jipa-feature .jipa-heading-wordmark{display:inline-block;font-size:1em;vertical-align:baseline;white-space:nowrap;margin-right:.15em}
.jipa-feature .jipa-heading-suffix{display:inline-block;white-space:nowrap}

/* Name story on the character introduction, not on the homepage. */
.jipa-name-origin{margin-block:clamp(1.6rem,5vw,3rem);scroll-margin-top:7rem}
.jipa-profile-story .jipa-name-origin p:not(.label){max-width:43em}
.jipa-name-link{display:inline-block;color:var(--jipa-wine);font-weight:750;text-underline-offset:.2em}
.jipa-name-link:focus-visible{outline:2px solid var(--jipa-ink);outline-offset:4px}

.jipa-page-end{text-align:center;margin-block:clamp(1.5rem,4vw,2.5rem) 2rem}
