/* =========================================================
   NSN Traders · site styles
   Brand colours come from the company profile PDF.
   ========================================================= */

:root {
  --ink: #0A293D;          /* logo navy */
  --ink-2: #123A55;
  --mid: #1F4E73;          /* "TRADERS" blue */
  --sky: #6A9BD6;          /* brochure sky band */
  --sky-2: #8DB5E4;
  --sky-soft: #DCE9F7;
  --steel: #B4B8BD;
  --paper: #FDFDFD;
  --mist: #F1F4F7;
  --line: rgba(10, 41, 61, .11);
  --text: #0A293D;
  --muted: #566877;
  --amber: #F5A524;        /* live/radiation status dot */
  --accent: #2D7FF9;       /* teardown: marks the part doing the work */
  --dye: #D4202C;

  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.6, 0, .9, .35);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 12vw, 160px) 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- type ---------- */
.eyebrow {
  font: 600 12px/1 var(--f-head);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow--sky { color: var(--sky-2); }
.h2 { font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.02; margin-bottom: 22px; }
.h3 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; margin: 18px 0 20px; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 640px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--f-head); letter-spacing: .01em;
  transition: transform .5s var(--ease-out), background .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(10, 41, 61, .5); }
.btn .arr { transition: transform .5s var(--ease-out); }
.btn:hover .arr { transform: translateY(3px); }
.btn--sky { --bg: var(--sky); --fg: var(--ink); }
.btn--sky:hover { --bg: var(--sky-2); }
.btn--ink { --bg: var(--ink); }
.btn--ghost { --bg: rgba(255, 255, 255, .08); --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn--ghost:hover { --bg: rgba(255, 255, 255, .16); }
.btn--ghost-ink { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost-ink:hover { box-shadow: inset 0 0 0 1px rgba(10, 41, 61, .3); }
.btn--sm { padding: 11px 18px; font-size: 13.5px; }

/* chevron number tags, as in the brochure contents page */
.chev {
  display: inline-grid; place-items: center;
  min-width: 58px; height: 40px; padding: 0 20px 0 14px;
  font: 700 15px/1 var(--f-head); color: #fff;
  background: var(--ink);
  clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%);
}
.chev--grey { background: #8a8d91; }
.chev--sky { background: var(--sky); }
.chev--mid { background: var(--mid); }
.chev--ink { background: var(--ink); }

.glass {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 20px 50px -24px rgba(10, 41, 61, .28);
}
.glass-dark {
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1);
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, box-shadow .4s, color .4s;
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__logo { position: relative; display: block; width: 104px; height: 49px; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: auto; transition: opacity .35s; }
.nav .logo-light { opacity: 0; }
.nav[data-theme="light"] .logo-light { opacity: 1; }
.nav[data-theme="light"] .logo-dark { opacity: 0; }
.nav__links { display: flex; align-items: center; gap: 30px; font: 600 14px/1 var(--f-head); color: #fff; }
.nav__links a:not(.btn) { opacity: .82; transition: opacity .2s; position: relative; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--sky);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav.scrolled {
  background: rgba(10, 41, 61, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.nav.scrolled[data-theme="light"] {
  background: rgba(253, 253, 253, .78);
  box-shadow: 0 1px 0 var(--line);
}
.nav[data-theme="light"] .nav__links { color: var(--ink); }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out), background .3s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav[data-theme="light"] .nav__burger span { background: var(--ink); }
.nav.open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  background: radial-gradient(1200px 700px at 75% 40%, #12405f 0%, var(--ink) 60%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 0;
}
.hero__stripes, .contact__stripes {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(-30deg, transparent 0 26px, rgba(106, 155, 214, .09) 26px 44px);
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 38%, transparent 62%, #000 100%);
  mask: linear-gradient(180deg, #000 0%, transparent 38%, transparent 62%, #000 100%);
}
.hero__stripes::after, .contact__stripes::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(30deg, transparent 0 26px, rgba(106, 155, 214, .09) 26px 44px);
  -webkit-mask: linear-gradient(90deg, transparent 50%, #000 50%);
  mask: linear-gradient(90deg, transparent 50%, #000 50%);
}
.hero__stripes { transform: translateY(calc(var(--py, 0) * 1px)); }

.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  flex: 1;
}
.hero__eyebrow { color: var(--sky-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245, 165, 36, .6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(245, 165, 36, 0); } }

.hero__title {
  font-weight: 800;
  font-size: clamp(2.7rem, 5.6vw, 5.6rem);
  line-height: .98; letter-spacing: -.035em;
  margin: 0 0 28px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); }
.hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.is-loaded .hero__title .line > span { transform: none; }
.hero__title .accent {
  background: linear-gradient(90deg, var(--sky-2), #cfe2f8 60%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { color: rgba(255, 255, 255, .72); font-size: clamp(1.02rem, 1.3vw, 1.18rem); max-width: 560px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__eyebrow, .hero__lede, .hero__cta { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out) .35s, transform 1.1s var(--ease-out) .35s; }
.hero__lede { transition-delay: .45s; }
.hero__cta { transition-delay: .55s; }
.is-loaded .hero__eyebrow, .is-loaded .hero__lede, .is-loaded .hero__cta { opacity: 1; transform: none; }

.hero__visual { position: relative; aspect-ratio: 600 / 680; width: 100%; max-width: 520px; justify-self: end; }
.hex-lines { position: absolute; inset: -6% -6%; width: 112%; height: 112%; overflow: visible; }
.hx { fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-dasharray: 2200; stroke-dashoffset: 2200; transition: stroke-dashoffset 2.4s var(--ease-out) .2s; }
.hx2 { stroke: rgba(106, 155, 214, .35); transition-delay: .45s; }
.is-loaded .hx { stroke-dashoffset: 0; }
.hex-photo {
  position: absolute; inset: 7%;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  overflow: hidden;
  transform: scale(.92); opacity: 0;
  transition: transform 1.6s var(--ease-out) .15s, opacity 1.2s var(--ease-out) .15s;
}
.is-loaded .hex-photo { transform: none; opacity: 1; }
.hex-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18) translateY(calc(var(--py, 0) * -.35px)); }
.hex-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 41, 61, .55)); }
.hero__tag {
  position: absolute; right: -2%; bottom: 6%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px;
  font: 500 13px/1 var(--f-body); color: var(--ink);
  opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out) 1s, transform 1s var(--ease-out) 1s;
}
.is-loaded .hero__tag { opacity: 1; transform: none; }
.hero__tag .mono { font-weight: 500; color: var(--mid); }
.hero__tag .sep { width: 1px; height: 14px; background: var(--line); }

