:root {
  --dark: #0d3d34;
  --dark-deep: #061e1a;
  --darkest: #041410;
  --teal: #20544a;
  --electric: #d7ff00;
  --aqua: #96d5b7;
  --mist: #ebf7f1;
  --mist-deep: #d8eae0;
  --white: #ffffff;
  --ink: #0d3d34;
  --muted: #4d6b63;
  --line: rgba(13, 61, 52, 0.12);
  --line-dark: rgba(150, 213, 183, 0.16);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(4, 20, 16, 0.08);
  --container: 1240px;
  --gutter: 24px;
  --section-y: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fs-h1: clamp(2.3rem, 1.25rem + 3.9vw, 4rem);
  --fs-h2: clamp(1.7rem, 1.15rem + 2.2vw, 2.7rem);
  --fs-lead: clamp(.98rem, .94rem + .18vw, 1.06rem);
  --fs-body: .9375rem;
  --fs-small: .84rem;
}

@property --soc { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, blockquote { margin-top: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { color: var(--darkest); background: var(--electric); }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px;
  color: var(--dark); background: var(--electric);
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - var(--gutter) * 2), var(--container)); margin-inline: auto; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 120; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--aqua), var(--electric)); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(215,255,0,.5); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, transform .45s var(--ease);
}
.site-header.is-scrolled { background: rgba(4, 20, 16, .82); border-color: rgba(255,255,255,.07); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.site-header.is-hidden { transform: translateY(-100%); }

.nav-shell {
  width: min(calc(100% - var(--gutter) * 2), 1320px);
  min-height: 72px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; width: max-content; flex-direction: column; align-items: flex-start; gap: 1px; }
.brand img { width: 138px; height: auto; }
.brand > span, .footer-brand > span { font-size: .5rem; letter-spacing: .28em; font-weight: 600; margin-left: 35px; color: rgba(255,255,255,.72); }

.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.main-nav a:not(.button) { position: relative; font-size: .84rem; font-weight: 500; color: rgba(255,255,255,.74); transition: color .2s ease; }
.main-nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; border-radius: 2px; background: var(--electric); transition: right .3s var(--ease); }
.main-nav a:not(.button):hover, .main-nav a:not(.button):focus-visible, .main-nav a.is-active { color: var(--white); }
.main-nav a:not(.button):hover::after, .main-nav a:not(.button):focus-visible::after, .main-nav a.is-active::after { right: 0; }
.main-nav-cta { display: none !important; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.button {
  min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--electric);
  border-radius: 999px;
  background: var(--electric);
  color: var(--darkest);
  font-weight: 700;
  font-size: .86rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.button .i { font-size: 1rem; transition: transform .3s var(--ease); }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(215,255,0,.2); }
.button:hover .i { transform: translateX(3px); }
.button:active { transform: translateY(0); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.button--small { min-height: 40px; padding: 8px 16px; font-size: .8rem; }
.button--ghost { color: var(--white); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.3); }
.button--ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.5); box-shadow: none; }
.button--dark { color: var(--white); background: var(--dark); border-color: var(--dark); }
.button--dark:hover { background: var(--teal); border-color: var(--teal); box-shadow: 0 12px 28px rgba(13,61,52,.2); }
.play { width: 22px; height: 22px; display: grid; place-items: center; padding-left: 1px; border-radius: 50%; background: var(--electric); color: var(--dark); font-size: .7rem; }
.play .i { font-size: .7rem; }
.button--ghost:hover .play .i { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 124px 0 0;
  overflow: hidden;
  color: var(--white);
  background: var(--darkest);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,15,17,.97) 0%, rgba(3,18,20,.9) 30%, rgba(3,18,20,.45) 54%, rgba(3,16,19,.12) 76%, rgba(3,15,18,.36) 100%),
    linear-gradient(180deg, rgba(1,10,13,.2) 0%, transparent 53%, rgba(2,14,16,.83) 84%, rgba(3,19,19,.98) 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--aqua), transparent); opacity: .4; }

.hero-room { position: absolute; inset: -6% 0 0; z-index: 0; overflow: hidden; pointer-events: none; will-change: transform; }
.hero-room img {
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center top;
  opacity: .82;
  transform: scale(1.025);
  animation: room-breathe 22s ease-in-out infinite alternate;
}

