/* ══════════════════════════════════════════════════════════════════════════
   TerraNexa — /enterprise-solutions

   This page's own layer, loaded only by /enterprise-solutions, after
   /work/work.css (header, footer, buttons, cards, cursor) and
   /assets/solutions.css (the enquiry form, the band, and the few shared
   helpers). The name is `tne-` so it cannot collide with `tn-` or `tns-`.

   The two solution pages deliberately do not look alike. /partnerships is a
   document: one column, lists, plain cards, centred panel. This page is a
   product surface: an instrument hero, numbered chapter rails, panels with
   window chrome, schematics, a pipeline, a scope. So this file shares the
   site's design tokens — every colour, font and radius below is read from
   --primary, --card, --border, --font-heading and friends, declared in
   assets/index-ZkSL_AJM.css — and its own composition only.

   Motion: the hero's scan, the scope's sweep, the contact blips and the
   diagrams' pulses are all CSS animations, and all of them switch off under
   `prefers-reduced-motion` at the foot of this file.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── hero ───────────────────────────────────────────────────────────────── */

.tne-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
}

@media (min-width: 1024px) {
  .tne-hero {
    padding: 5.5rem 0 3.5rem;
  }
}

/* A blueprint grid, masked so it fades out rather than stopping at an edge. */
.tne-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(var(--border) / 0.4) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.4) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 0%, #000 0%, transparent 74%);
  mask-image: radial-gradient(125% 95% at 50% 0%, #000 0%, transparent 74%);
  pointer-events: none;
}

/* A whisper of grain, which keeps large flat areas from banding. */
.tne-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

.tne-hero-glow {
  position: absolute;
  top: -20rem;
  left: 12%;
  width: 52rem;
  height: 30rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.12);
  filter: blur(130px);
  pointer-events: none;
}

.tne-hero-inner {
  position: relative;
}

.tne-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .tne-hero-layout {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 3.5rem;
  }
}

.tne-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background: hsl(var(--card) / 0.7);
  padding: 0.375rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  backdrop-filter: blur(10px);
}

.tne-hero-eyebrow {
  margin-top: 1.375rem;
}

/* Larger and tighter than the shared `.tn-h1`, because this headline is the
   page's one piece of display type. */
.tne-h1 {
  max-width: 24ch;
  line-height: 1.05;
}

@media (min-width: 640px) {
  .tne-h1 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1280px) {
  .tne-h1 {
    font-size: 3.75rem;
  }
}

/* The focal point of the headline. Declared first as a flat colour so it stays
   legible if gradient text is unsupported; the clip only applies where it is. */
.tne-accent {
  color: hsl(var(--primary));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .tne-accent {
    background-image: linear-gradient(96deg, hsl(var(--primary)) 6%, hsl(184 100% 79%) 94%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.tne-hero-lead {
  margin-top: 1.5rem;
  max-width: 46rem;
}

/* the engine figure */

.tne-engine {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.5rem);
  background: hsl(var(--card) / 0.55);
  box-shadow: 0 36px 90px -48px hsl(var(--primary) / 0.75);
  backdrop-filter: blur(12px);
}

.tne-engine-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--secondary) / 0.4);
  padding: 0.6875rem 1.125rem;
}

.tne-engine-title {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.tne-engine-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(150 75% 55%);
}

/* The plot and its layer names. The names are HTML, not SVG text, so they hold
   one legible size at every figure width; the column stretches to the plot's
   height and `space-around` lands the four centres on the lattice's four rows. */
.tne-engine-plot {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.875rem 1rem 0.625rem 0.75rem;
}

@media (max-width: 639.98px) {
  .tne-engine-plot {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 0.5rem;
  }

  /* The phone figure is short, so the names read small at the desktop size.
     Wider column and a hair less tracking buys a full step of type size. */
  .tne-engine-layers li {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
  }
}

.tne-engine-layers {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
  text-align: right;
}

.tne-engine-layers li {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.9);
}

.tne-lattice {
  display: block;
  width: 100%;
  height: auto;
}

