/* Pantanal Trading — design system v2.0 (ver Brand/design.md) */
:root {
  --navy: #012a52; --navy-900: #011a33; --teal: #016271; --green: #59833d;
  --terra: #b66a4c; --ivory: #f7f3ec; --ivory-2: #efe8dc; --white: #fff;
  --graphite: #283640; --border: #d8ded9;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px; --radius-pill: 999px; --max: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--graphite);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 400; }
h2 { font: 400 clamp(2.2rem, 4.4vw, 3.8rem)/1.04 var(--font-display); letter-spacing: -.01em; }
h3 { font: 700 1.2rem/1.3 var(--font-body); letter-spacing: -.01em; }
em { font-style: italic; color: var(--teal); }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--dark { background: var(--navy-900); color: #d7e0e6; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--dark em { color: #e3a385; }
.section--ivory2 { background: var(--ivory-2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--terra); }
.eyebrow--light { color: #f0d9c9; }

.grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--navy); --fg: var(--ivory);
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px;
  border-radius: var(--radius-pill); border: 1px solid transparent; background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--primary:hover { --bg: var(--teal); }
.btn--light { --bg: var(--ivory); --fg: var(--navy); }
.btn--light:hover { --bg: #fff; }
.btn--ghost-light { --bg: transparent; --fg: var(--ivory); border-color: rgba(247,243,236,.45); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { border-color: var(--ivory); background: rgba(247,243,236,.08); }
.arrow { position: relative; width: 16px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); transform-origin: center; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav__pill {
  pointer-events: auto; max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 20px; border-radius: var(--radius-pill);
  background: rgba(247,243,236,.78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 10px 40px -18px rgba(1,26,51,.45);
  transition: background .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__pill { background: rgba(247,243,236,.94); box-shadow: 0 12px 40px -20px rgba(1,26,51,.35); }
.nav__logo img { width: 168px; height: auto; margin: -6px 0; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 9px 14px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--navy); transition: background .25s; }
.nav__links a:hover, .nav__links a.is-active { background: rgba(1,42,82,.07); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: rgba(255,255,255,.5); }
.lang button { border: 0; background: transparent; padding: 6px 9px; border-radius: var(--radius-pill); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--graphite); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--ivory); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ivory); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { pointer-events: auto; margin: 10px auto 0; max-width: var(--max); padding: 14px; border-radius: 24px; background: rgba(247,243,236,.97); backdrop-filter: blur(18px); box-shadow: 0 20px 50px -20px rgba(1,26,51,.4); display: grid; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 12px; text-decoration: none; font: 400 1.6rem/1.1 var(--font-display); color: var(--navy); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border: 0; color: var(--terra); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ivory); overflow: hidden; background: var(--navy-900); }
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero__shade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(1,26,51,.82) 0%, rgba(1,26,51,.45) 38%, rgba(1,26,51,0) 70%),
    linear-gradient(0deg, rgba(1,26,51,.9) 0%, rgba(1,26,51,0) 38%),
    linear-gradient(180deg, rgba(1,26,51,.35) 0%, rgba(1,26,51,0) 22%); }
.hero__inner { position: relative; padding-top: 140px; padding-bottom: clamp(120px, 16vh, 170px); }
.hero__title { color: var(--ivory); font: 400 clamp(3.2rem, 8.4vw, 7.6rem)/.94 var(--font-display); letter-spacing: -.02em; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { color: #ecb294; }
.hero__lead { max-width: 560px; font-size: clamp(1rem, 1.4vw, 1.18rem); color: rgba(247,243,236,.86); margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__rail { position: absolute; right: var(--gutter); bottom: 96px; width: min(340px, 30vw); }
.hero__progress { height: 1px; background: rgba(247,243,236,.25); position: relative; margin-bottom: 12px; }
.hero__progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--terra); box-shadow: 0 0 12px rgba(236,178,148,.8); }
.hero__chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); font: 500 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(247,243,236,.5); }
.hero__chapters li { transition: color .5s; }
.hero__chapters li.is-on { color: var(--ivory); }

