/* 協力 official site draft — flyer navy + cyan grid language */

:root {
  /* Sampled from official flyer page 1 (glowing 協力 mark and field) */
  --navy: #0a1624;
  --navy-deep: #070e16;
  --navy-card: #0d1b29;
  --navy-elev: #102033;
  --cyan: #80b8da;
  --cyan-bright: #bde2f4;
  --cyan-mid: #4f81a9;
  --cyan-frame: #406e8d;
  --cyan-line: #7bb6de;
  --text: #f3f7fa;
  --text-muted: #9eb4c4;
  --white: #ffffff;
  --grid: rgba(123, 182, 222, 0.13);
  --line: rgba(123, 182, 222, 0.28);
  --line-strong: rgba(128, 184, 218, 0.55);
  --header-h: 4.55rem;
  --wrap: 70rem;
  --gutter: 1.35rem;
  --font: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang HK", "Hiragino Sans CNS", "Segoe UI", "Helvetica Neue", "Microsoft JhengHei", sans-serif;
  --wa: #128c5b;
  --wa-hover: #0e734b;
  --radius: 0.85rem;
  --ease: 0.2s ease;
}

@media (min-width: 48rem) {
  :root { --gutter: 2.25rem; --header-h: 5.15rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 4rem 4rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--cyan);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--cyan-bright); }

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.22;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button, .btn { font-family: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cyan-line);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--cyan);
  color: var(--navy-deep);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 22, 36, 0.88);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: border-color var(--ease), background var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 14, 22, 0.94);
  border-bottom-color: var(--line-strong);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  height: 3.55rem;
  width: auto;
  flex: 0 0 auto;
  display: block;
}

@media (min-width: 48rem) {
  .brand-mark { height: 4.05rem; }
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  white-space: nowrap;
  line-height: 1.3;
}

@media (max-width: 47.99rem) {
  .brand-tag { display: none; }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 0.45rem;
  overflow: hidden;
}

.lang-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.5rem;
  cursor: pointer;
  line-height: 1;
  min-width: 1.9rem;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--cyan);
  color: var(--navy-deep);
  font-weight: 600;
}

.lang-switch button + button {
  border-left: 1px solid var(--line);
}

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars {
  display: block;
  width: 1.05rem;
  height: 0.7rem;
  position: relative;
}

.nav-toggle-bars span,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars::after { bottom: 0; }

.site-header.is-open .nav-toggle-bars span { opacity: 0; }
.site-header.is-open .nav-toggle-bars::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.site-header.is-open .nav-toggle-bars::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.site-nav { display: none; }

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--cyan); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 0.7rem;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.btn-wa {
  background: var(--wa);
  color: var(--white);
  border-color: var(--wa);
}

.btn-wa:hover,
.btn-wa:focus-visible {
  background: var(--wa-hover);
  color: var(--white);
  border-color: var(--wa-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-bright);
  background: rgba(128, 184, 218, 0.08);
}

.btn-dark {
  background: transparent;
  color: var(--cyan);
  border-color: var(--line-strong);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan-bright);
  background: rgba(128, 184, 218, 0.08);
}

.btn-header-wa {
  padding: 0.42rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 0.55rem;
}

.btn-header-wa .btn-label-full { display: none; }

@media (min-width: 30rem) {
  .btn-header-wa .btn-label-full { display: inline; }
  .btn-header-wa .btn-label-short { display: none; }
}

@media (min-width: 64rem) {
  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }

  .brand { flex: 0 1 auto; }
}

@media (max-width: 63.99rem) {
  .site-nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(7, 14, 22, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem var(--gutter) 1.1rem;
    transform: translateY(-0.35rem);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
  }

  .site-nav a {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--text);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: stretch;
  color: var(--text);
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 14, 22, 0.12) 0%, rgba(7, 14, 22, 0.2) 46%, rgba(7, 14, 22, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  padding: 1.5rem 0 3.25rem;
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  max-width: 40rem;
  margin-left: var(--gutter);
  margin-right: auto;
}

@media (min-width: 48rem) {
  .hero-inner {
    width: min(var(--wrap), calc(100% - var(--gutter) * 2));
    margin-inline: auto;
    max-width: 62rem;
    margin-left: max(var(--gutter), calc((100% - min(var(--wrap), calc(100% - var(--gutter) * 2))) / 2));
    padding: 1.75rem 0 4.25rem;
  }
}

.hero-mark-slot {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0.5rem 0 1.5rem;
  min-height: 6.25rem;
}

.hero-mark {
  height: 5.5rem;
  width: auto;
  display: block;
}

@media (min-width: 48rem) {
  .hero-mark {
    height: 7rem;
  }

  .hero-mark-slot {
    padding: 0.75rem 0 1.75rem;
    min-height: 8rem;
  }
}

.hero-break { display: none; }

@media (max-width: 47.99rem) {
  .hero-break { display: block; }
}

.hero-legal {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.15rem;
}

.hero-legal strong {
  font-weight: 600;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  letter-spacing: 0.01em;
  color: var(--white);
}

.hero-legal span {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  font-weight: 500;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.18;
  max-width: none;
  text-wrap: pretty;
}

