:root {
  --blue-50: #f3f8fd;
  --blue-100: #e5f1fb;
  --blue-300: #7ec8f8;
  --blue-500: #1c7fe0;
  --blue-600: #1568c4;
  --blue-700: #0f4f9a;
  --blue-800: #0c3c74;
  --ink: #122033;
  --ink-soft: #3c4d60;
  --muted: #4d5e72;
  --line: #e3ebf3;
  --gold: #f0b000;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --navy: #0b2340;
  --wa: #128c7e;
  --header: 4.5rem;
  --shadow: 0 14px 40px rgba(16, 48, 88, 0.08);
  --radius: 18px;
  --font: "Noto Sans HK", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Heiti TC", "Noto Sans CJK HK", sans-serif;
  --display: "Outfit", "Noto Sans HK", "PingFang HK", sans-serif;
  --max: 1120px;
}

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

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

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

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p, ul {
  margin: 0;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: #d3e8fb;
  color: var(--navy);
}

.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;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  top: 0.8rem;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.section {
  padding: 3.4rem 0;
}

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

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  margin-bottom: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3aa8ff 0%, #1568c4 58%, #0e4c96 100%);
  box-shadow: 0 8px 20px rgba(21, 104, 196, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(21, 104, 196, 0.34);
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
  border-color: #d5e1ee;
}

.btn-ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.btn-wa {
  color: var(--ink);
  background: #fff;
  border-color: #d5e1ee;
}

.btn-wa svg {
  color: var(--wa);
}

.btn-wa:hover {
  border-color: var(--wa);
  color: #0c6b60;
}

.btn-sm {
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px rgba(16, 40, 70, 0.06);
}

