:root {
  --green-deep: #368340;
  --green-mid: #2c6b34;
  --green-bright: #5e9c66;
  --mint: #aee5bf;
  --sage: #b7dcb8;
  --sage-pale: #e7f1e5;
  --sand: #aec1b5;
  --sand-deep: #8fa595;
  --ink: #152018;
  --paper: #fbfaf5;
  --line: #dcded3;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Inter", "Noto Sans Thai", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.disp {
  font-family: "Space Grotesk", "Noto Sans Thai", sans-serif;
  letter-spacing: -0.01em;
  margin: 0;
}
.thai {
  font-family: "Noto Sans Thai", "Space Grotesk", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
section {
  position: relative;
}
::selection {
  background: var(--mint);
  color: var(--green-deep);
}
:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- NAV ---------- */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 250, 245, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
header.nav.scrolled {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(21, 32, 24, 0.05);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 104px;
  height: auto;
  flex: none;
}
.brand-mark-sm {
  width: 74px;
}
.brand-text {
  line-height: 1.15;
  white-space: nowrap;
}
.brand-text .name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}
.brand-text .sub {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}

nav.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav.menu a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
nav.menu a:hover {
  background: var(--sage-pale);
}
nav.menu a.active {
  background: var(--green-deep);
  color: #fff;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* ---------- HERO ---------- */
.hero {
  padding: 168px 0 96px;
  overflow: hidden;
  background-color: var(--paper);
  background-image: url("photo/bg-header.webp");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 70% auto;
}
/* Desktop: image always fills the full hero height (no cream strip below) */
@media (min-width: 981px) {
  .hero {
    position: relative;
    isolation: isolate;
    background-image: none;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    z-index: -1;
    background: url("photo/bg-header.webp") right top / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
    mask-image: linear-gradient(to right, transparent 0%, #000 30%);
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--green-mid);
  font-weight: 600;
  font-size: 14px;
}
.eyebrow-line .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--green-deep);
}
.hero h1 .th {
  display: block;
  font-size: 0.62em;
  color: var(--ink);
  font-weight: 600;
  margin-top: 14px;
  line-height: 1.5;
}
.hero p.lead {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.65;
  color: #3b463e;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green-deep);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-mid);
  box-shadow: 0 10px 24px rgba(25, 79, 52, 0.25);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--sand-deep);
}
.btn-ghost:hover {
  border-color: var(--green-deep);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.stat b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  color: var(--green-deep);
}
.stat span {
  font-size: 13px;
  color: #5c6b60;
}

/* ---------- SECTION HEADS ---------- */
.kicker {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--green-mid);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.sec-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.sec-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--green-deep);
  font-weight: 700;
}
.th-title {
  display: block;
  font-size: 0.56em;
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
}
.sec-head p {
  margin-top: 16px;
  font-size: 16px;
  color: #4a564d;
  line-height: 1.6;
}

/* ---------- ABOUT ---------- */
#about {
  padding: 110px 0;
  background: var(--sage);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.about-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: #333f36;
  margin: 0 0 16px;
}
.about-copy .quote {
  position: relative;
  margin-top: 28px;
  padding: 52px 28px 52px 30px;
  border-radius: 16px;
  background: #fff;
  border-left: 4px solid var(--green-bright);
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 600;
  font-style: italic;
  color: var(--green-deep);
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.about-copy .quote::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 24px;
  font-family: Georgia, serif;
  font-size: 84px;
  font-style: normal;
  line-height: 1;
  color: var(--mint);
}
.about-copy .quote::after {
  content: "\201D";
  position: absolute;
  bottom: -22px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 84px;
  font-style: normal;
  line-height: 1;
  color: var(--mint);
}

