:root {
  --ink: #222222;
  --muted: #666666;
  --white: #ffffff;
  --bg: #ffffff;
  --line: #eeeeee;
  --pink: #ff8aa8;
  --pink-soft: #ffd6e2;
  --blue: #3b5bfd;
  --blue-dark: #2f4ae0;
  --footer: #1c1c1c;
  --font: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --radius: 1.5rem;
  --radius-sm: 1.15rem;
  --header-h: 4.25rem;
  --z-header: 100;
  --z-menu: 4000;
  --z-top: 150;
  --container: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
}

body.is-locked {
  overflow: hidden;
  height: 100dvh;
}

body.is-locked .site-header {
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6rem;
  line-height: 1.35;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5000;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 4.5rem 0;
}

.block-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.4rem;
}

.block-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.block-head p {
  margin: 0;
}

.block-head .block-sub {
  margin: 0.15rem 0 0.85rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.has-dots {
  overflow: hidden;
}

.dot {
  position: absolute;
  border-radius: 50%;
  background: var(--pink);
  pointer-events: none;
  z-index: 0;
}

.dot-lg {
  width: 4.2rem;
  height: 4.2rem;
  right: -1.1rem;
  top: 2.4rem;
}

.dot-md {
  width: 2.4rem;
  height: 2.4rem;
  left: -0.6rem;
  bottom: 18%;
}

.dot-sm {
  width: 1.15rem;
  height: 1.15rem;
  right: 8%;
  top: 1.2rem;
  background: var(--pink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--blue-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.mobile-close:focus-visible,
.whatsapp-fab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid #ddd;
}

.btn-ghost:hover {
  background: #f6f6f6;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.6rem;
}

.nav-list a {
  font-size: 0.92rem;
}

.nav-list a.is-active {
  color: var(--blue);
}

.menu-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: var(--z-menu);
  background: var(--white);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.2rem;
}

.mobile-close {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 1.6rem;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a.is-active {
  color: var(--blue);
}

.mobile-cta {
  margin-top: auto;
  padding: 1.6rem 0 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 72vh;
  min-height: 420px;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 0 3.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 70%);
  color: var(--white);
}

.hero-content .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  margin: 0;
  max-width: 10em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 38vh;
  min-height: 240px;
  object-fit: cover;
}

.page-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 65%);
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.4rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 40rem;
}

.page-hero-en {
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.page-hero h1 + .page-hero-en {
  margin-bottom: 0.35rem;
}

.brand-kicker {
  margin: 0 0 0.35rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-lead {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
}

.brand-lead p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 2;
}

.brand-story {
  display: grid;
  gap: 2.6rem;
}

.brand-story h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.brand-story p {
  margin: 0;
}

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.45rem;
}

.breadcrumb a:hover {
  color: var(--white);
}

/* Cards */
.card-pair,
.card-grid {
  display: grid;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.photo-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(34, 34, 34, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.photo-card > a {
  display: block;
  color: inherit;
}

.photo-card-body h2 {
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(34, 34, 34, 0.1);
}

.photo-card img,
.photo-card .placeholder-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-card-overlay {
  position: relative;
}

.photo-card-overlay img,
.photo-card-overlay .placeholder-frame {
  aspect-ratio: 16 / 11;
}

.photo-card-label {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.photo-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.photo-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.photo-card-body p {
  margin: 0;
  font-size: 0.9rem;
}

.service-include-label {
  margin-top: 0.85rem !important;
  font-weight: 700;
  color: var(--ink);
}

.service-include-list {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-include-list li {
  margin: 0.2rem 0;
}

.badge {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: var(--pink-soft);
  color: #c24164;
  margin-bottom: 0.4rem;
}

.badge-done {
  background: #e8eeff;
  color: var(--blue);
}

.placeholder-frame {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 138, 168, 0.08), transparent 50%),
    repeating-linear-gradient(
      45deg,
      #f6f6f6,
      #f6f6f6 12px,
      #f1f1f1 12px,
      #f1f1f1 13px
    );
}

/* Process / people strip */
.process-row,
.people-row {
  display: grid;
  gap: 1rem;
}

.process-item {
  padding: 0.2rem 0.2rem 0.6rem;
}

.process-num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.stat-banner {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.2rem;
}

.stat-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.42);
}

.stat-banner-inner {
  position: relative;
  z-index: 1;
}

.stat-banner strong {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
}

/* Project meta / gallery */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin: 0 0 2.2rem;
}

.project-meta dt {
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 700;
}

.project-meta dd {
  margin: 0.15rem 0 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery .placeholder-frame,
.gallery img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 5000;
  background: rgba(20, 20, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3rem 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.6rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.6rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.8rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0.8rem;
}

.lightbox-next {
  right: 0.8rem;
}

code {
  font-size: 0.85em;
  background: #f4f4f4;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Contact */
.contact-hero-band {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.contact-hero-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.35);
}

.contact-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

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

.contact-card h2,
.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-card {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form[hidden] {
  display: none;
}

.form-row {
  display: grid;
  gap: 0.3rem;
}

.form label {
  font-size: 0.88rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 0.7rem;
  background: var(--white);
  padding: 0.72rem 0.85rem;
}

.form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.form-error {
  color: #c24164;
  font-size: 0.82rem;
  display: none;
}

.form-row.is-invalid .form-error {
  display: block;
}

.form-row.is-invalid input,
.form-row.is-invalid select,
.form-row.is-invalid textarea {
  border-color: #c24164;
}

.form-success {
  display: none;
  border-radius: var(--radius-sm);
  background: #eef2ff;
  color: var(--blue);
  padding: 1rem 1.1rem;
}

.form-success.is-visible {
  display: block;
}

.showroom-copy {
  max-width: 40rem;
  margin: -0.8rem auto 1.8rem;
  text-align: center;
}

.showroom-copy p + p {
  margin-top: 0.85rem;
}

.showroom-meta {
  justify-content: center;
  margin-bottom: 1.6rem;
}

.map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
}

.map-placeholder {
  min-height: 260px;
  border-radius: var(--radius);
  border: 1px dashed #d8d8d8;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
  background:
    repeating-linear-gradient(
      -45deg,
      #fafafa,
      #fafafa 10px,
      #f3f3f3 10px,
      #f3f3f3 11px
    );
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #f2f2f2;
  padding: 3rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-copy {
  padding-top: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: calc(var(--z-top) + 1);
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38);
}

.whatsapp-fab:hover {
  background: #1ebe5d;
  color: var(--white);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 4.7rem;
  z-index: var(--z-top);
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding-bottom: 4.4rem;
  }

  .card-pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }

  .process-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .brand-story {
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;
    align-items: start;
  }

  .people-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
  }

  .contact-panel {
    max-width: 520px;
    padding: 2.1rem 2rem;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .page-hero img {
    height: 42vh;
  }
}

@media (min-width: 1024px) {
  .nav-list {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}
