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

.scene-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, calc(100vh * 1.7787234));
  aspect-ratio: 1672 / 940;
  transform: translate(-50%, -50%);
}

.scene-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.doorway-photo-light {
  position: absolute;
  z-index: 1;
  top: 4.2553%;
  left: 52.6316%;
  display: block;
  width: 30.622%;
  height: 54.4681%;
  object-fit: fill;
  opacity: 0;
  mix-blend-mode: normal;
  transition: none;
  pointer-events: none;
  user-select: none;
}

.contact-board-glow {
  position: absolute;
  z-index: 1;
  top: 23.8%;
  left: 83.5%;
  width: 15%;
  height: 27.5%;
  background: url("assets/home/animation-v3/contact-original-logos-lit.png?v=11") center / 100% 100% no-repeat;
  filter: none;
  opacity: 0;
  transform: none;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.contact-map-glow {
  clip-path: inset(0 0 45% 0);
}

.contact-whatsapp-glow {
  clip-path: inset(60% 0 0 0);
}

.hero:has(.primary-button:hover) .doorway-photo-light,
.hero:has(.primary-button:focus-visible) .doorway-photo-light,
.hero:has(.doorway-hotspot:hover) .doorway-photo-light,
.hero:has(.doorway-hotspot:focus-visible) .doorway-photo-light {
  opacity: 1;
}

.hero:has(.contact-button:hover) .contact-board-glow,
.hero:has(.contact-button:focus-visible) .contact-board-glow,
.hero:has(.contact-board-map:hover) .contact-map-glow,
.hero:has(.contact-board-map:focus-visible) .contact-map-glow,
.hero:has(.contact-board-whatsapp:hover) .contact-whatsapp-glow,
.hero:has(.contact-board-whatsapp:focus-visible) .contact-whatsapp-glow {
  opacity: 1;
  transform: none;
  filter: none;
}


















.scene-character {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: saturate(.88) brightness(.82) contrast(1.02);
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
}

.pump-worker {
  left: 55%;
  top: 57.4%;
  width: 12.2%;
}

.motor-mechanic {
  left: 67.7%;
  top: 59.2%;
  width: 10.2%;
}

.boat-vendor {
  left: 79.4%;
  top: 72.8%;
  width: 10.4%;
  clip-path: inset(0 0 31% 0);
}

.village-chicken {
  width: 4.3%;
}

.chicken-one {
  left: 55.1%;
  top: 70.8%;
}

.chicken-two {
  left: 60.2%;
  top: 74.1%;
  width: 3.9%;
}

.village-dog {
  left: 60.8%;
  top: 58.2%;
  width: 5.8%;
}

.village-cat {
  left: 52.4%;
  top: 68.6%;
  width: 4.6%;
}

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

.mobile-product-intro,
.mobile-contact-button,
.mobile-contact-panel,
.mobile-footer {
  display: none;
}

.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;
  width: min(286px, 100%);
  min-height: 62px;
  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 {
  background: var(--teal-400);
  color: #03201d;
}

.secondary-button {
  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 {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.contact-board .contact-board-hotspot:focus-visible {
  outline: none;
  outline-offset: 0;
}

.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-seagull {
  position: absolute;
  z-index: 2;
  top: 7.5%;
  right: 12.5%;
  width: 16%;
  pointer-events: none;
  filter: saturate(.9) brightness(.9) drop-shadow(0 3px 3px rgba(0, 0, 0, .35));
}

.contact-board-copy {
  position: absolute;
  z-index: 1;
  top: 30.5%;
  right: 10%;
  left: 17.5%;
  color: #fff8e8;
  transform: perspective(640px) rotateY(-3.2deg) rotateZ(1.05deg) skewX(-.35deg);
  transform-origin: left top;
  text-shadow: 0 1px 2px rgba(24, 10, 3, .9), 0 2px 6px rgba(24, 10, 3, .7);
}

.contact-kicker {
  margin: 0 0 5px;
  color: #fff7e4;
  font-size: clamp(11px, .92vw, 13px);
  font-weight: 800;
  letter-spacing: .08em;
}

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

.contact-row {
  display: grid;
  grid-template-columns: clamp(20px, 1.8vw, 26px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(7px, .75vw, 10px);
  margin-top: clamp(7px, .75vw, 10px);
}

.contact-row:first-child {
  margin-top: 0;
}

.contact-row img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(24, 10, 3, .8));
}

.contact-address {
  align-items: start;
}

.contact-address > img {
  margin-top: 5px;
}

.contact-row a {
  color: #fff0cf;
  font-size: clamp(10px, .76vw, 12px);
  line-height: 1.28;
}

.contact-row strong {
  color: #fffdf3;
  font-size: clamp(11px, .84vw, 13px);
}

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

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

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

  .contact-board {
    width: 320px;
  }

}

@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-canvas {
    left: 66%;
  }

  .scene-background {
    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-row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    margin-top: 7px;
  }

  .motion-note {
    display: none;
  }

}

