:root {
  --ink: #071111;
  --muted: #5c6868;
  --line: #dbe4e2;
  --paper: #f6faf9;
  --white: #ffffff;
  --mint: #29bda8;
  --mint-dark: #168b7d;
  --blue: #1769aa;
  --night: #081516;
  --charcoal: #101b1d;
  --shadow: 0 24px 70px rgba(8, 21, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Sukhumvit Set", "Noto Sans Thai", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 18px clamp(18px, 4vw, 48px);
  pointer-events: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand img {
  width: 178px;
  height: auto;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  padding: 0;
  margin: 0;
  list-style: none;
  color: #0f2020;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.site-menu a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-menu a:hover::after,
.site-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--ink);
  border: 0;
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroCrossfade 60s infinite;
}

.hero-slide-one {
  opacity: 1;
}

.hero-slide-two {
  animation-delay: 12s;
}

.hero-slide-three {
  animation-delay: 24s;
}

.hero-slide-four {
  animation-delay: 36s;
}

.hero-slide-five {
  animation-delay: 48s;
}

@keyframes heroCrossfade {
  0% {
    opacity: 0;
  }

  4%,
  17% {
    opacity: 1;
  }

  22%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }

  .hero-slide-one {
    opacity: 1;
  }

  .hero-slide-two {
    opacity: 0;
  }

  .hero-slide-three {
    opacity: 0;
  }

  .hero-slide-four {
    opacity: 0;
  }

  .hero-slide-five {
    opacity: 0;
  }
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 17, 17, 0.93) 0%, rgba(7, 17, 17, 0.72) 46%, rgba(7, 17, 17, 0.18) 100%),
    radial-gradient(circle at 18% 62%, rgba(41, 189, 168, 0.26), transparent 28%);
}

.hero-content {
  width: min(1180px, 100%);
  margin: auto;
  padding: 150px clamp(20px, 5vw, 48px) 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--mint-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: clamp(24px, 4vw, 42px) 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--mint-dark);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 48px);
}

.section-grid,
.section-heading,
.portfolio-feature,
.mission-section,
.contact-shell,
.feature-list,
.solution-grid {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

.rich-copy p,
.portfolio-copy p,
.mission-card p,
.contact-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.rich-copy p + p {
  margin-top: 20px;
}

.inventory-panel {
  margin: 26px 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inventory-panel h3 {
  max-width: 620px;
  color: var(--ink);
  font-size: 1.25rem;
}

.led-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.led-list li {
  padding: 8px 12px;
  color: var(--mint-dark);
  background: rgba(41, 189, 168, 0.1);
  border: 1px solid rgba(41, 189, 168, 0.28);
  border-radius: 6px;
  font-weight: 800;
}

.dark-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 21, 22, 0.98), rgba(16, 27, 29, 0.96)),
    url("Logo MindPixels/Cover_Banner.jpg") center/cover;
}

.section-heading {
  margin-bottom: clamp(34px, 5vw, 58px);
}

.section-heading h2 {
  max-width: 760px;
}

.section-heading.narrow h2 {
  max-width: 690px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.solution-card {
  min-height: 260px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.solution-card span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--mint);
  font-weight: 900;
}

.solution-card h3 {
  font-size: 1.35rem;
}

