/* Scoped art direction: the V0.1 routes retain their existing styles. */
body.homepage{--paper:#F5F3EF;--ink:#242725;--muted:#858984;--line:#D1D2CC;--accent:#7F9E98;background:var(--paper)}
.homepage #app{max-width:1440px;--gutter:clamp(24px,5vw,72px)}
.homepage main{animation:none}
.hero-navigation{height:89px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:32px}
.hero-identity{font:16px/1.45 Arial,'Microsoft YaHei',sans-serif;letter-spacing:.04em}
.hero-identity span{display:block;font-size:11px;color:var(--muted);letter-spacing:.04em;margin-top:3px}
.hero-navigation nav{display:flex;gap:58px;align-items:center}
.hero-navigation nav a{font-size:13px;color:var(--muted);position:relative;padding:12px 0;min-height:44px}
.hero-navigation nav a:hover,.hero-navigation nav a[aria-current]{color:var(--ink)}
.hero-navigation nav a[aria-current]:after{content:'';position:absolute;bottom:7px;left:0;width:31px;height:1px;background:var(--accent)}
.homepage-hero{min-height:calc(100svh - 89px);display:flex;flex-direction:column}
.hero-composition{display:grid;grid-template-columns:7fr 5fr;column-gap:24px;padding-top:75px;padding-bottom:50px;flex:1;align-items:start}
.hero-copy{min-width:0}
.hero-index{font:11px/1.3 Arial,sans-serif;letter-spacing:1.35px;color:var(--muted)}
.hero-title{font-family:'Helvetica Neue',Arial,sans-serif;font-size:clamp(78px,8.06vw,116px);font-weight:700;letter-spacing:-.0414em;line-height:.966; margin:30px 0 0 -5px}
.hero-title>span{display:block;width:max-content;max-width:100%}
.hero-title>span:nth-child(2){margin-left:clamp(48px,7.64vw,110px)}
.hero-description{margin:66px 0 0 clamp(48px,7.64vw,110px);font:24px/1.67 SimSun,'Songti SC','Source Han Serif SC',serif;letter-spacing:.5px}
.open-frame{margin:0;max-width:430px;width:100%;min-width:0;justify-self:start;visibility:hidden}
.open-frame.frame-ready{visibility:visible}
.frame-decoration{position:relative}
.frame-button{--edge:20px;--reveal-x:50%;--reveal-y:50%;display:block;border:0;border-radius:0;padding:0;width:100%;aspect-ratio:430/540;background:#9b9e92;cursor:pointer;color:inherit;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.frame-button:focus-visible{outline:2px solid var(--accent);outline-offset:12px}
.frame-surface{display:block;position:relative;width:100%;height:100%;overflow:hidden;isolation:isolate}
.frame-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;pointer-events:none;user-select:none}
.frame-photo-arrival{position:absolute;inset:0;clip-path:inset(0 var(--edge) var(--edge) 0);transition:opacity .35s ease;z-index:1}
/* One masked window, exactly one visible image: the opposite of the main layer. */
.frame-lens{position:absolute;inset:0;z-index:2;display:block;pointer-events:none;opacity:0;transition:opacity .18s ease;clip-path:inset(0 var(--edge) var(--edge) 0);-webkit-mask-image:radial-gradient(circle at var(--reveal-x) var(--reveal-y),#000 0px,#000 65px,rgba(0,0,0,.85) 70px,rgba(0,0,0,.5) 75px,rgba(0,0,0,.15) 80px,transparent 85px);mask-image:radial-gradient(circle at var(--reveal-x) var(--reveal-y),#000 0px,#000 65px,rgba(0,0,0,.85) 70px,rgba(0,0,0,.5) 75px,rgba(0,0,0,.15) 80px,transparent 85px);mask-mode:alpha;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}
.frame-lens .lens-photo{display:none}
.show-structure .frame-lens .lens-structure{display:none}
.show-structure .frame-lens .lens-photo{display:block}
.is-revealing .frame-lens{opacity:1}
.show-structure .frame-photo-arrival{opacity:0}
.frame-corner{position:absolute;width:24px;height:24px;border-color:var(--accent);border-style:solid;pointer-events:none;opacity:.75}
.top-left{top:-8px;left:-8px;border-width:1px 0 0 1px}.top-right{top:-8px;right:-8px;border-width:1px 1px 0 0}.bottom-left{bottom:-8px;left:-8px;border-width:0 0 1px 1px}.bottom-right{bottom:-8px;right:-8px;border-width:0 1px 1px 0}
.open-frame figcaption{display:flex;justify-content:space-between;gap:16px;margin-top:28px;font:10px/1.5 Arial,sans-serif;letter-spacing:1px;color:var(--muted)}
.hero-bottom{padding-bottom:45px}
.continuity-line{height:1px;background:var(--line);width:100%}.continuity-line span{display:block;height:1px;width:25.46%;background:var(--accent)}
.hero-bottom-labels{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:28px;font:11px/1.5 Arial,sans-serif;letter-spacing:.9px}
.hero-bottom-labels p{color:var(--muted)}
.hero-scroll{display:flex;align-items:center;gap:24px;min-height:28px}
.hero-scroll span{font-size:23px;font-weight:300;line-height:1;color:var(--accent);transition:transform .2s ease}
.hero-scroll:hover span{transform:translateY(3px)}
#featured-projects{scroll-margin-top:32px}#featured-projects:focus{outline:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* One decode-gated Web Animations timeline owns entrance, never layout. */
.hero-pending .hero-navigation,.hero-pending .hero-index,.hero-pending .hero-title>span,.hero-pending .hero-description,.hero-pending .hero-bottom,.hero-pending .open-frame figcaption{opacity:0}
@media(min-width:1440px){.hero-composition{grid-template-columns:732px 1fr}}
@media(min-width:901px) and (max-height:820px){.hero-composition{padding-top:44px;padding-bottom:38px}.hero-title{font-size:clamp(78px,7.2vw,104px)}.hero-description{margin-top:38px;font-size:22px}.open-frame{max-width:min(430px,calc((100svh - 250px)*.7963))}.hero-bottom{padding-bottom:28px}}
@media(max-width:1100px) and (min-width:901px){.hero-description{font-size:20px;margin-left:48px}.hero-title>span:nth-child(2){margin-left:48px}.hero-composition{grid-template-columns:1.25fr 1fr;gap:36px}.hero-title{font-size:82px}.hero-navigation nav{gap:40px}}
@media(max-width:900px){.hero-navigation{height:89px}.hero-navigation nav{gap:28px}.hero-composition{grid-template-columns:1fr;gap:56px;padding-top:48px;padding-bottom:48px}.hero-title{font-size:clamp(60px,11vw,96px);margin-top:30px;letter-spacing:-.045em}.hero-title>span:nth-child(2){margin-left:clamp(26px,8vw,72px)}.hero-description{margin-top:36px;margin-left:clamp(26px,8vw,72px);font-size:22px}.open-frame{justify-self:end;margin-right:8px;max-width:430px;width:calc(100% - 16px)}.hero-bottom{padding-bottom:36px}.hero-bottom-labels{flex-wrap:wrap;row-gap:20px}}
@media(max-width:480px){.hero-navigation{height:auto;min-height:116px;align-items:flex-start;flex-direction:column;justify-content:center;gap:10px;padding:16px 0 8px}.hero-identity{font-size:15px}.hero-identity span{font-size:10px}.hero-navigation nav{width:100%;justify-content:space-between;gap:16px}.hero-navigation nav a{font-size:12px;min-height:40px;padding:8px 0}.hero-composition{padding-top:38px;gap:42px}.hero-index{font-size:10px;letter-spacing:1px}.hero-title{font-size:clamp(56px,14.8vw,71px);line-height:1.03;margin-top:24px}.hero-title>span:nth-child(2){margin-left:24px}.hero-description{font-size:18px;line-height:1.8;margin-left:24px;letter-spacing:0}.open-frame figcaption{font-size:9px;letter-spacing:.6px;gap:8px;margin-top:24px}.frame-button{--edge:16px}.hero-bottom-labels{font-size:9px;letter-spacing:.6px}.hero-scroll{min-height:44px}.homepage-hero{min-height:calc(100svh - 116px)}}
@media(prefers-reduced-motion:reduce){.frame-photo-arrival,.frame-lens,.hero-scroll span{transition:none}.hero-scroll:hover span{transform:none}}
