/* =========================================================
   Karya Java Coffee Group — B2B site
   Author: Karya Java digital team
   ========================================================= */

/* ----- Tokens ----- */
:root {
  --bg: #0a0908;
  --bg-2: #0f0d0a;
  --bg-3: #16120d;
  --ink: #f5e9d7;
  --ink-2: #d6c7b0;
  --ink-3: #8c8170;
  --gold: #c9a961;
  --gold-2: #b08d3c;
  --gold-soft: rgba(201, 169, 97, 0.16);
  --line: rgba(245, 233, 215, 0.08);
  --line-2: rgba(245, 233, 215, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  --radius: 2px;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --container: 1320px;
  --ease: cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-2: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(201, 169, 97, 0.05), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(107, 40, 24, 0.06), transparent 50%);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--gold); color: var(--bg); }

/* ----- Preloader ----- */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-2), visibility 0.6s var(--ease-2);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__mark {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 20px;
}
.preloader__line {
  width: 120px;
  height: 1px;
  background: var(--line-2);
  position: relative;
  margin: 0 auto 16px;
  overflow: hidden;
}
.preloader__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: preload 1.4s var(--ease) infinite;
}
@keyframes preload {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.preloader__text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ----- Typography ----- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 120;
}
.display em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.lead {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
  font-variation-settings: "opsz" 24;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  font-weight: 500;
}
.btn--primary {
  background: var(--gold);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--ink);
  color: var(--bg);
  letter-spacing: 3px;
}
.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}
.btn--full { width: 100%; }

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
  background: linear-gradient(180deg, rgba(10,9,8,0.7), transparent);
  backdrop-filter: blur(0px);
}
.nav.is-stuck {
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.nav__logo { width: 36px; height: 36px; color: var(--gold); }
.nav__brandText { display: flex; flex-direction: column; line-height: 1; }
.nav__brandPrimary {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  font-variation-settings: "opsz" 24;
}
.nav__brandSecondary {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.nav__links {
  display: flex; align-items: center; gap: 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-2);
}
.nav__links a:hover { color: var(--gold); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { padding: 12px 22px; font-size: 11px; }
.nav__burger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav__burger span {
  width: 24px; height: 1px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}

/* ----- Sections ----- */
.section {
  padding: 140px 0;
  position: relative;
}
.section__head {
  max-width: 880px;
  margin-bottom: 80px;
}
.section__head--light .display { color: var(--ink); }
.section__lead {
  margin-top: 28px;
  max-width: 680px;
  font-size: 1.1rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 80px;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(10,9,8,0.4) 50%, rgba(10,9,8,0.85) 100%),
    linear-gradient(180deg, rgba(10,9,8,0.2) 0%, rgba(10,9,8,0.5) 50%, rgba(10,9,8,0.95) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  padding: 10px 18px;
  border: 1px solid var(--gold-soft);
  background: rgba(10, 9, 8, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(20px);
}
.hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: var(--ink);
  max-width: 1100px;
  font-variation-settings: "opsz" 144;
  margin-bottom: 40px;
}
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__line span {
  display: block;
  transform: translateY(110%);
  opacity: 0;
}
.hero__line em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.hero__sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
}
.hero__ctas {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 80px;
  opacity: 0; transform: translateY(20px);
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  padding-top: 36px;
  max-width: 800px;
  opacity: 0; transform: translateY(20px);
}
.hero__metaItem {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.hero__metaItem:first-child { border-left: 0; padding-left: 0; }
.hero__metaValue {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  font-variation-settings: "opsz" 60;
}
.hero__metaUnit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}
.hero__metaLabel {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 2;
}
.hero__scroll span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__scrollLine {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.hero__scrollLine::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: var(--ink);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ----- Ticker ----- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  background: var(--bg-2);
}
.ticker__track {
  display: flex; gap: 40px;
  animation: ticker 40s linear infinite;
  width: max-content;
}
.ticker__group {
  display: flex; align-items: center; gap: 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ticker__group i {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ----- Through the chain (photo editorial grid) ----- */
.chain { background: var(--bg); }
.chain__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
  margin-top: 32px;
}
.chain__item {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  margin: 0;
  grid-column: span 2;
  grid-row: span 1;
}
.chain__item--tall {
  grid-column: span 2;
  grid-row: span 2;
}
.chain__item--wide {
  grid-column: span 4;
  grid-row: span 2;
}
.chain__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-2), filter 0.6s var(--ease);
  filter: brightness(0.7) saturate(0.85);
}
.chain__item:hover img { transform: scale(1.06); filter: brightness(0.85) saturate(1); }
.chain__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(10,9,8,0.92) 100%);
  color: var(--ink);
  z-index: 2;
}
.chain__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 6px;
  padding: 4px 8px;
  border: 1px solid var(--gold-soft);
  background: rgba(10, 9, 8, 0.6);
}
.chain__item h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 4px;
  font-variation-settings: "opsz" 24;
}
.chain__item p {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin: 0;
}