.tne-engine-foot {
  border-top: 1px solid hsl(var(--border) / 0.7);
  padding: 0.75rem 1.125rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* the lattice's own parts */

.tne-sch-plot {
  fill: hsl(var(--background) / 0.45);
  stroke: hsl(var(--border) / 0.8);
}

.tne-sch-line {
  stroke: hsl(var(--border));
  stroke-width: 1;
}

.tne-sch-node {
  fill: hsl(var(--primary));
  opacity: 0.2;
  animation: tne-node 6.4s linear infinite;
}

.tne-sch-head {
  stroke: hsl(var(--primary));
  stroke-width: 1.5;
  opacity: 0.9;
  animation: tne-sweep 6.4s linear infinite;
}

.tne-sch-trail {
  animation: tne-sweep 6.4s linear infinite;
}

/* The scan's period is mirrored in the node delays written by the builder, so
   the light arrives with the scan rather than on its own timer. */
@keyframes tne-sweep {
  from {
    transform: translateX(var(--tne-sweep-from, 0px));
  }
  to {
    transform: translateX(var(--tne-sweep-to, 0px));
  }
}

@keyframes tne-node {
  0% {
    opacity: 0.2;
  }
  1.6% {
    opacity: 1;
  }
  4.5% {
    opacity: 0.62;
  }
  10% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.2;
  }
}

/* the readout strip */

.tne-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Hairline dividers fall out of the gap sitting over a border-coloured
     background, so the four cells share one pixel between them. */
  gap: 1px;
  margin-top: 3.5rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.25rem);
  background: hsl(var(--border) / 0.6);
}

@media (min-width: 900px) {
  .tne-readout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tne-readout-item {
  position: relative;
  background: hsl(var(--card) / 0.75);
  padding: 1.25rem 1.375rem;
  animation: tne-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--tne-i, 0) * 90ms + 120ms);
}

/* A small tick in the corner, so each cell reads as an instrument channel. */
.tne-readout-item::after {
  content: "";
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 5px;
  height: 5px;
  border-top: 1px solid hsl(var(--primary) / 0.6);
  border-right: 1px solid hsl(var(--primary) / 0.6);
}

.tne-readout-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--primary));
}

.tne-readout-label {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

@keyframes tne-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ── chapter rail ───────────────────────────────────────────────────────── */

/* Replaces the plain eyebrow on this page: every section is numbered, and the
   rule carries the eye from the number to the label. */
.tne-rail {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.tne-rail-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: hsl(var(--primary));
}

.tne-rail-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, hsl(var(--primary) / 0.5), hsl(var(--border) / 0.3));
}

.tne-rail-label {
  flex: 0 0 auto;
}

.tne-intro {
  margin-top: 1rem;
  max-width: 52rem;
}

/* ── value propositions, as a ledger ───────────────────────────────────── */

.tne-ledger {
  margin-top: 3rem;
  border-top: 1px solid hsl(var(--border) / 0.7);
}

@media (min-width: 900px) {
  .tne-ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3.5rem;
  }

  /* The right-hand column has no top rule of its own, so the two columns read
     as one continuous ledger. */
  .tne-ledger-item:nth-child(2) {
    border-top: 0;
  }
}

.tne-ledger-item {
  position: relative;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  padding: 1.75rem 0 1.75rem 3.5rem;
}

.tne-ledger-num {
  position: absolute;
  top: 1.65rem;
  left: 0;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: hsl(var(--foreground) / 0.11);
}

.tne-ledger-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.tne-ledger-body {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

/* ── capabilities, as panels with chrome ───────────────────────────────── */

.tne-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .tne-deck {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tne-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.25rem);
  background: hsl(var(--card) / 0.45);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.tne-panel:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--card) / 0.8);
}

.tne-panel-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--secondary) / 0.45);
  padding: 0.625rem 1rem;
}

.tne-panel-index {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: hsl(var(--muted-foreground));
}

.tne-panel-tag {
  border: 1px solid hsl(var(--primary) / 0.4);
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  padding: 0.15rem 0.5625rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.tne-panel-mod {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.6);
}

.tne-panel-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.5rem;
}

.tne-panel-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 11.5rem;
  margin-bottom: 1.375rem;
  overflow: hidden;
  border-radius: calc(var(--radius) - 0.125rem);
  background:
    radial-gradient(120% 90% at 50% 0%, hsl(var(--primary) / 0.11), transparent 72%),
    hsl(var(--secondary) / 0.4);
}

/* Sized by height so all three diagrams share one optical scale, whatever each
   one's own aspect ratio works out to. */
.tne-diagram {
  display: block;
  width: auto;
  height: 9.5rem;
  max-width: 100%;
}

