/* ==============================================================
   AURIX — ui.css
   HUD panels, hero console, deck, sequence, dataviz, pricing,
   carousel, rotator, faq, forms, service widgets, portfolio
   ============================================================== */

/* ---------------- HUD panel primitive ---------------- */
.hud {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
/* corner brackets */
.hud--corners::before, .hud--corners::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--line-2); border-style: solid;
}
.hud--corners::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.hud--corners::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

/* pointer spotlight (JS sets --mx/--my) */
.spot { position: relative; overflow: clip; }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), var(--azure-dim), transparent 65%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* tag chip */
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .8rem; border-radius: 4px;
  border: 1px solid var(--line);
  font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .08em;
  color: var(--ink-2);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 8px var(--glow-volt); animation: blink 2.2s ease-in-out infinite; }

/* ---------------- HERO ---------------- */
.hero { position: relative; padding: clamp(4rem, 3rem + 4vw, 7.5rem) 0 var(--s8); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 {
  font-size: var(--t-hero);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.06;
}
.hero h1 .hl { color: var(--volt-text); text-shadow: 0 0 34px var(--glow-volt); }
.hero__sub { color: var(--ink-2); font-size: 1.1rem; max-width: 34rem; margin-top: var(--s5); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--s6); }

/* glow field */
.field { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.field i { position: absolute; border-radius: 50%; filter: blur(80px); }
.field .f-volt { background: radial-gradient(circle, var(--glow-volt), transparent 65%); }
.field .f-azure { background: radial-gradient(circle, var(--glow-azure), transparent 65%); }

/* ---- Live operations console ---- */
.console {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow), 0 0 80px -30px var(--glow-azure);
  overflow: hidden;
  font-family: var(--f-mono);
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.console__bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-size: var(--t-xs); color: var(--ink-3);
  flex-shrink: 0;
}
.console__dots { display: flex; gap: 5px; }
.console__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.console__dots i:first-child { background: var(--volt); }
.console__bar b { font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.console__live { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; color: var(--volt-text); }
.console__live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }

.console__stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.console__stat { padding: .85rem 1rem; border-right: 1px solid var(--line); }
.console__stat:last-child { border-right: 0; }
.console__stat b { display: block; font: 600 1.25rem/1.2 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.console__stat span { font-size: .68rem; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }

.console__log {
  padding: 1rem;
  height: 205px;
  min-height: 205px;
  max-height: 205px;
  font-size: .8rem;
  line-height: 1.9;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--volt-dim, rgba(255, 208, 0, 0.4)) transparent;
}
.console__log::-webkit-scrollbar {
  width: 5px;
}
.console__log::-webkit-scrollbar-track {
  background: transparent;
}
.console__log::-webkit-scrollbar-thumb {
  background: var(--volt-dim, rgba(255, 208, 0, 0.4));
  border-radius: 4px;
}
.console__log::-webkit-scrollbar-thumb:hover {
  background: var(--volt-text, #ffd000);
}
.console__log div { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__log .t { color: var(--ink-3); margin-right: .6rem; }
.console__log .ok { color: var(--volt-text); }
.console__log .az { color: var(--azure-text); }
.console__caret { display: inline-block; width: 8px; height: 15px; background: var(--volt); vertical-align: -2px; animation: blink 1s steps(2) infinite; }

.console__spark { padding: 0 1rem 1rem; flex-shrink: 0; }
.console__spark svg { width: 100%; height: 46px; }
.console__spark .ln { fill: none; stroke: var(--volt); stroke-width: 2; }
.console__spark .ar { fill: var(--volt-dim); stroke: none; }

/* ---------------- STAT STRIP ---------------- */
.strip { border-block: 1px solid var(--line); background: var(--panel); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__cell { display: flex; flex-direction: column; gap: .15rem; padding: var(--s5) var(--s5); border-right: 1px solid var(--line); }
.strip__cell:last-child { border-right: 0; }
.strip__num { font: 600 clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem)/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.strip__num em { font-style: normal; color: var(--volt-text); }
.strip__lbl { font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
/* capability statements (no counters) */
.strip__cell:has(.strip__stmt) { justify-content: center; }
.strip__stmt { font: 600 clamp(.98rem, .9rem + .35vw, 1.15rem)/1.4 var(--f-display); color: var(--ink); text-wrap: balance; }

/* ---------------- SERVICE DECK (sticky horizontal scrub) ---------------- */
.deck { position: relative; }
.deck__pin { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: center; overflow: clip; padding-block: clamp(3.5rem, 2.5rem + 3.5vw, 6rem); }
.deck__track { display: flex; gap: clamp(1rem, 2vw, 2rem); will-change: transform; padding-block: var(--s5); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.deck__card {
  flex: none;
  width: min(78vw, 54rem);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s6);
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.8rem);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.deck__idx { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .16em; color: var(--volt-text); display: block; margin-bottom: var(--s3); }
.deck__card h3 { font-size: var(--t-h3); text-transform: uppercase; margin-bottom: var(--s3); }
.deck__card > div > p { color: var(--ink-2); margin-bottom: var(--s5); }
.deck__list { display: grid; gap: .55rem; margin-bottom: var(--s5); }
.deck__list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); font-size: var(--t-sm); }
.deck__list .ic { color: var(--volt-text); width: 16px; height: 16px; margin-top: .2rem; }
.deck__foot { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.deck__price { font: 400 var(--t-xs)/1.3 var(--f-mono); color: var(--ink-3); }
.deck__price b { display: block; font: 600 1.5rem/1.2 var(--f-display); color: var(--ink); }
.deck__visual {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid; place-items: center;
  min-height: 250px; overflow: clip;
}
.deck__progress { display: flex; gap: 6px; justify-content: center; margin-top: var(--s5); }
.deck__progress i { width: 34px; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; position: relative; }
.deck__progress i::after { content: ""; position: absolute; inset: 0; background: var(--volt); transform: scaleX(var(--seg, 0)); transform-origin: left; transition: transform 0.35s ease; }

.deck__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.2rem, 1rem + 0.8vw, 1.8rem);
}
.deck__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, opacity .2s ease, box-shadow .2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.deck__nav-btn:hover:not(:disabled):not(.is-disabled) {
  background: var(--bg-2);
  border-color: var(--ink-3);
  color: var(--volt-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.deck__nav-btn:active:not(:disabled):not(.is-disabled) {
  transform: translateY(0) scale(0.96);
}
.deck__nav-btn:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
}
.deck__nav-btn:disabled,
.deck__nav-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: auto;
}
.deck__nav-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  transition: transform .15s ease;
}
.deck__nav-btn--prev:hover:not(:disabled):not(.is-disabled) svg {
  transform: translateX(-2px);
}
.deck__nav-btn--next:hover:not(:disabled):not(.is-disabled) svg {
  transform: translateX(2px);
}