/* ----- About ----- */
.about { background: var(--bg); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.about__left .display { position: sticky; top: 100px; }
.about__right p {
  margin-bottom: 24px;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.7;
}
.about__right strong { color: var(--ink); font-weight: 500; }
.about__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.pillar {
  padding-right: 16px;
}
.pillar__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 24;
}
.pillar p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ----- Origins ----- */
.origins { background: var(--bg-2); }
.origins__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.origins__map {
  position: relative;
  aspect-ratio: 4/7;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201,169,97,0.04), transparent 70%),
    var(--bg-3);
  border: 1px solid var(--line);
  padding: 40px;
}
.origins__map::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.javaMap { width: 100%; height: 100%; }
.javaMap__land { filter: drop-shadow(0 0 30px rgba(201,169,97,0.15)); }
.javaMap__volcano { animation: volcano-pulse 4s var(--ease) infinite; }
.javaMap__volcano:nth-child(2) { animation-delay: 0.5s; }
.javaMap__volcano:nth-child(3) { animation-delay: 1s; }
.javaMap__volcano:nth-child(4) { animation-delay: 1.5s; }
.javaMap__volcano:nth-child(5) { animation-delay: 2s; }
.javaMap__port {
  animation: port-blink 2s var(--ease) infinite;
}
@keyframes volcano-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes port-blink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.origins__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.originBlock {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(245, 233, 215, 0.02);
  transition: all 0.4s var(--ease);
}
.originBlock:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.05);
  transform: translateY(-4px);
}
.originBlock__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.originBlock h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 24;
}
.originBlock p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ----- Services ----- */
.services { background: var(--bg); padding-top: 0; }
.services__hero {
  position: relative;
  height: 56vh;
  min-height: 420px;
  max-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 120px;
}
.services__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}
.services__heroOverlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,9,8,0.4) 0%, rgba(10,9,8,0.3) 40%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,9,8,0.6) 0%, transparent 50%);
}
.services__heroInner {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
  max-width: 720px;
}
.services__heroInner .eyebrow { margin-bottom: 16px; }
.services__heroInner .display { margin-bottom: 20px; }
.services__heroInner p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 560px;
}

.service__media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 32px;
  margin-top: -8px;
  background: var(--bg-3);
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-2);
  filter: saturate(0.9) brightness(0.85);
}
.service:hover .service__media img { transform: scale(1.05); filter: saturate(1) brightness(0.95); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.service {
  padding: 48px 40px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: all 0.5s var(--ease);
  background: var(--bg);
}
.service:last-child { border-right: 0; }
.service:hover {
  background: var(--bg-3);
}
.service--accent {
  background: linear-gradient(180deg, rgba(201,169,97,0.04) 0%, transparent 100%);
}
.service__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 32px;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
}
.service__title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.1;
  font-variation-settings: "opsz" 48;
}
.service__desc {
  color: var(--ink-2);
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.65;
}
.service__list {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.service__list li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--ink-2);
  padding: 8px 0;
  position: relative;
  padding-left: 16px;
}
.service__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ----- Logistics ----- */
.logistics {
  background: var(--bg-2);
  position: relative;
  padding-top: 0;
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(107, 40, 24, 0.08), transparent 50%);
}
.logistics__hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  max-height: 800px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 120px;
}
.logistics__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.9);
}
.logistics__heroOverlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,9,8,0.3) 0%, rgba(10,9,8,0.4) 50%, var(--bg-2) 100%),
    linear-gradient(90deg, rgba(10,9,8,0.7) 0%, transparent 60%);
}
.logistics__heroInner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 60px;
}
.logistics__heroGrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.logistics__heroGrid .display { color: var(--ink); }
.logistics__heroGrid .section__lead { margin-top: 24px; }
.logistics__heroCard {
  background: rgba(10, 9, 8, 0.7);
  border: 1px solid var(--line);
  padding: 16px;
  backdrop-filter: blur(8px);
}
.logistics__heroCard img {
  position: static;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: brightness(0.9) saturate(0.9);
  margin-bottom: 16px;
}
.logistics__heroCard .eyebrow { margin-bottom: 8px; }
.logistics__heroCard p {
  color: var(--ink-2);
  font-size: 0.9rem;
  margin: 0;
}
.logistics__heroCaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3) !important;
  margin-top: 6px !important;
}
.logistics::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,233,215,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,233,215,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.logistics > .container { position: relative; z-index: 1; }

