:root {
  --ink: #0f1217;
  --ink-2: #171b22;
  --ink-3: #232935;
  --paper: #f6f5f2;
  --white: #ffffff;
  --text: #1d222b;
  --muted: #5d6573;
  --muted-d: #9aa3b2;
  --line: #e2e0da;
  --line-d: #2b3240;
  --accent: #e0832f;      /* turbine-flame amber */
  --accent-2: #f2a65a;
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 500; letter-spacing: -0.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 400; max-width: 22ch; }
.sub { color: var(--muted); max-width: 62ch; font-size: 18px; margin: 16px 0 0; }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: #fff;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 500; letter-spacing: .02em;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #c96f20; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 8px 18px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff; transition: background .25s, box-shadow .25s;
}
.nav.scrolled { background: rgba(15,18,23,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-d); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; }
.brand img { width: 34px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-size: 15.5px; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.nav-links a.btn { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 20%, #2a2017 0%, transparent 60%), var(--ink);
  color: #fff; padding: 150px 0 0;
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 66px); font-weight: 400; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.lead { font-size: 19px; color: #c6ccd6; max-width: 56ch; margin: 24px 0 34px; font-weight: 300; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(360px, 80%); opacity: .95; filter: drop-shadow(0 20px 60px rgba(224,131,47,.15)); }

.stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 90px; border-top: 1px solid var(--line-d);
}
.stats > div { padding: 30px 24px 36px 0; border-right: 1px solid var(--line-d); }
.stats > div + div { padding-left: 24px; }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 44px; font-weight: 300; color: #fff; line-height: 1; }
.stats span { display: block; margin-top: 10px; color: var(--muted-d); font-size: 15px; max-width: 22ch; }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section.dark { background: var(--ink); color: #fff; }
.section.dark .sub { color: var(--muted-d); }
.section.tint { background: #ecebe6; }

.plants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 54px 0 70px; }
.plant { background: var(--white); padding: 30px 28px; }
.pi { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; color: var(--accent); border: 1px solid currentColor; border-radius: 6px; padding: 3px 8px; display: inline-block; margin-bottom: 16px; }
.plant h3 { font-size: 21px; margin-bottom: 8px; }
.plant p { margin: 0; color: var(--muted); font-size: 16px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.services article { border-top: 2px solid var(--text); padding-top: 22px; }
.num { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--muted); }
.services h3 { font-size: 22px; margin: 10px 0 10px; }
.services p { margin: 0; color: var(--muted); }

/* track record */
.record { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 54px; }
.rec-col h3 { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); font-weight: 500; margin-bottom: 14px; }
.rec-col h3.mt { margin-top: 40px; }
.proj { list-style: none; margin: 0; padding: 0; }
.proj li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-d); }
.proj b { font-weight: 400; font-size: 17.5px; }
.proj span { color: var(--muted-d); font-size: 15px; text-align: right; white-space: nowrap; }