.ticker {
  position: relative; margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track { display: flex; gap: 28px; width: max-content; animation: tick 48s linear infinite; font: 600 14px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.ticker__track i { font-style: normal; color: var(--sky); opacity: .6; font-size: 10px; align-self: center; }
@keyframes tick { to { transform: translateX(-50%); } }

/* =========================================================
   ABOUT
   ========================================================= */
.statement {
  font: 700 clamp(1.7rem, 3.6vw, 3rem)/1.18 var(--f-head);
  letter-spacing: -.02em; margin: 0 0 clamp(64px, 9vw, 110px); max-width: 1100px;
}
.statement .w { opacity: .14; transition: opacity .25s linear; }
.statement .w.on { opacity: 1; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  padding: 30px 28px 26px; border-radius: var(--r);
  background: var(--mist);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), background .4s, box-shadow .4s, opacity .9s var(--ease-out) var(--d, 0s);
}
.pillar:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 30px 60px -36px rgba(10, 41, 61, .35); }
.pillar h3 { font-size: 1.35rem; margin: 22px 0 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* =========================================================
   OIL & GAS
   ========================================================= */
.og { background: var(--paper); padding-top: 0; }
.og__head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.og__head .h2 { margin: 0; }
.og__head .lede { margin: 0; }
.og__grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1.15fr 1.15fr;
  grid-template-rows: clamp(220px, 24vw, 320px) clamp(200px, 21vw, 280px);
}
.og__tile { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--ink); isolation: isolate; }
.og__tile--tall { grid-row: span 2; }
.og__tile--wide { grid-column: span 2; }
.og__tile img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transition: transform 1.4s var(--ease-out), filter .6s;
  filter: saturate(.95);
}
.og__tile:hover img { transform: scale(1.14); filter: saturate(1.1); }
.og__tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 41, 61, 0) 35%, rgba(10, 41, 61, .82) 100%);
}
.og__tile figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: #fff;
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline;
}
.og__tile figcaption .mono { grid-row: span 2; font-size: 12px; color: var(--sky-2); }
.og__tile figcaption b { font: 700 1.3rem/1.15 var(--f-head); letter-spacing: -.01em; }
.og__tile figcaption small { font-size: 13.5px; color: rgba(255, 255, 255, .72); }