@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-row 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;
  }

}

/* Mobile pages should grow with their content instead of reserving an empty
   desktop-sized stage below the primary actions. */
@media (max-width: 720px) {
  .home-page,
  .hero {
    min-height: 0;
  }

  .hero {
    display: flow-root;
    overflow: hidden;
  }

  .scene-canvas {
    top: 0;
    left: 50%;
    width: auto;
    min-width: 100%;
    height: 100%;
    transform: translateX(-62%);
  }

  .scene-background {
    object-fit: cover;
  }

  .hero-content {
    padding: 46px 20px 24px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 58px);
    line-height: 1.02;
  }

  .contact-board {
    position: relative;
    inset: auto;
    width: min(330px, calc(100vw - 32px));
    margin: 0 auto 22px;
  }
}

@media (max-width: 390px) {
  .hero-content {
    padding-top: 38px;
  }
}

/* Completed mobile homepage: clear product positioning, direct enquiry and
   useful contact information replace the previously empty lower viewport. */
.mobile-contact-button {
  display: none;
}

@media (max-width: 720px) {
  .desktop-contact-button {
    display: none;
  }

  .mobile-contact-button {
    display: inline-flex;
  }

  .scene {
    inset: 0 0 auto;
    height: 706px;
  }

  .contact-hit-canvas {
    display: none;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .mobile-product-intro {
    display: block;
    max-width: 34em;
    margin: 18px 0 0;
    color: #c6d5d7;
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 40px;
    margin-right: 0;
  }

  .service-points {
    gap: 0 24px;
    margin-top: 32px;
    padding-top: 8px;
  }

  .service-points div {
    padding: 14px 0;
    border-bottom: 1px solid rgba(114, 242, 223, .12);
  }

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

  .service-points dd {
    display: block;
    margin-top: 5px;
    color: #91a8ad;
    font-size: 11px;
  }

  .mobile-contact-panel {
    display: block;
    margin: 32px -20px 0;
    padding: 30px 20px 28px;
    background: rgba(6, 23, 34, .96);
    border-top: 1px solid rgba(65, 234, 211, .25);
    border-bottom: 1px solid rgba(65, 234, 211, .12);
  }

  .mobile-contact-kicker {
    margin: 0 0 7px;
    color: var(--teal-400);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
  }

  .mobile-contact-panel h2 {
    margin: 0;
    color: #f4f8f7;
    font-size: 23px;
    line-height: 1.35;
  }

  .mobile-contact-links {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }

  .mobile-contact-links a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 66px;
    padding: 11px 14px;
    background: rgba(10, 37, 50, .88);
    border: 1px solid rgba(114, 242, 223, .18);
    border-radius: 10px;
  }

  .mobile-contact-links a:first-child {
    background: #123d3d;
    border-color: rgba(65, 234, 211, .54);
  }

  .mobile-contact-links a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }

  .mobile-contact-links img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .mobile-contact-links span {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .mobile-contact-links small {
    color: #9bb0b4;
    font-size: 11px;
  }

  .mobile-contact-links strong {
    color: #f4f8f7;
    font-size: 14px;
    line-height: 1.4;
  }

  .mobile-location-link strong {
    font-size: 12px;
    font-weight: 600;
  }

  .mobile-footer {
    display: block;
    margin: 0 -20px;
    padding: 20px;
    background: #031019;
    color: #6f898f;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
  }
}
