:root {
  --ink: #172c2a;
  --muted: #5d706d;
  --paper: #f7f1e8;
  --surface: #fffdf8;
  --tint: #e7efea;
  --line: #d1ddd6;
  --brand: #1f5b52;
  --brand-strong: #16443e;
  --accent: #e4a15d;
  --accent-hot: #c96e52;
  --accent-text: #984931;
  --accent-soft: #f2dfc7;
  --dark: #143936;
  --dark-soft: #1c4b46;
  --radius: 14px;
  --radius-large: 28px;
  --space-section: clamp(4.5rem, 8vw, 7.5rem);
  --content-width: 1180px;
  --shadow: 0 1.25rem 2.75rem rgb(20 57 54 / .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .7rem 1rem; color: var(--paper); background: var(--dark); }
.skip-link:focus { top: 1rem; }
.site-shell { width: min(var(--content-width), calc(100% - 3rem)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 30; padding: 1rem 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 .5rem 1.25rem rgb(20 57 54 / .08); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--dark); font-weight: 900; letter-spacing: .04em; text-decoration: none; }
.brand::before { width: .75rem; height: .75rem; content: ""; background: var(--accent-hot); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.brand span { display: block; color: var(--muted); font-size: .62rem; letter-spacing: .18em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.nav-toggle-button { display: none; }
.site-nav { margin-top: 1rem; }
.section { padding: var(--space-section) 0; }
.section--tint { padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem); background: var(--tint); border-radius: var(--radius-large); box-shadow: inset 0 0 0 1px rgb(31 91 82 / .08); }
.section--dark { color: var(--paper); padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem); background: var(--dark); border-radius: var(--radius-large); }
.eyebrow, .card-kicker { margin: 0 0 .7rem; color: var(--accent-text); font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
h1 { max-width: 11ch; margin-bottom: 1.5rem; font-size: clamp(3rem, 5vw, 5.4rem); letter-spacing: -.055em; }
h2 { max-width: 18ch; margin-bottom: 1.5rem; font-size: clamp(2.2rem, 4vw, 4.2rem); letter-spacing: -.04em; }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.hero { padding: clamp(3rem, 8vw, 7rem) 0; }
.hero-content { max-width: 42rem; }
.hero-lead { max-width: 34rem; color: var(--muted); font-size: 1.1rem; }
.hero-art { margin: 2rem 0 0; }
.hero-art img { width: 100%; border-radius: var(--radius); }
.hero-art figcaption { margin-top: .75rem; color: var(--muted); font-size: .85rem; }
.about-media { position: relative; margin: 0; }
.about-media img { width: 100%; border-radius: 0 var(--radius-large) 0 var(--radius-large); }
.floating-badge { display: inline-block; padding: .75rem 1rem; color: var(--dark); background: var(--accent); border-left: 4px solid var(--accent-hot); font-size: .76rem; font-weight: 900; line-height: 1.25; }
.floating-badge small { letter-spacing: .15em; }
.about-copy { margin-top: 2rem; }
.about-copy p, .section-heading > p:not(.eyebrow) { color: var(--muted); }
.service-card, .work-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 .5rem 1.5rem rgb(20 57 54 / .06); }
.service-card img, .work-card img { width: 100%; object-fit: cover; }
.card-body, .work-card-content { padding: 1.5rem; }
.service-card p, .work-card p { color: var(--muted); }
.work-card-content p:last-child { margin-bottom: 0; }
.process-list { padding: 0; list-style: none; }
.process-list li { display: flex; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid rgb(255 250 242 / .25); }
.process-list span { color: var(--accent); font-weight: 900; }
.process-list h3 { margin-bottom: .35rem; }
.process-list p { margin-bottom: 0; color: #d8e7e0; }
.contact-card { padding: clamp(1.75rem, 5vw, 4.5rem); background: linear-gradient(135deg, var(--accent-soft), #f9ead5); border-radius: var(--radius-large); }
.contact-card p:not(.eyebrow) { max-width: 34rem; color: var(--muted); }
.testimonial { margin: 2rem 0 0; padding-left: 1.25rem; color: var(--muted); border-left: 3px solid var(--accent); font-size: 1.1rem; }
.testimonial cite { display: block; margin-top: .75rem; color: var(--ink); font-size: .85rem; font-style: normal; }
.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--brand); }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin: 1rem 0 3rem; color: var(--paper); background: var(--brand); border-radius: 50%; text-decoration: none; }


.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .35rem .8rem; margin-top: 0; }
.site-nav a { padding: .5rem .35rem; text-decoration: none; }
.site-nav a:not(.button) { position: relative; color: var(--brand); font-size: .92rem; font-weight: 800; }
.site-nav a:not(.button)::after { position: absolute; right: .35rem; bottom: .15rem; left: .35rem; height: 2px; content: ""; background: var(--accent-hot); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.site-nav a:not(.button):hover::after, .site-nav a:not(.button):focus-visible::after { transform: scaleX(1); transform-origin: left; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 5vw, 5rem); min-height: 680px; overflow: hidden; color: var(--paper); background: var(--dark); border-radius: 0 0 var(--radius-large) var(--radius-large); padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4.5rem); }
.hero::before { position: absolute; inset: 0 42% 0 0; z-index: -1; content: ""; background: linear-gradient(90deg, var(--dark) 0%, rgb(20 57 54 / .98) 70%, rgb(20 57 54 / .7)); }
.hero::after { position: absolute; top: -14%; right: -6%; z-index: -1; width: 44%; height: 128%; content: ""; background-image: linear-gradient(150deg, rgb(20 57 54 / .25), rgb(20 57 54 / .86)), url("assets/about.jpg"); background-position: center; background-size: cover; opacity: .38; transform: rotate(5deg); }
.hero > * { position: relative; z-index: 1; }
.hero-content { animation: soft-rise .6s ease both; }
.hero .eyebrow { color: var(--accent); }
.hero .hero-lead { color: #e7eee8; }
.hero .text-link { color: #f4c378; }
@keyframes soft-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-art { position: relative; isolation: isolate; margin: 0; }
.hero-art::before { position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1; content: ""; background: var(--accent-hot); border-radius: var(--radius-large); opacity: .88; }
.hero-art img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.12; object-fit: cover; border: .5rem solid var(--paper); border-radius: var(--radius-large) 0 var(--radius-large) 0; box-shadow: var(--shadow); }
.hero-art figcaption { display: inline-block; padding: .2rem .55rem; color: var(--paper); background: rgb(20 57 54 / .72); border-left: 2px solid var(--accent); }
.hero-actions, .contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.2rem; border: 2px solid transparent; border-radius: 5px; font-weight: 900; text-decoration: none; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button:focus-visible, .brand:focus-visible, .text-link:focus-visible, .site-nav a:focus-visible, .site-footer a:focus-visible, .back-to-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.button--primary { color: var(--dark); background: var(--accent); }
.hero .button--primary:hover { background: #f0b872; }
.button--secondary { color: var(--brand); background: transparent; border-color: var(--brand); }
.button--secondary:hover { color: #fff; background: var(--brand); }
.hero .button--secondary { color: var(--paper); border-color: rgb(247 241 232 / .7); }
.hero .button--secondary:hover { color: var(--dark); background: var(--paper); border-color: var(--paper); }
.button--small { min-height: 2.5rem; padding: .45rem .85rem; }
.text-link { color: var(--brand); font-weight: 900; text-decoration-thickness: .12em; text-underline-offset: .25em; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 8vw, 7rem); }
.about-media { order: 2; }
.about-copy { margin-top: 0; }
.about-media .floating-badge { position: absolute; right: -1rem; bottom: 1.5rem; z-index: 2; }
.section-heading { max-width: 48rem; margin-bottom: 2.75rem; }
.section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; max-width: none; }
.section--dark .eyebrow { color: var(--accent); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card img { aspect-ratio: 1.35; }
.service-card .card-body { display: flex; flex: 1; flex-direction: column; }
.service-card .text-link { margin-top: auto; padding-top: 1rem; }
.service-card--featured { border-color: var(--accent-hot); box-shadow: 0 1rem 2rem rgb(201 110 82 / .12); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.work-card { display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card img { aspect-ratio: 1.45; }
.process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.process-list li { display: block; min-height: 14rem; padding: 1.5rem; border: 1px solid rgb(247 241 232 / .2); border-radius: var(--radius); background: rgb(255 255 255 / .035); }
.process-list span { display: block; margin-bottom: 3rem; font-size: 2rem; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 2rem; }
.contact-actions { justify-content: flex-end; }
.back-to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 10; width: 2.5rem; height: 2.5rem; opacity: .9; box-shadow: 0 .35rem .9rem rgb(20 57 54 / .16); }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero::before { inset: 0 0 42% 0; background: linear-gradient(180deg, var(--dark) 0%, rgb(20 57 54 / .94) 70%, rgb(20 57 54 / .65)); }
  .service-grid, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: 1fr; }
  .hero-art { max-width: 42rem; width: 100%; margin-inline: auto; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  :root { --space-section: 4.5rem; }
  .site-shell { width: min(var(--content-width), calc(100% - 1.5rem)); }
  html { scroll-padding-top: 15rem; }
  html:has(.nav-toggle:checked), body:has(.nav-toggle:checked) { overflow: clip; overscroll-behavior: none; }
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; }
  .nav-toggle { position: fixed; top: 0; left: 0; }
  .nav-toggle-button { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; color: var(--brand); background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
  .nav-toggle:focus-visible + .nav-toggle-button { outline: 3px solid var(--accent); outline-offset: 4px; }
  .nav-toggle-icon { position: relative; display: block; width: 1.35rem; height: 1rem; }
  .nav-toggle-icon span { position: absolute; left: 0; display: block; width: 100%; height: 2px; background: currentColor; transform-origin: center; transition: transform .25s ease, opacity .25s ease; }
  .nav-toggle-icon span:nth-child(1) { top: 0; }
  .nav-toggle-icon span:nth-child(2) { top: calc(50% - 1px); }
  .nav-toggle-icon span:nth-child(3) { bottom: 0; }
  .nav-toggle:checked + .nav-toggle-button .nav-toggle-icon span:nth-child(1) { transform: translateY(.45rem) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-button .nav-toggle-icon span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-toggle-button .nav-toggle-icon span:nth-child(3) { transform: translateY(-.45rem) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: .25rem; width: 100%; max-height: 0; margin: 0; padding: 0; overflow: hidden auto; background: var(--paper); border-top: 0 solid var(--line); box-shadow: 0 .75rem 1.25rem rgb(20 57 54 / .1); opacity: 0; visibility: hidden; transform: translateX(-100%); pointer-events: none; transition: max-height .35s ease, padding .35s ease, border-top-width .35s ease, transform .35s ease, opacity .25s ease, visibility 0s linear .35s; }
  .nav-toggle:checked ~ .site-nav { max-height: 20rem; padding: .75rem; border-top-width: 1px; opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; transition-delay: 0s; }
  .site-nav a { width: 100%; min-height: 2.75rem; padding: .65rem .75rem; }
  .site-nav a:not(.button) { display: flex; align-items: center; }
  .site-nav a:not(.button)::after { right: .75rem; left: .75rem; bottom: .45rem; }
  .site-nav .button { padding-inline: .75rem; }
  .hero { padding: 3.5rem 1.25rem 2.5rem; border-radius: 0 0 var(--radius) var(--radius); }
  .hero::before { inset: 0 0 50% 0; }
  .hero::after { top: 48%; right: -22%; width: 82%; height: 60%; }
  .hero-art::before { inset: .75rem -.75rem -.75rem .75rem; }
  .hero-art img { border-width: .3rem; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.3rem); }
  .about-layout { grid-template-columns: 1fr; }
  .about-media { order: 0; }
  .about-media .floating-badge { right: .75rem; bottom: .75rem; }
  .section-heading--row { display: block; }
  .section-heading--row > .text-link { display: inline-block; margin-top: 1rem; }
  .service-grid, .work-grid { grid-template-columns: 1fr; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .site-nav { transition-delay: 0s !important; }
}
