:root {
  --font-body: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-logo: 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --size-hero: 60px;
  --size-company: 20px;
  --size-description: 18px;
  --size-body: 18px;
  --size-service: 22px;
  --size-service-description: 16px;
  --size-nav: 16px;
  --size-footer: 14px;
  --section-title-size: 42px;
  --size-contact: 17px;
  --size-contact-label: 16px;
  --leading-body: 1.8;
  --leading-description: 1.6;
  --tracking-heading: .025em;
  --blue: #34556A;
  --ink: #29343B;
  --muted: #59656D;
  --line: #CDD5DA;
  --light: #E9EDF0;
  --surface: #F7F7F4;
  --header-surface: #FFFFFF;
  --header-height: 84px;
  --space: clamp(64px, 8vw, 120px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 16px; font-weight: var(--weight-regular); line-height: var(--leading-body); letter-spacing: normal; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: clamp(30px, 3vw, 42px); font-weight: var(--weight-semibold); line-height: 1.3; letter-spacing: var(--tracking-heading); margin-bottom: 28px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
.container, .header-inner, .hero-inner { width: calc(100% - 96px); max-width: 1248px; margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 20; padding: 12px 20px; background: var(--blue); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.header { height: var(--header-height); position: sticky; top: 0; z-index: 10; background: var(--header-surface); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { font-family: var(--font-logo); display: flex; align-items: center; flex-shrink: 0; gap: 10px; }
.brand-symbol { display: block; width: 74px; height: 54px; overflow: hidden; flex-shrink: 0; }
.brand-symbol img { width: 144px; height: auto; max-width: none; transform: translate(-12px, -6px); }
.brand-wordmark { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: #073B5B; }
.brand-name { font-size: 28px; font-weight: var(--weight-bold); letter-spacing: .08em; line-height: 1.15; }
.brand-english { font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: .14em; line-height: 1.2; white-space: nowrap; }
.brand-logo { width: 124px; height: auto; }
.header nav { display: flex; gap: 32px; align-items: center; font-size: var(--size-nav); }
.header nav a { position: relative; padding: 12px 0; font-weight: var(--weight-medium); transition: color .2s; }
.header nav a:hover, .header nav a[aria-current] { color: var(--blue); }
.header nav a::after { content: ''; position: absolute; bottom: 6px; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.header nav a:hover::after, .header nav a[aria-current]::after { transform: scaleX(1); }
.header nav .nav-contact { padding: 8px 20px; min-height: 44px; background: var(--blue); border: 1px solid var(--blue); border-radius: 0; color: var(--surface); transition: background .2s; }
.header nav .nav-contact:hover { background: var(--ink); }
.header nav .nav-contact::after { display: none; }
.menu-toggle { display: none; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 700px; background: var(--ink); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 32, 42, .52); z-index: 0; pointer-events: none; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; filter: saturate(.52) contrast(.94) brightness(1.02); }
.hero-inner { position: relative; z-index: 1; padding-block: 88px; text-align: center; }
.hero-copy { width: 100%; max-width: 800px; margin-inline: auto; padding: 0; color: #fff; }
.hero-label { color: var(--blue); font-size: 14px; font-weight: var(--weight-medium); letter-spacing: .05em; margin-bottom: 24px; }
.hero-copy h1 { font-size: clamp(52px, 4.1vw, 60px); font-weight: var(--weight-bold); line-height: 1.3; letter-spacing: .015em; margin-bottom: 28px; }
.hero-copy > p:not(.hero-label) { max-width: 640px; margin-inline: auto; font-size: 17px; line-height: 1.95; margin-bottom: 36px; color: #fff; }
.hero-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 50px; padding: 12px 24px; background: var(--blue); color: #fff; border: 1px solid var(--blue); font-size: 15px; font-weight: var(--weight-medium); white-space: nowrap; transition: background .2s; }
.hero-button span { transition: transform .2s; }
.hero-button:hover { background: var(--ink); }
.hero-button:hover span { transform: translateX(4px); }
.section { padding-block: var(--space); }
.about-layout { display: grid; grid-template-columns: 4.5fr 7.5fr; align-items: start; gap: clamp(48px, 6vw, 88px); }
.section-label { font-size: 14px; color: var(--blue); margin-bottom: 20px; font-weight: var(--weight-medium); letter-spacing: .04em; }
.about-copy { padding-top: 28px; }
.about-copy h2 { font-size: clamp(28px, 2.5vw, 36px); margin-bottom: 28px; letter-spacing: var(--tracking-heading); }
.business-direction h3 { font-size: 18px; font-weight: var(--weight-semibold); margin: 0 0 12px; }
.about-copy > p, .business-direction p { font-size: 16px; color: var(--muted); line-height: 1.95; margin-bottom: 0; }
.about-copy > p { font-size: 18px; line-height: 1.9; max-width: 32em; }
.about-copy > p + p { margin-top: 20px; }
.business-direction { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-photo { width: 100%; height: auto; aspect-ratio: 1.28; object-fit: cover; object-position: 57% center; filter: saturate(.58) contrast(.96) brightness(1.02); }
/* Shared rhythm for the approved homepage; Header and Hero stay unchanged. */
.homepage-polished { --section-space: 96px; }
/* Current homepage: three-paragraph company introduction. */
.about-refined { padding-block: var(--section-space, 96px); }
.about-refined .about-layout { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); gap: clamp(64px, 5vw, 72px); align-items: center; }
.about-refined .about-copy { padding-top: 0; min-width: 0; }
.about-refined .about-copy h2 { font-size: var(--section-title-size, 42px); font-weight: var(--weight-bold); color: var(--ink); margin-bottom: 32px; }
.about-refined .about-copy > p { max-width: none; font-size: var(--size-body); color: #455661; line-height: var(--leading-body); text-align: left; text-wrap: pretty; }
.about-refined .about-copy > p + p { margin-top: 26px; }
.about-refined .about-photo { aspect-ratio: auto; height: auto; object-position: center; }
.services { background: var(--light); border-block: 1px solid var(--line); }
.services .section-title { margin-bottom: 16px; }
.services-intro { max-width: 640px; color: var(--muted); margin: 0 0 48px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.service-card { min-width: 0; }
.service-card img { width: 100%; height: auto; aspect-ratio: 1.16; object-fit: cover; object-position: center; filter: saturate(.58) contrast(.96) brightness(1.02); }
.service-copy { padding-top: 24px; }
.service-number { display: block; font-size: 13px; font-weight: var(--weight-medium); letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.service-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-link { display: inline-flex; width: 44px; height: 44px; margin-top: -7px; flex-shrink: 0; align-items: center; justify-content: center; color: var(--blue); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.service-link span { font-size: 20px; transition: transform .2s; }
.service-link:hover { border-color: var(--blue); background: var(--surface); }
.service-link:hover span { transform: translateX(3px); }
.service-copy h3 { font-size: clamp(20px, 1.55vw, 23px); line-height: 1.5; font-weight: var(--weight-semibold); margin: 0 0 12px; letter-spacing: .01em; }
.service-copy p { color: var(--muted); margin: 0; }
/* Informational service grid: no links or hover cues without detail pages. */
.services-refined { padding-block: var(--section-space, 96px); }
.services-refined .section-title { font-size: var(--section-title-size, 42px); font-weight: var(--weight-bold); color: var(--ink); margin-bottom: 44px; }
.services-refined .service-grid { gap: 56px 32px; }
.services-refined .service-card img { aspect-ratio: 1.4; filter: saturate(.75) contrast(.98); }
.services-refined .service-card:last-child img { object-position: 60% center; }
.services-refined .service-copy { padding-top: 20px; }
.services-refined .service-copy h3 { font-size: var(--size-service); font-weight: var(--weight-semibold); line-height: 1.5; margin-bottom: 10px; }
.services-refined .service-copy p { font-size: var(--size-service-description); line-height: var(--leading-description); color: #65727A; text-wrap: pretty; }
.contact { padding-block: 64px 48px; background: var(--surface); }
.contact-layout { display: grid; grid-template-columns: 7fr 13fr; gap: 64px; align-items: start; }
.contact-layout .section-title { font-size: clamp(27px, 2.7vw, 37.8px); margin-bottom: 16px; }
.contact-layout > div > p { max-width: 340px; color: var(--muted); margin: 0; }
.contact-details { margin: 0; }
.contact-details > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid #D5DBDE; font-size: 16px; line-height: 1.75; }
.contact-details > div:first-child { padding-top: 0; }
.contact-details dt { font-size: 14px; color: var(--muted); font-weight: var(--weight-medium); }
.contact-details dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.contact-details a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.contact-details a:hover { text-decoration-thickness: 2px; }
.email-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.copy-email { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 0 4px; min-height: 44px; margin-block: -8px; font-size: 13px; color: var(--blue); background: transparent; cursor: pointer; transition: color .2s; }
.copy-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.copy-icon::before, .copy-icon::after { content: ""; position: absolute; border: 1px solid currentColor; background: var(--surface); }
.copy-icon::before { inset: 0 4px 4px 0; }
.copy-icon::after { inset: 4px 0 0 4px; }
.copy-email:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.copy-email:active { transform: translateY(1px); }
.copy-email[aria-busy=true] { cursor: wait; }
.contact-layout .copy-status { min-height: 20px; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--blue); }
/* Contact information and verified Google Maps address embed. */
.contact-map-section { padding-block: var(--section-space, 96px); }
.contact-map-section .contact-layout { grid-template-columns: minmax(0, 21fr) minmax(0, 29fr); gap: 60px; align-items: center; }
.contact-map-section .section-title { font-size: var(--section-title-size, 42px); font-weight: var(--weight-bold); color: var(--ink); margin-bottom: 20px; }
.contact-map-section .contact-intro { max-width: 100%; font-size: 17px; color: #455661; line-height: 1.8; margin-bottom: 24px; }
.contact-map-section .contact-details > div { display: block; padding-block: 12px; }
.contact-map-section .contact-details > div:first-child { padding-top: 0; }
.contact-map-section .contact-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-map-section .contact-details dt { margin-bottom: 5px; font-size: var(--size-contact-label); color: #65727A; }
.contact-map-section .contact-details dd { font-size: var(--size-contact); line-height: 1.7; }
.contact-map-section .email-row { gap: 4px 16px; }
.contact-map { min-width: 0; }
.contact-map iframe { display: block; width: 100%; height: 400px; border: 0; background: var(--light); }
.contact-map .map-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 12px; color: var(--blue); font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
.contact-map .map-link:hover { text-decoration-thickness: 2px; }
footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.footer-brand { font-size: 15px; font-weight: var(--weight-medium); color: var(--blue); }
footer nav { display: flex; align-items: center; gap: 24px; font-size: var(--size-footer); color: var(--muted); }
footer nav a { padding-block: 8px; }
footer nav a:hover { color: var(--blue); }
footer p { grid-column: 1 / -1; font-size: var(--size-footer); color: var(--muted); margin: 0; }
/* Light footer with a separate copyright row. */
.footer-refined { background: var(--light); border-top: 0; padding-block: 40px; }
.footer-refined .footer-inner { align-items: center; gap: 24px; }
.footer-refined .footer-brand { color: var(--blue); }
.footer-refined nav, .footer-refined p { color: #65727A; }
.footer-refined nav { gap: 16px; }
.footer-refined nav a + a { border-left: 1px solid #D5DBDE; padding-left: 16px; }
.footer-refined p { border-top: 1px solid #D5DBDE; padding-top: 24px; }
@media (max-width: 1023px) {
  :root { --size-hero: 48px; --section-title-size: 36px; }
  .homepage-polished { --section-title-size: 36px; --section-space: 80px; }
  .container, .header-inner, .hero-inner { width: calc(100% - 64px); }
  .hero { min-height: 700px; }
  .hero-copy h1 { font-size: 48px; }
  .about-layout, .contact-layout { gap: 40px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .service-copy h3 { font-size: 21px; }
}
@media (max-width: 850px) {
  .hero-copy h1 { font-size: 44px; }
  .hero-inner { padding-block: 64px; }
  .header nav { gap: 24px; }
  .about-layout { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-photo { aspect-ratio: .8; }
}
@media (max-width: 767px) {
  .homepage-polished { --section-title-size: 30px; --section-space: 64px; }
  :root { --header-height: 80px; --size-hero: clamp(30px, 8.5vw, 38px); --size-company: 17px; --size-description: 17px; --size-body: 16px; --size-service: 21px; --section-title-size: 30px; --size-contact: 16px; }
  .container, .header-inner, .hero-inner { width: calc(100% - 40px); }
  .brand-logo { width: 102px; }
  .brand { gap: 9px; }
  .brand-symbol { width: 60px; height: 44px; }
  .brand-symbol img { width: 118px; transform: translate(-10px, -5px); }
  .brand-name { font-size: 23px; }
  .brand-english { font-size: 10px; }
  .header { height: auto; min-height: var(--header-height); }
  .header-inner { min-height: var(--header-height); flex-wrap: wrap; gap: 0; }
  .header nav { width: 100%; gap: 0; justify-content: space-between; }
  .menu-ready .header-inner { flex-wrap: nowrap; }
  .menu-ready .menu-toggle { display: flex; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 10px; }
  .menu-toggle span { width: 20px; height: 1px; background: var(--blue); transition: transform .2s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-ready .header nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .menu-ready .header nav.is-open { display: flex; }
  .header nav a { padding: 12px 0; }
  .header nav a::after { display: none; }
  .header nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
  .header nav .nav-contact { margin-top: 8px; text-align: center; text-decoration: none; }
  .hero { min-height: 620px; }
  .hero-inner { padding-block: 64px; }
  .hero-photo { object-position: 60% center; }
  .hero-copy { width: 100%; padding: 0; }
  .hero-label { margin-bottom: 20px; font-size: 14px; }
  .hero-copy h1 { font-size: clamp(34px, 9.5vw, 40px); margin-bottom: 20px; }
  .hero-copy > p:not(.hero-label) { margin-bottom: 24px; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { aspect-ratio: 1.6; object-position: center; }
  .about-copy { padding-top: 0; }
  .about-copy h2 { margin-bottom: 28px; }
  .service-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-copy { padding-top: 20px; }
  .services-intro { margin-bottom: 32px; }
  .contact { padding-block: 48px 32px; }
  .contact-details > div { grid-template-columns: 80px minmax(0, 1fr); column-gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  footer nav { flex-wrap: wrap; gap: 8px 24px; }
  footer p { grid-column: auto; }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .about-refined .about-layout { gap: 48px; }

}
@media (max-width: 900px) {
  .about-refined .about-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }

}
@media (max-width: 767px) {
  .about-refined .about-layout { gap: 32px; }
  .about-refined .about-copy h2 { margin-bottom: 28px; }

  .about-refined .about-copy > p + p { margin-top: 22px; }

}
@media (min-width: 768px) and (max-width: 1023px) {
  .services-refined .service-grid { gap: 52px 28px; }
}
@media (max-width: 767px) {
  .services-refined .section-title { margin-bottom: 40px; }
  .services-refined .service-grid { gap: 40px; }

}
@media (min-width: 768px) and (max-width: 1023px) {
  .contact-map-section .contact-layout { gap: 32px; }

}
@media (max-width: 767px) {
  .contact-map-section .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact-map-section .contact-intro { font-size: 16px; margin-bottom: 24px; }

  .contact-map-section .contact-details a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
  .contact-map iframe { height: 300px; }
}
@media (prefers-reduced-motion: no-preference) {

  .reveal.is-entering { animation: enter-content .4s ease-out both; }
  .service-card.is-entering { animation-delay: var(--reveal-delay, 0ms); }
  @keyframes enter-content { from { opacity: .85; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Preserve the original logo crop at a proportional desktop size. */
@media (min-width: 768px) {
  .homepage-polished .brand { gap: 11px; }
  .homepage-polished .brand-symbol { width: 79.48px; height: 58px; }
  .homepage-polished .brand-symbol img { width: 154.67px; transform: translate(-12.89px, -6.44px); }
}