.hero-grid-noise {
  position: absolute; inset: 0; z-index: 1; opacity: .3; pointer-events: none;
  background-image:
    linear-gradient(rgba(150,213,183,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,213,183,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 85%);
  animation: grid-drift 46s linear infinite;
}

.hero-ghost-lines { position: absolute; inset: 38% -8% auto; height: 360px; opacity: .12; pointer-events: none; }
.hero-ghost-lines svg { width: 100%; height: 100%; }
.hero-ghost-lines path { fill: none; stroke: var(--aqua); stroke-width: 1.2; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ghost-draw 3.2s var(--ease) .4s forwards; }
.hero-ghost-lines path + path { animation-delay: .8s; }

.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(360px, .85fr) minmax(560px, 1.15fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-copy { padding-bottom: 40px; }
.eyebrow { margin-bottom: 16px; color: var(--teal); font-weight: 700; font-size: .68rem; letter-spacing: .16em; }
.eyebrow--light { color: var(--electric); }
.hero h1 { max-width: 620px; margin-bottom: 22px; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.035em; }
.hero h1 .accent { display: block; color: var(--electric); }
.hero-lead { max-width: 540px; margin-bottom: 16px; color: rgba(255,255,255,.72); font-size: var(--fs-lead); line-height: 1.7; }
.hero-proof { margin-bottom: 28px; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.94); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-scene {
  --monitor-x: 0px; --monitor-y: 0px; --dispatcher-x: 0px; --dispatcher-y: 0px;
  position: relative;
  height: 510px;
  min-width: 0;
  margin-right: clamp(-72px, -4.5vw, -30px);
  isolation: isolate;
}
.scene-layer {
  position: absolute; right: -9%; bottom: -1%;
  width: 132%; max-width: none; height: auto;
  pointer-events: none; user-select: none;
  will-change: transform;
  transition: transform .42s cubic-bezier(.2,.7,.2,1);
}
.scene-monitors { z-index: 1; filter: drop-shadow(0 24px 32px rgba(0,0,0,.38)) saturate(1.06); transform: translate3d(var(--monitor-x), var(--monitor-y), 0); }
.scene-dispatcher { z-index: 3; filter: drop-shadow(0 18px 25px rgba(0,0,0,.44)); transform: translate3d(var(--dispatcher-x), var(--dispatcher-y), 0); }
.scene-glow {
  position: absolute; z-index: 0; left: 22%; right: 2%; bottom: 12%; height: 58%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(54,255,173,.15), rgba(21,142,155,.08) 40%, transparent 73%);
  filter: blur(26px);
  animation: scene-glow 7.5s ease-in-out infinite;
}
.scene-status {
  position: absolute; z-index: 5; top: 8%; right: 8%;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(65,240,161,.32); border-radius: 999px;
  color: rgba(255,255,255,.72); background: rgba(3,20,24,.62);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  font-size: .56rem; font-weight: 600; letter-spacing: .12em;
}
.scene-status strong { color: #54f5a7; font-size: .62rem; }
.live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--electric); box-shadow: 0 0 10px rgba(215,255,0,.66); animation: live 2.4s ease-in-out infinite; }