.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--green-bright), var(--sand-deep));
}
.tl-item {
  position: relative;
  padding-bottom: 34px;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-sizing: border-box;
  background: var(--paper);
  border: 3px solid var(--green-bright);
}
.tl-year {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--green-deep);
  font-size: 15px;
}
.tl-item h4 {
  margin: 4px 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.tl-item p {
  margin: 0;
  font-size: 14.5px;
  color: #4a564d;
  line-height: 1.6;
  max-width: 52ch;
}

/* ---------- ABOUT GALLERY ---------- */
.gallery {
  position: relative;
  margin-top: 64px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(21, 32, 24, 0.12);
}
.gallery-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-slide {
  flex: 0 0 100%;
  position: relative;
  height: 500px;
  overflow: hidden;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}
.gallery-caption {
  position: absolute;
  left: 28px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.gallery-caption .en {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
}
.gallery-caption .th {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 2px;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(21, 32, 24, 0.18);
  color: var(--green-deep);
  transition: transform 0.2s ease;
}
.gallery-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}
.gallery-arrow.prev {
  left: 16px;
}
.gallery-arrow.next {
  right: 16px;
}
.gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  transition:
    width 0.2s ease,
    background 0.2s ease;
}
.gallery-dots button.active {
  width: 22px;
  border-radius: 5px;
  background: #fff;
}

/* ---------- ABOUT GALLERY LIGHTBOX ---------- */
html.lb-lock,
html.lb-lock body {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  height: 100vh;
  height: 100dvh;
  background: #0a100c;
  opacity: 0;
  transition: opacity 0.25s ease;
  overscroll-behavior: contain;
}
.lightbox[hidden] {
  display: none;
}
.lightbox.open {
  opacity: 1;
}
.lb-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.lb-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 72px 84px;
  box-sizing: border-box;
}
.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-select: none;
}
.lb-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px 22px;
  color: #fff;
  pointer-events: none;
}
.lb-counter {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.lb-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lb-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.lb-arrow.prev {
  left: 14px;
}
.lb-arrow.next {
  right: 14px;
}
.lb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  color: #fff;
  pointer-events: none;
}
.lb-caption .en {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.lb-caption .th {
  display: block;
  font-size: 13.5px;
  opacity: 0.85;
  margin-top: 2px;
}
@media (max-width: 720px) {
  .lb-slide {
    padding: 64px 0 96px;
  }
  .lb-slide img {
    border-radius: 0;
  }
  .lb-arrow {
    top: auto;
    bottom: calc(80px + env(safe-area-inset-bottom));
    transform: none;
    width: 40px;
    height: 40px;
  }
}

/* ---------- PRODUCTS ---------- */
#products {
  padding: 110px 0;
}
.prod-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  margin-bottom: 52px;
}
.prod-head .sec-head {
  margin-bottom: 0;
}
.core-ing {
  text-align: right;
}
.core-ing-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.core-ing-icons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.core-ing-icons figure {
  margin: 0;
}
.core-ing-icons img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
}
@media (max-width: 680px) {
  .core-ing {
    text-align: left;
  }
  .core-ing-icons {
    justify-content: flex-start;
  }
}
.core-ing-icons figcaption {
  margin-top: 4px;
  font-size: 13px;
  color: #4a564d;
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(21, 32, 24, 0.08);
  border-color: transparent;
}
.prod-photo {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.prod-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-body {
  padding: 22px 24px 26px;
}
.prod-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green-deep);
}
.prod-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.prod-card p {
  margin: 0;
  font-size: 14px;
  color: #5c6b60;
  line-height: 1.55;
}

.oem-strip {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--green-deep);
  color: #fff;
}
.oem-strip .oem-label {
  font-weight: 700;
  font-size: 15px;
  flex: none;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.oem-strip .oem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.oem-strip .oem-tags span {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- CERTIFICATION BAND ---------- */
#standards {
  padding: 80px 0;
  background: var(--green-deep);
  color: #fff;
  overflow: hidden;
  position: relative;
}
#standards .wrap {
  position: relative;
  z-index: 2;
}
#standards .std-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
#standards h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 34px);
}
#standards .th-title {
  color: var(--mint);
}
#standards p.note {
  max-width: 420px;
  font-size: 14.5px;
  color: #cfe3d8;
  line-height: 1.6;
  margin: 0;
}
.std-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.std-badge {
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  flex: 1 1 260px;
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 12px 28px rgba(10, 20, 13, 0.16);
}
.std-logo {
  height: 44px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  flex: none;
}
.std-caption {
  min-width: 0;
}
.std-badge .code {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--green-deep);
}
.std-badge .desc {
  font-size: 13px;
  color: #5c6b60;
  margin-top: 4px;
  line-height: 1.4;
}