.tne-panel-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.tne-panel-text {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.tne-panel-points {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
}

/* the diagrams */

.tne-di-base {
  fill: hsl(var(--border) / 0.22);
  stroke: hsl(var(--border));
  stroke-width: 1;
}

.tne-di-top {
  fill: hsl(var(--primary) / 0.17);
  stroke: hsl(var(--primary) / 0.75);
  stroke-width: 1;
}

.tne-di-left {
  fill: hsl(var(--primary) / 0.06);
  stroke: hsl(var(--primary) / 0.45);
  stroke-width: 1;
}

.tne-di-right {
  fill: hsl(var(--primary) / 0.11);
  stroke: hsl(var(--primary) / 0.58);
  stroke-width: 1;
}

.tne-di-pin {
  stroke: hsl(var(--accent) / 0.8);
  stroke-width: 1;
}

.tne-di-pin-dot {
  fill: hsl(var(--accent));
}

.tne-di-outline {
  fill: none;
  stroke: hsl(var(--primary) / 0.7);
  stroke-width: 1.2;
}

.tne-di-cell {
  fill: none;
  stroke: hsl(var(--border));
  stroke-width: 1;
}

.tne-di-cell.is-focus {
  stroke: hsl(var(--primary) / 0.6);
}

.tne-di-point {
  fill: hsl(var(--primary));
  animation: tne-blip 3.4s ease-in-out infinite;
}

.tne-di-node {
  fill: hsl(var(--secondary));
  stroke: hsl(var(--primary) / 0.7);
  stroke-width: 1.2;
}

.tne-di-link {
  fill: none;
  stroke: hsl(var(--primary) / 0.45);
  stroke-width: 1.2;
}

.tne-di-hub {
  fill: hsl(var(--primary) / 0.18);
  stroke: hsl(var(--primary));
  stroke-width: 1.4;
  animation: tne-blip 3.4s ease-in-out infinite;
}

.tne-di-axis,
.tne-di-tick {
  stroke: hsl(var(--border));
  stroke-width: 1;
}

@keyframes tne-blip {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* ── the delivery path ─────────────────────────────────────────────────── */

.tne-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin-top: 3.5rem;
}

@media (min-width: 700px) {
  .tne-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .tne-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1.75rem;
    /* One rule across the whole run at this width; the stations' own rules are
       dropped below so the line is not broken by the column gaps. */
    border-top: 1px solid hsl(var(--border) / 0.7);
  }
}

.tne-flow-step {
  position: relative;
  border-top: 1px solid hsl(var(--border) / 0.7);
  padding-top: 2.25rem;
}

@media (min-width: 1024px) {
  .tne-flow-step {
    border-top: 0;
    padding-top: 2.75rem;
  }
}

.tne-flow-num {
  position: absolute;
  top: -0.72rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid hsl(var(--primary) / 0.5);
  border-radius: 9999px;
  /* The page background, so the marker interrupts the rule it sits on. */
  background: hsl(var(--background));
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: hsl(var(--primary));
}

/* A chevron on the rule between stations, pointing along the sequence. */
@media (min-width: 1024px) {
  .tne-flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: -0.16rem;
    right: -0.95rem;
    width: 0.35rem;
    height: 0.35rem;
    border-top: 1px solid hsl(var(--primary) / 0.6);
    border-right: 1px solid hsl(var(--primary) / 0.6);
    transform: rotate(45deg);
  }
}

.tne-flow-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.tne-flow-body {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: hsl(var(--muted-foreground));
}

/* ── GEV, as a mosaic ──────────────────────────────────────────────────── */

.tne-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (min-width: 900px) {
  .tne-mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .tne-tile-def {
    grid-column: span 7;
  }

  .tne-tile-radar {
    grid-column: span 5;
  }

  .tne-tile-point {
    grid-column: span 3;
  }

  .tne-tile-use {
    grid-column: span 12;
  }
}

.tne-tile {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.25rem);
  background: hsl(var(--card) / 0.45);
  padding: 1.5rem;
}

.tne-tile-badge {
  display: inline-block;
  border: 1px solid hsl(var(--primary) / 0.45);
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.tne-tile-badge-key {
  color: hsl(var(--foreground));
}

.tne-tile-lead {
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .tne-tile-lead {
    font-size: 1.5rem;
  }
}

.tne-tile-text {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.tne-tile-point {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tne-tile-index {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: hsl(var(--primary));
}

.tne-tile-point p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--foreground) / 0.92);
}

.tne-tile-use p + ul {
  margin-top: 1rem;
}

.tne-use {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 768px) {
  .tne-use {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 2.5rem;
  }
}

.tne-use li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.9);
}

.tne-use li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  transform: rotate(45deg);
  background: hsl(var(--primary));
}

/* the scope */