.hero-lead {
  margin-top: 1.25rem;
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: rgba(243, 247, 250, 0.88);
  line-height: 1.7;
  font-weight: 400;
  text-wrap: pretty;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin-top: 1.35rem;
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-points > .hero-point + .hero-point { position: relative; }

@media (min-width: 40rem) {
  .hero-points > .hero-point + .hero-point::before {
    content: "";
    position: absolute;
    left: -0.65rem;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cyan-mid);
    transform: translate(-50%, -50%);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

/* ---------- Sections ---------- */
.section { padding: 4.75rem 0; }

@media (min-width: 48rem) {
  .section { padding: 6.25rem 0; }
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1.5px;
  margin-top: 0.9rem;
  background: var(--cyan);
  border-radius: 1px;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 1rem;
  text-wrap: pretty;
}

/* About */
.section-about { background: transparent; }

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 58rem) {
  .about-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
    gap: 3.5rem;
    align-items: start;
  }
}

.about-copy .section-head { margin-bottom: 1.35rem; }

.about-copy p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 34rem;
}

.about-copy p + p { margin-top: 1.1rem; }

.about-points {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .about-points { grid-template-columns: 1fr 1fr; }
}

.about-point {
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem 1.5rem;
  min-height: 100%;
}

.about-point h3 {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.about-point p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Services */
.section-services { background: transparent; }

.service-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 52rem) {
  .service-grid {
    grid-template-columns: 1.25fr 0.9fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    align-items: stretch;
  }
  .service-card:first-child { grid-row: 1 / span 2; }
}

.service-card {
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.55rem 1.85rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card h3 {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.service-list {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.55rem;
}

.service-list li {
  font-size: 0.98rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--white);
  background: rgba(16, 32, 51, 0.55);
}

/* Projects */
.section-projects { background: transparent; }

.section-projects .section-head { margin-bottom: 2.5rem; }

.projects-grid {
  display: grid;
  gap: 2.1rem 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: span 2; }
}

@media (min-width: 64rem) {
  .projects-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 2.35rem 1.4rem;
  }
  .project-card { grid-column: span 2; }
  .project-card.featured,
  .project-card.wide { grid-column: span 3; }
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
}

.project-card figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card .photo {
  overflow: hidden;
  background: var(--navy-deep);
  border-radius: var(--radius);
  border: 1px solid rgba(123, 182, 222, 0.18);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: saturate(1.02);
}

.project-card.featured img { aspect-ratio: 16 / 9; }
.project-card.wide img { aspect-ratio: 3 / 2; }

@media (prefers-reduced-motion: no-preference) {
  .project-card:hover img { transform: scale(1.03); }
}

.project-card figcaption {
  padding: 1rem 0.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.project-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.project-card .kind {
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* Contact */
.section-contact { background: transparent; }

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 58rem) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: stretch;
  }
}

.contact-list {
  margin-top: 0.25rem;
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 1.3rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  gap: 0.85rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

@media (min-width: 30rem) {
  .contact-item {
    grid-template-columns: 8rem 1fr;
  }
}

.contact-item:last-child { border-bottom: 0; }

.contact-item .label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  padding-top: 0.15rem;
}

.contact-item a,
.contact-item address,
.contact-item dd {
  font-style: normal;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  margin: 0;
}

.contact-item a:hover { color: var(--cyan-bright); }

.contact-item .addr-en {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-item .map-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--cyan);
  text-decoration: underline;
}

.contact-item .map-link:hover { color: var(--cyan-bright); }

.contact-item .br-no {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

html[lang="en"] .contact-item {
  grid-template-columns: 7.25rem 1fr;
}

html[lang="en"] .contact-item .label {
  line-height: 1.35;
}

@media (max-width: 29.99rem) {
  .contact-item-br {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}


.contact-panel {
  background: var(--navy-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 2.1rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.contact-panel h3 {
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.contact-panel p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.contact-panel .btn { width: 100%; }
.contact-panel .btn:first-of-type { margin-top: auto; }
.contact-panel .btn + .btn { margin-top: 0.65rem; }


/* QR codes */
.qr-row {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 40rem) {
  .qr-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 28rem;
  }
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--ease);
}

.qr-card:hover {
  border-color: var(--line-strong);
  color: inherit;
}

.qr-card img {
  width: 5.5rem;
  height: 5.5rem;
  flex: 0 0 auto;
  border-radius: 0.4rem;
  background: var(--white);
}

.qr-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.qr-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
}

.qr-name {
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.4;
}

@media (min-width: 58rem) {
  .qr-row {
    max-width: none;
  }
}
/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--text-muted);
  padding: 2.5rem 0 5.75rem;
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .site-footer { padding: 2.75rem 0; }
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 52rem) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  height: 3.6rem;
  width: auto;
  display: block;
}

.footer-names strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
}

.footer-names span {
  display: block;
  font-size: 0.75rem;
  color: var(--cyan);
}

.footer-meta {
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-meta a { color: inherit; text-decoration: none; }
.footer-meta a:hover { color: var(--cyan); text-decoration: underline; }

.footer-br {
  color: var(--text-muted);
}

@media (min-width: 52rem) {
  .footer-br {
    grid-column: 1 / -1;
    justify-self: stretch;
    padding-top: 0.15rem;
  }
}

.footer-br .br-no {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}


/* Floating WhatsApp — mobile */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(18, 140, 91, 0.28);
  text-decoration: none;
}

.wa-float svg { width: 1.55rem; height: 1.55rem; }
.wa-float:hover { background: var(--wa-hover); color: var(--white); }

@media (min-width: 64rem) {
  .wa-float { display: none; }
}

/* Language visibility */
html[lang="en"] [data-lang="zh"],
html:not([lang="en"]) [data-lang="en"] {
  display: none !important;
}

.nav-backdrop { display: none; }

@media (max-width: 63.99rem) {
  .site-header.is-open + .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .project-card:hover img { transform: none; }
}
