:root {
  --red: #8c0f13;
  --red-bright: #b01319;
  --ink: #151515;
  --coal: #222222;
  --muted: #616161;
  --line: #d8d3cb;
  --paper: #f4f1eb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
  width: 100%;
  max-width: 100vw;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: 100vw;
}

.brand img {
  width: clamp(150px, 16vw, 210px);
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.7vw, 36px);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

.language-toggle {
  justify-self: end;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  min-width: 116px;
}

.language-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.language-toggle button.active {
  background: var(--red);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: end;
  padding: clamp(68px, 9vw, 128px) clamp(22px, 5vw, 76px);
  color: var(--white);
  background: #101010;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.16)),
    url("assets/photos/hero-commodities-port.jpg") center/cover;
}

.hero-copy {
  position: relative;
  min-width: 0;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffced0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 1080px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(3rem, 7vw, 7.25rem);
  line-height: 0.94;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(2.15rem, 4.5vw, 5rem);
  line-height: 1.02;
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-links a,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  background: var(--red);
  color: var(--white);
  border: 0;
  text-decoration: none;
  font-weight: 900;
}

.hero-links a:nth-child(2) {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
}

.section {
  padding: clamp(70px, 9vw, 132px) clamp(22px, 5vw, 76px);
}

.intro-grid,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 100px);
  background: var(--white);
}

.lead-copy p,
.section-heading p,
.market-card p,
.process-steps p,
.contact p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ebe5da;
}

.metric-band div {
  min-height: 210px;
  padding: 34px clamp(22px, 4vw, 58px);
  border-right: 1px solid var(--line);
}

.metric-band strong {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.9;
}

.metric-band span {
  display: block;
  max-width: 330px;
  color: var(--coal);
  font-weight: 800;
  line-height: 1.38;
}

.products {
  background: var(--paper);
}

.section-heading {
  max-width: 930px;
  margin-bottom: 44px;
}

.product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  margin-bottom: 22px;
  background: var(--white);
}

.product-feature img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.product-feature div {
  padding: clamp(28px, 5vw, 64px);
  align-self: center;
}

.product-feature p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

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

.product-grid article {
  min-width: 0;
  background: var(--white);
  border-bottom: 4px solid var(--red);
}

.product-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.product-grid h3,
.product-grid p {
  padding-left: 22px;
  padding-right: 22px;
}

.product-grid h3 {
  margin: 24px 0 12px;
}

.product-grid p {
  padding-bottom: 26px;
  color: var(--muted);
  line-height: 1.58;
}

.markets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: var(--coal);
}

.market-card {
  background: #302f2d;
  color: var(--white);
  padding: clamp(28px, 5vw, 56px);
}

.market-card.large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  padding: 0;
}

.market-card.large img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}

.market-card.large div {
  align-self: center;
  padding: clamp(30px, 6vw, 72px);
}

.market-card p {
  color: rgba(255,255,255,0.74);
}

.process {
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.process-steps div {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.process-steps span {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-weight: 900;
}

.partner-banner {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: clamp(44px, 7vw, 80px);
  overflow: hidden;
  color: var(--white);
}

.partner-banner img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.78), rgba(0,0,0,0.32));
}

.partner-banner div {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.partner-banner p:not(.eyebrow) {
  color: rgba(255,255,255,0.84);
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact {
  background: #f8f6f1;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form .full,
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8c2b8;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  cursor: pointer;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 32px;
  padding: clamp(38px, 6vw, 72px) clamp(22px, 5vw, 76px);
  color: #e9e2d8;
  background: #171717;
}

footer img {
  width: 190px;
  margin-bottom: 24px;
}

.partners-list {
  background: var(--white);
}

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

.network-grid article,
.refinery-grid article {
  padding: 28px;
  background: #f8f6f1;
  border-top: 4px solid var(--red);
}

.network-grid p,
.refinery-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.refineries {
  background: #ebe5da;
}

.refinery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

footer h4 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
}

footer p {
  color: #d2cbc0;
  line-height: 1.62;
}

body.lang-zh h1,
body.lang-zh h2 {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.1;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  nav {
    display: none;
  }

  .intro-grid,
  .contact,
  .product-feature,
  .market-card.large {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .metric-band,
  .process-steps,
  footer,
  .network-grid,
  .refinery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) 98px;
    min-height: 68px;
    padding: 10px 16px;
    gap: 12px;
    overflow: hidden;
  }

  .brand img {
    width: 138px;
  }

  .language-toggle {
    min-width: 94px;
    width: 94px;
  }

  .language-toggle button {
    padding: 7px 8px;
    font-size: 0.8rem;
  }

  .hero {
    width: 100%;
    max-width: 100vw;
    min-height: calc(100vh - 68px);
    padding: 54px 18px;
    overflow: hidden;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 58px 18px;
  }

  .product-grid,
  .metric-band,
  .process-steps,
  .markets,
  footer,
  .contact-form,
  .network-grid,
  .refinery-grid {
    grid-template-columns: 1fr;
  }

  .hero-links {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-links a {
    width: 100%;
  }

  .product-feature img,
  .market-card.large img {
    height: 300px;
  }

  .metric-band div,
  .process-steps div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