.tne-tile-radar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.tne-tile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--secondary) / 0.4);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.tne-tile-bar-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: hsl(150 80% 45%);
}

.tne-radar {
  display: block;
  width: 100%;
  height: auto;
  padding: 1rem 1.5rem 0.75rem;
}

.tne-tile-radar figcaption {
  margin-top: auto;
  border-top: 1px solid hsl(var(--border) / 0.7);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
}

.tne-radar-ring {
  fill: none;
  stroke: hsl(var(--border));
  stroke-width: 1;
}

.tne-radar-axis {
  stroke: hsl(var(--border) / 0.55);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.tne-radar-sweep {
  transform-box: view-box;
  transform-origin: 150px 150px;
  animation: tne-scope-turn 7s linear infinite;
}

@keyframes tne-scope-turn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.tne-radar-contact {
  animation: tne-contact 7s linear infinite;
}

@keyframes tne-contact {
  0%,
  100% {
    opacity: 0.3;
  }
  14% {
    opacity: 1;
  }
  30% {
    opacity: 0.3;
  }
}

.tne-radar-dot {
  fill: hsl(var(--primary));
}

.tne-radar-halo {
  fill: hsl(var(--primary) / 0.18);
}

.tne-radar-core {
  fill: hsl(var(--primary));
}

/* ── the stack, as a rack ──────────────────────────────────────────────── */

.tne-rack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin-top: 3rem;
}

@media (min-width: 700px) {
  .tne-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tne-rack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 3rem;
  }
}

.tne-rack-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid hsl(var(--primary) / 0.35);
  padding-bottom: 0.625rem;
}

.tne-rack-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: hsl(var(--foreground));
}

.tne-rack-count {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: hsl(var(--primary));
}

.tne-rack-list {
  margin-top: 0.375rem;
}

.tne-rack-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  padding: 0.5rem 0;
}

.tne-rack-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: hsl(var(--primary) / 0.5);
}

.tne-rack-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.tne-rack-list li:hover .tne-rack-name {
  color: hsl(var(--foreground));
}

/* ── portfolio, framed as screens ──────────────────────────────────────── */

.tne-features {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 3rem;
}

.tne-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .tne-feature {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.tne-screen {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.25rem);
  background: hsl(var(--card) / 0.6);
  box-shadow: 0 34px 80px -46px hsl(var(--primary) / 0.7);
}

.tne-screen-bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--secondary) / 0.5);
  padding: 0.625rem 0.875rem;
}

.tne-screen-dots {
  display: inline-flex;
  gap: 0.3125rem;
}

.tne-screen-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--border));
}

.tne-screen-title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* `.tn-badge-live` is positioned for a screenshot corner; here it belongs in
   the caption bar instead. */
.tne-screen-live {
  position: static;
  margin-left: auto;
}

.tne-screen-view {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--secondary));
}

.tne-screen-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tne-feature:hover .tne-screen-view img {
  transform: scale(1.02);
}

/* CashPilot ships no capture, so it gets a typographic panel rather than a
   borrowed image of something else. */
.tne-screen-absent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  background:
    radial-gradient(70% 60% at 50% 0%, hsl(var(--primary) / 0.17), transparent 72%),
    hsl(var(--secondary) / 0.55);
}

.tne-screen-absent-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.tne-screen-absent-kind {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.tne-screen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
}

.tne-feature-body {
  display: flex;
  flex-direction: column;
}

.tne-feature-sector {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.tne-feature-title {
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.tne-feature-summary {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: hsl(var(--foreground) / 0.92);
}

.tne-feature-detail {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

/* The facts about the flagship, as a datasheet rather than as chips. */
.tne-spec {
  margin-top: 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.7);
}

.tne-spec > div {
  display: grid;
  grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.55);
  padding: 0.625rem 0;
}

.tne-spec dt {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.tne-spec dd {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.9);
}

.tne-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* the rest of the portfolio */

.tne-more {
  margin-top: 3.5rem;
}

.tne-constellation {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 700px) {
  .tne-constellation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tne-constellation {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* No box around the card: the capture is the object, and the text sits under
   it on the page's own background. */
.tne-card {
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.tne-card-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.125rem);
  background: hsl(var(--secondary));
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.tne-card-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* A scan line that runs the width of the frame on hover. */
.tne-card-frame::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.tne-card:hover .tne-card-frame,
.tne-card:focus-visible .tne-card-frame {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 26px 54px -32px hsl(var(--primary) / 0.8);
}

.tne-card:hover .tne-card-frame img,
.tne-card:focus-visible .tne-card-frame img {
  transform: scale(1.04);
}

.tne-card:hover .tne-card-frame::after,
.tne-card:focus-visible .tne-card-frame::after {
  width: 100%;
}

.tne-card:focus-visible {
  outline: none;
}

.tne-card:focus-visible .tne-card-frame {
  box-shadow:
    0 0 0 2px hsl(var(--background)),
    0 0 0 4px hsl(var(--primary) / 0.7);
}

.tne-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-top: 1rem;
}

.tne-card-sector {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--primary) / 0.85);
}