/* ---------------- SEQUENCE (process) ---------------- */
.seq { position: relative; counter-reset: step; }
.seq__bar { position: relative; height: 2px; background: var(--line); margin: 0 7% var(--s6); border-radius: 2px; }
.seq__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--azure), var(--volt)); transform: scaleX(var(--p, 0)); transform-origin: left; border-radius: 2px; }
.seq__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.seq__step { position: relative; padding: var(--s5); }
.seq__node {
  width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font: 600 var(--t-sm)/1 var(--f-mono);
  color: var(--ink-3);
  margin-bottom: var(--s4);
  transition: color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.seq__step.is-on .seq__node { color: var(--volt-ink); background: var(--volt); border-color: var(--volt); box-shadow: 0 0 22px var(--glow-volt); }
.seq__phase { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--azure-text); }
.seq__step h3 { font-size: var(--t-h4); text-transform: uppercase; margin: .45rem 0 .45rem; }
.seq__step p { color: var(--ink-2); font-size: var(--t-sm); }

/* ---------------- SPEC GRID (why) ---------------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
/* key industries: icon tiles */
.inds { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.ind { display: flex; align-items: center; gap: var(--s4); padding: var(--s5); }
.ind .spec__ic { margin-bottom: 0; flex: none; }
.ind h3 { margin-bottom: 0; font-size: 1.05rem; }
.spec { padding: var(--s6); transition: transform .3s var(--eo), border-color .2s ease; }
.spec:hover { transform: translateY(-4px); border-color: var(--line-2); }
.spec__code { position: absolute; top: var(--s4); right: var(--s5); font: 500 var(--t-xs)/1 var(--f-mono); color: var(--ink-3); }
.spec__ic { width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; background: var(--volt-dim); color: var(--volt-text); margin-bottom: var(--s4); }
.spec__ic .ic { width: 21px; height: 21px; }
.spec--alt .spec__ic { background: var(--azure-dim); color: var(--azure-text); }
.spec h3 { font-size: var(--t-h4); text-transform: uppercase; margin-bottom: .5rem; }
.spec p { color: var(--ink-2); font-size: var(--t-sm); }

/* ---------------- INDUSTRY CAROUSEL (scroll-snap) ---------------- */
.car { position: relative; }
.car__track {
  display: flex; gap: var(--s4);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px var(--s4);
  scrollbar-width: none;
  cursor: grab;
}
.car__track::-webkit-scrollbar { display: none; }
.car__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.car__card {
  flex: none; width: min(84vw, 24rem);
  scroll-snap-align: start;
  overflow: clip; display: flex; flex-direction: column;
}
.car__media { position: relative; aspect-ratio: 16 / 8.5; overflow: clip; }
.car__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-tone); }
.car__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg-2)); }
.car__media b {
  position: absolute; left: 14px; bottom: 10px; z-index: 1;
  font: 600 1.1rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink);
}
.car__body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; background: var(--bg-2); }
.car__body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.car__body > p { color: var(--ink-2); font-size: var(--t-sm); margin-bottom: var(--s4); }
.car__feats { display: grid; gap: .45rem; margin-bottom: var(--s4); }
.car__feats li { display: flex; gap: .55rem; align-items: flex-start; font-size: var(--t-xs); color: var(--ink-2); }
.car__feats .ic { width: 14px; height: 14px; color: var(--volt-text); margin-top: .15rem; }
.car__body .btn { margin-top: auto; align-self: start; }
.car__nav { display: flex; gap: .5rem; justify-content: flex-start; margin-top: var(--s5); }
.car__btn {
  width: 46px; height: 46px; border-radius: 9px;
  border: 1px solid var(--line-2); color: var(--ink-2);
  display: grid; place-items: center;
  transition: color .15s ease, border-color .15s ease, transform .2s var(--eo);
}
.car__btn:hover { color: var(--volt-text); border-color: var(--volt-text); transform: translateY(-2px); }