/* global footprint */
.section.world { padding-top: 0; }
.section.world .wrap { border-top: 1px solid var(--line-d); padding-top: 100px; }
.map-box { position: relative; margin-top: 50px; background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 18px 18px 14px; }
#world-map { width: 100%; height: auto; display: block; }
.cty { fill: #262c38; stroke: var(--ink-2); stroke-width: .5; transition: fill .3s, opacity .3s; }
.cty.on { fill: rgba(224,131,47,.62); cursor: pointer; }
.cty.on:hover { fill: var(--accent-2); }
.cty.t-p { fill: rgba(64,178,170,.7); }
.cty.t-p:hover { fill: #5fd0c6; }
.cty.t-h { fill: var(--accent-2); }
.arc { fill: none; stroke: rgba(242,166,90,.55); stroke-width: 1; vector-effect: non-scaling-stroke; transition: opacity .3s; }
.arc.r-asia { stroke: rgba(95,208,198,.55); }
.site { fill: #fff; stroke: var(--accent); stroke-width: 1.6; cursor: pointer; transition: opacity .3s; }
.site.t-p { stroke: #40b2aa; }
.site:hover { fill: var(--accent-2); }
.hq { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.hq-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hq-pulse { animation: none; } }

.map-box[data-focus] .cty.on, .map-box[data-focus] .arc, .map-box[data-focus] .site { opacity: .18; }
.map-box[data-focus="europe"] .r-europe, .map-box[data-focus="americas"] .r-americas,
.map-box[data-focus="mea"] .r-mea, .map-box[data-focus="asia"] .r-asia { opacity: 1 !important; }

.map-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 12px 6px 2px; font-size: 14px; color: var(--muted-d); }
.map-legend b { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-weight: 500; color: var(--accent-2); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.lg-c { background: rgba(224,131,47,.75); }
.lg-p { background: rgba(64,178,170,.85); }
.lg-h { background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 2px #fff inset; }
.map-failed #world-map { display: none; }

.map-tip { position: absolute; z-index: 5; max-width: 300px; background: #fff; color: var(--text); border-radius: 10px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.35); pointer-events: none; font-size: 14px; line-height: 1.45; }
.map-tip b { display: block; font-size: 16px; font-weight: 500; }
.map-tip span { display: block; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 2px 0 6px; }
.map-tip p { margin: 0; color: var(--muted); }

.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.region { display: flex; flex-direction: column; justify-content: flex-start; text-align: left; font: inherit; color: inherit; background: transparent; border: 1px solid var(--line-d); border-radius: var(--radius); padding: 22px 20px; cursor: pointer; transition: border-color .2s, background .2s; }
.region:hover { border-color: #3a4252; background: rgba(255,255,255,.02); }
.region.active { border-color: var(--accent); background: rgba(224,131,47,.07); }
.region[data-region="asia"].active { border-color: #40b2aa; background: rgba(64,178,170,.08); }
.rn { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--muted-d); }
.region h3 { font-size: 20px; margin: 8px 0 8px; }
.region p { margin: 0; color: var(--muted-d); font-size: 15px; line-height: 1.55; }

/* career */
.career { display: grid; grid-template-columns: 320px 1fr; gap: 80px; align-items: start; }
.profile { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 26px; }
.profile img { border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; width: 100%; filter: grayscale(.15); }
.profile h3 { font-size: 22px; margin: 20px 6px 2px; }
.profile .role { color: var(--accent); margin: 0 6px 12px; font-weight: 500; }
.profile p { margin: 0 6px; color: var(--muted); font-size: 15.5px; }
.profile .li { display: inline-block; margin: 16px 6px 0; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); }

.timeline { list-style: none; margin: 44px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 118px 1fr; gap: 34px; padding: 0 0 34px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 114px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline li:first-child::after { background: var(--accent); }
.timeline time { font-family: "IBM Plex Mono", monospace; font-size: 13.5px; color: var(--muted); padding-top: 3px; }
.timeline h4 { font-size: 19px; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--muted); }

/* apps */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.apps:has(> :only-child) { grid-template-columns: minmax(0, 560px); }
.app { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.app-link:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,18,23,.08); border-color: var(--accent); }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.arrow { font-size: 20px; color: var(--accent); }
.badge { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.b-live { background: #e3f3e6; color: #1f7a3a; }
.b-client { background: #fbeedd; color: #a65811; }
.b-internal { background: #eceef2; color: #4a5260; }
.app h3 { font-size: 21px; }
.app-tag { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--muted); margin: 6px 0 14px; }
.app-text { margin: 0; color: var(--muted); font-size: 15.5px; }

/* contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.contact .btn { margin-top: 30px; }
.card { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 30px 32px; margin: 0; display: grid; grid-template-columns: 100px 1fr; gap: 16px 20px; }
.card dt { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); padding-top: 3px; }
.card dd { margin: 0; }
.card a { text-decoration: none; border-bottom: 1px solid rgba(242,166,90,.5); }

.foot { background: #0a0c10; color: var(--muted-d); padding: 34px 0; font-size: 14.5px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.foot img { width: 52px; opacity: .8; }
.foot p { margin: 0; }
.foot a { text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-in, .record, .career, .contact { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .plants, .services, .apps, .regions { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(3) { padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .profile { position: static; max-width: 420px; }
  .career { gap: 50px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink); padding: 8px 16px 20px; border-bottom: 1px solid var(--line-d); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links a.btn { width: auto; margin-top: 8px; padding: 10px 20px; }
  .hero { padding-top: 120px; }
  .section { padding: 80px 0; }
  .plants, .services, .apps, .regions { grid-template-columns: 1fr; }
  .map-box { padding: 8px 8px 10px; margin-left: -8px; margin-right: -8px; }
  .map-legend { font-size: 13px; gap: 6px 16px; }
  .map-legend b { margin-left: 0; width: 100%; }
  .section.world .wrap { padding-top: 70px; }
  .stats b { font-size: 36px; }
  .stats > div, .stats > div + div { padding: 22px 12px 24px 0; }
  .stats > div:nth-child(even) { padding-left: 12px; }
  .timeline::before { left: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 26px; }
  .timeline li::after { left: 0; }
  .proj span { white-space: normal; }
  .card { grid-template-columns: 1fr; gap: 4px; padding: 24px; }
  .card dd { margin-bottom: 12px; }
  .foot-in { flex-direction: column; text-align: center; }
}
