:root {
  --night: #173229;
  --ink: #1f2a25;
  --ivory: #f3f5ef;
  --paper: #ffffff;
  --smoke: #e4e9e1;
  --muted: #647069;
  --jade: #35664f;
  --jade-light: #dfeae2;
  --saffron: #c18b3c;
  --wine: #944b45;
  --line: rgba(31, 42, 37, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fbfcf9;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  padding: 3px;
  background: var(--ivory);
}

.language-switcher a {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.language-switcher a.active {
  background: var(--night);
  color: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(210px, 18vw, 268px);
  height: auto;
  aspect-ratio: 15 / 4;
  object-fit: contain;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav .active {
  color: var(--night);
  border-color: var(--saffron);
}

.hero {
  min-height: calc(100vh - 70px);
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 58px);
  display: grid;
  align-items: end;
}

.home-hero {
  background:
    linear-gradient(90deg, rgba(15, 42, 32, 0.84), rgba(15, 42, 32, 0.27)),
    url("../images/plantation-visite.jpg") center / cover;
  color: var(--paper);
}

.hero-panel {
  width: min(820px, 100%);
}

.kicker {
  margin: 0 0 13px;
  color: var(--saffron);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

p, li {
  color: var(--muted);
  font-size: 18px;
}

.home-hero p,
.dark-band p {
  color: rgba(255, 250, 240, 0.82);
}

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

.button,
button {
  min-height: 46px;
  border: 1px solid currentColor;
  padding: 12px 18px;
  border-radius: 3px;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.primary,
button {
  background: var(--saffron);
  color: var(--night);
  border-color: var(--saffron);
}

.ghost {
  background: transparent;
  color: var(--paper);
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 4vw, 58px);
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.value-strip article {
  min-height: 150px;
  padding: 28px;
  background: var(--paper);
}

.value-strip strong {
  display: block;
  color: var(--wine);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.value-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
}

.copy {
  max-width: 800px;
}

.page-hero {
  padding: clamp(70px, 9vw, 132px) clamp(18px, 4vw, 58px);
  background:
    linear-gradient(90deg, rgba(23, 50, 41, 0.86), rgba(23, 50, 41, 0.38)),
    url("../images/plantation-panorama.jpg") center / cover;
  color: var(--paper);
}

.page-hero.compact {
  min-height: 410px;
  display: grid;
  align-content: end;
}

.page-hero p {
  width: min(820px, 100%);
  color: rgba(255, 250, 240, 0.82);
}

.page-hero h1 {
  width: min(980px, 100%);
}

.market-hero {
  background:
    linear-gradient(90deg, rgba(23, 50, 41, 0.9), rgba(23, 50, 41, 0.26)),
    url("../images/huile-oud.jpg") center / cover;
}

.formation-hero {
  background:
    linear-gradient(90deg, rgba(23, 50, 41, 0.86), rgba(23, 50, 41, 0.24)),
    url("../images/plantation-rangees.jpg") center / cover;
}

.trace-hero {
  background:
    linear-gradient(90deg, rgba(23, 50, 41, 0.88), rgba(23, 50, 41, 0.24)),
    url("../images/tracabilite-qr.jpg") center / cover;
}

.aquilaria-hero {
  background:
    linear-gradient(90deg, rgba(23, 50, 41, 0.86), rgba(23, 50, 41, 0.24)),
    url("../images/plantation-panorama.jpg") center / cover;
}

.institute-hero {
  background:
    linear-gradient(90deg, rgba(21, 23, 19, 0.86), rgba(107, 39, 50, 0.42)),
    url("../images/bakhoor-fumee.jpg") center / cover;
}

.cosmetics-hero {
  background:
    linear-gradient(90deg, rgba(23, 50, 41, 0.9), rgba(23, 50, 41, 0.28)),
    url("../images/huile-oud.jpg") center / cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(23, 50, 41, 0.88), rgba(23, 50, 41, 0.24)),
    url("../images/plantation-visite.jpg") center / cover;
}

.soft-band {
  background: var(--ivory);
}

.editorial-section {
  align-items: center;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.editorial-grid article {
  min-height: 170px;
  padding: 24px;
  background: var(--paper);
}

.editorial-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--saffron);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.editorial-grid p {
  margin: 0;
  font-size: 16px;
}

.expanded-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--jade-light);
}

.expanded-cards .card {
  min-height: 250px;
}

.cards,
.price-board,
.proof-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.card,
.price-board article,
.proof-grid article,
.timeline article {
  display: block;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
}

.card span,
.price-board .label,
.proof-grid span,
.timeline span {
  display: block;
  margin-bottom: 22px;
  color: var(--saffron);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.image-card {
  min-height: 440px;
  position: relative;
  overflow: hidden;
  padding: 0;
  color: var(--paper);
}

.image-card img {
  position: absolute;
  inset: 0;
  transition: transform 320ms ease;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(21, 23, 19, 0.84));
}

.image-card span,
.image-card h3 {
  position: relative;
  z-index: 1;
  margin-left: 24px;
  margin-right: 24px;
}

.image-card span {
  margin-top: 300px;
}

.image-card:hover img {
  transform: scale(1.04);
}

.media-frame {
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--night);
}