/* =========================================================
   CLIENTS
   ========================================================= */
.clients { background: var(--paper); }
.clients__head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: end; }
.clients__head .h2, .clients__head .lede { margin: 0; }
.client-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.client {
  position: relative; min-height: 150px; padding: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .4s, opacity .9s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.client::before {
  content: ""; position: absolute; inset: 0; background: var(--mist);
  clip-path: polygon(0 0, 0 0, 0 0); transition: clip-path .7s var(--ease-out); z-index: -1;
}
.client:hover::before { clip-path: polygon(0 0, 200% 0, 0 200%); }
.client__name { font: 700 clamp(1.15rem, 1.9vw, 1.5rem)/1.15 var(--f-head); letter-spacing: -.01em; color: var(--ink); transition: color .3s, transform .6s var(--ease-out); }
.client:hover .client__name { color: var(--mid); transform: scale(1.04); }
.client img { width: auto; height: var(--lh, 56px); max-width: 82%; object-fit: contain; filter: grayscale(1) brightness(.78) contrast(1.25); opacity: .9; transition: filter .45s, opacity .45s, transform .6s var(--ease-out); }
.client:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.client { isolation: isolate; }
.client--more { background: var(--ink); }
.client--more::before { display: none; }
.client--more .client__name { color: #fff; }
.client--more small { color: rgba(255, 255, 255, .65); font-size: 13.5px; }
.client--more:hover .client__name { color: var(--sky-2); }

/* =========================================================
   TEARDOWN
   ========================================================= */
.teardown { background: var(--mist); position: relative; }
.td-intro { padding-top: clamp(88px, 11vw, 150px); padding-bottom: 36px; }
.td-track { position: relative; height: 760vh; }
.td-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 55%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--mist), #e7ecf1);
}
#tdCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.td-fallback { position: absolute; inset: 0; margin: auto; max-width: min(720px, 86%); max-height: 60%; object-fit: contain; border-radius: var(--r); }

.td-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.td-leaders path { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-opacity: .55; }
.td-leaders circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.td-leaders .hot path { stroke: var(--accent); stroke-opacity: .95; }
.td-leaders .hot circle { stroke: var(--accent); fill: #cfe1ff; }
.td-labels { position: absolute; inset: 0; pointer-events: none; }
.td-label {
  position: absolute; top: 0; left: 0; width: 210px;
  padding: 10px 14px 11px; border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 41, 61, .08);
  box-shadow: 0 12px 30px -18px rgba(10, 41, 61, .35);
  will-change: transform, opacity;
}
.td-label b { display: block; font: 700 14px/1.25 var(--f-head); color: var(--ink); margin-bottom: 3px; }
.td-label span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.td-label.hot b { color: var(--accent); }
.td-label.hot { border-color: rgba(45, 127, 249, .45); }