.scene-strip {
  position: absolute; z-index: 5; left: 4%; right: 0; bottom: 1%;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.scene-strip > div {
  min-height: 54px; padding: 9px 11px;
  border: 1px solid rgba(150,213,183,.24); border-radius: 10px;
  background: linear-gradient(145deg, rgba(3,23,29,.9), rgba(4,31,35,.76));
  box-shadow: 0 12px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.scene-strip span, .scene-strip strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-strip span { margin-bottom: 2px; color: rgba(255,255,255,.56); font-size: .52rem; font-weight: 600; letter-spacing: .08em; }
.scene-strip strong { color: rgba(255,255,255,.94); font-size: .66rem; font-weight: 600; }

.metrics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.metric { min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-right: 1px solid rgba(255,255,255,.1); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric-icon { width: 22px; height: 22px; color: var(--electric); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.metric strong { display: block; color: var(--electric); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric span { display: block; margin-top: 4px; color: rgba(255,255,255,.62); font-size: .8rem; }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section--light { background: var(--mist); }
.section-intro { max-width: 680px; }
.section-intro h2, .platform-heading h2, .portal-copy h2, .contact-copy h2 { margin-bottom: 18px; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.03em; }
.section-intro > p:last-child, .platform-heading > p, .portal-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { max-width: 580px; margin-bottom: 0; color: var(--muted); font-size: var(--fs-lead); line-height: 1.7; }
.section-intro--dark h2, .platform-heading h2 { color: var(--white); }
.section-intro--dark > p:last-child, .platform-heading > p { color: rgba(255,255,255,.62); }

/* ---------- Aggregation ---------- */
.card-grid { display: grid; gap: 14px; margin-top: 48px; }
.card-grid--four { grid-template-columns: repeat(4, 1fr); }
.info-card {
  position: relative; min-height: 260px; padding: 24px 22px;
  border: 1px solid rgba(13,61,52,.09); border-radius: var(--radius-md);
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 34px rgba(13,61,52,.04);
  transition: transform .4s var(--ease), border-color .3s ease, background .3s ease, box-shadow .4s ease, opacity .8s var(--ease);
}
.info-card:hover { transform: translateY(-4px); border-color: var(--aqua); background: var(--white); box-shadow: 0 18px 44px rgba(13,61,52,.08); }
.card-number { position: absolute; top: 22px; right: 22px; color: rgba(13,61,52,.34); font-size: .66rem; font-weight: 600; letter-spacing: .12em; }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 12px; color: var(--dark); background: var(--mist-deep); font-size: 1.2rem; transition: background .3s ease, color .3s ease, transform .4s var(--ease); }
.card-icon .i { stroke-width: 1.8; }
.info-card:hover .card-icon { background: var(--electric); transform: rotate(-6deg) scale(1.05); }
.info-card h3 { margin-bottom: 8px; font-size: 1.05rem; line-height: 1.3; letter-spacing: -.01em; }
.info-card p { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.65; }
.text-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 32px; color: var(--muted); font-size: .88rem; }
.text-link span { display: inline-flex; align-items: center; gap: 6px; color: var(--dark); font-weight: 700; border-bottom: 1px solid var(--aqua); transition: border-color .2s ease, gap .3s var(--ease); }
.text-link:hover span { gap: 10px; border-color: var(--dark); }

/* ---------- Markets ---------- */
.markets { color: var(--white); overflow: hidden; background: radial-gradient(circle at 80% 30%, rgba(32,84,74,.55), transparent 34%), var(--darkest); }
.market-heading { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 64px; }
.market-quote { margin: 0 0 6px; padding-left: 22px; border-left: 2px solid var(--electric); color: rgba(255,255,255,.66); font-size: clamp(1rem, .9rem + .4vw, 1.18rem); line-height: 1.55; }
.market-quote strong { color: var(--electric); font-weight: 600; }
.market-visual { margin-top: 40px; }
.market-chart-scroll { overflow: hidden; border-radius: var(--radius-lg); outline: none; }
.market-chart-scroll:focus-visible { outline: 2px solid var(--aqua); outline-offset: 5px; }
.market-chart-art { position: relative; width: 100%; min-width: 0; aspect-ratio: 2.08 / 1; overflow: hidden; }
.market-chart-controls { position: absolute; z-index: 6; inset: 0 2.6% auto; padding-top: 12px; }
.market-service-tabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: clamp(5px, .7vw, 10px); }
.market-service-tabs button {
  min-width: 0; min-height: 42px; padding: 8px 5px;
  border: 1px solid rgba(150,213,183,.3); border-radius: 9px;
  color: rgba(255,255,255,.64);
  background: linear-gradient(145deg, rgba(8,42,45,.82), rgba(4,26,29,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  font-size: clamp(.58rem, .7vw, .7rem); font-weight: 600; letter-spacing: .02em;
  cursor: pointer;
  transition: color .8s ease, border-color .8s ease, background .8s ease, box-shadow .8s ease, transform .8s ease;
}
.market-service-tabs button:hover { color: var(--white); border-color: rgba(150,213,183,.7); }
.market-service-tabs button.is-active {
  color: var(--electric);
  border-color: rgba(215,255,0,.9);
  background: linear-gradient(145deg, rgba(25,77,55,.96), rgba(7,40,33,.92));
  box-shadow: 0 0 0 1px rgba(215,255,0,.16), 0 0 18px rgba(215,255,0,.22), inset 0 0 22px rgba(215,255,0,.08);
}
.market-chart-meta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding-inline: .3%; }
.market-chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 1.7vw, 26px); }
.market-chart-legend span { position: relative; padding-left: 29px; color: rgba(255,255,255,.7); font-size: clamp(.52rem, .62vw, .64rem); font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.market-chart-legend span::before { content: ""; position: absolute; left: 0; top: 50%; width: 21px; height: 3px; border-radius: 3px; transform: translateY(-50%); background: currentColor; box-shadow: 0 0 7px currentColor; }
.market-chart-legend .legend-price { color: var(--electric); }
.market-chart-legend .legend-production { color: #59e9ef; }
.market-chart-legend .legend-load { color: #fff; }
.market-chart-legend .legend-flex { color: #35f0ac; }
.market-chart-legend .legend-opportunity { color: rgba(255,255,255,.7); }
.market-chart-legend .legend-opportunity::before { height: 4px; background: repeating-linear-gradient(90deg, var(--electric) 0 4px, transparent 4px 9px); box-shadow: none; }
.market-live-data { display: flex; align-items: center; gap: 8px; color: #42f46c; font-size: clamp(.54rem, .64vw, .66rem); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.market-live-data > span { width: 9px; height: 9px; border-radius: 50%; background: #48f51c; box-shadow: 0 0 14px rgba(72,245,28,.9); animation: live 2.4s ease-in-out infinite; }
.market-live-data i { width: 1px; height: 16px; margin-inline: 5px; background: rgba(150,213,183,.5); }
.market-chart-composite { position: absolute; top: -15%; left: 0; width: 100%; aspect-ratio: 1659 / 948; }
.market-chart-layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; pointer-events: none; user-select: none; }
.market-chart-base { z-index: 1; opacity: .92; transform: translateY(23.5%); animation: market-ambient 14s ease-in-out infinite; }
.market-chart-ui { z-index: 3; opacity: .98; clip-path: inset(38% 0 0 0); animation: market-ui-breathe 12s ease-in-out infinite; }
.market-curve-layer { position: absolute; z-index: 2; left: 5.3%; top: 49.5%; width: 90.2%; height: 30.5%; overflow: visible; }
.market-area { fill: url(#flexArea); opacity: .88; }
.market-curve { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.market-curve--price { stroke: var(--electric); filter: url(#curveGlow); }
.market-curve--production { stroke: #59e9ef; opacity: .94; }
.market-curve--load { stroke: rgba(255,255,255,.84); }
.market-curve--flex { stroke: #35f0ac; opacity: .95; filter: url(#curveGlow); }
.market-curve--opportunity { stroke: #d7ff00; stroke-width: 2.8; stroke-dasharray: 2 9; opacity: .82; animation: dash-flow 3s linear infinite; }
.market-data-points { fill: #d7ff00; filter: url(#curveGlow); }
.market-data-points circle { transform-box: fill-box; transform-origin: center; animation: point-pulse 3.6s ease-in-out infinite; }
.market-data-points circle:nth-child(3n+2) { fill: #59e9ef; animation-delay: -1.2s; }
.market-data-points circle:nth-child(3n) { fill: #35f0ac; animation-delay: -2.4s; }
.market-chart-scan { position: absolute; z-index: 4; left: 5.3%; top: 49.5%; width: 1px; height: 30.5%; pointer-events: none; opacity: 0; background: linear-gradient(to bottom, transparent, rgba(215,255,0,.9), transparent); box-shadow: 0 0 16px 2px rgba(215,255,0,.35); }
.market-chart-glow { position: absolute; z-index: 4; right: 4.5%; top: 31%; width: 32%; height: 40%; border-radius: 50%; background: radial-gradient(circle, rgba(63,255,163,.1), transparent 68%); filter: blur(18px); pointer-events: none; animation: market-glow 10s ease-in-out infinite; }
.swipe-hint { display: none; }

.market-services { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid rgba(255,255,255,.11); border-bottom: 1px solid rgba(255,255,255,.11); }
.service-card { position: relative; min-height: 220px; padding: 24px; border-right: 1px solid rgba(255,255,255,.11); }
.service-card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--electric); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:first-child { padding-left: 0; }
.service-card:last-child { border-right: 0; }
.service-card > span { color: var(--electric); font-size: .64rem; font-weight: 600; letter-spacing: .12em; }
.service-card h3 { margin: 22px 0 6px; font-size: 1rem; letter-spacing: -.01em; }
.service-card strong { display: block; margin-bottom: 8px; color: var(--aqua); font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.service-card p { margin: 0; color: rgba(255,255,255,.56); font-size: var(--fs-small); line-height: 1.65; }
.market-bottom { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 30px; }
.market-bottom p { max-width: 640px; margin: 0; color: rgba(255,255,255,.66); }

/* ---------- Process ---------- */
.process { background: linear-gradient(180deg, var(--mist) 0, #fff 100%); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 36px; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.4); transition: background .3s ease, opacity .8s var(--ease), transform .8s var(--ease); }
.process-step:hover { background: rgba(255,255,255,.85); }
.process-step > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--aqua); color: var(--dark); font-size: .68rem; font-weight: 700; transition: background .5s ease, border-color .5s ease; transition-delay: calc(var(--i, 0) * 90ms + 250ms); }
.process-step.is-visible > span { background: var(--electric); border-color: var(--electric); }
.process-step h3 { margin: 2px 0 12px; color: var(--teal); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.process-step strong { display: block; margin-bottom: 6px; font-size: .95rem; font-weight: 700; line-height: 1.45; }
.process-step p { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }

/* ---------- Platform ---------- */
.platform { color: white; overflow: hidden; background: var(--dark); }
.platform::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(30deg, transparent 40%, rgba(150,213,183,.08) 40.5%, transparent 41%); background-size: 120px 120px; animation: grid-drift-y 30s linear infinite; }
.platform .container { position: relative; }
.platform-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 64px; }
.platform-heading h2 { margin-bottom: 0; }
.platform-heading > p { margin-bottom: 6px; }
.platform-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 52px; }
.platform-card { position: relative; min-height: 240px; padding: 22px 20px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: rgba(4,20,16,.24); transition: border-color .3s ease, background .3s ease, transform .4s var(--ease), opacity .8s var(--ease); }
.platform-card::after { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 80%; background: radial-gradient(ellipse at center, rgba(215,255,0,.12), transparent 65%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.platform-card:hover { border-color: rgba(215,255,0,.45); transform: translateY(-4px); }
.platform-card:hover::after { opacity: 1; }
.platform-code { color: var(--electric); font-size: .6rem; font-weight: 700; letter-spacing: .12em; }
.platform-glyph { float: right; color: rgba(255,255,255,.3); font-size: .62rem; font-weight: 600; }
.platform-card h3 { margin: 64px 0 8px; font-size: 1rem; letter-spacing: -.01em; }
.platform-card p { margin: 0; color: rgba(255,255,255,.56); font-size: var(--fs-small); line-height: 1.6; }

/* ---------- Portal ---------- */
.portal { background: white; }
.portal-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.check-list { columns: 2; gap: 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; break-inside: avoid; margin-bottom: 10px; padding-left: 18px; color: var(--muted); font-size: var(--fs-small); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border: 1px solid var(--teal); border-radius: 50%; background: var(--aqua); }
.portal-copy .text-link { margin-top: 22px; }

.dashboard { padding: 20px; border: 1px solid rgba(150,213,183,.3); border-radius: var(--radius-lg); color: var(--white); background: linear-gradient(145deg, #0b352d, #061c17); box-shadow: 0 30px 80px rgba(13,61,52,.2); }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-top > div { display: flex; align-items: center; gap: 8px; }
.dash-logo { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: var(--dark); background: var(--electric); font-size: .8rem; }
.dash-logo .i { fill: currentColor; }
.dash-top strong { font-size: .84rem; }
.dash-status { color: var(--aqua); font-size: .7rem; }
.dash-status i, .dash-devices i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 8px rgba(215,255,0,.6); }
.dash-status i { animation: live 2.4s ease-in-out infinite; }
.dash-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-summary > div { padding: 13px; border: 1px solid var(--line-dark); border-radius: 10px; background: rgba(255,255,255,.025); }
.dash-summary span { display: block; color: rgba(255,255,255,.5); font-size: .6rem; }
.dash-summary strong { display: block; margin-top: 4px; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.dash-summary strong b { font-weight: inherit; }
.dash-summary small { color: rgba(255,255,255,.56); font-size: .58rem; font-weight: 400; }
.dash-summary em { display: block; margin-top: 4px; color: var(--electric); font-size: .58rem; font-style: normal; }
.dash-main { display: grid; grid-template-columns: 1fr 134px; gap: 8px; margin-top: 8px; }
.dash-chart, .dash-side > div { border: 1px solid var(--line-dark); border-radius: 10px; background: rgba(255,255,255,.02); }
.dash-chart { padding: 13px; overflow: hidden; }
.dash-chart-title { display: flex; justify-content: space-between; color: rgba(255,255,255,.5); font-size: .6rem; }
.dash-chart-title span:last-child { color: var(--aqua); }
.dash-chart svg { width: 100%; height: 170px; margin-top: 8px; }
.dash-grid path { fill: none; stroke: rgba(150,213,183,.09); }
.dash-area { fill: rgba(215,255,0,.04); }
.dash-line { fill: none; stroke: var(--electric); stroke-width: 2; stroke-linecap: round; }
.dash-setpoint { fill: none; stroke: var(--aqua); stroke-width: 1.2; stroke-dasharray: 5 5; opacity: .6; }
.dash-side { display: grid; gap: 8px; }
.dash-side > div { padding: 12px; }
.soc-ring { --soc: 62%; display: grid; place-items: center; min-height: 120px; }
.soc-ring > div { width: 80px; height: 80px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at center, #08271f 58%, transparent 60%), conic-gradient(var(--electric) 0 var(--soc), rgba(255,255,255,.08) var(--soc)); }
.soc-ring strong { font-size: 1rem; }
.soc-ring span { color: rgba(255,255,255,.45); font-size: .54rem; }
.dash-activity span { color: rgba(255,255,255,.45); font-size: .56rem; }
.dash-activity strong, .dash-activity small { display: block; }
.dash-activity strong { margin-top: 6px; color: var(--electric); }
.dash-activity small { color: rgba(255,255,255,.6); font-size: .58rem; }
.dash-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.dash-devices span { padding: 9px 10px; border: 1px solid var(--line-dark); border-radius: 8px; color: rgba(255,255,255,.68); font-size: .6rem; }
.dash-devices b { float: right; color: var(--aqua); font-weight: 500; }

/* ---------- Real tech ---------- */
.real-tech { color: white; background: linear-gradient(145deg, #061e1a, #0d3d34); }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; }
.project-card { position: relative; padding: 22px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(0,0,0,.08)); transition: border-color .3s ease, transform .4s var(--ease), opacity .8s var(--ease); }
.project-card:hover { border-color: rgba(215,255,0,.4); transform: translateY(-4px); }
.project-index { color: rgba(255,255,255,.38); font-size: .6rem; font-weight: 600; letter-spacing: .12em; }
.project-signal { height: 96px; display: flex; align-items: end; gap: 6px; margin: 26px 0 24px; }
.project-signal i { flex: 1; height: 35%; border-top: 1px solid var(--electric); background: linear-gradient(to top, rgba(215,255,0,.02), rgba(215,255,0,.16)); transform-origin: bottom; transition: transform 1s var(--ease); }
.project-signal i:nth-child(2) { height: 68%; }
.project-signal i:nth-child(3) { height: 48%; }
.project-signal i:nth-child(4) { height: 86%; }
.project-signal i:nth-child(5) { height: 58%; }
.project-card:hover .project-signal i { animation: bar-bounce .9s var(--ease); }
.project-card:hover .project-signal i:nth-child(2) { animation-delay: .06s; }
.project-card:hover .project-signal i:nth-child(3) { animation-delay: .12s; }
.project-card:hover .project-signal i:nth-child(4) { animation-delay: .18s; }
.project-card:hover .project-signal i:nth-child(5) { animation-delay: .24s; }
.project-card h3 { margin-bottom: 4px; font-size: 1.05rem; letter-spacing: -.01em; }
.project-card strong { color: var(--aqua); font-size: .72rem; font-weight: 600; }
.project-card p { margin: 8px 0 0; color: rgba(255,255,255,.55); font-size: var(--fs-small); line-height: 1.6; }

/* ---------- Why ---------- */
.why { background: var(--mist); }
.why-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-card { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s ease, opacity .8s var(--ease), transform .8s var(--ease); }
.why-card:hover { background: rgba(255,255,255,.6); }
.why-card > span { color: var(--teal); font-size: .64rem; font-weight: 600; }
.why-card h3 { margin: 26px 0 6px; font-size: 1rem; letter-spacing: -.01em; }
.why-card p { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }
.principle-quote { max-width: 900px; margin: clamp(56px, 8vw, 88px) auto 0; color: var(--dark); font-size: clamp(1.45rem, 1rem + 2vw, 2.4rem); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; text-align: center; text-wrap: balance; }
.principle-quote em { font-style: normal; }
.principle-quote .quote-mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; color: var(--dark); background: var(--electric); box-shadow: 0 10px 30px rgba(215,255,0,.28); }
.principle-quote .quote-mark svg { width: 30px; height: 30px; fill: currentColor; }
.principle-quote strong { display: block; margin-top: .25em; color: var(--teal); font-weight: 700; }

/* ---------- Integration ---------- */
.integration { color: white; background: var(--darkest); overflow: hidden; }
.integration-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tags span { min-width: 112px; padding: 14px 18px; border: 1px solid rgba(150,213,183,.24); border-radius: var(--radius-sm); color: var(--aqua); background: rgba(255,255,255,.025); text-align: center; font-size: .74rem; font-weight: 600; letter-spacing: .04em; transition: border-color .3s ease, color .3s ease, background .3s ease, transform .3s var(--ease), opacity .6s var(--ease); }
.tech-tags span:hover { border-color: var(--electric); color: var(--electric); background: rgba(215,255,0,.05); transform: translateY(-2px); }
.security-note { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.security-note > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--aqua); color: var(--electric); font-size: 1.05rem; }
.security-note p { margin: 0; color: rgba(255,255,255,.58); font-size: var(--fs-small); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, white, var(--mist)); }
.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-copy { position: sticky; top: 110px; }
.contact-path { display: grid; grid-template-columns: 32px 1fr; gap: 12px; margin-top: 32px; }
.contact-path > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--aqua); border-radius: 50%; color: var(--dark); font-size: .6rem; font-weight: 700; }
.contact-path p { margin: 2px 0 8px; color: var(--muted); font-size: .8rem; }
.contact-path strong { display: block; margin-bottom: 1px; color: var(--ink); font-size: .88rem; }
.contact-info { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-channels { display: grid; gap: 10px; }
.contact-channels a { display: flex; align-items: center; gap: 12px; width: fit-content; color: var(--ink); font-size: .92rem; font-weight: 600; transition: color .2s ease; }
.contact-channels a small { display: block; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contact-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 11px; color: var(--dark); background: var(--mist-deep); font-size: 1.05rem; transition: background .25s ease, transform .3s var(--ease); }
.contact-channels a:hover { color: var(--teal); }
.contact-channels a:hover .contact-icon { background: var(--electric); transform: rotate(-6deg); }
.contact-phone { display: flex; align-items: center; gap: 12px; width: fit-content; color: var(--ink); font-size: .92rem; font-weight: 600; }
.contact-phone small { display: block; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contact-form { padding: 30px; border: 1px solid rgba(13,61,52,.09); border-radius: var(--radius-lg); background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.contact-form label { display: grid; gap: 6px; color: var(--teal); font-size: .72rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(13,61,52,.2); border-radius: 0; padding: 10px 2px; color: var(--ink); background: transparent; font-size: 16px; outline: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2320544a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 22px; }
.contact-form textarea { min-height: 84px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-bottom-color: var(--teal); box-shadow: 0 2px 0 var(--aqua); }
.field-wide { grid-column: 1 / -1; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-error { color: #b3361f; }
.form-status.is-success { color: var(--teal); font-weight: 600; }
.contact-form button[disabled] { opacity: .6; cursor: progress; transform: none; }

.form-footer { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.form-footer p, .form-status { margin: 0; color: var(--muted); font-size: .76rem; }
.form-status { min-height: 20px; margin-top: 12px; color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 24px; color: white; background: var(--darkest); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 44px; align-items: start; }
.footer-company { color: rgba(255,255,255,.5); font-size: .78rem; font-style: normal; line-height: 1.6; }
.footer-company strong { display: block; color: rgba(255,255,255,.88); font-size: .84rem; }
.footer-company dl { display: grid; grid-template-columns: auto auto; gap: 3px 18px; width: fit-content; margin: 10px 0 0; }
.footer-company dl div { display: contents; }
.footer-company dt { color: var(--aqua); font-weight: 600; }
.footer-company dd { margin: 0; font-variant-numeric: tabular-nums; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand img { width: 138px; }
.footer-brand p { margin: 18px 0 0; color: rgba(255,255,255,.5); font-size: .82rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.footer-nav a { color: rgba(255,255,255,.62); font-size: .84rem; transition: color .2s ease; }
.footer-nav a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.38); font-size: .7rem; }
.footer-bottom div { display: flex; gap: 20px; }
.footer-bottom a:hover, .footer-bottom button:hover { color: rgba(255,255,255,.8); }
.footer-bottom button { padding: 0; border: 0; color: inherit; background: none; cursor: pointer; font-size: inherit; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible:hover { transition-delay: 0s; }
.js .tech-tags span { opacity: 0; transform: translateY(10px) scale(.96); transition-delay: calc(var(--i, 0) * 60ms + 200ms); }
.js .is-visible .tech-tags span { opacity: 1; transform: none; }
.js .is-visible .tech-tags span:hover { transform: translateY(-2px); transition-delay: 0s; }

.js .hero-in { opacity: 0; animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .02em .1em; margin: -.14em -.02em -.1em; }
.js [data-split] .w > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1s var(--ease); transition-delay: calc(var(--wi, 0) * 42ms + 80ms); }
.js .is-visible [data-split] .w > span, .js .is-visible[data-split] .w > span, .js [data-split].is-in .w > span { transform: none; }

.js .project-signal i { transform: scaleY(0); }
.js .project-card.is-visible .project-signal i { transform: scaleY(1); transition-delay: calc(var(--i, 0) * 80ms + 300ms); }
.js .project-card.is-visible .project-signal i:nth-child(2) { transition-delay: calc(var(--i, 0) * 80ms + 380ms); }
.js .project-card.is-visible .project-signal i:nth-child(3) { transition-delay: calc(var(--i, 0) * 80ms + 460ms); }
.js .project-card.is-visible .project-signal i:nth-child(4) { transition-delay: calc(var(--i, 0) * 80ms + 540ms); }
.js .project-card.is-visible .project-signal i:nth-child(5) { transition-delay: calc(var(--i, 0) * 80ms + 620ms); }

.js [data-draw] .market-curve-layer { clip-path: inset(-20% 100% -20% 0); transition: clip-path 2.4s cubic-bezier(.65,0,.35,1) .35s; }
.js [data-draw].is-visible .market-curve-layer { clip-path: inset(-20% -2% -20% 0); }
.js [data-draw].is-visible .market-chart-scan { animation: scan 2.4s cubic-bezier(.65,0,.35,1) .35s 1 both, scan-loop 9s linear 4s infinite; }

.js [data-draw] .dash-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .4s; }
.js [data-draw].is-visible .dash-line { stroke-dashoffset: 0; }
.js [data-draw] .dash-area { opacity: 0; transition: opacity 1.2s ease 1.2s; }
.js [data-draw].is-visible .dash-area { opacity: 1; }
.js [data-draw] .soc-ring { --soc: 0%; transition: --soc 1.8s var(--ease) .6s; }
.js [data-draw].is-visible .soc-ring { --soc: 62%; }

[data-speed] { translate: 0 var(--py, 0px); will-change: translate; }

@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes ghost-draw { to { stroke-dashoffset: 0; } }
@keyframes grid-drift { to { transform: translateX(64px); } }
@keyframes grid-drift-y { to { background-position: 120px 120px; } }
@keyframes room-breathe { from { transform: scale(1.025) translate3d(-.25%, 0, 0); } to { transform: scale(1.045) translate3d(.25%, -.35%, 0); } }
@keyframes scene-glow { 0%, 100% { opacity: .54; transform: scale(.96); } 50% { opacity: .88; transform: scale(1.04); } }
@keyframes market-ambient { 0%, 100% { opacity: .88; filter: saturate(.92) brightness(.94); } 50% { opacity: .98; filter: saturate(1.06) brightness(1.03); } }
@keyframes market-ui-breathe { 0%, 100% { opacity: .94; } 50% { opacity: 1; } }
@keyframes market-glow { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: .82; transform: scale(1.04); } }
@keyframes live { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes dash-flow { to { stroke-dashoffset: -22; } }
@keyframes point-pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.5); opacity: 1; } }
@keyframes scan { 0% { opacity: 0; left: 5.3%; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; left: 95.5%; } }
@keyframes scan-loop { 0% { opacity: 0; left: 5.3%; } 5% { opacity: .6; } 45% { opacity: .6; } 50%, 100% { opacity: 0; left: 95.5%; } }
@keyframes bar-bounce { 0% { transform: scaleY(1); } 40% { transform: scaleY(.6); } 100% { transform: scaleY(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 44px; }
  .footer-top > .button { justify-self: start; }
  .nav-shell { gap: 16px; }
  .main-nav { gap: 16px; }
  .main-nav a:not(.button) { font-size: .8rem; }
  .hero-layout { grid-template-columns: .85fr 1.15fr; gap: 24px; }
  .hero-scene { height: 460px; margin-right: -24px; }
  .scene-layer { right: -10%; width: 142%; }
  .scene-strip { left: 1%; }
  .metric { padding: 20px 16px; }
  .card-grid--four, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .info-card { min-height: 0; }
  .info-card .card-icon { margin-bottom: 22px; }
  .platform-grid { grid-template-columns: repeat(6, 1fr); }
  .platform-card { grid-column: span 2; }
  .platform-card:nth-child(4), .platform-card:nth-child(5) { grid-column: span 3; }
  .platform-card h3 { margin-top: 44px; }
  .portal-layout { grid-template-columns: .8fr 1.2fr; gap: 40px; }
}

@media (max-width: 940px) {
  :root { --gutter: 20px; }
  .nav-shell { min-height: 64px; grid-template-columns: 1fr auto auto; gap: 10px; }
  .brand img { width: 124px; }
  .brand > span { margin-left: 31px; font-size: .46rem; }
  .menu-toggle { position: relative; z-index: 2; width: 42px; height: 42px; display: grid; place-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: rgba(255,255,255,.04); cursor: pointer; }
  .menu-toggle span:not(.sr-only) { width: 18px; height: 1.5px; display: block; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 64px 0 auto; height: calc(100dvh - 64px);
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: rgba(4,20,16,.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,.07);
    opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path .5s var(--ease), opacity .3s ease, visibility 0s linear .5s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease), opacity .3s ease; }
  .main-nav a:not(.button) { padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; color: rgba(255,255,255,.88); opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .5s var(--ease), color .2s ease; }
  .main-nav a:not(.button)::after { display: none; }
  .main-nav.is-open a { opacity: 1; transform: none; transition-delay: calc(var(--n, 0) * 45ms + 120ms); }
  .main-nav-cta { display: inline-flex !important; margin-top: 24px; min-height: 52px; opacity: 0; transition: opacity .4s ease .45s; }
  .main-nav.is-open .main-nav-cta { opacity: 1; }
  .site-header.menu-open { background: rgba(4,20,16,.98); transform: none; }
  .nav-cta { min-height: 38px; padding: 7px 14px; }

  .hero { padding-top: 104px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; padding-bottom: 8px; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(2,15,17,.96) 0%, rgba(3,18,20,.86) 36%, rgba(3,17,20,.28) 66%, rgba(2,14,16,.9) 88%, rgba(3,19,19,.98) 100%),
      linear-gradient(90deg, rgba(2,15,17,.72), transparent 85%);
  }
  .hero-room img { object-position: 58% top; opacity: .7; }
  .hero-scene { width: min(100%, 720px); height: 480px; margin: -16px auto 0; }
  .scene-layer { right: -5%; width: 116%; }
  .scene-status { right: 5%; }
  .scene-strip { left: 3%; right: 3%; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:first-child { padding-left: 16px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .market-heading, .platform-heading, .portal-layout, .why-layout, .integration-layout, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .market-quote { max-width: 540px; }
  .market-services { grid-template-columns: repeat(2, 1fr); }
  .service-card:first-child { padding-left: 24px; }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.11); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-card, .platform-card:nth-child(4), .platform-card:nth-child(5) { grid-column: span 1; }
  .platform-card:last-child { grid-column: 1 / -1; }
  .portal-copy { max-width: 640px; }
  .dashboard { max-width: 720px; }
  .contact-copy { position: static; max-width: 640px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 44px; }
  .footer-top > .button { justify-self: start; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section-y: 64px; --fs-body: .9rem; --fs-small: .85rem; }
  .nav-cta { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }

  /* centered mobile layout */
  .hero-copy, .section-intro, .platform-heading, .portal-copy, .contact-copy, .market-bottom, .section-cta, .integration-content { text-align: center; margin-inline: auto; }
  .section-intro > p:last-child, .platform-heading > p, .portal-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow), .hero-lead { margin-inline: auto; }
  .eyebrow { font-size: .64rem; margin-bottom: 12px; }

  .hero { padding-top: 96px; }
  .hero h1 { margin-inline: auto; margin-bottom: 16px; }
  .hero h1 .accent { display: inline; }
  .hero-lead { font-size: .95rem; }
  .hero-proof { font-size: .84rem; margin-bottom: 22px; }
  .button-row { display: grid; gap: 10px; }
  .button-row .button { width: 100%; min-height: 50px; }
  .hero-scene { height: clamp(290px, 86vw, 440px); margin-top: 8px; }
  .scene-layer { right: -13%; bottom: 10%; width: 130%; }
  .scene-strip { left: 0; right: 0; bottom: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .scene-strip > div { min-height: 44px; padding: 7px 10px; }
  .scene-status { top: 2%; right: 0; padding: 6px 10px; }
  .metrics { margin-top: 20px; }
  .metric, .metric:first-child { min-height: 0; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 8px; text-align: center; }
  .metric strong { font-size: 1.3rem; }
  .metric span { font-size: .74rem; }

  .card-grid { margin-top: 32px; gap: 10px; }
  .card-grid--four, .process-grid, .platform-grid { grid-template-columns: 1fr; }
  .project-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .info-card { min-height: 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .info-card .card-icon { grid-row: 1 / 3; margin: 0; }
  .info-card h3 { margin: 2px 0 4px; font-size: 1rem; }
  .info-card .card-number { top: 18px; right: 18px; }
  .text-link { display: flex; justify-content: center; text-align: center; }

  .market-quote { margin-inline: auto; padding: 16px 0 0; border-left: 0; border-top: 2px solid var(--electric); text-align: center; max-width: 340px; }
  .market-visual { margin-top: 28px; }
  .market-chart-scroll { margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; overflow-x: auto; border-radius: 0; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(150,213,183,.45) rgba(255,255,255,.04); }
  .market-chart-art { min-width: 720px; }
  .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; color: rgba(255,255,255,.45); font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
  .swipe-hint .i { animation: nudge 1.6s ease-in-out infinite; }
  .market-services { display: block; margin-top: 28px; }
  .service-card, .service-card:first-child { min-height: 0; padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.11); }
  .service-card:last-child { border-bottom: 0; }
  .service-card h3 { margin-top: 10px; }
  .market-bottom { flex-direction: column; }

  .process-grid { margin: 32px 0 28px; border: 0; gap: 10px; }
  .process-step { grid-template-columns: 38px 1fr; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); }
  .process-step h3 { margin-bottom: 6px; }
  .section-cta .button { width: 100%; }

  .platform-heading { gap: 14px; }
  .platform-grid { margin-top: 32px; gap: 10px; }
  .platform-card, .platform-card:nth-child(4), .platform-card:nth-child(5), .platform-card:last-child { grid-column: auto; min-height: 0; padding: 18px; }
  .platform-card h3 { margin-top: 20px; }

  .check-list { columns: 1; display: grid; gap: 8px; width: fit-content; margin-inline: auto; text-align: left; }
  .check-list li { margin: 0; }
  .portal-copy .text-link { justify-content: center; }
  .dashboard { padding: 12px; border-radius: 16px; }
  .dash-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dash-summary > div { padding: 10px 8px; }
  .dash-summary strong { font-size: .9rem; }
  .dash-main { grid-template-columns: 1fr; }
  .dash-chart svg { height: 130px; }
  .dash-side { grid-template-columns: 1fr 1fr; }
  .soc-ring { min-height: 100px; }
  .soc-ring > div { width: 70px; height: 70px; }
  .dash-devices { grid-template-columns: 1fr; gap: 6px; }

  .project-grid { margin-top: 32px; gap: 10px; }
  .project-card { padding: 16px 14px; }
  .project-card h3 { font-size: .95rem; }
  .project-card p { font-size: .8rem; }
  .project-signal { height: 56px; margin: 16px 0 16px; }

  .why-layout { gap: 28px; }
  .why-grid { border: 0; gap: 10px; }
  .why-card h3 { font-size: .95rem; }
  .why-card p { font-size: .8rem; }
  .why-card { padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.5); }
  .why-card h3 { margin-top: 12px; }
  .principle-quote .quote-mark { width: 44px; height: 44px; margin-bottom: 18px; }
  .principle-quote .quote-mark svg { width: 24px; height: 24px; }

  .integration-layout { gap: 28px; }
  .tech-tags { justify-content: center; gap: 8px; }
  .tech-tags span { min-width: 0; flex: 0 0 calc(33.333% - 6px); padding: 12px 6px; font-size: .7rem; }
  .security-note { text-align: left; }

  .contact-path { width: fit-content; margin: 24px auto 0; text-align: left; }
  .contact-info { margin-top: 24px; padding-top: 24px; }
  .contact-channels { width: fit-content; margin-inline: auto; justify-items: start; }
  .contact-channels a { text-align: left; }
  .contact-phone { text-align: left; }
  .contact-form { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .field-wide { grid-column: auto; }
  .form-footer { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .form-footer .button { width: 100%; min-height: 50px; }

  .site-footer { padding-top: 44px; text-align: center; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .footer-top > .button { justify-self: center; }
  .footer-brand { align-items: center; }
  .footer-brand > span { margin-left: 0; }
  .footer-nav { gap: 12px 28px; }
  .footer-company dl { margin-inline: auto; text-align: left; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }
  .footer-bottom div { flex-wrap: wrap; justify-content: center; }
}

@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-in, .js [data-split] .w > span, .js .project-signal i, .js .tech-tags span { opacity: 1 !important; transform: none !important; }
  .js [data-draw] .market-curve-layer { clip-path: none; }
  .js [data-draw] .dash-line { stroke-dashoffset: 0; }
  .js [data-draw] .dash-area { opacity: 1; }
  .js [data-draw] .soc-ring { --soc: 62%; }
  .hero-room, .hero-room img, .scene-layer, .scene-glow { transform: none !important; }
  [data-speed] { translate: none !important; }
  .market-chart-base { transform: translateY(23.5%) !important; }
  .market-chart-scan { display: none; }
  .hero-ghost-lines path { stroke-dashoffset: 0; }
}