.solution-visual {
  display: grid;
  place-items: center;
  height: 223px;
  margin: 22px 0 0;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(230, 245, 242, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.solution-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.solution-visual-floor {
  padding: 18px;
}

.solution-visual-floor img {
  transform: scale(1.08);
  transform-origin: center;
}

.solution-card p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.solution-specs {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.solution-specs li {
  position: relative;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.solution-specs li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--mint);
  border-radius: 50%;
  transform: translateY(-50%);
}

.solution-card.accent {
  color: var(--ink);
  background: var(--mint);
}

.solution-card.accent span,
.solution-card.accent p {
  color: rgba(7, 17, 17, 0.76);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.feature-item {
  padding: 28px 0 0;
  border-top: 3px solid var(--mint);
}

.feature-item h3 {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
}

.feature-item p {
  margin: 14px 0 0;
  color: var(--muted);
}

.portfolio-section {
  background: var(--white);
}

.portfolio-feature {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
}

.portfolio-feature + .portfolio-feature {
  margin-top: clamp(52px, 8vw, 96px);
  padding-top: clamp(52px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.portfolio-copy {
  position: sticky;
  top: 120px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-type {
  color: var(--mint-dark) !important;
  font-weight: 900;
}

.portfolio-copy h3 {
  margin: 12px 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.project-meta {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.project-meta div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.project-meta dt {
  color: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 5px 0 0;
  color: var(--muted);
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portfolio-gallery-three img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 8;
}

.mission-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mission-card {
  padding: clamp(30px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mission-card.solid {
  color: var(--white);
  background: var(--night);
  border-color: var(--night);
}

.mission-card p {
  margin-top: 20px;
}

.mission-card.solid ul {
  padding-left: 20px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.mission-card.solid li + li {
  margin-top: 10px;
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 21, 22, 0.97), rgba(17, 67, 74, 0.94)),
    url("Portfolio/HOYA Surgical Optics Exhibition Booth/720244116_1764720041523753_5038560253231388666_n.jpg") center/cover;
}

.contact-heading {
  max-width: 820px;
  margin-bottom: clamp(32px, 5vw, 54px);
}

.contact-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.contact-section .eyebrow,
.contact-label {
  color: var(--mint);
}

.contact-info-card {
  padding: 28px;
  margin-bottom: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.contact-info-card .contact-label {
  margin-bottom: 18px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-info-grid div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding-top: 16px;
  border-top: 3px solid var(--mint);
}

.contact-info-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-info-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  overflow-wrap: anywhere;
  color: var(--white);
  background: var(--mint-dark);
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
}

.contact-info-grid a:hover,
.contact-info-grid a:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.address-card {
  padding: 28px;
  margin-bottom: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.address-grid article {
  padding-top: 18px;
  border-top: 3px solid var(--mint);
}

.address-name {
  margin: 10px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.map-panel,
.contact-form {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.contact-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.address-grid h3,
.map-header h3,
.form-heading h3 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.contact-detail {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact-main {
  display: grid;
  gap: 16px;
}

.map-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  overflow: hidden;
  color: var(--ink);
}

.map-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  margin-top: 16px;
  color: var(--white);
  background: var(--mint-dark);
  border-radius: 6px;
  font-weight: 900;
}

.map-panel iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  color: var(--ink);
}

.form-heading,
.contact-form label:nth-of-type(8),
.contact-form button {
  grid-column: 1 / -1;
}

.form-heading p:not(.contact-label) {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input[type="date"] {
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--mint-dark);
  outline: 3px solid rgba(41, 189, 168, 0.16);
}

.contact-form .button.primary {
  width: fit-content;
  color: var(--white);
  background: var(--mint-dark);
  cursor: pointer;
}

.contact-form .button.primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: clamp(28px, 6vw, 72px);
  padding: 34px clamp(20px, 5vw, 48px);
  color: rgba(255, 255, 255, 0.66);
  background: var(--night);
}

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

.site-footer img {
  width: 158px;
  flex: 0 0 auto;
  padding: 8px 10px;
  background: var(--white);
  border-radius: 6px;
}

.footer-brand h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.site-footer p,
.footer-contact span,
.footer-contact a {
  margin: 0;
  font-size: 0.92rem;
}

.footer-brand p {
  margin-top: 6px;
}

.footer-contact {
  display: grid;
  gap: 12px;
  min-width: min(360px, 100%);
}

.footer-contact div {
  display: grid;
  gap: 4px;
}

.footer-contact span {
  color: var(--mint);
  font-weight: 900;
}

.footer-contact a {
  color: var(--white);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--mint);
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px;
  }

  .brand img {
    width: 146px;
  }

  .nav-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-menu.is-open {
    display: grid;
    gap: 4px;
  }

  .site-menu a {
    display: flex;
    min-height: 44px;
    padding: 0 8px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 17, 17, 0.92) 0%, rgba(7, 17, 17, 0.78) 58%, rgba(7, 17, 17, 0.54) 100%),
      radial-gradient(circle at 22% 50%, rgba(41, 189, 168, 0.22), transparent 32%);
  }

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

  .stats-band,
  .section-grid,
  .solution-grid,
  .portfolio-feature,
  .mission-section {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-visual {
    height: 240px;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .portfolio-copy {
    position: static;
  }

  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .address-grid,
  .contact-info-grid,
  .contact-main,
  .map-panel,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .map-panel iframe {
    min-height: 360px;
  }
}

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

  .hero h1 {
    font-size: 2.45rem;
  }

  .solution-visual {
    height: 205px;
  }

  .hero-actions,
  .hero-actions .button,
  .contact-section .button {
    width: 100%;
  }

  .contact-form .button.primary {
    width: 100%;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-width: 0;
    max-width: 100%;
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-gallery {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .mission-card,
  .portfolio-copy,
  .contact-info-card,
  .contact-form,
  .map-header,
  .inventory-panel,
  .solution-card {
    padding: 24px;
  }
}