.media-frame.tall {
  min-height: 620px;
}

figcaption {
  padding: 10px 12px;
  color: var(--smoke);
  background: var(--night);
  font-size: 12px;
}

.dark-band {
  background: var(--night);
  color: var(--paper);
}

.price-board {
  background: var(--jade-light);
}

.price-board article {
  background: var(--paper);
  border-color: rgba(53, 102, 79, 0.18);
}

.price-board strong {
  display: block;
  margin-bottom: 12px;
  color: var(--night);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
}

.price-board p {
  color: var(--muted);
}

.market-dashboard {
  background: #fbfcf9;
}

.dashboard-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.dashboard-heading h2 {
  margin-bottom: 0;
}

.dashboard-heading > p {
  margin-bottom: 6px;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--paper);
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 3px;
  background: var(--ivory);
}

.mode-button {
  min-height: 40px;
  border: 0;
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.mode-button.active {
  background: var(--night);
  color: var(--paper);
}

.year-control {
  display: grid;
  grid-template-columns: auto minmax(130px, 240px) 48px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.year-control input {
  padding: 0;
  accent-color: var(--jade);
}

.year-control output {
  color: var(--night);
  font-weight: 800;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.chart-panel {
  min-width: 0;
  padding: 22px 18px 10px;
  border-right: 1px solid var(--line);
}

#price-chart {
  display: block;
  width: 100%;
  min-height: 330px;
}

.chart-grid {
  stroke: rgba(31, 42, 37, 0.12);
  stroke-width: 1;
}

.chart-axis-label,
.chart-x-label {
  fill: var(--muted);
  font: 14px "Segoe UI", Arial, sans-serif;
}

.chart-line {
  fill: none;
  stroke: var(--jade);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point {
  fill: var(--paper);
  stroke: var(--jade);
  stroke-width: 5;
  cursor: pointer;
  transition: fill 160ms ease, r 160ms ease;
}

.chart-point:hover,
.chart-point:focus,
.chart-point.selected {
  fill: var(--saffron);
  outline: none;
}

.chart-bar {
  fill: var(--jade);
  cursor: pointer;
  transition: fill 160ms ease;
}

.chart-bar:hover,
.chart-bar:focus,
.chart-bar.selected {
  fill: var(--saffron);
  outline: none;
}

.chart-reading {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: #f0f5f0;
}

.chart-reading span {
  color: var(--jade);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-reading strong {
  display: block;
  margin: 10px 0 14px;
  color: var(--night);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.chart-reading p {
  font-size: 16px;
}

.chart-reading small {
  color: var(--muted);
  font-size: 13px;
}

.data-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #f8f3e9;
}

.data-note strong {
  color: var(--wine);
}

.data-note p {
  margin: 0;
  font-size: 15px;
}

.market-article {
  background: var(--paper);
}

.article-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 1.25fr);
  gap: 18px clamp(36px, 7vw, 110px);
  align-items: end;
  border-top: 1px solid var(--line);
}

.article-lead .kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.article-lead h2,
.article-lead .lead {
  margin-bottom: 0;
}

.article-lead .lead {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
}

.article-chapter {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 110px);
  border-top: 1px solid var(--line);
}

.oil-chapter {
  background: var(--ivory);
}

.chapter-title {
  position: sticky;
  top: 92px;
  align-self: start;
}

.chapter-title > span {
  display: block;
  margin-bottom: 30px;
  color: var(--saffron);
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
}

.chapter-title h2 {
  font-size: clamp(30px, 3.5vw, 48px);
}

.article-copy {
  max-width: 900px;
}

.article-copy > section {
  padding: 0 0 42px;
}

.article-copy > section + section {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.article-copy h3 {
  max-width: 680px;
  color: var(--night);
  font-size: clamp(24px, 2.6vw, 34px);
}

.history-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 42px;
  background: rgba(53, 102, 79, 0.17);
}

.history-figures div {
  min-height: 180px;
  padding: 20px;
  background: #edf3ee;
}

.history-figures span,
.history-figures small {
  display: block;
  color: var(--muted);
}

.history-figures span {
  margin-bottom: 18px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.history-figures strong {
  display: block;
  margin-bottom: 8px;
  color: var(--night);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}

.article-copy blockquote {
  margin: 16px 0 0;
  padding: 28px 30px;
  border-left: 4px solid var(--saffron);
  background: var(--night);
  color: var(--paper);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.45;
}

.product-story {
  background: var(--ivory);
}

.market-factors {
  background: var(--paper);
}

.source-band {
  background: var(--night);
  color: var(--paper);
}

.source-band h2 {
  max-width: 840px;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.16);
}

.source-links a {
  min-height: 120px;
  padding: 22px;
  background: #1d4033;
  color: var(--paper);
  font-weight: 760;
  text-decoration-color: var(--saffron);
  text-underline-offset: 5px;
}

form {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 760;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 13px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 4vw, 58px);
  background: #10261e;
  color: var(--paper);
}