.logistics__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 80px;
}
.log__stat {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.log__stat:last-child { border-right: 0; }
.log__statVal {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  font-variation-settings: "opsz" 60;
}
.log__statLabel {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 16px;
}

.logistics__sub {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 32px;
  font-variation-settings: "opsz" 24;
}
.lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.line {
  display: flex; gap: 20px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--ease);
}
.line:hover { background: rgba(201,169,97,0.03); }
.line__mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  font-style: italic;
  flex-shrink: 0;
  width: 32px;
  padding-top: 4px;
}
.line__body { flex: 1; }
.line__body h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 24;
}
.line__body p {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.55;
}
.line__since {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 4px;
  flex-shrink: 0;
}

/* ----- Partners ----- */
.partners {
  position: relative;
  background: var(--bg);
  z-index: 1;
}
.partners__hero {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.18;
  pointer-events: none;
}
.partners__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.6);
}
.partners__heroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10,9,8,0.4) 30%, rgba(10,9,8,0.4) 70%, var(--bg) 100%);
}
.partners__types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 100px;
}
.ptype {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.ptype:hover { background: var(--bg-3); }
.ptype__icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 24px;
  display: inline-block;
}
.ptype h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 24;
}
.ptype p {
  font-size: 0.88rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.partners__sub {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 24;
}
.partners__subLead {
  color: var(--ink-2);
  margin-bottom: 40px;
  max-width: 760px;
  line-height: 1.65;
}
.partners__subLead strong { color: var(--gold); font-weight: 500; }

.compTable {
  border: 1px solid var(--line);
}
.compRow {
  display: grid;
  grid-template-columns: 1.8fr 1fr 0.8fr 1.4fr 1.2fr;
  padding: 18px 24px;
  font-family: var(--mono);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background 0.3s var(--ease);
}
.compRow:last-child { border-bottom: 0; }
.compRow:not(.compRow--head):hover { background: rgba(201,169,97,0.04); }
.compRow > div:first-child {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-variation-settings: "opsz" 24;
}
.compRow--head {
  background: var(--bg-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 14px 24px;
}
.compRow--lead {
  background: rgba(245,233,215,0.02);
  border-left: 2px solid var(--gold);
}
.compRow--us {
  background: linear-gradient(90deg, rgba(201,169,97,0.08), transparent 100%);
  border-left: 2px solid var(--gold);
}
.compRow--us > div:first-child { color: var(--gold); }
.compRow--us > div:first-child strong { color: var(--gold); }
.partners__src {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ----- Market ----- */
.market { background: var(--bg-2); }
.market__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 80px;
}
.mCard {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.mCard:nth-child(3n) { border-right: 0; }
.mCard:nth-last-child(-n+3) { border-bottom: 0; }
.mCard:hover { background: rgba(201,169,97,0.03); }
.mCard__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.mCard__value {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.02em;
}
.mCard__unit {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mCard__delta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
}
.mCard__delta.up { color: #6fbf73; }

.market__bar { max-width: 1100px; }
.mBar {
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.mBar__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mBar__head span:first-child {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-variation-settings: "opsz" 24;
}
.mBar__src {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mBar__list li {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 12px;
}
.mBar__name { color: var(--ink-2); }
.mBar__track {
  display: block;
  height: 6px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.mBar__track i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transform-origin: left;
  animation: bar-grow 1.2s var(--ease-2) forwards;
  transform: scaleX(0);
}
.mBar__list li.mBar--us .mBar__name { color: var(--gold); }
.mBar__list li.mBar--us .mBar__track i { background: linear-gradient(90deg, var(--gold), var(--ink)); }
.mBar__val { text-align: right; color: var(--ink-2); letter-spacing: 0.5px; }
@keyframes bar-grow {
  to { transform: scaleX(1); }
}

/* ----- Numbers ----- */
.numbers { background: var(--bg); }
.numbers__head { max-width: 880px; margin-bottom: 80px; }
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.num {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.num:nth-child(3n) { border-right: 0; }
.num:nth-last-child(-n+3) { border-bottom: 0; }
.num:hover { background: var(--bg-3); }
.num__val {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 80;
}
.num__lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 20px;
}

/* ----- Contact ----- */
.contact { background: var(--bg-2); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__left p {
  color: var(--ink-2);
  margin: 24px 0 48px;
  line-height: 1.65;
}
.contact__offices {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.office h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.office p {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.5;
  margin-top: 0;
}
.office__phone {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 1px;
}

.contact__form {
  padding: 48px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid; gap: 20px;
}
.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact__form label {
  display: flex; flex-direction: column;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  gap: 8px;
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.3s var(--ease);
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact__form textarea { resize: vertical; min-height: 100px; }
.contact__form select { cursor: pointer; }
.formStatus {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  margin-top: 8px;
  min-height: 16px;
}

/* ----- Footer ----- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer__tag {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__cols h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__cols a {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.footer__cols a:hover { color: var(--gold); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__left .display { position: static; }
  .origins__layout { grid-template-columns: 1fr; }
  .origins__content { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); }
  .chain__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .chain__item--wide { grid-column: span 2; }
  .logistics__heroGrid { grid-template-columns: 1fr; gap: 32px; }
  .services__hero, .logistics__hero { height: auto; min-height: 420px; padding: 80px 0; align-items: center; }
  .logistics__stats { grid-template-columns: 1fr 1fr; }
  .log__stat:nth-child(2) { border-right: 0; }
  .log__stat { border-bottom: 1px solid var(--line); }
  .log__stat:nth-last-child(-n+2) { border-bottom: 0; }
  .lines { grid-template-columns: 1fr; }
  .partners__types { grid-template-columns: 1fr 1fr; }
  .ptype { border-bottom: 1px solid var(--line); }
  .compRow { grid-template-columns: 1fr 1fr; gap: 8px; }
  .compRow > div:nth-child(n+3) { display: none; }
  .compRow--head > div:nth-child(n+3) { display: none; }
  .market__grid { grid-template-columns: 1fr 1fr; }
  .mCard:nth-child(3n) { border-right: 1px solid var(--line); }
  .mCard:nth-child(2n) { border-right: 0; }
  .mCard:nth-child(3) { border-right: 0; }
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3n) { border-right: 1px solid var(--line); }
  .num:nth-child(2n) { border-right: 0; }
  .num:nth-child(3) { border-right: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero__metaItem { border-left: 0; padding-left: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .hero__metaItem:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
  .section { padding: 100px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero__title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .about__pillars { grid-template-columns: 1fr; }
  .origins__content { grid-template-columns: 1fr; }
  .partners__types { grid-template-columns: 1fr; }
  .compRow { grid-template-columns: 1fr; }
  .compRow > div:not(:first-child) { display: none; }
  .compRow--head > div:not(:first-child) { display: none; }
  .market__grid { grid-template-columns: 1fr; }
  .mCard { border-right: 0 !important; }
  .numbers__grid { grid-template-columns: 1fr; }
  .num { border-right: 0 !important; }
  .formRow { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .logistics__stats { grid-template-columns: 1fr 1fr; }
  .log__stat { padding: 32px 20px; }
  .section { padding: 80px 0; }
  .display { font-size: clamp(2rem, 8vw, 3rem); }
  .chain__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .chain__item,
  .chain__item--tall,
  .chain__item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .logistics__heroGrid { grid-template-columns: 1fr; gap: 32px; }
  .services__hero, .logistics__hero { height: auto; min-height: 360px; padding: 60px 0; }
  .partners__hero { display: none; }
}

/* Mobile menu (simple slide-in) */
.nav__links.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  font-size: 18px;
  z-index: 40;
  padding: 80px 20px;
}
.nav__links.is-open a { font-size: 18px; letter-spacing: 3px; }
