
:root{--paper:#fafaf8;--ink:#243b40;--muted:#597076;--line:#d5e0e1;--accent:#34565e}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.8 'Noto Sans TC','Microsoft JhengHei',sans-serif}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible{outline:2px solid #a8c6cb;outline-offset:4px}.wrap{max-width:1440px;margin:auto;padding:0 5vw}header{border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:5}.nav{display:flex;align-items:center;justify-content:space-between;min-height:86px;gap:20px}.brand{display:flex;gap:16px;align-items:center}.mark{width:43px;height:43px;border:1px solid var(--ink);display:grid;place-items:center;font-size:22px}.brand strong{font-size:19px;letter-spacing:.16em}.brand small{display:block;font-size:10px;letter-spacing:.12em;color:var(--muted)}nav{display:flex;gap:30px;font-size:13px}nav a:hover{color:#34565e}.menu{display:none;background:none;border:1px solid var(--line);padding:8px 12px;color:inherit}.herohead{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:32px;padding:72px 0 30px}.eyebrow{font-size:11px;letter-spacing:.2em;color:var(--muted);text-transform:uppercase}h1,h2,h3,p{margin:0}h1{font-size:clamp(36px,5.7vw,84px);line-height:1.2;font-weight:400;letter-spacing:.07em}h2{font-size:clamp(30px,4vw,52px);font-weight:400;line-height:1.35;letter-spacing:.06em}.herohead p{max-width:360px;justify-self:end;color:var(--muted)}.heroimg{position:relative;aspect-ratio:2.25;overflow:hidden;background:#d6d0c4}.heroimg svg,.workimg svg{width:100%;height:100%;display:block}.image-note{position:absolute;bottom:12px;right:14px;background:#f5f4efeb;padding:4px 10px;font-size:11px;color:#444}.bar{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:.12em;color:var(--muted)}section{padding:88px 0;border-bottom:1px solid var(--line);scroll-margin-top:85px}.sectionhead{display:flex;justify-content:space-between;align-items:end;margin-bottom:30px;gap:20px}.sectionhead p{color:var(--muted)}.works{display:grid;grid-template-columns:1fr 1fr;gap:28px}.workimg{aspect-ratio:1.5;position:relative;overflow:hidden;background:#ddd7cd}.workmeta{display:flex;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.workmeta h3{font-weight:500;font-size:20px}.workmeta span{font-size:12px;color:var(--muted)}.split{display:grid;grid-template-columns:1fr 1fr;gap:8vw}.split p{color:var(--muted);margin:14px 0}.services article{border-top:1px solid var(--line);padding:20px 0;display:grid;grid-template-columns:45px 1fr;gap:12px}.services h3{font-weight:500;font-size:20px}.services p{margin:4px 0}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.steps article{border-top:1px solid var(--ink);padding:18px 0}.steps h3{font-weight:500;margin:12px 0}.steps p{color:var(--muted);font-size:14px}.contact{background:var(--accent);color:white;padding:65px 5vw;margin:0 -5vw}.contact .eyebrow,.contact p{color:#e0eef0}.contact a,.btn{display:inline-block;border:1px solid currentColor;padding:12px 22px;margin-top:24px;background:transparent;color:inherit;font:inherit;cursor:pointer}.contact a:hover,.btn:hover{background:#ffffff18}.contactgrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}form{display:grid;gap:12px}label{font-size:13px;display:grid;gap:4px}input,select,textarea{font:inherit;color:#252825;background:#f5f4ef;border:0;padding:10px;width:100%;border-radius:0}textarea{min-height:85px;resize:vertical}form .btn{margin:0;justify-self:start}#result{white-space:pre-wrap;font-size:13px}footer{display:flex;justify-content:space-between;gap:20px;padding:26px 0;color:var(--muted);font-size:12px}@media(max-width:760px){.nav{min-height:70px}.brand strong{font-size:15px}.brand small{font-size:9px}.menu{display:block}nav{display:none;position:absolute;top:70px;left:0;right:0;background:var(--paper);padding:20px 5vw;border-bottom:1px solid var(--line);flex-direction:column;gap:14px}nav.open{display:flex}.herohead,.split,.contactgrid{grid-template-columns:1fr;gap:20px}.herohead{padding:45px 0 24px}.herohead p{justify-self:start}.heroimg{aspect-ratio:1.25}.works{grid-template-columns:1fr}.steps{grid-template-columns:1fr 1fr}.sectionhead{align-items:start;flex-direction:column}section{padding:55px 0}.contact{padding:45px 5vw}footer{flex-direction:column;gap:4px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.brandlogo{width:76px;height:68px;object-fit:contain;mix-blend-mode:multiply;flex-shrink:0}.brand{gap:14px}.brand strong{letter-spacing:.1em}@media(max-width:760px){.brandlogo{width:55px;height:50px}.brand{gap:9px}}
.contactlinks{display:grid;gap:12px;margin-top:24px;min-width:0}.contactlinks a{margin:0;display:block;padding:14px 16px;overflow-wrap:anywhere}.contactlinks small,.contactlinks strong{display:block}.contactlinks small{font-size:12px;color:#e0eef0}.contactlinks strong{font-size:14px;font-weight:500}.contactgrid>div{min-width:0}
.workimg img{display:block;width:100%;height:100%;object-fit:cover}.project{margin-top:64px;padding-top:32px;border-top:1px solid var(--line);scroll-margin-top:100px}.projecthead{display:flex;justify-content:space-between;align-items:end;gap:20px}.projecthead p,.projectintro,.projectnote,figcaption{color:var(--muted)}.projectintro{max-width:760px;margin:20px 0 28px}.projectphotos{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;align-items:start}.projectphotos figure{margin:0}.projectphotos img{display:block;width:100%;height:auto}.projectphotos figcaption{font-size:12px;padding:10px 0}.projectnote{font-size:12px;margin-top:16px}@media(max-width:760px){.projectphotos{grid-template-columns:1fr}.projecthead{align-items:start;flex-direction:column;gap:8px}}
.company-name{font-size:clamp(15px,1.5vw,20px);font-weight:600;letter-spacing:.035em;white-space:nowrap;line-height:1.5}.brand{min-width:0}.menu{flex-shrink:0}@media(max-width:1000px) and (min-width:761px){nav{gap:16px}.brand{gap:9px}.brandlogo{width:60px}}@media(max-width:760px){.company-name{font-size:clamp(11px,3.35vw,16px);letter-spacing:0}.brandlogo{width:46px;height:48px}.nav{gap:8px}.menu{padding:6px 8px}}
.company-name{font-weight:700!important;white-space:nowrap;}

.residential .projectphotos{grid-template-columns:1fr 1fr}.residential .projectphotos img{aspect-ratio:4/3;object-fit:contain;background:var(--paper)}@media(max-width:760px){.residential .projectphotos{grid-template-columns:1fr}.workmeta{flex-wrap:wrap}}
.brand-text{display:flex;flex-direction:column;gap:2px;line-height:1.3;min-width:0}.company-english{font-size:12px;letter-spacing:.045em;color:var(--muted);white-space:nowrap;font-weight:400}@media(max-width:760px){.company-english{font-size:clamp(9px,2.65vw,12px);letter-spacing:0}}

.brand-text{display:inline-flex;width:max-content;flex:none;align-items:stretch}.company-name{display:block;width:max-content}.company-english{display:block;letter-spacing:0;width:0;min-width:100%;font-size:clamp(9px,1vw,12px)}.company-english span{display:inline-block;white-space:pre}.company-english{font-size:clamp(8px,.85vw,11px)}@media(max-width:760px){.company-english{font-size:clamp(7px,2.1vw,10px)}}

.category-title{font-size:22px;font-weight:600;margin:32px 0 18px;color:var(--ink)}.category-title small{font-size:11px;letter-spacing:.14em;font-weight:400;color:var(--muted);margin-left:12px}.modern-residence .projectphotos figure:first-child{grid-column:1/-1}.modern-residence .projectphotos img{aspect-ratio:4/3;object-fit:contain}
.heroimg{aspect-ratio:auto;background:#fafaf8}.heroimg img{display:block;width:100%;height:auto}.herohead .hero-en{margin-top:16px;max-width:none;font-size:15px;letter-spacing:.035em}.heroimg .image-note{position:static;display:block;text-align:right;background:transparent;padding:5px 0;color:var(--muted)}

.herohead{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:52px 0 28px}.herohead .eyebrow{font-size:12px;letter-spacing:.12em;text-transform:none}.herohead h1{font-size:clamp(21px,4.2vw,60px);font-weight:500;letter-spacing:.045em;line-height:1.35;white-space:nowrap}.herohead .hero-description{max-width:100%;font-size:15px;line-height:1.8;color:var(--muted)}@media(max-width:760px){.herohead{padding:32px 0 22px;gap:9px}.herohead .eyebrow{font-size:11px}.herohead .hero-description{font-size:13px}}
.herohead{padding:28px 0 16px}.herohead h1.hero-service{font-size:clamp(12px,1.25vw,16px);font-weight:400;letter-spacing:.12em;color:var(--muted);white-space:normal}.about-slogan{font-size:clamp(20px,3vw,42px);font-weight:500;letter-spacing:.04em;line-height:1.4;white-space:nowrap;margin:0 0 18px;color:var(--ink)}.about-lead{font-weight:500}@media(max-width:760px){.herohead{padding:20px 0 14px}.about-slogan{font-size:clamp(18px,5vw,28px)}}

/* V23 — readable typography, including mobile */
body{font-size:18px;line-height:1.85}
nav{font-size:16px;gap:24px}nav a{padding:8px 0}
.eyebrow,.herohead .eyebrow,.bar,.category-title small{font-size:14px}
.herohead h1.hero-service{font-size:clamp(16px,1.5vw,20px)}
.herohead .hero-description,.herohead .hero-en{font-size:18px;line-height:1.85}
.workmeta h3,.services h3,.steps h3,.projecthead h3{font-size:23px;line-height:1.5}
.category-title{font-size:26px}
.workmeta span,.steps p,.projectphotos figcaption,.projectnote,figcaption,.contactlinks small,footer,#result{font-size:16px;line-height:1.75}
.contactlinks strong,label{font-size:18px}
input,select,textarea{font-size:18px;line-height:1.6;padding:12px}
.menu,.btn{font-size:16px;min-height:44px}
.contact a,.contactlinks a{min-height:44px}
.workmeta,.projecthead,.bar,footer{flex-wrap:wrap}
.projecthead p,.projectintro,.projectnote,figcaption{overflow-wrap:anywhere}
@media(max-width:1100px){nav{gap:14px;font-size:15px}}
@media(max-width:900px){.nav{min-height:76px}.menu{display:block}nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--paper);padding:16px 5vw;border-bottom:1px solid var(--line);flex-direction:column;gap:4px}nav.open{display:flex}nav a{min-height:44px}}
@media(max-width:760px){body{font-size:18px}.herohead .hero-description{font-size:18px}.herohead .eyebrow{font-size:14px}.workmeta h3,.services h3,.steps h3,.projecthead h3{font-size:21px}.category-title{font-size:24px}.category-title small{display:inline-block}.steps{grid-template-columns:1fr}.contactlinks strong{overflow-wrap:anywhere}.about-slogan{white-space:normal}.services article{grid-template-columns:36px minmax(0,1fr)}footer{font-size:16px}}


/* V24: prominent bilingual brand, preserving the equal-width alignment script */
.company-name{font-size:28px;font-weight:700;letter-spacing:.035em;line-height:1.25}
.company-english{font-size:15px;line-height:1.4}
.brand-text{gap:5px}.nav{min-height:98px}
@media(max-width:1100px){.nav{min-height:86px;gap:12px}.menu{display:block}nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--paper);padding:16px 5vw;border-bottom:1px solid var(--line);flex-direction:column;gap:4px}nav.open{display:flex}nav a{min-height:44px}}
@media(max-width:760px){.company-name{font-size:clamp(15px,4.6vw,25px);letter-spacing:0}.company-english{font-size:clamp(9px,2.6vw,14px)}.brand-text{gap:3px}.brandlogo{width:46px;height:48px}.nav{min-height:80px;gap:8px}}
@media(max-width:360px){.brandlogo{width:36px;height:42px}.brand{gap:6px}.company-name{font-size:15px}.menu{padding:6px}}