footer p {
  margin: 0;
  color: rgba(255, 250, 240, 0.74);
}

footer a {
  color: var(--saffron);
  text-decoration: none;
}

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

  nav {
    justify-content: flex-start;
  }

  .value-strip,
  .two-column,
  .contact-layout,
  .cards,
  .price-board,
  .proof-grid,
  .timeline,
  .dashboard-heading,
  .chart-layout,
  .data-note,
  .source-links,
  .article-lead,
  .article-chapter,
  .editorial-grid,
  .expanded-cards {
    grid-template-columns: 1fr;
  }

  .article-lead .kicker {
    grid-column: 1;
  }

  .chapter-title {
    position: static;
  }

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

  .chart-reading {
    min-height: 240px;
  }

  .hero {
    min-height: 78vh;
  }

  .image-card {
    min-height: 360px;
  }

  .image-card span {
    margin-top: 230px;
  }
}

@media (max-width: 560px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  p, li { font-size: 16px; }
  .section, .hero, .page-hero { padding-left: 16px; padding-right: 16px; }

  .site-header {
    position: static;
  }

  .brand img {
    width: min(250px, 76vw);
  }

  nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  nav a {
    white-space: nowrap;
  }

  .chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .year-control {
    grid-template-columns: 1fr auto;
  }

  .year-control input {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .chart-panel {
    padding-left: 0;
    padding-right: 0;
    overflow-x: auto;
  }

  #price-chart {
    min-width: 680px;
  }

  .history-figures {
    grid-template-columns: 1fr;
  }

  .history-figures div {
    min-height: 0;
  }
}


.language-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(23, 50, 41, 0.9), rgba(23, 50, 41, 0.34)),
    url("../images/plantation-visite.jpg") center / cover;
}

.language-chooser {
  width: min(980px, calc(100% - 36px));
  padding: clamp(42px, 7vw, 76px) 0;
  color: var(--paper);
}

.language-chooser img {
  width: min(330px, 76vw);
  height: auto;
  margin-bottom: 34px;
  object-fit: contain;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.24));
}

.language-chooser h1 {
  width: min(720px, 100%);
}

.language-chooser p {
  color: rgba(255, 250, 240, 0.84);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.language-grid a {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--night);
  text-decoration: none;
}

.language-grid span {
  display: block;
  margin-bottom: 20px;
  color: var(--saffron);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .language-grid {
    grid-template-columns: 1fr;
  }
}
