:root {
  --fabric: #f5efe3;
  --cotton: #fffaf2;
  --linen: #e9dfcd;
  --navy: #17384d;
  --sage: #4f625d;
  --thread: #b9854a;
  --thread-light: #d9a66a;
  --border: #d8c9ad;
  --muted-border: #dfd0b6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--fabric);
  background-image:
    linear-gradient(90deg, rgba(31, 57, 72, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 57, 72, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(185, 133, 74, 0.08), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(92, 114, 93, 0.07), transparent 24%);
  background-size: 28px 28px, 28px 28px, 900px 900px, 760px 760px;
}

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

img,
canvas {
  display: block;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 6vw;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: blur(14px);
}

.logo-link img {
  width: 150px;
  height: auto;
}

.desktop-nav {
  display: flex;
  gap: 24px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a:hover {
  color: var(--thread);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cotton);
}

.language-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sage);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  text-transform: uppercase;
}

.language-switch button.active {
  background: var(--navy);
  color: white;
}

.contact-pill,
.primary-button,
.secondary-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.contact-pill,
.primary-button {
  background: var(--navy);
  color: white;
}

.contact-pill {
  padding: 12px 20px;
  font-size: 14px;
}

.contact-pill:hover,
.primary-button:hover {
  background: var(--thread);
}

.hero-section,
.section,
.site-footer {
  padding-left: 6vw;
  padding-right: 6vw;
}

.hero-section {
  padding-top: 56px;
  padding-bottom: 96px;
}

.thread-line {
  width: 100%;
  height: 6px;
  margin-bottom: 32px;
  border-radius: 999px;
  opacity: 0.85;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(185, 133, 74, 0.34) 0,
    rgba(185, 133, 74, 0.34) 7px,
    transparent 7px,
    transparent 14px
  );
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 40px;
  grid-template-columns: 0.95fr 1.05fr;
}

.cotton-panel {
  border: 1px solid var(--border);
  background-color: rgba(255, 252, 246, 0.9);
  background-image:
    linear-gradient(135deg, rgba(31, 57, 72, 0.035) 25%, transparent 25%),
    linear-gradient(315deg, rgba(31, 57, 72, 0.025) 25%, transparent 25%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  box-shadow: 0 18px 50px rgba(23, 56, 77, 0.08);
}

.hero-copy {
  padding: 40px;
  border-radius: 6px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--thread);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy > .eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.display-title,
.display-heading {
  margin: 0;
  color: var(--navy);
  font-family: "Palatino Linotype", "Book Antiqua", Cambria, Georgia, serif;
  font-weight: 400;
  line-height: 1.03;
}

.display-title {
  max-width: 980px;
  font-size: clamp(48px, 7vw, 104px);
}

.display-heading {
  font-size: clamp(38px, 4.6vw, 68px);
}

body.lang-en .display-title,
body.lang-en .display-heading {
  font-family: Georgia, "Times New Roman", serif;
}

.hero-description,
.section-body,
.factory-description,
.contact-body,
.paragraph-stack p {
  color: var(--sage);
  font-size: 18px;
  line-height: 1.75;
}

.hero-description {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: 20px;
}

.slogan {
  margin: 20px 0 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.contact-button {
  padding: 16px 24px;
}

.secondary-button {
  border: 1px solid var(--navy);
  background: rgba(255, 255, 255, 0.5);
  color: var(--navy);
}

.secondary-button:hover {
  border-color: var(--thread);
  color: var(--thread);
}

.image-wrap {
  position: relative;
}

.webgl-image {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--linen);
}

.webgl-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.webgl-image canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.webgl-image.webgl-ready img {
  opacity: 0;
}

.webgl-image.webgl-ready canvas {
  opacity: 1;
}

.hero-image,
.factory-image {
  aspect-ratio: 4 / 5;
}

.about-image {
  aspect-ratio: 5 / 4;
}

.hero-stats {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 18px 50px rgba(23, 56, 77, 0.18);
}

.hero-stats strong {
  display: block;
  color: var(--thread);
  font-size: 32px;
}

.hero-stats span,
.factory-stats span {
  color: var(--sage);
  font-size: 14px;
}

.section {
  padding-top: 88px;
  padding-bottom: 88px;
  scroll-margin-top: 112px;
}

.section-light {
  background: var(--cotton);
}

.about-grid,
.factory-grid {
  display: grid;
  align-items: center;
  gap: 48px;
  grid-template-columns: 0.85fr 1fr;
}

.split-grid,
.history-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 0.75fr 1.25fr;
}

.history-section {
  background: var(--linen);
}

.section-heading {
  max-width: 780px;
}

.wide-heading {
  max-width: 900px;
}

.paragraph-stack,
.factory-description {
  margin-top: 28px;
}

