/* Interior pages share the material and motion system, with distinct reading surfaces. */
.p-hero { position: relative; isolation: isolate; overflow: clip; background: var(--warm-white); min-height: 570px; }
.p-hero-inner { position: relative; z-index: 2; padding-block: 40px 88px; }
.p-hero .r-breadcrumb { margin-bottom: 64px; }
.p-hero-copy { max-width: 720px; }
.p-hero-copy .r-eyebrow { font-size: 12px; color: var(--primary-hover); margin-bottom: 24px; }
.p-hero-copy h1 { font-size: clamp(36px,4.5vw,64px); line-height: 1.35; letter-spacing: -.033em; }
.p-title-line { display: block; overflow: hidden; padding-bottom: .03em; }
.p-title-line>span { display: block; animation: p-title-in .9s cubic-bezier(.16,1,.3,1) both; }
.p-title-line:nth-child(2)>span { animation-delay: .1s; }.p-title-line:nth-child(3)>span { animation-delay: .2s; }
.p-hero .r-lead { margin: 24px 0 0; max-width: 650px; font-size: 16px; line-height: 1.9; }
.p-hero-word { position: absolute; top: 80px; left: 46%; white-space: nowrap; font-size: clamp(80px,12vw,176px); font-weight: 700; letter-spacing: -.07em; color: rgba(0,0,0,.035); pointer-events: none; }
.p-hero-material { position: absolute; left: 47%; top: 8%; bottom: -12%; width: 72%; mix-blend-mode: multiply; pointer-events: none; mask-image: linear-gradient(90deg,transparent,#000 30%); transform: translateY(var(--page-art-y,0px)); }
.p-hero-material .r-brand-art { height: 100%; mask-image: radial-gradient(ellipse 63% 64% at 50% 52%,#000 30%,transparent 77%); }
.p-hero-material img { width: 100%; height: 100%; object-fit: contain; animation: p-art-in 1.2s cubic-bezier(.16,1,.3,1) both; }
.p-hero-baseline { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; align-items: center; gap: 24px; color: var(--muted-color); font-size: 12px; }
.p-hero-baseline i { height: 1px; flex: 1; background: var(--border-color); transform-origin: left; animation: p-rule-in 1.4s both; }
.p-hero-compact { min-height: 480px; }
.p-hero-compact .p-hero-inner { padding-bottom: 64px; }
.p-hero-compact .r-breadcrumb { margin-bottom: 40px; }
.p-row-entered { animation: p-row-in .75s cubic-bezier(.16,1,.3,1) both; }
.p-art-entered { animation: p-art-reveal 1.05s cubic-bezier(.16,1,.3,1) both; }
.p-rule-entered { animation: p-rule-in .8s cubic-bezier(.16,1,.3,1) both; transform-origin: left; }
@keyframes p-title-in { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes p-art-in { from { opacity: 0; transform: scale(1.08) translateX(4%); } to { opacity: 1; transform: scale(1) translateX(0); } }
@keyframes p-row-in { from { opacity: .2; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes p-art-reveal { from { clip-path: inset(12% 0 60% 0); } to { clip-path: inset(0); } }
@keyframes p-rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media(max-width:768px) {
 .p-hero { min-height: 670px; }.p-hero-inner { padding-top: 24px; padding-bottom: 280px; }.p-hero .r-breadcrumb { margin-bottom: 40px; }
 .p-hero-copy h1 { font-size: clamp(28px,6.8vw,40px); }.p-hero .r-lead { font-size: 16px; }
 .p-hero-material { top: auto; height: 300px; bottom: 10px; left: 15%; width: 100%; mask-image: linear-gradient(0deg,transparent,#000 25%,#000 75%,transparent); }
 .p-hero-word { top: auto; bottom: 180px; left: 0; font-size: 90px; }.p-hero-baseline { gap: 12px; font-size: 12px; bottom: 20px; }
 .p-hero-compact { min-height: 600px; }.p-hero-compact .p-hero-inner { padding-bottom: 250px; }.p-hero-compact .p-hero-material { height: 250px; }
}
.site-motion.motion-paused *, .site-motion.motion-paused *:before, .site-motion.motion-paused *:after { animation: none!important; transition: none!important; }
@media(prefers-reduced-motion:reduce) { .site-motion *, .site-motion *:before, .site-motion *:after { animation: none!important; transition: none!important; }.p-hero-material { transform: none; } }
.p-motion-settings { width: min(1200px,calc(100% - 40px)); margin: 24px auto 0; text-align: right; }
.p-motion-control { padding: 10px 14px; min-height: 44px; border: 1px solid var(--border-color); border-radius: 4px; background: transparent; font: inherit; font-size: 12px; color: var(--muted-color); cursor: pointer; }
.p-motion-control[hidden] { display: none; }.p-motion-control:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 3px; }
.p-motion-control:disabled { cursor: default; }
.renew .p-challenges { margin-top: 72px; background: #fff; padding: 0; border-radius: 0; }
.renew .p-challenges ul { border-top: 1px solid var(--border-color); padding-top: 24px; }
.p-deliverables { position: relative; }
.renew .p-deliverables li { position: relative; padding: 48px 0 48px 32px; border-top: 0; border-left: 1px solid var(--border-color); }
.p-deliverables li:after { content: ''; width: 7px; height: 7px; background: var(--primary-color); border-radius: 50%; position: absolute; left: -4px; top: 62px; }
.renew .p-deliverables .r-output { background: transparent; border-radius: 0; border-top: 1px solid var(--border-color); padding: 24px 0 0; }
.renew .p-deliverables li:before { font-size: 40px; font-weight: 500; color: var(--muted-light); }
.renew .p-deliverables li.p-row-entered:before { color: var(--primary-color); transition: color .6s; }
.p-experience { list-style: none; }
.p-experience li { display: grid; grid-template-columns: 80px 1fr 180px; gap: 40px; align-items: center; border-top: 1px solid var(--border-color); padding: 40px 0; }
.p-experience-num { font-size: 48px; letter-spacing: -.04em; color: var(--primary-color); font-weight: 500; }
.p-experience h3 { font-size: 26px; letter-spacing: -.025em; margin-bottom: 16px; }.p-experience div>p:last-child { color: var(--muted-color); line-height: 1.9; }
.p-experience-end { font-size: 12px; color: var(--muted-color); text-align: right; }
.p-founder .r-founder-photo { border-radius: 0; position: relative; background: var(--warm-white); border-bottom: 3px solid var(--primary-color); }
.p-founder .r-founder-photo:after { content: 'MANAGEWORKS / FOUNDER'; position: absolute; bottom: 16px; left: 16px; font-size: 12px; color: var(--warm-dark); background: rgba(255,255,255,.9); padding: 8px 12px; }
.renew .p-contact { margin-top: 72px; max-width: 960px; }
.renew .p-contact .contact-form-wrapper { background: #fff; border-radius: 0; border: 0; border-top: 1px solid var(--border-color); padding-inline: 0; }
.p-news-list { padding-block: 64px 96px; }
.p-news-row { display: grid; grid-template-columns: 120px 1fr 40px; gap: 32px; padding: 36px 0; border-top: 1px solid var(--border-color); color: var(--text-color); text-decoration: none; }
.p-news-row time { font-size: 14px; color: var(--muted-color); padding-top: 4px; font-variant-numeric: tabular-nums; }
.p-news-category { font-size: 12px; color: var(--primary-hover); }.p-news-row h2 { font-size: 22px; line-height: 1.6; letter-spacing: -.02em; margin-top: 10px; }
.p-news-row p { color: var(--muted-color); line-height: 1.8; font-size: 16px; margin-top: 12px; }.p-news-arrow { color: var(--primary-color); font-size: 26px; transition: transform .3s; }
.p-news-row:hover .p-news-arrow { transform: translate(4px,-4px); }.p-news-row:hover h2 { text-decoration: underline; text-underline-offset: 5px; }
.p-news-empty { padding: 32px 0; border-top: 1px solid var(--border-color); color: var(--muted-color); }
.site-motion .page-hero:not(.p-hero) { position: relative; }
.site-motion .page-hero:not(.p-hero):after { content: ''; display: block; width: 64px; height: 1px; background: var(--primary-color); margin-top: 32px; transform-origin: left; animation: p-rule-in 1.1s both; }
.site-motion .news-detail { border-radius: 0; box-shadow: none; }
.site-motion .privacy-policy-card { box-shadow: none; }
@media(max-width:768px) {
 .renew .p-challenges { margin-top: 40px; }.renew .p-deliverables li { padding: 32px 0 32px 20px; gap: 16px; }.p-deliverables li:after { top: 42px; }.renew .p-deliverables li:before { font-size: 24px; }
 .p-experience li { grid-template-columns: 40px 1fr; gap: 20px; padding: 32px 0; }.p-experience-num { font-size: 28px; align-self: start; }.p-experience-end { grid-column: 2; text-align: left; }.p-experience h3 { font-size: 22px; }
 .renew .p-contact { margin-top: 40px; }.p-news-list { padding-block: 40px 64px; }.p-news-row { grid-template-columns: 1fr 24px; gap: 12px; padding: 28px 0; }.p-news-row time { grid-column: 1/-1; }.p-news-row h2 { font-size: 20px; }
}
.site-motion .p-utility-hero { position: relative; isolation: isolate; overflow: clip; padding-right: min(28%,320px); }
.p-utility-material { position: absolute; pointer-events: none; top: 0; right: -40px; width: 360px; height: 300px; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse 63% 63% at 50% 50%,#000 25%,transparent 78%); z-index: -1; }
.p-utility-material .r-brand-art,.p-utility-material img { width: 100%; height: 100%; object-fit: contain; }
.site-motion .p-utility-hero>.visual-intro-grid { width: calc(100% + min(28%,320px)); }
.site-motion .visual-intro-grid figure { border-radius: 0; box-shadow: none; mix-blend-mode: multiply; }
.site-motion .p-reading-hero { isolation: isolate; overflow: clip; }
.p-reading-mark { position: absolute; top: 0; right: 0; font-size: clamp(80px,12vw,160px); letter-spacing: -.06em; line-height: 1; font-weight: 700; color: rgba(0,0,0,.035); pointer-events: none; z-index: -1; }
.site-motion .page-hero h1 { animation: p-row-in .8s cubic-bezier(.16,1,.3,1) both; }
.site-motion .prompt-seo-list li { transition: border-color .2s, transform .2s; }
.site-motion .prompt-seo-list li:hover { border-color: var(--primary-color); transform: translateY(-2px); }
.site-motion .usecase-card { transition: box-shadow .25s, border-color .25s; }
.site-motion .usecase-card:hover { border-color: var(--primary-color); box-shadow: var(--shadow); }
.site-motion .p-training-step { position: relative; }
.site-motion .p-training-step.p-row-entered:before { animation: p-rule-in .8s both; }
.p-training-hero-copy h1>span { display: block; animation: p-row-in .9s cubic-bezier(.16,1,.3,1) both; }
.p-training-hero-copy h1>span:nth-child(2) { animation-delay: .12s; }.p-training-hero-copy h1>span:nth-child(3) { animation-delay: .24s; }
.p-thanks-scene { position: relative; isolation: isolate; overflow: clip; }.p-thanks-scene>.p-utility-material { right: -100px; top: 0; width: 500px; height: 500px; opacity: .6; }
.site-motion .p-thanks-scene .thanks-card { background: rgba(255,255,255,.85); box-shadow: none; border-radius: 0; }
.site-motion .thanks-icon { animation: p-art-reveal .9s cubic-bezier(.16,1,.3,1) both; }
@media(max-width:768px) {
 .site-motion .p-utility-hero { padding-right: 0; padding-bottom: 160px; }.p-utility-material { top: auto; bottom: 0; right: -24px; height: 190px; width: 250px; }.site-motion .p-utility-hero>.visual-intro-grid { width: 100%; }
 .site-motion .p-utility-hero:has(.visual-intro-grid) { padding-bottom: 0; }.p-utility-hero:has(.visual-intro-grid)>.p-utility-material { display: none; }
 .p-reading-mark { top: 16px; font-size: 72px; }.p-thanks-scene>.p-utility-material { width: 300px; height: 300px; right: -60px; }
}
/* Legacy sections stay readable before observers run, and when motion is paused. */
.site-motion .anim-fade-in-up, .site-motion .anim-fade-in-down { opacity: 1; transform: none; }
.site-motion.motion-paused .anim-fade-in { opacity: 1; transform: none; }