/* ---------------- DATAVIZ ---------------- */
.viz { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--s5); align-items: stretch; }
.viz__panel { padding: var(--s6); display: flex; flex-direction: column; }
.viz__panel h3 { font-size: var(--t-h4); text-transform: uppercase; }
.viz__panel .cap { font: 400 var(--t-xs)/1.5 var(--f-mono); color: var(--ink-3); margin: .3rem 0 var(--s5); }
.viz__chart { flex: 1; min-height: 230px; }
.viz__chart svg { width: 100%; height: 100%; overflow: visible; }
.viz__chart .grid { stroke: var(--chart-track); stroke-width: 1; }
.viz__chart .lbl { font: 600 10px var(--f-mono); fill: var(--ink-3); letter-spacing: .08em; }
.viz__chart .l-old { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 5 6; }
.viz__chart .l-new { fill: none; stroke: var(--volt); stroke-width: 2.5; filter: drop-shadow(0 0 6px var(--glow-volt)); }
.viz__chart .dot { fill: var(--volt); }
.viz__legend { display: flex; gap: var(--s5); font: 400 var(--t-xs)/1 var(--f-mono); color: var(--ink-2); margin-top: var(--s4); }
.viz__legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: .45rem; }
.viz__legend .k-new i { background: var(--volt); }
.viz__legend .k-old i { background: var(--line-2); }
.viz__side { display: grid; gap: var(--s5); }
.gauge { padding: var(--s5); display: flex; align-items: center; gap: var(--s5); }
.gauge svg { width: 92px; height: 92px; flex: none; }
.gauge .tr { fill: none; stroke: var(--chart-track); stroke-width: 8; }
.gauge .vl {
  fill: none; stroke: var(--volt); stroke-width: 8; stroke-linecap: round;
  filter: drop-shadow(0 0 5px var(--glow-volt));
  /* fill follows the section's scrubbed --p, scaled to the gauge's value */
  stroke-dasharray: calc(var(--p, 0) * var(--val, 100)) 100;
}
html.capture .gauge .vl, .reduced .gauge .vl { stroke-dasharray: var(--val, 100) 100; }
.gauge--az .vl { stroke: var(--azure); filter: drop-shadow(0 0 5px var(--glow-azure)); }
.gauge b { display: block; font: 600 1.6rem/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.gauge span { font: 500 var(--t-xs)/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------------- PRICING ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: var(--s6); }
.plan--hot { border-color: var(--volt); box-shadow: 0 0 0 1px var(--volt), 0 18px 50px -22px var(--glow-volt); }
.plan__flag {
  position: absolute; top: -12px; left: var(--s6);
  padding: .28rem .7rem; border-radius: 4px;
  background: var(--volt); color: var(--volt-ink);
  font: 700 .64rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
}
.plan__name { font-size: var(--t-h4); text-transform: uppercase; }
.plan__eta { display: inline-flex; align-items: center; gap: .45rem; font: 400 var(--t-xs)/1.4 var(--f-mono); color: var(--ink-3); margin-top: .3rem; }
.plan__eta .ic { width: 13px; height: 13px; }
.plan__row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-top: var(--s5); }
.plan__now { font: 600 2.4rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.plan__note { font-size: var(--t-xs); color: var(--ink-3); margin-top: .25rem; }
.pricing-note { text-align: center; margin-top: var(--s5); font: 500 var(--t-xs)/1.5 var(--f-mono); letter-spacing: .06em; color: var(--ink-3); }
.plan__feats { display: grid; gap: .58rem; padding-block: var(--s5); margin-block: var(--s4) auto; border-top: 1px dashed var(--line-2); }
.plan__feats li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); }
.plan__feats li b { color: var(--ink); }
.plan__feats .ic { width: 15px; height: 15px; color: var(--volt-text); margin-top: .22rem; }
.plan .btn { margin-top: var(--s4); }