.paragraph-stack p {
  margin: 0 0 18px;
}

.cards-grid,
.metrics-grid,
.partners-grid,
.factory-stats {
  display: grid;
  gap: 16px;
}

.cards-three {
  grid-template-columns: repeat(3, 1fr);
}

.cards-four {
  margin-top: 48px;
  grid-template-columns: repeat(4, 1fr);
}

.card,
.metric,
.partner,
.factory-stat {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 12px 34px rgba(23, 56, 77, 0.06);
}

.card {
  padding: 24px;
}

.card-icon {
  margin-bottom: 20px;
  color: var(--thread);
  font-size: 34px;
}

.card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.card p,
.metric,
.partner {
  color: var(--sage);
  line-height: 1.65;
}

.card p {
  margin: 14px 0 0;
}

.history-intro {
  position: sticky;
  top: 112px;
  align-self: start;
}

.history-cards {
  display: grid;
  max-width: 520px;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.history-card {
  padding: 20px;
  border-radius: 6px;
  background: var(--cotton);
  box-shadow: 0 12px 34px rgba(23, 56, 77, 0.06);
}

.history-card:nth-child(2) {
  background: var(--navy);
  color: white;
}

.history-card strong {
  display: block;
  color: var(--thread);
  font-size: 38px;
}

.history-card:nth-child(2) strong {
  color: var(--thread-light);
}

.history-card span {
  display: block;
  margin-top: 8px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 700;
}

.history-card:nth-child(2) span {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  position: relative;
  overflow: hidden;
  padding: 20px 28px;
  border-radius: 6px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 165px 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--muted-border);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-year {
  color: var(--navy);
  font-size: 30px;
  font-weight: 800;
  text-align: right;
}

.timeline-line {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-line::before {
  position: absolute;
  top: -28px;
  bottom: -28px;
  width: 1px;
  background: #c8b48f;
  content: "";
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--thread);
  box-shadow: 0 0 0 8px var(--cotton);
}

.timeline-text {
  margin: 4px 0 0;
  color: var(--sage);
  font-size: 17px;
  line-height: 1.75;
}

.metrics-grid {
  grid-template-columns: repeat(2, 1fr);
}

.metric {
  display: flex;
  gap: 12px;
  padding: 20px;
  color: var(--navy);
  font-weight: 700;
}

.metric::before {
  color: var(--thread);
  content: "✓";
}

.factory-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.factory-stat {
  padding: 20px;
  background: var(--fabric);
}

.factory-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 24px;
}

.partners-grid {
  grid-template-columns: repeat(2, 1fr);
}

.partner {
  padding: 16px;
  color: var(--navy);
  font-weight: 700;
}

.contact-panel {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 0.9fr;
  padding: 48px;
  border-radius: 6px;
  background: var(--navy);
  color: white;
}

.contact-eyebrow {
  color: var(--thread-light);
}

.contact-title {
  color: white;
}

.contact-body {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-button {
  margin-top: 28px;
  background: white;
  color: var(--navy);
}

.contact-button:hover {
  background: var(--thread-light);
}

.contact-card {
  padding: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.contact-card h3 {
  margin: 0 0 20px;
  font-size: 20px;
}

.contact-card p {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.contact-card p span:first-child {
  color: var(--thread-light);
}

.muted {
  color: rgba(255, 255, 255, 0.68) !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--sage);
  font-size: 14px;
}

body.lang-vi .display-title,
body.lang-vi .display-heading {
  font-family: "Palatino Linotype", "Book Antiqua", Cambria, Georgia, serif;
  font-weight: 400;
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .factory-grid,
  .split-grid,
  .history-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .history-intro {
    position: static;
  }

  .cards-four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero-section,
  .section,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    min-height: 72px;
    gap: 12px;
  }

  .logo-link img {
    width: 118px;
  }

  .contact-text {
    display: none;
  }

  .contact-pill {
    padding: 11px 13px;
  }

  .hero-copy,
  .contact-panel {
    padding: 28px;
  }

  .display-title {
    font-size: 46px;
  }

  .display-heading {
    font-size: 38px;
  }

  .hero-description,
  .section-body,
  .factory-description,
  .contact-body,
  .paragraph-stack p {
    font-size: 16px;
  }

  .cards-three,
  .cards-four,
  .metrics-grid,
  .partners-grid,
  .factory-stats,
  .history-cards {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding: 8px 20px;
  }

  .timeline::before {
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: 32px;
    width: 1px;
    background: #c8b48f;
    content: "";
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 36px;
  }

  .timeline-line {
    display: block;
    position: absolute;
    left: 6px;
    top: 28px;
  }

  .timeline-line::before {
    display: none;
  }

  .timeline-dot {
    margin-top: 0;
  }

  .timeline-year {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
  }
}