.tne-card-title {
  margin-top: 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.tne-card-summary {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

.tne-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.tne-card-metrics b {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: hsl(var(--primary));
}

.tne-card-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.tne-card-foot svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tne-card:hover .tne-card-foot svg {
  transform: translateX(4px);
}

/* ── the band to /partnerships ─────────────────────────────────────────── */

/* Left-aligned with a primary edge, where the partner page's panel is centred:
   same job, this page's grammar. */
.tne-band {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-left: 2px solid hsl(var(--primary) / 0.7);
  border-radius: calc(var(--radius) + 0.25rem);
  background: hsl(var(--card) / 0.5);
}

.tne-band-glow {
  position: absolute;
  top: -11rem;
  right: -6rem;
  width: 28rem;
  height: 18rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.12);
  filter: blur(95px);
  pointer-events: none;
}

.tne-band-inner {
  position: relative;
  padding: 2.25rem 1.75rem;
}

@media (min-width: 768px) {
  .tne-band-inner {
    max-width: 62rem;
    padding: 3rem;
  }
}

.tne-band-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.tne-band-text {
  margin-top: 1rem;
  max-width: 52rem;
  font-size: 1rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

/* ── the enquiry section, skinned as a console ─────────────────────────── */

/* The form markup is shared with /partnerships — one implementation, one
   endpoint, one set of validation and rate limiting — so only its surfaces
   change here, and they are scoped to this page's body class rather than to any
   class name in the shared builder. */
body.page-enterprise .tns-contact-list {
  margin-top: 2rem;
  gap: 0;
  border-top: 1px solid hsl(var(--border) / 0.7);
}

body.page-enterprise .tns-contact-list li {
  border-bottom: 1px solid hsl(var(--border) / 0.55);
  padding: 0.875rem 0;
}

body.page-enterprise .tns-form {
  border-top: 2px solid hsl(var(--primary) / 0.7);
  background: linear-gradient(180deg, hsl(var(--card) / 0.85), hsl(var(--card) / 0.45));
  box-shadow: 0 34px 80px -60px hsl(var(--primary) / 0.9);
}

body.page-enterprise .tns-field input,
body.page-enterprise .tns-field select,
body.page-enterprise .tns-field textarea {
  background: hsl(var(--background) / 0.85);
}

/* ── print ─────────────────────────────────────────────────────────────── */

/* Nothing here is printed as a document — the PDF is generated from the
   capability statement — but the page should still not waste ink on decoration
   or leave a scan line across the paper. */
@media print {
  .tne-hero-grid,
  .tne-hero-noise,
  .tne-hero-glow,
  .tne-lattice,
  .tne-radar,
  .tne-panel-figure,
  .tne-band-glow {
    display: none !important;
  }

  .tne-panel,
  .tne-tile,
  .tne-band,
  .tne-screen {
    break-inside: avoid;
  }
}

/* ── reduced motion ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  /* The scan and its trail are parked off-plot without the animation that
     moves them, so they are removed rather than left sitting over the labels. */
  .tne-sch-head,
  .tne-sch-trail {
    display: none;
  }

  .tne-sch-node {
    animation: none;
    opacity: 0.55;
  }

  /* The scope keeps its wedge, which is a legible static picture, but stops
     turning and stops blinking. */
  .tne-radar-sweep {
    animation: none;
    opacity: 0.55;
  }

  .tne-radar-contact,
  .tne-di-point,
  .tne-di-hub {
    animation: none;
    opacity: 0.9;
  }

  .tne-readout-item {
    animation: none;
  }

  .tne-panel,
  .tne-panel:hover,
  .tne-card-frame,
  .tne-card-frame::after,
  .tne-card-frame img,
  .tne-card:hover .tne-card-frame img,
  .tne-screen-view img,
  .tne-feature:hover .tne-screen-view img,
  .tne-card-foot svg,
  .tne-card:hover .tne-card-foot svg {
    transform: none;
    transition: none;
  }
}
