:root {
  --imst-orange: #e85c24;
  --imst-orange-hot: #ff6d32;
  --imst-silver: #c8c9cc;
  --imst-black: #0a0a0a;
}

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 6.5rem; }

.flow-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(232, 92, 36, 0.35);
  background: rgba(232, 92, 36, 0.08);
  color: #e85c24;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

body {
  font-family: "Bai Jamjuree", sans-serif;
  background: #f6f5f2;
  color: #161616;
}

.font-display {
  font-family: "Bai Jamjuree", sans-serif;
  font-weight: 700;
}

.font-display em {
  font-style: normal;
  font-weight: 700;
}

.nav-link {
  position: relative;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #e85c24;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

.site-header {
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(16px);
  border-bottom-color: #2a2a2a;
}

.dropdown {
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
}

.hero-slide.is-active .hero-media {
  animation: heroKen 10s ease-in-out infinite alternate;
}

.hero-slide:nth-of-type(2).is-active .hero-media {
  animation-name: heroKenAlt;
}

.hero-slide:nth-of-type(3).is-active .hero-media {
  animation-name: heroKenPan;
}

@keyframes heroKen {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-2.5%, -1.5%); }
}

@keyframes heroKenAlt {
  from { transform: scale(1.08) translate(-2%, 0); }
  to { transform: scale(1) translate(1.5%, 1%); }
}

@keyframes heroKenPan {
  from { transform: scale(1.04) translate(2%, 0); }
  to { transform: scale(1.12) translate(-2%, -2%); }
}

.hero-tint {
  background:
    linear-gradient(90deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.42) 55%, rgba(232,92,36,.28) 100%),
    linear-gradient(180deg, rgba(10,10,10,.2) 0%, rgba(10,10,10,.55) 100%);
}

.stat-num { font-variant-numeric: tabular-nums; }

.card-zoom img { transition: transform 0.7s ease; }
.card-zoom:hover img { transform: scale(1.06); }

.mobile-nav {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.mobile-nav.is-open {
  transform: none;
  pointer-events: auto;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .partner-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 118px;
  padding: 1.15rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
}

.partner-card img {
  max-height: 42px;
  max-width: 148px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-card span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .partner-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .partner-strip { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.field-select {
  appearance: none;
  -webkit-appearance: none;
  margin-top: 0.25rem;
  padding: 0.65rem 2.5rem 0.65rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.75rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  color: #161616;
  font: inherit;
  cursor: pointer;
}

.field-select:focus {
  outline: none;
  border-color: #e85c24;
}

.field-select option {
  background-color: #fff;
  color: #161616;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.lang-switch a {
  padding: 0.5rem 0.72rem;
  color: #c8c9cc;
  text-decoration: none;
}

.lang-switch a:hover { color: #fff; }

.lang-switch a.is-on {
  background: #e85c24;
  color: #fff;
}

#heroDots button {
  height: 0.5rem;
  width: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

#heroDots button.is-on {
  background: #e85c24;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide.is-active .hero-media { animation: none; }
}