.td-readout {
  position: absolute; top: 88px; right: clamp(16px, 3vw, 40px);
  width: 290px; padding: 16px 18px 14px; border-radius: 16px;
  font-size: 13px;
}
.ro-head { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--mid); margin-bottom: 12px; }
.ro-live { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; animation: ping-g 2s infinite; }
@keyframes ping-g { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 191, 113, 0); } }
.ro-model { margin-left: auto; font: 500 10px/1 var(--f-mono); letter-spacing: .06em; text-transform: none; color: var(--muted); border: 1px solid var(--line); padding: 3px 6px; border-radius: 6px; }
.td-readout dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.td-readout dl > div { min-width: 0; }
.td-readout .ro-wide { grid-column: 1 / -1; }
.td-readout dt { font: 500 10.5px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.td-readout dd { margin: 0; font: 500 13.5px/1.25 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 6px; border-radius: 6px; background: rgba(10, 41, 61, .08); margin-top: 7px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--mid); transition: background .3s; }
.bar--log i { width: 100%; background: linear-gradient(90deg, #2fbf71, var(--amber) 60%, #e5484d); clip-path: inset(0 100% 0 0 round 6px); }
.td-nogl #tdCanvas, .td-nogl .td-labels, .td-nogl .td-leaders, .td-nogl .td-readout { display: none; }
.bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 2px; opacity: .55; }
.ro-note { margin: 12px 0 0; font-size: 10.5px; line-height: 1.45; color: var(--muted); }

.td-caption {
  position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 4vh, 40px);
  width: min(420px, calc(100% - 32px)); min-height: 150px;
  padding: 22px 24px; border-radius: 18px;
}
.cap { position: absolute; inset: 22px 24px; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.cap.on { position: relative; inset: auto; opacity: 1; transform: none; }
.cap__n { font: 500 11.5px/1 var(--f-mono); color: var(--mid); letter-spacing: .06em; }
.cap h3 { font-size: 1.55rem; margin: 10px 0 8px; }
.cap p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.td-rail {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 4vh, 40px);
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px;
}
.td-rail button {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  border: 0; background: none; padding: 4px 0;
  font: 600 11px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.td-rail button::after { content: ""; width: 22px; height: 3px; border-radius: 3px; background: rgba(10, 41, 61, .18); transition: width .5s var(--ease-out), background .3s; }
.td-rail button span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .4s var(--ease-out); }
.td-rail:hover button span, .td-rail button.on span { opacity: 1; transform: none; }
.td-rail button.on { color: var(--ink); }
.td-rail button.on::after { width: 40px; background: var(--ink); }

