:root {
  color-scheme: dark;
  --navy-950: #031019;
  --navy-900: #061722;
  --navy-800: #0a2532;
  --teal-400: #41ead3;
  --teal-300: #72f2df;
  --text: #f4f8f7;
  --muted: #a9bcc1;
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--navy-950);
}

body {
  margin: 0;
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--navy-950);
  color: var(--text);
}

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

.home-page,
.hero {
  min-height: 100svh;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(760px, 100svh);
  overflow: hidden;
  background: var(--navy-950);
}

.scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  transform: scale(1.02);
}

.scene-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translate3d(calc(var(--scene-x, 0) * -1px), calc(var(--scene-y, 0) * -1px), 0) scale(1.035);
  transition: transform 800ms cubic-bezier(.2,.8,.2,1);
}

.scene-character {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: saturate(.88) brightness(.82) contrast(1.02);
}

.pump-worker {
  left: 51.6%;
  top: 39.5%;
  width: clamp(66px, 7.2vw, 120px);
  transform-origin: 50% 92%;
  animation: pump-motion 2.8s ease-in-out infinite;
}

.motor-mechanic {
  left: 66.2%;
  top: 46.5%;
  width: clamp(74px, 7.9vw, 132px);
  transform-origin: 50% 88%;
  animation: repair-motion 3.6s ease-in-out infinite;
}

.village-chickens {
  left: 53.5%;
  top: 62.7%;
  width: clamp(100px, 13vw, 220px);
  transform-origin: 50% 90%;
  animation: chicken-walk 8s ease-in-out infinite alternate;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 14px clamp(24px, 3.2vw, 54px);
  background: rgba(3, 16, 25, .9);
  border-bottom: 1px solid rgba(114, 242, 223, .14);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand span {
  display: grid;
  gap: 4px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: .02em;
  line-height: 1.1;
}

.brand small {
  color: var(--teal-400);
  font-size: 12px;
  letter-spacing: .04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 40px);
  color: #c5d3d5;
  font-size: 14px;
}

.site-nav a {
  padding: 12px 2px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .nav-accent {
  color: var(--teal-400);
  border-bottom-color: currentColor;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(620px, 42vw);
  padding: clamp(52px, 6vh, 76px) 0 42px clamp(28px, 3.3vw, 56px);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--teal-400);
  font-size: clamp(12px, 1.15vw, 17px);
  font-weight: 700;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  max-width: 8em;
  font-size: clamp(54px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.english-name {
  margin: 16px 0 0;
  color: #d9e5e4;
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 650;
}

.hero-intro {
  max-width: 500px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.8;
}

.hero-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid var(--teal-400);
  border-radius: 6px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: .04em;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.primary-button {
  width: min(372px, 100%);
  min-height: 84px;
  background: var(--teal-400);
  color: #03201d;
  font-size: 20px;
}

.secondary-button {
  width: min(286px, 100%);
  min-height: 62px;
  background: rgba(3, 16, 25, .7);
  color: var(--teal-300);
}

.primary-button:hover,
.secondary-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.site-nav a:focus-visible,
.contact-board a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.service-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(114, 242, 223, .22);
}

.service-points div {
  min-width: 0;
}

.service-points dt {
  color: #eef7f5;
  font-size: 14px;
  font-weight: 750;
}

.service-points dd {
  margin: 6px 0 0;
  color: #88a2a7;
  font-size: 12px;
  line-height: 1.5;
}

.contact-board {
  position: absolute;
  z-index: 4;
  top: clamp(202px, 22vh, 252px);
  right: clamp(8px, 1.2vw, 20px);
  width: min(360px, 27vw);
  aspect-ratio: 1344 / 1536;
}

.contact-board-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .32));
}

.contact-board-copy {
  position: absolute;
  z-index: 1;
  top: 29.5%;
  right: 11%;
  left: 16%;
  color: #fff8e8;
  text-shadow: 0 1px 2px rgba(24, 10, 3, .9), 0 2px 6px rgba(24, 10, 3, .7);
}

.contact-kicker {
  margin: 0 0 8px;
  color: #fff7e4;
  font-size: clamp(10px, .82vw, 12px);
  font-weight: 800;
  letter-spacing: .08em;
}