.extras { margin-top: var(--s7); }
.extras h3 { font-size: var(--t-h4); text-transform: uppercase; margin-bottom: var(--s4); }
.extras__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.extra {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding: var(--s4) var(--s5);
  transition: border-color .15s ease, transform .2s var(--eo);
}
.extra:hover { border-color: var(--line-2); transform: translateX(3px); }
.extra span { font-weight: 500; font-size: var(--t-sm); }
.extra b { font: 500 var(--t-sm)/1 var(--f-mono); color: var(--volt-text); white-space: nowrap; }

/* ---------------- FAQ (terminal) ---------------- */
.term { max-width: 47rem; margin-inline: auto; display: grid; gap: var(--s3); }
.term__item { overflow: clip; transition: border-color .2s ease; }
.term__item.is-open { border-color: var(--line-2); }
.term__q {
  display: flex; align-items: center; gap: var(--s3);
  width: 100%; min-height: 60px; padding: var(--s4) var(--s5);
  text-align: left;
}
.term__q code { font: 500 var(--t-xs)/1 var(--f-mono); color: var(--volt-text); flex: none; }
.term__q h3 { flex: 1; font-size: 1.02rem; font-weight: 600; }
.term__tog { flex: none; width: 26px; height: 26px; display: grid; place-items: center; color: var(--ink-3); transition: rotate .3s var(--eo), color .2s ease; }
.term__item.is-open .term__tog { rotate: 45deg; color: var(--volt-text); }
.term__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--eo); }
.term__item.is-open .term__a { grid-template-rows: 1fr; }
.term__a > div { overflow: hidden; }
.term__a p { padding: 0 var(--s5) var(--s5) calc(var(--s5) + 2.2rem); color: var(--ink-2); font-size: var(--t-sm); }

/* ---------------- CTA ---------------- */
.launch {
  position: relative; overflow: clip; text-align: center;
  padding: clamp(2.6rem, 2rem + 3vw, 5rem) var(--s5);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(60% 120% at 50% 118%, var(--volt-dim), transparent 60%),
    radial-gradient(40% 80% at 12% 0%, var(--azure-dim), transparent 60%),
    var(--bg-2);
}
.launch::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 1px dashed var(--line); border-radius: calc(var(--r-lg) - 6px);
}
.launch h2 { font-size: var(--t-h2); text-transform: uppercase; max-width: 24ch; margin-inline: auto !important; text-align: center; }
.launch p { color: var(--ink-2); max-width: 46ch; margin: var(--s4) auto 0; }
.launch__row { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s6); }
.launch__meta { margin-top: var(--s4); font: 400 var(--t-xs)/1.5 var(--f-mono); color: var(--ink-3); }