/* ---------- CONTACT ---------- */
#contact {
  padding: 110px 0;
  background: var(--green-deep);
}
#contact .kicker {
  color: var(--mint);
}
#contact .sec-head h2 {
  color: #fff;
}
#contact .th-title {
  color: var(--mint);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.contact-info {
  padding: 56px 48px;
  background: #fff;
}
.contact-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-row .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sage-pale);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-row a,
.contact-row span.txt {
  font-size: 15px;
  line-height: 1.55;
  color: #2c362f;
}
.contact-row a:hover {
  color: var(--green-mid);
}

.contact-visual {
  position: relative;
  background: var(--sage);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-visual .card {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 20px 40px rgba(21, 32, 24, 0.12);
  max-width: 280px;
}
.contact-visual .card .co {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--green-deep);
  font-size: 15px;
}
.contact-visual .card .tax {
  margin-top: 8px;
  font-size: 12px;
  color: #5c6b60;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-inner .brand-text .name,
.foot-inner .brand-text .sub {
  font-size: 15px;
}
footer .copy {
  font-size: 13px;
  color: #7a877d;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: calc(50vw + 67px);
    background-position: center 67px;
    background-image: url("photo/bg-header-mobile.webp");
    /* background-size: auto 190px; */
    background-size: 100% auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-visual {
    min-height: 220px;
  }
}
@media (max-width: 680px) {
  .wrap {
    padding: 0 20px;
  }
  .nav-inner {
    padding: 12px 20px;
  }
  nav.menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  nav.menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  nav.menu a {
    padding: 12px 16px;
  }
  .burger {
    display: block;
  }
  .hero {
    /* padding-top: 190px;
    background-position: center 80px;
    background-size: auto 160px; */
     padding-top: calc(50vw + 67px);
    background-position: center 67px;
    background-image: url("photo/bg-header-mobile.webp");
    /* background-size: auto 190px; */
    background-size: 100% auto;
  }
  .hero-stats {
    gap: 22px;
  }
  .prod-grid {
    grid-template-columns: 1fr;
  }
  .oem-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .oem-strip .oem-label {
    border-right: none;
    padding-right: 0;
  }
  #standards .std-top {
    align-items: flex-start;
  }
  .contact-info {
    padding: 36px 24px;
  }
  .gallery-slide {
    height: 200px;
  }
  .gallery-arrow {
    width: 36px;
    height: 36px;
  }
  .gallery-caption .en {
    font-size: 16px;
  }
  .gallery-caption {
    left: 20px;
    right: 20px;
    bottom: 44px;
  }
}
@media (max-width: 500px) {
  .hero {
    /* padding-top: 190px;
    background-position: center 80px;
    background-size: auto 160px; */
     padding-top: calc(58vw + 67px);
    background-position: center 67px;
    background-image: url("photo/bg-header-mobile.webp");
    /* background-size: auto 190px; */
    background-size: 115% auto;
  }
}

@media (max-width: 500px) {
  .nav .brand-mark {
    width: 72px;
  }
  .nav .brand-text .name,
  .nav .brand-text .sub {
    font-size: 15px;
  }
}

/* ---------- MOBILE HERO LAYOUT ---------- */
@media (max-width: 500px) {
  .hero {
    background-size: 150% auto;
    padding-top: calc(74vw + 67px);
    padding-bottom: 56px;
  }
  .hero h1 { font-size: 31px; line-height: 1.12; }
  .hero h1 br { display: none; }
  .hero h1 .th { font-size: 17px; margin-top: 10px; }
  .nowrap { white-space: nowrap; }
  .hero p.lead { font-size: 15.5px; margin-top: 16px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 13px 10px; white-space: nowrap; font-size: 14.5px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .stat b { font-size: 24px; }
  .stat span { font-size: 11.5px; line-height: 1.35; display: block; }
}