:root {
  color-scheme: light;
  --bg: #f5f2eb;
  --bg-alt: #ffffff;
  --panel: #ffffff;
  --text: #171717;
  --muted: #4c4c52;
  --accent: #a78c40;
  --accent-soft: rgba(167, 140, 64, 0.12);
  --border: rgba(23, 23, 23, 0.12);
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(167, 140, 64, 0.08), transparent 18%),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.4), transparent 14%),
    radial-gradient(circle, rgba(23, 23, 23, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.02) 1px, transparent 1px);
  background-size: auto, auto, 18px 18px, 18px 18px;
  background-position: 0 0, 0 0, 0 0, 9px 9px;
  color: var(--text);
  line-height: 1.65;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-width {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--text);
}

.hero {
  min-height: 90vh;
  display: grid;
  place-items: center;
  padding: 5rem 0;
  position: relative;
}

.hero.panel-dark {
  background-color: #f3efe8;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 239, 232, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(167, 140, 64, 0.12), transparent 42%),
    url("../assets/images/hk-day.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
}

.hero.panel-dark.hero-markets {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 239, 232, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(167, 140, 64, 0.12), transparent 42%),
    url("../assets/images/markets.jpg");
}

.hero.panel-dark.hero-energy {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 239, 232, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(167, 140, 64, 0.12), transparent 42%),
    url("../assets/images/energy.jpg");
}

@media (min-width: 900px) {
  .hero.panel-dark {
    background-attachment: fixed;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.06), transparent 28%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.24;
  pointer-events: none;
}

.panel-dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), #f5f2eb);
}

.panel-light {
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.10);
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.service-hero {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 3.5rem 2rem;
  border-radius: 32px;
  position: relative;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.68), rgba(6, 10, 20, 0.72)), url("../assets/images/energy.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.service-hero.service-hero-markets {
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.68), rgba(6, 10, 20, 0.72)), url("../assets/images/markets.jpg");
}

.service-hero.service-hero-markets {
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.68), rgba(6, 10, 20, 0.72)), url("../assets/images/markets.jpg");
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.service-hero .hero-content {
  max-width: 780px;
  z-index: 1;
}

.service-hero .eyebrow {
  color: #b2f7ef;
}

.hero-content * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem 0;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 1rem;
}

.hero-copy,
.page-heading p,
.feature-card p,
.service-card p,
.contact-card p,
.values-grid article p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #08130d;
}

.button-primary:hover {
  background: #c3a15c;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
  color: var(--text);
}

.overview,
.values-grid,
.service-grid,
.contact-section,
.two-column {
  padding: 4rem 0;
}

.feature-grid,
.service-grid,
.values-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-card,
.service-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
}

.service-card .service-icon {
  width: 3rem;
  height: 3rem;
  position: relative;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: rgba(195, 161, 92, 0.12);
}

.service-card .service-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: var(--accent);
  filter: invert(0%) sepia(50%) saturate(400%) hue-rotate(10deg) brightness(0.9);
}

.service-icon-energy::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L3 14h7l-2 8 10-12h-7l2-8z' fill='none' stroke='%23c3a15c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.service-icon-metals::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23c3a15c' stroke-width='2'/%3E%3Cpath d='M9 12h6' fill='none' stroke='%23c3a15c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.service-icon-crypto::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='8' r='2' fill='none' stroke='%23c3a15c' stroke-width='2'/%3E%3Ccircle cx='16' cy='8' r='2' fill='none' stroke='%23c3a15c' stroke-width='2'/%3E%3Ccircle cx='12' cy='16' r='2' fill='none' stroke='%23c3a15c' stroke-width='2'/%3E%3Cpath d='M10 10l4 2.5M14 10l-4 2.5' fill='none' stroke='%23c3a15c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.service-icon-logistics::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 16h13v-7H6V6h-3v10z' fill='none' stroke='%23c3a15c' stroke-width='2'/%3E%3Cpath d='M16 16h3v-4h-3' fill='none' stroke='%23c3a15c' stroke-width='2'/%3E%3Ccircle cx='7.5' cy='18.5' r='1.5' fill='none' stroke='%23c3a15c' stroke-width='2'/%3E%3Ccircle cx='18' cy='18.5' r='1.5' fill='none' stroke='%23c3a15c' stroke-width='2'/%3E%3C/svg%3E");
}

.service-icon-risk::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 16l4-4 3 3 5-5 4 4' fill='none' stroke='%23c3a15c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 20h16' fill='none' stroke='%23c3a15c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.service-icon-compliance::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v4H9z' fill='none' stroke='%23c3a15c' stroke-width='2'/%3E%3Cpath d='M6 6h12v14H6z' fill='none' stroke='%23c3a15c' stroke-width='2'/%3E%3Cpath d='M9 12h6M9 16h4' fill='none' stroke='%23c3a15c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.centered-section {
  text-align: center;
}

.page-heading {
  padding: 4rem 0 2rem;
}

.page-heading h1 {
  max-width: 900px;
}

.two-column {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.two-column ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

.two-column li {
  margin-bottom: 0.85rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
}

.contact-card h2 {
  margin-bottom: 1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(23, 23, 23, 0.45);
}

.site-footer {
  padding: 2rem 0;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-inner {
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .footer-nav {
    gap: 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .image-carousel {
    padding: 2rem 0;
  }

  .two-column,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

.image-carousel {
  padding: 4rem 0;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  color: #171717;
  font-size: 1rem;
  line-height: 1.6;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  transition: background-color 0.25s ease, transform 0.2s ease;
  z-index: 5;
}

.carousel-button:hover {
  background: rgba(167, 140, 64, 0.9);
  transform: translateY(-50%) scale(1.04);
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 0 1.2rem;
}

.carousel-indicator {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-indicator.current-slide {
  background: var(--accent);
  transform: scale(1.2);
}

@media (max-width: 820px) {
  .carousel-slide img {
    height: 360px;
  }
}

@media (max-width: 560px) {
  .page-width {
    width: min(100%, calc(100% - 1.5rem));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-heading h1 {
    font-size: 2.5rem;
  }

  .carousel-slide img {
    height: 260px;
  }

  .carousel-button {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.2rem;
  }
}
