/* R7: approved final refinements, scoped over the preserved R6. */
.r4-handwritten-statement{--ink-scale:.42}
.r5-handwritten-zh{--zh-scale:.72}
@keyframes r7-horizontal-reveal{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
@supports(clip-path:inset(0 100% 0 0)){.r7-reveal-playing{animation:r7-horizontal-reveal 1s ease-out .15s 1 both}}
@media(prefers-reduced-motion:reduce){.r7-reveal-playing{animation:none!important;clip-path:none!important}}
/* HOME keeps comfortable type; ENTER has its own clear interval. */
html body[data-type-b].home-page #in-focus{grid-template-columns:minmax(0,45fr) minmax(0,55fr)}
html body[data-type-b].home-page #in-focus .in-focus-enter{padding-top:36px;margin-top:auto}
/* A real full-text scroll region, with heading and article navigation outside. */
html body[data-type-b] main.material-article .r7-reading-window{height:clamp(400px,68vh,760px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#c7c7c7 transparent;scroll-behavior:auto;scroll-padding-block:16px;padding-right:18px;box-sizing:border-box;overscroll-behavior-y:auto;background:#fff;border:0;border-radius:0;box-shadow:none;outline:none}
html body[data-type-b] main.material-article .r7-reading-window::-webkit-scrollbar{width:5px}
html body[data-type-b] main.material-article .r7-reading-window::-webkit-scrollbar-thumb{background:#c7c7c7;border-radius:0}
html body[data-type-b] main.material-article .r7-reading-window:focus-visible{outline:1px solid var(--accent);outline-offset:6px}
html body[data-type-b] main.material-article .article-heading{margin-bottom:32px}
html body[data-type-b] main.material-article:not(.r4-split-focus) .article-return{margin-top:32px;padding-top:20px}
/* The natural photograph determines the total title + reading-window height. */
html body[data-type-b] main.r4-split-focus{max-width:1540px}
html body[data-type-b] main.r4-split-focus>article.r4-focus-grid{grid-template-columns:minmax(0,48fr) minmax(0,52fr);gap:24px 56px;grid-template-rows:auto auto auto}
html body[data-type-b] .r4-focus-heading{margin:0!important}
html body[data-type-b] .r4-focus-heading .material-article-title{font-size:35.1px!important;margin:12px 0 18px}
html body[data-type-b] .r4-focus-heading .focus-subtitle{font-size:22.5px!important;line-height:1.4!important;margin:0 0 16px}
html body[data-type-b] main.r4-split-focus .r4-focus-metadata{margin:0;gap:4px 16px}
html body[data-type-b] main.r4-split-focus .r7-reading-window{height:var(--focus-window-height,220px)}
html body[data-type-b] main.r4-split-focus .r4-focus-photo{grid-row:1/3;grid-column:2;align-self:start;position:static;margin:0}
html body[data-type-b] main.r4-split-focus .r4-focus-reader{grid-row:2;grid-column:1}
html body[data-type-b] main.r4-split-focus .article-return{grid-row:3;margin-top:24px;padding-top:20px}
/* Frames are unchanged, and the approved photos now fill them proportionally. */
html body[data-type-b][data-projects-index] .project-cover{overflow:hidden}
html body[data-type-b][data-projects-index] .project-cover img{object-fit:cover;object-position:center}
html body[data-type-b][data-projects-index] #\32 023-io .project-cover img{object-position:50% 62%}
/* A single return component applies to all current and future detail pages. */
html body[data-type-b] .detail-back,html body[data-type-b] .project-return{display:flex!important;justify-content:center;align-items:center;gap:0;width:100%;text-align:center;margin:56px 0 0;padding:0;float:none;grid-column:1/-1}
html body[data-type-b] .detail-back a,html body[data-type-b] .project-return a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
/* CONTACT B: approved text at left, underline form at right. */
html body[data-type-b][data-contact-page] main.standalone{display:block;flex:1;padding:56px 0 72px;align-items:start}
html body[data-type-b][data-contact-page] #contact.r7-contact-grid{display:grid;grid-template-columns:minmax(0,43fr) minmax(0,57fr);gap:72px;padding:0;align-items:start}
html body[data-type-b][data-contact-page] .contact-editorial{margin:40px 0 0;max-width:none}
html body[data-type-b][data-contact-page] .contact-introduction{max-width:480px}
html body[data-type-b][data-contact-page] .contact-email{margin-top:48px}
.r7-contact-form{min-width:0;margin:0;padding:0;font-family:var(--brand-text);font-synthesis:none}
.r7-contact-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.r7-field{display:flex;flex-direction:column;min-width:0;margin-bottom:34px}
.r7-field label{display:block;font-size:18.9px;line-height:1.5;margin-bottom:10px;color:var(--ink)}
.r7-field :is(input,textarea){width:100%;min-width:0;min-height:50px;box-sizing:border-box;margin:0;padding:8px 0 12px;border:0;border-bottom:1px solid #b9b9b9;border-radius:0;background:transparent;box-shadow:none;color:var(--ink);font-family:var(--brand-text);font-size:24.3px;line-height:1.6;letter-spacing:0;appearance:none}
.r7-field textarea{min-height:210px;resize:vertical;max-height:60vh}
.r7-field :is(input,textarea):focus{border-bottom-color:#252525;outline:none}
.r7-field :is(input,textarea):focus-visible{outline:0;border-bottom:2px solid var(--accent)}
.r7-field [aria-invalid=true]{border-bottom-color:#973e32}
.r7-field-error{font-size:16px;line-height:1.5;color:#973e32;min-height:0;margin-top:8px}
.r7-field-error:empty{display:none}
html body[data-type-b] main .r7-contact-form :is(.r7-delivery-note,.r7-form-status){font-size:17px!important;line-height:1.6!important;margin:0 0 16px;color:#666}
html body[data-type-b] main .r7-form-status[data-state=invalid],html body[data-type-b] main .r7-form-status[data-state=failed]{color:#973e32}
.r7-form-actions{display:flex;justify-content:flex-end;margin-top:24px}
.r7-form-actions button:disabled{opacity:.55;cursor:wait}
.r7-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
@media(min-width:1101px) and (max-width:1360px){
 html body[data-type-b].home-page #in-focus{grid-template-columns:minmax(0,43fr) minmax(0,57fr);gap:28px 40px}
 html body[data-type-b].home-page #in-focus .in-focus-enter{padding-top:36px}
 html body[data-type-b] main.r4-split-focus>article.r4-focus-grid{grid-template-columns:minmax(0,44fr) minmax(0,56fr);column-gap:48px}
 html body[data-type-b] .r4-focus-heading .material-article-title{font-size:32.4px!important}
}
@media(min-width:1600px){html body[data-type-b] main.r4-split-focus>article.r4-focus-grid{grid-template-columns:minmax(0,52fr) minmax(0,48fr)}}
@media(max-width:1100px){
 .r4-handwritten-statement{--ink-scale:.40}
 html body[data-type-b].home-page #in-focus{grid-template-columns:minmax(0,1fr)}
 html body[data-type-b].home-page #in-focus .in-focus-enter{margin-top:0;padding-top:36px}
 html body[data-type-b] main.r4-split-focus>article.r4-focus-grid{grid-template-columns:minmax(0,1fr);gap:0;max-width:760px}
 html body[data-type-b] main.r4-split-focus .r4-focus-heading{grid-row:1;margin-bottom:32px!important}
 html body[data-type-b] main.r4-split-focus .r4-focus-photo{grid-column:1;grid-row:2;margin:0 0 32px;width:min(100%,680px)}
 html body[data-type-b] main.r4-split-focus .r4-focus-reader{grid-column:1;grid-row:3}
 html body[data-type-b] main.r4-split-focus .r7-reading-window{height:auto;overflow:visible;padding-right:0}
 html body[data-type-b] main.r4-split-focus .article-return{grid-column:1;grid-row:4;margin-top:40px}
 html body[data-type-b][data-contact-page] #contact.r7-contact-grid{grid-template-columns:minmax(0,1fr);gap:56px;max-width:760px}
}
@media(max-width:700px){
 .r4-handwritten-statement{--ink-scale:.36}
 .r5-handwritten-zh{--zh-scale:.64}
 html body[data-type-b] main.material-article .r7-reading-window{height:auto;max-height:none;overflow:visible;padding-right:0;outline:none}
 html body[data-type-b] main.material-article .article-heading{margin-bottom:32px}
 html body[data-type-b] .detail-back,html body[data-type-b] .project-return{margin-top:48px}
 .r7-contact-fields{grid-template-columns:minmax(0,1fr);gap:0}
 .r7-field{margin-bottom:30px}
 .r7-field :is(input,textarea){font-size:21.6px}
 .r7-field textarea{min-height:200px}
 html body[data-type-b][data-contact-page] main.standalone{padding-top:40px}
 html body[data-type-b][data-contact-page] .contact-editorial{margin-top:32px}
}
@media print{html body[data-type-b] main.material-article .r7-reading-window{height:auto!important;overflow:visible!important}}
@media(min-width:1101px) and (max-width:1360px){html body[data-type-b].home-page #in-focus{grid-template-columns:minmax(0,44fr) minmax(0,56fr);column-gap:24px}}
html body[data-type-b].home-page #in-focus{max-width:1328px}

html body[data-type-b] main:has(>.project-return){row-gap:0}
html body[data-type-b] .project-return a{font-family:var(--brand-text)!important;font-size:var(--b-ui)!important;font-weight:400!important;line-height:1.6!important;letter-spacing:0!important;color:var(--ink);text-decoration:none}
html body[data-type-b] .project-return a:hover{color:var(--accent)}