.brand-bar {
  height: 3px;
  background: linear-gradient(90deg, #7ed4ff, #1568c4 62%, var(--gold));
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-en {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.js .nav-toggle {
  display: inline-flex;
}

.burger {
  width: 18px;
  height: 12px;
  display: grid;
  gap: 4px;
}

.burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  padding: 0.2rem 0 0.8rem;
}

.js .site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  width: auto;
  padding: 0.85rem 1.25rem 1.1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(16, 40, 70, 0.08);
}

.js .site-nav.is-open {
  display: flex;
}

.site-nav a {
  text-decoration: none;
  padding: 0.7rem 0.2rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav a.btn {
  margin-top: 0.4rem;
  color: #fff;
}

.hero {
  position: relative;
  padding: 2.4rem 0 3rem;
  overflow: hidden;
  background:
    radial-gradient(640px 320px at 88% 18%, rgba(46, 150, 242, 0.16), transparent 70%),
    #fff;
}

.hero-grid {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.5rem;
}

.hero-copy {
  max-width: 40rem;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 4.15rem);
  letter-spacing: -0.03em;
}

.en-name {
  margin-top: 0.45rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero .lede {
  margin: 1rem auto 0;
  max-width: 36rem;
}

@media (min-width: 960px) {
  .hero-break::before {
    content: "";
    display: block;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero-contacts {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.4rem;
}

.hero-contacts li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.hero-contacts span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-contacts a {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-700);
  text-decoration: none;
}

.hero-contacts a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-visual {
  position: relative;
  width: min(280px, 78vw);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, rgba(58, 164, 245, 0.28), rgba(58, 164, 245, 0) 68%);
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.section-services {
  background: var(--bg-soft);
}

.service-block + .service-block {
  margin-top: 1.8rem;
}

.group-label {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
}

.card-grid {
  display: grid;
  gap: 0.85rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: 0 1px 0 rgba(16, 40, 70, 0.02);
}

.card h4 {
  font-size: 1.12rem;
  margin: 0.75rem 0 0.35rem;
  letter-spacing: 0;
}

.card p,
.lede {
  word-break: keep-all;
  line-break: strict;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  background: linear-gradient(180deg, #f4f9ff, #e7f2fc);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.card-feature {
  display: grid;
  gap: 0.9rem;
  background:
    radial-gradient(520px 160px at 100% 0%, rgba(46, 150, 242, 0.16), transparent 60%),
    linear-gradient(180deg, #f8fbff, #fff);
  border-color: #d5e6f8;
}

.card-feature h4 {
  margin-top: 0;
  font-size: 1.35rem;
}

.section-works {
  background: #fff;
}

.works-intro {
  display: grid;
  gap: 0.5rem;
  align-items: center;
}

.works-mark {
  width: min(180px, 46vw);
  margin-inline: auto;
  justify-self: center;
}

.gallery:empty {
  display: none;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.shot {
  margin: 0;
}

.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.shot-btn img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.section-contact {
  background:
    radial-gradient(700px 240px at 0% 0%, rgba(46, 150, 242, 0.1), transparent 55%),
    var(--bg-soft);
}

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

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.person::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #7ed4ff, #1568c4 70%, var(--gold));
}

.person-role {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.person h3 {
  font-size: 1.55rem;
  margin: 0.15rem 0 0.35rem;
}

.phone {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.7rem);
  letter-spacing: 0.03em;
  color: var(--blue-700);
  text-decoration: none;
  line-height: 1.1;
}

.phone:hover {
  color: var(--blue-500);
}

.dial {
  margin-top: 0.15rem;
  color: var(--muted);
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.site-footer {
  background: var(--navy);
  color: #d5e2f0;
  padding: 2.2rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

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

.footer-brand img {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  padding: 3px;
}

.footer-name {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-en {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #9eb4cb;
}

.footer-nav,
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-nav a,
.footer-contacts a {
  color: #d5e2f0;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contacts a:hover {
  color: #fff;
}

.footer-base {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8ea4bb;
  font-size: 0.88rem;
}

.lightbox {
  width: min(1040px, calc(100vw - 1.25rem));
  max-height: calc(100vh - 1.25rem);
  border: 0;
  padding: 0.8rem 0.8rem 1rem;
  border-radius: 18px;
  background: #0d1b2c;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(6, 14, 26, 0.78);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.lb-count,
.lb-cap {
  margin: 0;
  color: #d5e2f0;
  font-size: 0.92rem;
}

.lb-close,
.lb-nav {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
  min-height: 44px;
  cursor: pointer;
  font-family: inherit;
}

.lb-close {
  padding: 0 0.95rem;
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
}

.lb-nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
}

.lb-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lb-nav[hidden] {
  display: none;
}

#lb-img {
  width: 100%;
  max-height: min(72vh, 920px);
  object-fit: contain;
  background: #08131f;
  border-radius: 12px;
}

.lb-cap {
  margin-top: 0.7rem;
  min-height: 1.4em;
}

@media (min-width: 720px) {
  .section {
    padding: 4.5rem 0;
  }

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

  .card-feature {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 1.6rem 1.8rem;
  }

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

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

  .works-intro {
    grid-template-columns: 1fr auto;
  }

  .works-mark {
    width: 200px;
    margin: 0;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem 1.15rem;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0.35rem 0;
  }

  .site-nav a.btn {
    margin: 0 0 0 0.3rem;
    color: #fff;
  }

  .hero {
    padding: 4.2rem 0 4.6rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    text-align: left;
    justify-items: stretch;
    gap: 2rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero .lede {
    margin-left: 0;
  }

  .hero-actions,
  .hero-contacts {
    justify-content: flex-start;
  }

  .hero-visual {
    width: min(420px, 100%);
    justify-self: end;
  }

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

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

  .en-name {
    letter-spacing: 0.24em;
    font-size: 0.86rem;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }

  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .shot-btn img {
    transition: transform 0.45s ease;
  }

  .shot-btn:hover img {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .hero-visual img {
    animation: float 7.5s ease-in-out infinite;
  }
}

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

  .btn,
  .card,
  .shot-btn img {
    transition: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media print {
  .site-header,
  .skip,
  .nav-toggle,
  .lightbox,
  .hero-actions,
  .person-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section,
  .hero {
    padding: 1rem 0;
  }
}