/* V33: always-visible navigation, independent pages */
.nav{flex-wrap:wrap;gap:10px 28px;padding-top:14px;padding-bottom:14px;min-height:98px}
header nav{display:flex;position:static;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 24px;padding:0;border:0;background:transparent;font-size:17px}
header nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 0;white-space:nowrap;border-bottom:2px solid transparent}
header nav a[aria-current=page]{border-color:var(--accent);font-weight:700}
header nav a:hover{border-color:var(--line)}
main{min-height:calc(100vh - 100px)}
main>section{padding-top:48px;padding-bottom:64px}
main>.project{margin-top:0;border-top:0;padding-top:48px;padding-bottom:48px}
.backlink{display:inline-block;padding:12px 0;margin-top:16px;text-decoration:underline;text-underline-offset:4px;color:var(--accent)}
.home-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;padding:28px 0 40px;border-bottom:1px solid var(--line)}
.home-links a{border-top:1px solid var(--line);padding:16px 0;display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:18px;font-weight:500}
.home-links a:hover{color:var(--muted)}
.workimg{overflow:hidden}.workimg .image-note{font-size:14px;line-height:1.5;max-width:calc(100% - 20px);bottom:10px;right:10px}
@media(max-width:1150px){header nav{width:100%;justify-content:space-between;gap:4px 16px}.nav{gap:8px}}
@media(max-width:760px){header{position:static}.nav{padding-top:12px;padding-bottom:8px}header nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 8px;font-size:16px}header nav a{justify-content:flex-start;min-height:44px;white-space:normal}.home-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}main>section,main>.project{padding-top:32px;padding-bottom:40px}.contact{padding:40px 5vw!important}.workimg .image-note{font-size:12px}.company-name{font-size:clamp(15px,4.6vw,25px)}}