/* hero intro animation */
.js .hero .eyebrow, .js .hero__lead, .js .hero__cta, .js .hero__rail { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero__title .line > * , .js .hero__title .line { }
.js .hero__title .line { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.is-loaded .hero .eyebrow, .is-loaded .hero__title .line, .is-loaded .hero__lead, .is-loaded .hero__cta, .is-loaded .hero__rail { opacity: 1; transform: none; }
.is-loaded .hero__title .line:nth-child(2) { transition-delay: .12s; }
.is-loaded .hero__lead { transition-delay: .3s; } .is-loaded .hero__cta { transition-delay: .42s; } .is-loaded .hero__rail { transition-delay: .6s; }

.ticker { position: relative; border-top: 1px solid rgba(247,243,236,.16); background: rgba(1,26,51,.55); backdrop-filter: blur(10px); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { padding: 16px 28px; white-space: nowrap; font: 400 12.5px/1 var(--font-mono); letter-spacing: .08em; color: rgba(247,243,236,.7); border-right: 1px solid rgba(247,243,236,.12); }
.ticker b { color: #ecb294; font-weight: 500; margin-right: 6px; }
.ticker i { font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto { padding-bottom: clamp(64px, 8vw, 110px); }
.manifesto__text { font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1.08; max-width: 18ch; max-width: 1100px; margin-bottom: clamp(60px, 8vw, 110px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.stat { padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--border); }
.stat__n { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.stat:first-child .stat__n { color: var(--terra); }
.stat__l { font-size: 14.5px; color: #5a6a74; max-width: 24ch; }

/* ---------- section head ---------- */
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head__lead { color: #4e5e68; font-size: 1.05rem; max-width: 48ch; }
.section--dark .section-head__lead { color: #b9c6cf; }

/* ---------- products ---------- */
.products__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.products__visual { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ivory-2); min-height: 420px; }
.products__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; transition: transform 1.6s var(--ease); }
.products__visual:hover img { transform: scale(1.03); }
.products__visual figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; font-size: 11.5px; letter-spacing: .06em; color: var(--navy); background: rgba(247,243,236,.85); backdrop-filter: blur(8px); padding: 10px 14px; border-radius: 10px; width: fit-content; }
.op-list { display: grid; gap: 10px; align-content: start; }
.op {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  width: 100%; text-align: left; padding: 18px 20px; border-radius: 14px; cursor: pointer;
  background: var(--white); border: 1px solid var(--border); color: var(--graphite); font: inherit;
  transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
}
.op::before { content: ""; grid-row: 1; width: 14px; height: 40px; border-radius: 8px; background: linear-gradient(180deg, #fff, var(--swatch)); border: 1px solid rgba(1,42,82,.12); order: -1; display: none; }
.op__code { font-size: 1.7rem; color: var(--navy); letter-spacing: -.02em; position: relative; padding-left: 26px; }
.op__code::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 34px; transform: translateY(-50%); border-radius: 7px; background: linear-gradient(180deg, rgba(255,255,255,.9), var(--swatch)); border: 1px solid rgba(1,42,82,.15); box-shadow: inset 0 -6px 10px -6px rgba(182,106,76,.35); }
.op__name { font-weight: 600; font-size: 15px; color: var(--navy); }
.op__range { font-size: 12.5px; color: #6b7a83; }
.op:hover { border-color: #b8c4c0; transform: translateX(2px); }
.op.is-active { border-color: var(--navy); box-shadow: 0 16px 40px -24px rgba(1,42,82,.5); }
.op.is-active .op__range { color: var(--terra); }
.op-detail { margin-top: 6px; padding: 24px; border-radius: 14px; background: var(--navy); color: #d8e2e8; }
.op-detail__text { font-size: 15.5px; margin-bottom: 20px; color: var(--ivory); min-height: 3.2em; transition: opacity .25s; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 16px; background: rgba(247,243,236,.14); border-radius: 10px; overflow: hidden; }
.specs div { background: var(--navy); padding: 12px 14px; }
.specs dt { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,243,236,.55); margin-bottom: 4px; }
.specs dd { margin: 0; font-size: 14px; color: var(--ivory); }
.note { font-size: 12.5px; color: rgba(247,243,236,.6); }

.more-products { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); margin-top: clamp(16px, 2.5vw, 28px); }
.mp { display: grid; grid-template-columns: 240px 1fr; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mp__img { overflow: hidden; background: var(--ivory); display: grid; place-items: center; border-right: 1px solid var(--border); } .mp__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform 1.4s var(--ease); }
.mp:hover .mp__img img { transform: scale(1.06); }
.mp__body { padding: 26px; display: grid; gap: 10px; align-content: start; }
.mp__body p { font-size: 15px; color: #56656e; }
.tag { display: inline-block; width: fit-content; font-size: 10.5px; letter-spacing: .14em; padding: 6px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--teal); }
.tag--light { border-color: rgba(247,243,236,.4); color: var(--ivory); background: rgba(1,26,51,.3); backdrop-filter: blur(6px); }

/* ---------- origins ---------- */
.origins::before { content: ""; position: absolute; inset: 0; background: url("../img/texture-river.jpg") center/cover; opacity: .12; }
.origins .container { position: relative; }
.origins__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.origins__copy > p { color: #b9c6cf; max-width: 46ch; margin: 22px 0 36px; }
.origin-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(247,243,236,.14); }
.origin-list li { display: flex; align-items: center; gap: 18px; padding: 16px 4px; border-bottom: 1px solid rgba(247,243,236,.14); cursor: default; transition: padding .35s var(--ease), background .3s; }
.origin-list b { font-weight: 500; font-size: 13px; letter-spacing: .1em; color: #ecb294; width: 30px; }
.origin-list span { color: #dbe3e8; font-size: 15.5px; }
.origin-list li:hover, .origin-list li.is-hot { padding-left: 14px; background: rgba(247,243,236,.04); }
.map { position: relative; margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.map img { width: 100%; height: 100%; object-fit: cover; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route { fill: none; stroke: var(--teal); stroke-width: .45; stroke-linecap: round; stroke-dasharray: 1.2 1.2; opacity: .9; }
.route--draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 2.2s var(--ease); }
.map.is-in .route--draw { stroke-dashoffset: 0; }
.route-flow { fill: none; stroke: var(--terra); stroke-width: .6; stroke-linecap: round; stroke-dasharray: 1.4 6; animation: flow 3.5s linear infinite; opacity: 0; transition: opacity .6s 2s; }
.map.is-in .route-flow { opacity: .95; }
.route.is-hot { stroke: var(--terra); stroke-width: .7; }
@keyframes flow { to { stroke-dashoffset: -14.8; } }
.pin circle.dot { fill: var(--navy); stroke: var(--ivory); stroke-width: .5; }
.pin circle.halo { fill: var(--teal); opacity: .25; transform-box: fill-box; transform-origin: center; animation: halo 2.6s var(--ease) infinite; }
.pin text { font: 500 2.7px var(--font-mono); fill: var(--navy); letter-spacing: .1px; paint-order: stroke; stroke: rgba(247,243,236,.9); stroke-width: .9px; }
.pin--dest circle.dot { fill: var(--terra); }
.pin--dest text { fill: var(--terra); font-size: 2.3px; }
.pin--hub circle.dot { r: 1.6; fill: var(--terra); }
@keyframes halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- netback ---------- */
.nb { display: grid; grid-template-columns: 380px 1fr; gap: clamp(24px, 4vw, 48px); background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 70px -50px rgba(1,42,82,.5); }
.nb__hint { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin-bottom: 18px; }
.slider { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
.slider__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.slider output { font-size: 14px; font-weight: 500; color: var(--teal); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) var(--p, 50%), var(--border) var(--p, 50%)); outline-offset: 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); box-shadow: 0 2px 8px rgba(1,42,82,.25); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); cursor: grab; }
.nb__chart { display: grid; grid-template-rows: 1fr auto; gap: 24px; min-width: 0; }
.wf { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(6px, 1.2vw, 14px); align-items: stretch; min-height: 340px; padding-top: 28px; border-bottom: 1px solid var(--border); }
.wf__col { position: relative; display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.wf__area { position: relative; }
.wf__bar { position: absolute; left: 0; right: 0; border-radius: 6px; transition: top .6s var(--ease), height .6s var(--ease), background .3s; }
.wf__bar--total { background: var(--navy); }
.wf__bar--neg { background: repeating-linear-gradient(135deg, #c9d3d0 0 4px, #dde3e0 4px 8px); }
.wf__bar--gain { background: var(--green); }
.wf__bar--margin { background: var(--terra); }
.wf__bar--net { background: var(--teal); }
.wf__val { position: absolute; left: 50%; transform: translate(-50%, -120%); font: 500 12px var(--font-mono); color: var(--navy); white-space: nowrap; transition: top .6s var(--ease); }
.wf__lbl { padding: 10px 0 12px; font-size: 12px; line-height: 1.25; color: #5a6a74; text-align: center; min-height: 3.6em; }
.wf__link { position: absolute; height: 0; border-top: 1px dashed #9fb0b5; pointer-events: none; transition: top .6s var(--ease); }
.nb__result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nb__result > div { padding: 18px 20px; border-radius: 14px; background: var(--ivory); display: grid; gap: 6px; }
.nb__result > div:first-child { background: var(--navy); }
.nb__result > div:first-child .nb__lbl { color: rgba(247,243,236,.6); }
.nb__result > div:first-child strong { color: var(--ivory); }
.nb__lbl { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6b7a83; }
.nb__result strong { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; color: var(--navy); letter-spacing: -.02em; }

/* ---------- how ---------- */
.chain { position: relative; margin: 0 0 clamp(56px, 7vw, 96px); border-radius: 22px; overflow: hidden; background: var(--ivory); border: 1px solid var(--border); }
.chain img { width: 100%; height: auto; }
.chain__labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.chain__labels li { position: absolute; top: clamp(14px, 3vw, 36px); left: var(--x); transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; text-align: center; width: max-content; max-width: 22%; }
.chain__labels b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--ivory); font-size: 11px; font-weight: 500; }
.chain__labels li:last-child b { background: var(--terra); }
.chain__labels span { font: 700 clamp(12px, 1.3vw, 16px)/1.2 var(--font-body); color: var(--navy); }
.chain__labels small { font-size: clamp(9px, .85vw, 11px); letter-spacing: .04em; color: #5a6a74; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: linear-gradient(90deg, var(--terra), var(--teal) 40%, var(--navy)); transform-origin: left; transform: scaleX(var(--line, 0)); transition: transform 1.8s var(--ease); }
.steps.is-in::before { --line: 1; }
.step { padding: 0 28px 0 0; position: relative; }
.step__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory-2); border: 1px solid var(--navy); color: var(--navy); font-size: 13px; margin-bottom: 28px; position: relative; z-index: 1; transition: background .3s, color .3s; }
.step:hover .step__n { background: var(--navy); color: var(--ivory); }
.step__icon { width: 64px; height: 64px; margin: 0 0 18px -6px; transition: transform .5s var(--ease); }
.step:hover .step__icon { transform: translateY(-4px); }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; color: #56656e; }

/* ---------- sectors ---------- */
.sectors__grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(14px, 2vw, 24px); min-height: 640px; }
.sector { position: relative; border-radius: var(--radius); overflow: hidden; color: var(--ivory); display: flex; align-items: flex-end; min-height: 300px; isolation: isolate; }
.sector--lg { grid-row: span 2; }
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.6s var(--ease); }
.sector::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(1,26,51,.88) 0%, rgba(1,26,51,.25) 55%, rgba(1,26,51,0) 100%); }
.sector:hover img { transform: scale(1.05); }
.sector__body { padding: clamp(20px, 3vw, 34px); display: grid; gap: 10px; max-width: 520px; }
.sector h3 { color: var(--ivory); font: 400 clamp(1.7rem, 2.6vw, 2.4rem)/1.05 var(--font-display); }
.sector p { font-size: 15px; color: rgba(247,243,236,.82); }

/* ---------- team ---------- */
.team__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.team__img { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 6/5; }
.team__img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.team__copy > p { color: #b9c6cf; margin: 22px 0 30px; max-width: 46ch; }
.team__copy h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 10px 16px; border-radius: var(--radius-pill); border: 1px solid rgba(247,243,236,.22); font-size: 14px; color: var(--ivory); transition: background .3s, border-color .3s; }
.chips li:hover { background: rgba(247,243,236,.08); border-color: #ecb294; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact__grid > div > p { color: #4e5e68; margin: 22px 0 28px; max-width: 42ch; }
.contact__mail { display: inline-block; font-size: clamp(14px, 1.6vw, 17px); color: var(--navy); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--terra); word-break: break-all; }
.form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: clamp(20px, 3vw, 36px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--navy); }
.form input:not([type=checkbox]), .form textarea { width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--graphite); padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--ivory); transition: border-color .25s, background .25s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.form textarea { resize: vertical; }
.form__chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; padding: 0; }
.form__chips label { display: inline-flex; cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span { padding: 9px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); font: 500 13px/1 var(--font-mono); color: var(--graphite); transition: all .25s; }
.form__chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.form__chips input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form__status { font-size: 14px; color: var(--teal); min-height: 1.4em; }

/* ---------- footer ---------- */
.footer { background: var(--ivory-2); padding: 64px 0 40px; border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.footer__logo { width: 240px; height: auto; }
.footer__tag { font: 400 1.6rem/1 var(--font-display); color: var(--navy); }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--navy); }
.footer__nav a:hover { color: var(--terra); }
.footer__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: #6b7a83; }

/* ---------- distillation chart + kpis ---------- */
.dist { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 18px; align-content: start; }
.dist__head { display: flex; justify-content: space-between; align-items: center; }
.dist__title { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.dist__std { font-size: 11px; color: var(--terra); padding: 5px 9px; border: 1px solid var(--terra-soft, rgba(182,106,76,.35)); border-radius: 999px; }
.dist__svg { width: 100%; height: auto; overflow: visible; }
.dist__svg .grid line { stroke: var(--border); stroke-width: 1; }
.dist__svg .grid text, .dist__svg .rowlbl { font: 500 11px var(--font-mono); fill: #7a8890; }
.dist__svg .rowlbl { font-size: 15px; fill: var(--navy); }
.dist__svg .track { fill: var(--ivory); }
.dist__svg .bar { transition: opacity .4s, transform .6s var(--ease); transform-box: fill-box; transform-origin: left center; }
.dist__svg .row { cursor: pointer; transition: opacity .4s; }
.dist__svg .row.is-dim { opacity: .38; }
.dist__svg .endlbl { font: 500 11.5px var(--font-mono); fill: var(--navy); }
.dist__svg .callout { font: 500 11px var(--font-mono); fill: var(--terra); }
.dist__svg .callout-line { stroke: var(--terra); stroke-width: 1; stroke-dasharray: 3 3; }
.js .dist:not(.is-in) .bar { transform: scaleX(0); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.kpi { display: flex; gap: 12px; align-items: center; background: var(--white); padding: 14px; }
.kpi img, .kpi__check { width: 40px; height: 40px; flex: none; }
.kpi__check circle { fill: none; stroke: var(--navy); stroke-width: 2; } .kpi__check path { fill: none; stroke: var(--terra); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kpi b { display: block; font-size: 17px; font-weight: 500; color: var(--navy); letter-spacing: -.01em; }
.kpi b small { font-size: 11px; color: #6b7a83; }
.kpi span { font-size: 12.5px; color: #5a6a74; }
.op-detail__lbl { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,243,236,.55); margin-bottom: 10px; }
.op-apps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.op-apps li { padding: 8px 12px; border-radius: 999px; background: rgba(247,243,236,.08); border: 1px solid rgba(247,243,236,.2); font-size: 13px; color: var(--ivory); }
.op-apps li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ecb294; margin-right: 8px; vertical-align: middle; }
.mp__list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--navy); }
.mp__list li { padding-left: 16px; position: relative; }
.mp__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 1px; background: var(--terra); }

/* ---------- world map ---------- */
.world { margin: 0 0 clamp(28px, 4vw, 48px); position: relative; }
.world__svg { width: 100%; height: auto; display: block; overflow: visible; }
.world .land { fill: #0b3358; stroke: #12406a; stroke-width: .5; transition: fill .4s; }
.world .land.is-brazil { fill: rgba(182,106,76,.35); stroke: #e3a385; stroke-width: .8; }
.world .land.is-origin { fill: #0f6a78; stroke: #3f97a3; stroke-width: .6; }
.world .land.is-origin.is-hot { fill: #1a8796; }
.world .sea { fill: rgba(1,26,51,.55); stroke: rgba(247,243,236,.12); }
.world .graticule { fill: none; stroke: rgba(247,243,236,.06); stroke-width: .5; }
.world .sphere { fill: none; stroke: rgba(247,243,236,.08); }
.world .arc { fill: none; stroke: #ecb294; stroke-width: 1.3; stroke-linecap: round; opacity: .85; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 2.4s var(--ease), stroke-width .3s, opacity .3s; }
.world.is-in .arc { stroke-dashoffset: 0; }
.world .arc.is-hot { stroke-width: 2.6; opacity: 1; }
.world .arc-flow { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 18; opacity: 0; animation: flow2 2.8s linear infinite; transition: opacity .6s 2.4s; }
.world.is-in .arc-flow { opacity: .7; }
@keyframes flow2 { to { stroke-dashoffset: -40; } }
.world .opin circle { fill: #ecb294; stroke: var(--navy-900); stroke-width: 1.2; }
.world .opin text { font: 500 11px var(--font-mono); fill: var(--ivory); letter-spacing: .06em; paint-order: stroke; stroke: var(--navy-900); stroke-width: 3px; }
.world .dest circle.core { fill: var(--terra); stroke: var(--ivory); stroke-width: 1.5; }
.world .dest circle.halo { fill: var(--terra); opacity: .3; transform-box: fill-box; transform-origin: center; animation: halo 2.6s var(--ease) infinite; }
.world .dest text { font: 600 12px var(--font-body); fill: var(--ivory); paint-order: stroke; stroke: var(--navy-900); stroke-width: 3px; }
.regions { display: grid; grid-template-columns: 2.2fr 1fr 1.4fr; gap: 1px; background: rgba(247,243,236,.14); border: 1px solid rgba(247,243,236,.14); border-radius: 16px; overflow: hidden; }
.region { background: rgba(1,26,51,.75); padding: 20px; }
.region__name { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #f0d9c9; margin-bottom: 14px; }
.region__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.region__list li { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(247,243,236,.18); font-size: 13.5px; color: #dbe3e8; cursor: default; transition: background .25s, border-color .25s; }
.region__list li b { font-size: 11px; font-weight: 500; color: #ecb294; }
.region__list li:hover, .region__list li.is-hot { background: rgba(236,178,148,.12); border-color: #ecb294; }

/* ---------- pillars + toggle ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); margin-bottom: clamp(28px, 4vw, 48px); }
.pillar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.pillar::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--terra); transition: width .8s var(--ease); }
.pillar:hover::after { width: 100%; }
.pillar img { width: 56px; height: 56px; margin-left: -4px; }
.pillar p { font-size: 15px; color: #56656e; }
.toggle { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 6px; border-radius: 12px; background: var(--ivory); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__ui { flex: none; width: 46px; height: 26px; border-radius: 999px; background: #c9d3d0; position: relative; transition: background .3s; }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(1,42,82,.25); transition: transform .35s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--green); }
.toggle input:checked + .toggle__ui::after { transform: translateX(20px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--terra); outline-offset: 3px; }
.toggle__txt { display: grid; gap: 2px; } .toggle__txt b { font-size: 14px; color: var(--navy); } .toggle__txt small { font-size: 12px; color: #6b7a83; }
.wf__bar--eff { background: var(--green); opacity: .9; }
.nb__result > div:last-child strong { color: var(--green); }

/* ---------- orbit (experience) ---------- */
.orbit { container-type: inline-size; position: relative; margin: 0; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.orbit__ring { position: absolute; inset: 50% auto auto 50%; border-radius: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(247,243,236,.14); }
.orbit__ring--1 { width: 36%; height: 36%; background: radial-gradient(circle, rgba(236,178,148,.16), rgba(1,26,51,0) 70%); border-color: rgba(236,178,148,.4); }
.orbit__ring--2 { width: 70%; height: 70%; border-style: dashed; border-color: rgba(247,243,236,.22); animation: spin 60s linear infinite; }
.orbit__ring--2 i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ecb294; box-shadow: 0 0 12px #ecb294; top: -4px; left: calc(50% - 4px); }
.orbit__ring--2 i + i { top: auto; bottom: -4px; background: #3f97a3; box-shadow: 0 0 12px #3f97a3; }
.orbit__ring--3 { width: 100%; height: 100%; border-color: rgba(247,243,236,.07); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.orbit__core { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: 6px; }
.orbit__n { font-size: clamp(3rem, 7vw, 5rem); line-height: 1; color: var(--ivory); letter-spacing: -.04em; }
.orbit__l { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #f0d9c9; }
.orbit__nodes { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.orbit__nodes li { position: absolute; left: 50%; top: 50%; transform: rotate(var(--a)) translate(35cqw) rotate(calc(-1 * var(--a))); }
.orbit__nodes span { display: block; transform: translate(-50%, -50%); white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: var(--navy); border: 1px solid rgba(247,243,236,.22); font-size: 13.5px; color: var(--ivory); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); transition: border-color .3s, background .3s; }
.orbit__nodes span:hover { border-color: #ecb294; background: #06325c; }
.team__facts { margin: 0 0 32px; display: grid; gap: 0; border-top: 1px solid rgba(247,243,236,.14); }
.team__facts div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(247,243,236,.14); }
.team__facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ecb294; padding-top: 3px; }
.team__facts dd { margin: 0; font-size: 15px; color: #dbe3e8; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nb { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .regions { grid-template-columns: 1fr; }
  .section-head, .products__grid, .origins__grid, .team__grid, .contact__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); margin-top: 28px; }
  .more-products { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before { display: none; }
  .sectors__grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .sector--lg { grid-row: auto; min-height: 420px; }
  .hero__rail { display: none; }
  .team__img { aspect-ratio: 3/2; }
  .footer__grid { grid-template-columns: 1fr; }
  .map { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { inset: 10px 0 auto; }
  .nav__pill { padding: 6px 6px 6px 14px; }
  .nav__logo img { width: 132px; }
  .nav__right .btn { display: none; }
  .lang button { padding: 6px 7px; }
  .hero__shade { background: linear-gradient(0deg, rgba(1,26,51,.95) 0%, rgba(1,26,51,.55) 55%, rgba(1,26,51,.3) 100%); }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--border); margin-top: 24px; }
  .mp { grid-template-columns: 1fr; } .mp__img { aspect-ratio: 16/9; }
  .op { grid-template-columns: auto 1fr; } .op__range { grid-column: 2; }
  .specs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .wf { min-height: 280px; gap: 4px; }
  .chain { overflow-x: auto; } .chain img { width: 760px; max-width: none; } .chain__labels { width: 760px; } .chain__labels small { display: none; }
  .wf__lbl { font-size: 10px; }
  .wf__val { font-size: 10px; }
  .nb__result { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .team__facts div { grid-template-columns: 1fr; gap: 4px; }
  .orbit__nodes span { font-size: 11px; padding: 7px 10px; }
  .world { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__video { display: none; }
  .hero__media { background: url("../img/hero-poster.jpg") center/cover; }
}