/* ---------------- FORMS ---------------- */
.fset { display: grid; gap: .45rem; margin-bottom: var(--s4); }
.fset label { font: 600 var(--t-sm)/1.3 var(--f-display); }
.fset label .req { color: var(--danger); }
.fset label .opt { color: var(--ink-3); font-weight: 400; font-family: var(--f-body); }
.fin {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  border-radius: var(--r-sm);
  background: var(--panel); border: 1px solid var(--line-2);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fin:hover { border-color: var(--ink-3); }
.fin:focus { outline: none; border-color: var(--volt-text); box-shadow: 0 0 0 3px var(--volt-dim); }
textarea.fin { min-height: 128px; resize: vertical; }
.fsel { position: relative; }
.fsel select { appearance: none; cursor: pointer; }
.fsel::after {
  content: ""; position: absolute; right: 1.05rem; top: 50%;
  width: 8px; height: 8px; translate: 0 -70%; rotate: 45deg;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  pointer-events: none;
}

/* Contact form select dropdown option styling for dark and light modes */
select.fin,
.fsel select {
  color-scheme: dark;
}

:root[data-theme="light"] select.fin,
:root[data-theme="light"] .fsel select {
  color-scheme: light;
}

.fsel select option,
select.fin option,
.contact select option {
  background-color: #35393E !important;
  color: #FFFFFF !important;
  padding: 10px 14px;
}

.fsel select option:disabled,
select.fin option:disabled,
.contact select option:disabled {
  background-color: #2D3136 !important;
  color: #8C939D !important;
}

:root[data-theme="light"] .fsel select option,
:root[data-theme="light"] select.fin option,
:root[data-theme="light"] .contact select option {
  background-color: #FFFFFF !important;
  color: #1F2429 !important;
}

:root[data-theme="light"] .fsel select option:disabled,
:root[data-theme="light"] select.fin option:disabled,
:root[data-theme="light"] .contact select option:disabled {
  background-color: #F4F6F8 !important;
  color: #6B737C !important;
}
.fhint { font-size: var(--t-xs); color: var(--ink-3); }
.ferr { display: none; font: 500 var(--t-xs)/1.4 var(--f-mono); color: var(--danger); }
.fset.has-error .fin { border-color: var(--danger); }
.fset.has-error .ferr { display: block; }
.fdone { text-align: center; padding: var(--s7) var(--s5); }
.fdone__ic { width: 62px; height: 62px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto var(--s4); background: var(--volt-dim); color: var(--volt-text); }
.fdone__ic .ic { width: 28px; height: 28px; }

/* ---------------- SERVICE WIDGETS ---------------- */
/* terminal chat */
.tchat { width: min(100%, 26rem); font-family: var(--f-mono); overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tchat .console__bar { flex-shrink: 0; }
.tchat__log { padding: var(--s5); display: grid; gap: .7rem; min-height: 200px; max-height: 230px; height: 230px; align-content: start; font-size: .8rem; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--volt-dim, rgba(255, 208, 0, 0.4)) transparent; }
.tchat__log::-webkit-scrollbar { width: 5px; }
.tchat__log::-webkit-scrollbar-track { background: transparent; }
.tchat__log::-webkit-scrollbar-thumb { background: var(--volt-dim, rgba(255, 208, 0, 0.4)); border-radius: 4px; }
.tchat__log::-webkit-scrollbar-thumb:hover { background: var(--volt-text, #ffd000); }
.tchat .tchat__chips { flex-shrink: 0; }
.tchat__m { padding: .6rem .85rem; border-radius: 9px; max-width: 88%; line-height: 1.55; }
.tchat__m--in { background: var(--panel-2); justify-self: start; border-bottom-left-radius: 2px; color: var(--ink-2); }
.tchat__m--out { background: var(--volt-dim); color: var(--ink); justify-self: end; border-bottom-right-radius: 2px; }
.tchat__typing { display: inline-flex; gap: 4px; padding: .7rem .85rem; border-radius: 9px; border-bottom-left-radius: 2px; background: var(--panel-2); justify-self: start; }
.tchat__typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); animation: tb 1.2s ease-in-out infinite; }
.tchat__typing i:nth-child(2) { animation-delay: .15s; }
.tchat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tb { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.tchat__chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 var(--s5) var(--s5); }
.tchat__chip {
  padding: .5rem .8rem; min-height: 40px; border-radius: 5px;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: .72rem;
  transition: border-color .15s ease, color .15s ease, opacity .2s ease;
}
.tchat__chip:hover:not(:disabled) { border-color: var(--volt-text); color: var(--volt-text); }
.tchat__chip:disabled { opacity: .35; cursor: default; }

/* call HUD */
.callhud { width: min(100%, 24rem); padding: var(--s6); display: grid; gap: var(--s5); text-align: center; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow); }
.callhud__ring { position: relative; width: 88px; height: 88px; border-radius: 14px; margin-inline: auto; display: grid; place-items: center; background: var(--volt-dim); color: var(--volt-text); }
.callhud__ring::before, .callhud__ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  border: 1px solid var(--volt); opacity: 0;
  animation: ripple 2.6s ease-out infinite;
}
.callhud__ring::after { animation-delay: 1.3s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.7); opacity: 0; } }
.callhud__ring .ic { width: 36px; height: 36px; }
.callhud b { font: 600 1.05rem/1.3 var(--f-display); text-transform: uppercase; }
.callhud .meta { font: 400 var(--t-xs)/1.4 var(--f-mono); color: var(--ink-3); }
.eq { display: flex; align-items: center; gap: 3px; height: 44px; }
.eq i { flex: 1; border-radius: 2px; background: var(--volt); height: 100%; transform-origin: center; animation: eqb 1.1s ease-in-out infinite; }
.eq i:nth-child(2n) { animation-delay: .12s; opacity: .8; }
.eq i:nth-child(3n) { animation-delay: .26s; opacity: .6; }
.eq i:nth-child(5n) { animation-delay: .4s; }
@keyframes eqb { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }
.callhud__lines { text-align: left; display: grid; gap: .55rem; border-top: 1px dashed var(--line-2); padding-top: var(--s4); min-height: 116px; align-content: start; }
.callhud__ln { display: flex; gap: .6rem; font-size: var(--t-xs); color: var(--ink-2); font-family: var(--f-mono); opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s var(--eo); }
.callhud__ln.is-in { opacity: 1; transform: none; }
.callhud__ln b { flex: none; font: 600 .64rem/1.7 var(--f-mono); color: var(--azure-text); letter-spacing: .06em; }
.callhud__ln--a b { color: var(--volt-text); }