.address-link {
  display: block;
  color: #fff7e4;
  font-size: clamp(10px, .8vw, 12px);
  line-height: 1.42;
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 242, 205, .42);
}

.contact-links a {
  color: #fff0cf;
  font-size: clamp(9px, .7vw, 11px);
  line-height: 1.28;
}

.contact-links strong {
  color: #fffdf3;
  font-size: clamp(10px, .78vw, 12px);
}

.map-link {
  display: inline-block;
  margin-top: 8px;
  color: #fff7df;
  font-size: clamp(9px, .68vw, 10px);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.motion-note {
  position: absolute;
  z-index: 3;
  left: clamp(28px, 3.3vw, 56px);
  bottom: 22px;
  margin: 0;
  color: rgba(114, 242, 223, .72);
  font-size: 11px;
  letter-spacing: .06em;
}

@keyframes pump-motion {
  0%, 100% { transform: translateY(0) rotate(-.8deg); }
  50% { transform: translateY(5px) rotate(1.4deg); }
}

@keyframes repair-motion {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(3px) rotate(-1.2deg); }
  60% { transform: translateY(1px) rotate(.7deg); }
}

@keyframes chicken-walk {
  0% { transform: translate3d(-16px, 0, 0) rotate(-.5deg); }
  25% { transform: translate3d(-5px, -2px, 0) rotate(.7deg); }
  50% { transform: translate3d(7px, 0, 0) rotate(-.4deg); }
  75% { transform: translate3d(18px, -2px, 0) rotate(.8deg); }
  100% { transform: translate3d(30px, 0, 0) rotate(-.3deg); }
}

@media (max-width: 980px) {
  .hero {
    min-height: 820px;
  }

  .scene-background {
    object-position: 63% center;
  }

  .hero-content {
    width: min(560px, 58vw);
  }

  .contact-board {
    width: 320px;
  }

  .pump-worker { left: 54%; }
  .motor-mechanic { left: 69%; }
}

@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
  }

  .site-header {
    min-height: 76px;
    padding: 10px 18px;
  }

  .brand {
    gap: 10px;
  }

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

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    max-width: 180px;
    font-size: 10px;
  }

  .site-nav {
    display: none;
  }

  .scene-background {
    object-position: 66% center;
    opacity: .68;
  }

  .hero-content {
    box-sizing: border-box;
    width: 100%;
    padding: 62px 20px 370px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
  }

  h1 {
    max-width: 7em;
    font-size: clamp(48px, 15vw, 68px);
  }

  .english-name {
    font-size: 17px;
  }

  .hero-intro {
    max-width: 34em;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: auto;
    max-width: none;
    gap: 10px;
    margin: 24px 20px 0 0;
  }

  .primary-button,
  .secondary-button {
    box-sizing: border-box;
    min-width: 0;
    min-height: 52px;
    padding: 0 18px;
    font-size: 14px;
  }

  .primary-button {
    width: 100%;
  }

  .secondary-button {
    width: 100%;
  }

  .service-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
  }

  .service-points dt {
    font-size: 12px;
  }

  .service-points dd {
    font-size: 10px;
  }

  .contact-board {
    top: auto;
    right: auto;
    bottom: 4px;
    left: 12px;
    width: min(330px, 82vw);
  }

  .contact-kicker {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .address-link {
    font-size: 11px;
    line-height: 1.5;
  }

  .contact-links {
    margin-top: 7px;
    padding-top: 7px;
  }

  .map-link {
    margin-top: 10px;
  }

  .motion-note {
    display: none;
  }

  .pump-worker {
    left: 52%;
    top: 43%;
    width: 58px;
  }

  .motor-mechanic {
    left: 70%;
    top: 49%;
    width: 62px;
  }

  .village-chickens {
    left: 55%;
    top: 62%;
    width: 112px;
  }
}

@media (max-width: 390px) {
  .brand small {
    max-width: 152px;
  }

  .hero-content {
    padding-top: 48px;
  }

  .hero-actions {
    width: min(320px, calc(100vw - 40px));
    margin-right: 0;
  }

  .service-points dd {
    display: none;
  }

  .contact-links strong {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .motion-note {
    display: none;
  }
}