/* V36: simplified icon-only logo and cleaner homepage */
.brandlogo{width:60px;height:60px;object-fit:contain;background:transparent}
.brand{align-items:center;gap:14px}
.brand-text{justify-content:center}
@media(max-width:760px){.brandlogo{width:44px;height:44px}.brand{gap:10px}}

/* V38: larger transparent brand logo */
.brandlogo{width:80px;height:80px}
@media(max-width:760px){.brandlogo{width:58px;height:58px}}
@media(max-width:360px){.brandlogo{width:48px;height:48px}.brand{gap:8px}}

/* V43 — Shin Yuan brand palette across all pages */
:root{--paper:#f4f7f6;--ink:#243b40;--muted:#456169;--line:#c4d7d9;--accent:#365b64;--brand-light:#acc9cf;--brand-pale:#e2ecee;--brand-dark:#243b40}
body{background:var(--paper)}
header{background:#fafaf8;border-bottom:2px solid var(--brand-light)}
.brandlogo{mix-blend-mode:normal}
header nav a[aria-current=page]{color:var(--accent);border-color:var(--accent)}
main.wrap{display:flex;flex-direction:column;min-height:calc(100vh - 100px)}
main>footer{margin-top:auto;background:var(--brand-dark);color:#edf5f5;padding:26px 5vw;margin-left:-5vw;margin-right:-5vw;border-top:3px solid var(--brand-light)}
footer a:hover{text-decoration:underline;text-underline-offset:4px}
main>.heroimg{margin-top:24px;margin-bottom:32px;border:1px solid var(--line);background:#fafaf8}
main>section:not(.contact){border-bottom:0}
#about,#services{grid-template-columns:minmax(0, .85fr) minmax(0,1.15fr);gap:clamp(24px,4vw,64px);align-items:stretch;padding-top:40px;padding-bottom:48px}
#about>div:first-child,#services>div:first-child{background:var(--accent);color:#fff;padding:clamp(26px,4vw,60px);border-top:6px solid var(--brand-light)}
#about>div:first-child .eyebrow,#services>div:first-child .eyebrow,#services>div:first-child p{color:#e1edef}
#about>div:last-child{background:#fafaf8;padding:clamp(24px,3vw,48px);border-top:6px solid var(--brand-light)}
#about .about-slogan{color:var(--accent);white-space:normal;font-size:clamp(24px,2.8vw,42px)}
#about p{color:var(--ink)}
#about .about-lead{color:var(--accent)}
#works .sectionhead,#process .sectionhead,.projecthead{background:var(--brand-pale);border-left:6px solid var(--accent);padding:24px clamp(18px,3vw,40px)}
.category-title{border-left:4px solid var(--brand-light);padding-left:14px}
.works article{background:#fafaf8;border-bottom:3px solid var(--brand-light)}
.workmeta{padding:16px 18px;border-bottom:0}
.works article a:hover .workmeta{background:var(--brand-pale)}
.projectphotos figure{background:#fafaf8;border-bottom:2px solid var(--brand-light)}
.projectphotos figcaption{padding:12px 16px}
.services article{background:#fafaf8;border-top:0;border-left:4px solid var(--brand-light);padding:22px;margin-bottom:12px}
.services article>span{color:var(--accent);font-weight:700}
.steps article{background:#fafaf8;border-top:4px solid var(--accent);padding:22px 18px}
.steps article:nth-child(even){background:var(--brand-pale)}
.contact{background:var(--accent);border-top:6px solid var(--brand-light);margin-top:24px;margin-bottom:24px;margin-left:0;margin-right:0;padding:48px clamp(24px,4vw,64px)}
.contact .btn{background:var(--brand-light);color:var(--brand-dark);border-color:var(--brand-light);font-weight:600}
.contact .btn:hover{background:#d6e6e8}
.contactlinks a:hover{background:#ffffff15}
@media(max-width:760px){#about,#services{grid-template-columns:1fr;gap:16px;padding-top:24px;padding-bottom:32px}main>footer{padding:22px 5vw}main>.heroimg{margin-top:16px;margin-bottom:24px}.contact{padding:30px 20px!important}.sectionhead,.projecthead{gap:12px}.workmeta{padding:12px}}

/* V44: wider About copy on desktop, readable wrapping on smaller screens */
@media(min-width:1000px){#about{grid-template-columns:minmax(0, .65fr) minmax(0,1.35fr);gap:clamp(20px,2.5vw,36px)}#about>div:last-child{padding-left:clamp(20px,2.4vw,34px);padding-right:clamp(20px,2.4vw,34px)}}
@media(min-width:1280px){#about .about-single-line{white-space:nowrap}}

/* V50 — accessible portfolio viewer and consultation links */
.line-float{position:fixed;right:24px;bottom:24px;z-index:20;display:flex;align-items:center;gap:9px;padding:12px 18px;border-radius:40px;background:#087b43;color:#fff;font-size:16px;font-weight:600;box-shadow:0 3px 14px #243b4026;min-height:48px}.line-float:hover{background:#056537}.line-float svg{width:24px;height:24px;flex:none}body{padding-bottom:78px}.case-cta{margin-top:30px;padding:24px 28px;background:#e2ecee;border-left:4px solid #365b64;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.case-cta a{background:#365b64;color:#fff;padding:12px 24px;min-height:44px}.case-cta a:hover{background:#243b40}.photo-open{display:block;position:relative;width:100%;border:0;padding:0;background:transparent;cursor:zoom-in;font:inherit;color:inherit}.photo-open .zoom-hint{position:absolute;bottom:12px;right:12px;background:#243b40e8;color:white;padding:6px 12px;font-size:14px;pointer-events:none}.photo-open:hover .zoom-hint{background:#365b64}.photo-viewer{border:0;padding:0;background:#17292d;color:white;width:min(96vw,1440px);max-width:96vw;max-height:96dvh;overflow:auto}.photo-viewer::backdrop{background:#081317e8}.viewer-top{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;gap:10px}.photo-viewer button{font:inherit;min-width:44px;min-height:44px;color:white;background:#365b64;border:1px solid #acc9cf;cursor:pointer;padding:6px 14px}.viewer-stage{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 12px}.viewer-stage img{display:block;width:100%;height: min(74dvh,850px);object-fit:contain;touch-action:pan-y}.viewer-caption{text-align:center;padding:12px 16px;line-height:1.5}.viewer-stage button:disabled{visibility:hidden}.photo-viewer:focus-visible{outline:2px solid #acc9cf}@media(max-width:760px){.line-float{right:12px;bottom:14px;font-size:15px;padding:10px 14px}.case-cta{padding:18px}.case-cta a{width:100%;text-align:center}.viewer-stage{gap:4px;padding:0 4px}.viewer-stage img{height:60dvh}.photo-viewer button{padding:4px 8px}.photo-open .zoom-hint{font-size:13px}}