/* workflow graph */
.graph { width: min(100%, 26rem); padding: var(--s6); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow); }
.graph__head { display: flex; justify-content: space-between; font: 400 var(--t-xs)/1 var(--f-mono); color: var(--ink-3); margin-bottom: var(--s5); }
.graph__head .live { color: var(--volt-text); }
.graph__flow { display: grid; gap: .5rem; }
.graph__node {
  display: flex; align-items: center; gap: .7rem;
  padding: .68rem .9rem; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line);
  font: 400 .74rem/1.4 var(--f-mono); color: var(--ink-2);
}
.graph__node .ic { width: 15px; height: 15px; color: var(--azure-text); }
.graph__node .st { margin-left: auto; color: var(--volt-text); }
.graph__pipe { justify-self: center; width: 1px; height: 13px; background: var(--line-2); position: relative; }
.graph__pipe::after {
  content: ""; position: absolute; left: -1.5px; top: -4px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--volt);
  animation: drop 2.2s linear infinite;
}
@keyframes drop { 0% { top: -10%; opacity: 0; } 25% { opacity: 1; } 100% { top: 105%; opacity: 0; } }

/* problem tiles */
.fails { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.fail { padding: var(--s5); transition: transform .25s var(--eo), border-color .2s ease; }
.fail:hover { transform: translateY(-4px); border-color: var(--danger); }
.fail__ic { width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 93, 93, .1); color: var(--danger); margin-bottom: var(--s4); }
.fail__ic .ic { width: 20px; height: 20px; }
.fail h3 { font-size: 1rem; text-transform: uppercase; margin-bottom: .4rem; }
.fail p { color: var(--ink-2); font-size: var(--t-sm); }
.fails-note { text-align: center; margin-top: var(--s6); color: var(--ink-2); font-size: 1.05rem; }
.fails-note b { color: var(--ink); }

/* ---------------- PORTFOLIO ---------------- */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.agent { overflow: clip; display: flex; flex-direction: column; transition: transform .3s var(--eo), border-color .2s ease, box-shadow .3s ease; }
.agent:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.agent__media { position: relative; aspect-ratio: 16 / 10; overflow: clip; background: var(--bg-2); }
.agent__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-tone); transition: transform .6s var(--eo); }
.agent:hover .agent__media img { transform: scale(1.045); }
.agent__live {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .6rem; border-radius: 4px;
  background: rgba(4, 8, 14, .72); color: #d9ffb0;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 600 .62rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
}
.agent__live i { width: 6px; height: 6px; border-radius: 50%; background: #c9f24d; animation: blink 1.7s ease-in-out infinite; }
.agent__body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.agent__sector { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--azure-text); margin-bottom: .5rem; }
.agent__body h3 { font-size: var(--t-h4); text-transform: uppercase; }
.agent__body h3 span { display: block; font: 500 var(--t-xs)/1.6 var(--f-mono); text-transform: none; letter-spacing: .04em; color: var(--ink-3); }
.agent__body > p { color: var(--ink-2); font-size: var(--t-sm); margin-block: var(--s3); }
.agent__feats { display: grid; gap: .48rem; margin-bottom: var(--s5); }
.agent__feats li { display: flex; gap: .55rem; align-items: flex-start; font-size: var(--t-xs); color: var(--ink-2); }
.agent__feats .ic { width: 14px; height: 14px; color: var(--volt-text); margin-top: .18rem; }
.agent .btn { margin-top: auto; }