.td-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font: 600 11px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  transition: opacity .4s;
}
.mouse { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; border-radius: 2px; background: currentColor; animation: wheel 1.8s var(--ease-io) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
.td-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; font: 500 13px var(--f-mono); color: var(--muted); transition: opacity .5s; }
.td-loading span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(10, 41, 61, .12); border-top-color: var(--ink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.td-ready .td-loading { opacity: 0; pointer-events: none; }

.td-outro { padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(88px, 11vw, 150px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.td-outro p { margin: 0; font: 600 clamp(1.2rem, 2.2vw, 1.75rem)/1.3 var(--f-head); max-width: 760px; letter-spacing: -.01em; }

/* =========================================================
   SERVICES INDEX
   ========================================================= */
.services { position: relative; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 90px 1fr auto 40px; align-items: center; gap: 20px;
  padding: 26px 6px; position: relative;
  transition: padding .5s var(--ease-out), color .3s;
}
.index a::before { content: ""; position: absolute; inset: 0; background: var(--mist); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); z-index: -1; border-radius: 12px; }
.index a:hover::before { transform: scaleY(1); }
.index a:hover { padding-left: 18px; }
.index__t { font: 700 clamp(1.3rem, 2.6vw, 2.1rem)/1.1 var(--f-head); letter-spacing: -.02em; }
.index__k { font-size: 14px; color: var(--muted); }
.index__a { font-size: 22px; justify-self: end; transition: transform .5s var(--ease-out); }
.index a:hover .index__a { transform: translateX(6px); }
.index-peek {
  position: fixed; left: 0; top: 0; width: 280px; height: 200px; z-index: 40; pointer-events: none;
  border-radius: 14px; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.85);
  transition: opacity .3s, transform .5s var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(10, 41, 61, .45);
  background: #e7e7e7;
}
.index-peek.on { opacity: 1; }
.index-peek img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   SERVICE BLOCKS
   ========================================================= */
.svc { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.svc:nth-of-type(even) { background: var(--mist); }
.svc--dpt, .svc--cp { background: var(--mist); }
.svc__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.svc__grid--flip { grid-template-columns: .9fr 1.1fr; }
.svc__copy p { color: var(--muted); max-width: 540px; }
.svc__media { position: relative; border-radius: var(--r); overflow: hidden; background: #b6b7bb; }
.svc__media img { width: 100%; height: auto; }
.cut-right { clip-path: polygon(0 0, 100% 0, 100% 72%, 78% 100%, 0 100%); }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--sky-soft); color: var(--mid); font: 600 13px/1 var(--f-head); }
.svc__thumb { margin-top: 26px; width: 240px; border-radius: 14px; overflow: hidden; background: #e7e7e7; border: 1px solid var(--line); }
.svc__thumb--sm { width: 180px; }
.demo-cap { font-weight: 600; color: var(--ink) !important; }

/* shared demo frame */
.demo { margin: 0; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(10, 41, 61, .45); overflow: hidden; }
.demo svg, .demo canvas { display: block; width: 100%; height: auto; }
.demo figcaption { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.step-text { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); min-height: 3.1em; }
.demo-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-read { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* ---------- DPT ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps button {
  border: 0; background: var(--mist); border-radius: 10px; padding: 10px 10px 11px;
  font: 600 13.5px/1.1 var(--f-head); color: var(--muted); text-align: left;
  position: relative; overflow: hidden; transition: background .3s, color .3s;
}
.steps button b { display: block; font: 500 10.5px/1 var(--f-mono); margin-bottom: 6px; opacity: .7; }
.steps button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--dye); }
.steps button.done { color: var(--ink); }
.steps button.on { background: var(--ink); color: #fff; }
.steps button.on::after { width: 100%; transition: width var(--stepdur, 2.8s) linear; }
.demo--dpt.paused .steps button.on::after { transition: none; width: 0; }

.crack { fill: none; stroke: #6b7279; stroke-width: 1; stroke-opacity: .45; }
.crack-fill { fill: none; stroke: var(--dye); stroke-width: 2.2; opacity: 0; transition: opacity .6s; }
.l-dirt { transition: opacity .9s var(--ease-io); }
.l-pen { opacity: .86; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-io); }
.l-dev { opacity: 0; transition: opacity 1.1s var(--ease-io); }
.indication { fill: none; stroke: var(--dye); stroke-width: 11; opacity: 0; transition: opacity 1.6s var(--ease-out) .7s; }
.indication-core { fill: none; stroke: #b3121d; stroke-width: 2.4; opacity: 0; transition: opacity 1s var(--ease-out) .9s; }
.sweep { fill: #fff; opacity: .9; transform: translateX(0); }
.dpt-flag__t { font: 600 13px var(--f-head); fill: #fff; }

.demo--dpt[data-step="1"] .l-dirt, .demo--dpt[data-step="2"] .l-dirt, .demo--dpt[data-step="3"] .l-dirt, .demo--dpt[data-step="4"] .l-dirt { opacity: 0; }
.demo--dpt[data-step="1"] .sweep { animation: sweep 1.1s var(--ease-io); }
.demo--dpt[data-step="2"] .l-pen { transform: scaleX(1); }
.demo--dpt[data-step="2"] .crack-fill, .demo--dpt[data-step="3"] .crack-fill { opacity: 1; }
.demo--dpt[data-step="3"] .l-pen { transform: scaleX(0); transform-origin: right; transition-duration: 1.3s; }
.demo--dpt[data-step="3"] .sweep { animation: sweep 1.3s var(--ease-io); }
.demo--dpt[data-step="4"] .l-dev { opacity: .97; }
.demo--dpt[data-step="4"] .indication { opacity: .75; }
.demo--dpt[data-step="4"] .indication-core { opacity: .95; }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(700px); } }

/* ---------- MPI ---------- */
.pw { width: 8px; height: 8px; border-radius: 50%; background: #9aa5af; transition: background .3s, box-shadow .3s; }
#mpiGo.on .pw { background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, .2); }

/* ---------- CP ---------- */
.wire { fill: none; stroke: #2d3b47; stroke-width: 3; stroke-linecap: round; }
.rust ellipse { fill: #a4511c; opacity: .85; transform-box: fill-box; transform-origin: center; transform: scale(var(--rs, .35)); transition: transform .3s linear; }
.rust ellipse:nth-child(odd) { fill: #8a3f13; }
.ions circle { fill: #a4511c; }
.current path { fill: none; stroke: var(--sky); stroke-width: 2.4; stroke-dasharray: 6 10; opacity: 0; transition: opacity .6s; animation: flow 1.2s linear infinite; }
.demo--cp[data-on="1"] .current path { opacity: .95; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.electrons circle { fill: var(--mid); }
.cp-box-t { font: 700 9px var(--f-head); fill: #2d3b47; letter-spacing: .08em; }
.cp-lbl { font: 600 12px var(--f-head); fill: #4a4033; }
.cp-lbl--l { fill: rgba(74, 64, 51, .75); }
#anodeBody { transform-box: fill-box; transform-origin: bottom; transition: transform .4s linear; }

.switch { display: inline-flex; align-items: center; gap: 10px; border: 0; background: var(--mist); padding: 6px 16px 6px 6px; border-radius: 999px; font: 600 13.5px/1 var(--f-head); }
.switch__k { width: 44px; height: 26px; border-radius: 999px; background: #c5ccd3; position: relative; transition: background .3s; }
.switch__k::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .45s var(--ease-out); }
.switch[aria-checked="true"] .switch__k { background: #2fbf71; }
.switch[aria-checked="true"] .switch__k::after { transform: translateX(18px); }
.meter { margin-left: auto; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 3px; align-items: center; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; }
.meter__l { font: 500 10.5px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); grid-column: 1 / -1; }
.meter__v { font-size: 18px; font-weight: 500; }
.meter__s { font: 600 11px/1 var(--f-head); padding: 4px 8px; border-radius: 6px; background: #e5484d; transition: background .3s; }
.demo--cp[data-on="1"] .meter__s { background: #2fbf71; }

/* =========================================================
   BRANDS
   ========================================================= */
.brands { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.brands__bg { position: absolute; inset: 0; opacity: .16; }
.brands__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.brands__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 41, 61, .4) 50%, var(--ink) 100%); }
.brands .wrap { position: relative; }
.brands .sec-head .chev { margin-bottom: 20px; }
.brands .h2 { max-width: 900px; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.brand {
  min-height: 190px; padding: 26px; border-radius: var(--r);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .4s, transform .6s var(--ease-out), border-color .4s, opacity .9s var(--ease-out) var(--d, 0s);
}
.brand:hover { background: rgba(255, 255, 255, .1); border-color: rgba(106, 155, 214, .5); transform: translateY(-4px); }
.brand__name { font: 800 1.6rem/1.05 var(--f-head); letter-spacing: -.01em; }
.brand__name em { display: block; font: italic 600 1.05rem/1.3 Georgia, serif; color: #c7b6ec; letter-spacing: 0; }
.brand__name--cs { color: #f39a5a; font-weight: 700; letter-spacing: -.02em; }
.brand__name--es { color: #e8676f; letter-spacing: .02em; }
.brand__name--tw { color: #fff; letter-spacing: .04em; font-size: 1.35rem; }
.brand__name--dt { color: #fff; letter-spacing: .02em; font-size: 1.45rem; }
.brand__k { font: 500 12px/1 var(--f-mono); color: rgba(255, 255, 255, .55); letter-spacing: .02em; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.facts li { padding: 26px 24px 0 0; }
.facts b { display: block; font: 700 1.1rem/1.2 var(--f-head); margin-bottom: 6px; }
.facts span { color: rgba(255, 255, 255, .65); font-size: 15px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.contact__grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.contact__mark { position: relative; aspect-ratio: 600 / 680; display: grid; place-items: center; max-width: 420px; }
.contact__hex { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact__hex polygon { fill: none; stroke: rgba(106, 155, 214, .5); stroke-width: 1.5; }
.contact__mark img { width: 66%; position: relative; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.ccard { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 16px; transition: background .3s, transform .5s var(--ease-out), border-color .3s, opacity .9s var(--ease-out) var(--d, 0s); }
.ccard:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.ccard__k { font: 600 11px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--sky-2); }
.ccard__v { font-size: 1.25rem; font-weight: 500; }
.ccard__m { font-size: 13px; color: rgba(255, 255, 255, .55); }
.ccard--wa { background: #25D366; color: #06331a; border: 0; }
.ccard--wa .ccard__k { color: #06331a; opacity: .7; }
.ccard--wa .ccard__v { font: 700 1.15rem/1.2 var(--f-head); }
.ccard--wa:hover { background: #33e275; }
.ccard--wide { grid-column: 1 / -1; }

/* WhatsApp icon (Simple Icons, CC0) */
.wa-ico { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; margin-left: -2px; }
.ccard__v--wa { display: flex; align-items: center; gap: 10px; }
.wa-ico--lg { width: 30px; height: 30px; margin: 0; }
.foot { position: relative; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(70px, 9vw, 120px); padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.foot a:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .td-readout { width: 260px; }
}
@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 96px var(--gutter) 32px;
    flex-direction: column; align-items: flex-start; gap: 22px;
    background: rgba(10, 41, 61, .97); color: #fff !important; font-size: 22px;
    transform: translateY(-105%); transition: transform .6s var(--ease-out);
    z-index: -1;
  }
  .nav.open .nav__links { transform: none; }
  .nav.open .logo-dark { opacity: 1 !important; }
  .nav.open .logo-light { opacity: 0 !important; }
  .nav.open .nav__burger span { background: #fff !important; }
  .nav__cta { margin-top: 8px; }

  .hero { padding-top: 100px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__visual { order: -1; max-width: 300px; justify-self: center; margin-bottom: 26px; }
  .hero__tag { left: 50%; right: auto; transform: translateX(-50%) translateY(14px); bottom: -4%; white-space: nowrap; }
  .is-loaded .hero__tag { transform: translateX(-50%); }
  .pillars { grid-template-columns: 1fr; }
  .og__head, .clients__head { grid-template-columns: 1fr; }
  .og__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
  .og__tile--tall { grid-row: span 2; }
  .og__tile--wide { grid-column: span 1; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client { min-height: 110px; padding: 18px; }
  .svc__grid, .svc__grid--flip { grid-template-columns: 1fr; }
  .svc--mpi .svc__copy { order: -1; }
  .svc__grid--flip .svc__copy { order: 0; }
  .index a { grid-template-columns: 64px 1fr 30px; }
  .index__k { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__mark { max-width: 220px; }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding-top: 20px; }

  .td-readout { top: 86px; left: 16px; right: 16px; width: auto; padding: 12px 14px; }
  .td-readout dl { grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
  .td-readout dl > div:nth-child(2) { display: none; }
  .td-readout .ro-wide { grid-column: span 3; }
  .td-readout .ro-note, .ro-head { display: none; }
  .td-readout dd { font-size: 12px; }
  .td-caption { padding: 16px 18px; min-height: 0; bottom: 16px; }
  .cap { inset: 16px 18px; }
  .cap h3 { font-size: 1.25rem; margin: 6px 0 4px; }
  .cap p { font-size: 14px; }
  .td-rail { top: 50%; bottom: auto; transform: translateY(-50%); }
  .td-rail button span { display: none; }
  .td-rail button::after { width: 14px; }
  .td-rail button.on::after { width: 24px; }
  .td-labels, .td-leaders { display: none; }
  .td-hint { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand { min-height: 140px; padding: 18px; }
  .brand__name { font-size: 1.2rem; }
  .brand__name--tw, .brand__name--dt { font-size: 1.05rem; }
  .contact__cards { grid-template-columns: 1fr; }
  .og__grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 210px; }
  .og__tile--tall { grid-row: span 1; }
  .steps button { font-size: 12px; padding: 8px; }
  .meter { margin-left: 0; }
  .demo-read { margin-left: 0; width: 100%; }
  .td-readout dl { grid-template-columns: 1fr 1fr; }
  .td-readout dl > div:nth-child(5), .td-readout dl > div:nth-child(6) { grid-column: span 1; }
  .td-readout dl > div:nth-child(3) { display: none; }
  .td-readout .bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}