/* case dossiers — alternating rows */
.dossier { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s6); align-items: center; padding: var(--s6); overflow: clip; }
.dossier + .dossier { margin-top: var(--s5); }
.dossier:nth-child(even) .dossier__media { order: 2; }
.dossier__media { border-radius: var(--r-sm); overflow: clip; border: 1px solid var(--line); }
.dossier__media img { width: 100%; object-fit: cover; filter: var(--img-tone); }
.dossier__cat { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--azure-text); }
.dossier h3 { font-size: var(--t-h3); text-transform: uppercase; margin: .5rem 0 var(--s3); }
.dossier > div > p { color: var(--ink-2); font-size: var(--t-sm); margin-bottom: var(--s4); }
.dossier__result { display: flex; gap: .7rem; align-items: baseline; padding: var(--s3) var(--s4); border-left: 3px solid var(--volt); background: var(--volt-dim); border-radius: 0 6px 6px 0; margin-bottom: var(--s4); }
.dossier__result b { font: 700 .64rem/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--volt-text); flex: none; }
.dossier__result span { font-size: var(--t-sm); }
.dossier__stack { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--s4); }
.dossier__stack code { font: 500 .66rem/1 var(--f-mono); padding: .32rem .6rem; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-3); }

/* ---------------- BLOG ---------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.post { overflow: clip; display: flex; flex-direction: column; transition: transform .3s var(--eo), border-color .2s ease, box-shadow .3s ease; }
.post:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.post__media { aspect-ratio: 16 / 9; overflow: clip; background: var(--bg-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-tone); transition: transform .6s var(--eo); }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.post__cat { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--azure-text); margin-bottom: .55rem; }
.post__body h2 { font-size: 1.16rem; margin-bottom: var(--s3); }
.post__body > p { color: var(--ink-2); font-size: var(--t-sm); margin-bottom: var(--s4); }
.post__meta { margin-top: auto; font: 400 var(--t-xs)/1.5 var(--f-mono); color: var(--ink-3); }

.article { max-width: 44rem; margin-inline: auto; }
.article__img { border-radius: var(--r-md); overflow: clip; border: 1px solid var(--line); margin-block: var(--s6); }
.article__img img { width: 100%; filter: var(--img-tone); }
.article h2 { font-size: var(--t-h3); text-transform: uppercase; margin: var(--s7) 0 var(--s4); }
.article h3 { font-size: var(--t-h4); margin: var(--s6) 0 var(--s3); }
.article p { color: var(--ink-2); margin-bottom: var(--s4); font-size: 1.04rem; line-height: 1.78; }
.article ul { margin-bottom: var(--s4); display: grid; gap: .55rem; }
.article ul li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-2); }
.article ul li::before { content: "›"; color: var(--volt-text); font-family: var(--f-mono); font-weight: 600; }
.article b, .article strong { color: var(--ink); }
.article blockquote {
  border-left: 3px solid var(--volt);
  padding: var(--s4) var(--s5); margin-block: var(--s5);
  background: var(--panel); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font: 500 1.15rem/1.6 var(--f-display);
}

/* ---------------- CONTACT ---------------- */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--s5); align-items: start; }
.contact__card { padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); }
.contact__card h2 { font-size: var(--t-h4); text-transform: uppercase; margin-bottom: .4rem; }
.contact__legend { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: var(--s5); }
.contact__aside { display: grid; gap: var(--s4); position: sticky; top: var(--s5); }
.ctile { display: flex; gap: var(--s4); align-items: center; padding: var(--s5); transition: border-color .15s ease, transform .2s var(--eo); }
.ctile:hover { border-color: var(--volt-text); transform: translateX(3px); }
.ctile__ic { flex: none; width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; background: var(--volt-dim); color: var(--volt-text); }
.ctile__ic .ic { width: 20px; height: 20px; }
.ctile small { display: block; font: 500 var(--t-xs)/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ctile b { font-family: var(--f-display); word-break: break-word; }

/* ---------------- PAGE HERO (sub-pages) ---------------- */
.phero { position: relative; padding: clamp(3.5rem, 2.6rem + 3.4vw, 6.5rem) 0 clamp(2.2rem, 1.8rem + 2vw, 4rem); overflow: clip; }
.phero--center .phero__in { max-width: 52rem; margin-inline: auto; text-align: center; }
.phero--center .sys { justify-content: center; }
.phero--center .sys::after { display: none; }
.phero h1 { font-size: var(--t-hero); text-transform: uppercase; line-height: 1.07; }
.phero h1 .hl { color: var(--volt-text); text-shadow: 0 0 30px var(--glow-volt); }
.phero__sub { color: var(--ink-2); font-size: 1.08rem; margin-top: var(--s5); max-width: 44rem; text-wrap: pretty; }
.phero--center .phero__sub { margin-inline: auto; }
.phero__list { display: grid; gap: .6rem; margin-top: var(--s5); }
.phero__list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); }
.phero__list .ic { color: var(--volt-text); width: 17px; height: 17px; margin-top: .25rem; }
.phero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.phero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }

/* capability grid */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }

/* ---------------- RESPONSIVE (components) ---------------- */
@media (max-width: 64rem) {
  .hero__grid, .phero__grid { grid-template-columns: 1fr; }
  .hero h1 { word-break: break-word; overflow-wrap: break-word; }
  .hero__meta { gap: .45rem; }
  .field i { transform: scale(.6); }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__cell:nth-child(2) { border-right: 0; }
  .strip__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  /* deck: no pinning on touch/small — plain vertical list, nothing cut off */
  .deck__pin { position: static; min-height: 0; display: block; }
  .deck__track { flex-direction: column; transform: none !important; transition: none; }
  .deck__card { width: 100%; grid-template-columns: 1fr; }
  .deck__visual { min-height: 210px; order: -1; }
  .deck__progress { display: none; }
  .seq__grid { grid-template-columns: 1fr 1fr; }
  .seq__bar { display: none; }
  .specs, .caps, .agents, .posts, .inds { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .plan--hot { order: -1; }
  .viz { grid-template-columns: 1fr; }
  .viz__side { grid-template-columns: 1fr 1fr; }
  .dossier { grid-template-columns: 1fr; }
  .dossier:nth-child(even) .dossier__media { order: -1; }
  .dossier__media { order: -1; }
  .contact { display: flex; flex-direction: column; gap: var(--s5); }
  .contact__aside { order: 1; position: static; grid-template-columns: 1fr 1fr; }
  .contact__card { order: 2; }
}
@media (max-width: 40rem) {
  .hero { padding-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
  .hero__sub { font-size: 1rem; }
  .hero__meta { gap: .4rem; }
  .chip { padding: .3rem .6rem; font-size: .65rem; }
  .field i { transform: scale(.45); }
  .console__log div { font-size: .72rem; }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .seq__grid { grid-template-columns: 1fr; }
  .specs, .caps, .agents, .posts, .inds { grid-template-columns: 1fr; }
  .extras__grid { grid-template-columns: 1fr; }
  .viz__side, .contact__aside { grid-template-columns: 1fr; }
  .fails { grid-template-columns: 1fr; }
  .console__bar { padding: .6rem .8rem; gap: .5rem; }
  .console__dots { gap: 4px; }
  .console__dots i { width: 7px; height: 7px; }
  .console__bar b { font-size: .7rem; letter-spacing: .05em; }
  .console__live { font-size: .65rem; gap: .3rem; }
  .console__live i { width: 6px; height: 6px; }
  .console__stat { padding: .6rem .5rem; }
  .console__stat b { font-size: 1.1rem; }
  .console__stat span { font-size: .6rem; letter-spacing: .04em; }
  .console__log {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
    padding: .75rem;
  }
}
@media (min-width: 40rem) and (max-width: 64rem) {
  .fails { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .fails { grid-template-columns: repeat(4, 1fr); }
}

/* Services deck heading mobile formatting */
.deck__h2-br { display: none; }
@media (max-width: 48rem) {
  .deck__h2-br { display: block; }
  .deck__h2-line { display: inline-block; white-space: nowrap; }
}

/* Three add-ons: one even row on wide screens, a full-width last tile on mid widths, one column on phones. */
.extras__grid:has(> .extra:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 64rem) {
  .extras__grid:has(> .extra:nth-child(3):last-child) { grid-template-columns: 1fr 1fr; }
  .extras__grid > .extra:nth-child(3):last-child { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .extras__grid:has(> .extra:nth-child(3):last-child) { grid-template-columns: 1fr; }
}

/* About: founder story */
.about-story { max-width: 46rem; margin-inline: auto; }
.about-story p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.75; margin-bottom: var(--s4); text-wrap: pretty; }
.about-story__cta { margin-top: var(--s6); }
h1.about__h1 { text-transform: none !important; }
