/* ==========================================================================
   LinxPos - design system
   Industrial Telecom Ltd. Hand-rolled; no CSS framework.

   Shares the Industel design system: same navy ground (#052670), same type
   scale, same components. The accent is the one deliberate difference - amber
   rather than Industel's signal green - so LinxPos reads as its own product
   within the family. Keep the two stylesheets in step when either changes.
   ========================================================================== */

@import url("/fonts/fonts.css");

/* --------------------------------------------------------------- 1. tokens */

:root {
  /* brand ramp ---------------------------------------------------------- */
  --c-ink-950: #02050C;
  --c-ink-900: #050B1A;   /* page ground                                    */
  --c-ink-800: #081226;
  --c-ink-700: #0C1B3A;
  --c-navy:    #052670;   /* the inherited Industel navy                    */
  --c-navy-600:#0A3A9E;
  --c-blue:    #1E5BD6;
  --c-blue-400:#5B93F5;
  --c-signal:  #F5A524;   /* LinxPos accent - used sparingly, for emphasis  */
  --c-signal-700: #8A4B00;  /* AA-safe amber on paper */
  --c-paper:   #F4F6FB;
  --c-paper-2: #E7ECF7;
  --c-white:   #FFFFFF;

  /* surface theming - overridden per band ------------------------------- */
  --bg:        var(--c-ink-900);
  --fg:        #EEF3FF;
  --fg-muted:  rgba(216, 227, 250, 0.68);
  --fg-faint:  rgba(200, 214, 245, 0.62);   /* 0.46 failed AA at small sizes */
  --rule:      rgba(140, 170, 230, 0.16);
  --card-bg:   rgba(255, 255, 255, 0.032);
  --card-rule: rgba(150, 180, 240, 0.14);
  --accent:    var(--c-signal);
  --link:      var(--c-blue-400);

  /* type ---------------------------------------------------------------- */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --step--1: clamp(0.83rem, 0.80rem + 0.13vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.38vw, 1.42rem);
  --step-2:  clamp(1.44rem, 1.29rem + 0.72vw, 1.85rem);
  --step-3:  clamp(1.73rem, 1.48rem + 1.23vw, 2.41rem);
  --step-4:  clamp(2.07rem, 1.67rem + 2.00vw, 3.13rem);
  --step-5:  clamp(2.49rem, 1.84rem + 3.20vw, 4.07rem);
  --step-6:  clamp(2.99rem, 1.95rem + 5.10vw, 5.30rem);

  /* space & shape -------------------------------------------------------- */
  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --measure: 66ch;
  --wrap: 1240px;
  --wrap-narrow: 860px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --band-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);

  --shadow-soft: 0 1px 2px rgba(2, 6, 18, .28), 0 12px 32px -12px rgba(2, 6, 18, .5);
  --shadow-lift: 0 2px 4px rgba(2, 6, 18, .3), 0 28px 60px -20px rgba(2, 6, 18, .65);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: dark;
}

/* Light band theme - applied to a section, inherited by its contents. */
.surface-light {
  --bg:        var(--c-paper);
  --fg:        var(--c-ink-900);
  --fg-muted:  rgba(12, 27, 58, 0.72);
  --fg-faint:  rgba(12, 27, 58, 0.66);
  --rule:      rgba(5, 38, 112, 0.14);
  --card-bg:   rgba(255, 255, 255, 0.86);
  --card-rule: rgba(5, 38, 112, 0.12);
  --accent:    var(--c-signal-700);
  --link:      var(--c-navy-600);
}

.surface-navy {
  --bg:        var(--c-navy);
  --fg:        #F2F6FF;
  --fg-muted:  rgba(226, 236, 255, 0.76);
  --fg-faint:  rgba(226, 236, 255, 0.68);
  --rule:      rgba(255, 255, 255, 0.18);
  --card-bg:   rgba(255, 255, 255, 0.07);
  --card-rule: rgba(255, 255, 255, 0.16);
  --accent:    var(--c-signal);
  --link:      #BFD6FF;
}

/* ----------------------------------------------------------- 2. reset/base */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--fg);
  background: var(--c-ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, not hidden: hidden would make <body> a scroll container */
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-signal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-signal); color: var(--c-ink-950); }

hr { border: 0; border-top: 1px solid var(--rule); }

/* ------------------------------------------------------------ 3. typography */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.18; }
h4 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.012em; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 54ch;
  font-weight: 350;
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose p { color: var(--fg-muted); }

/* Small mono eyebrow used above headings throughout the site. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.text-muted { color: var(--fg-muted); }
.text-faint { color: var(--fg-faint); }

/* Gradient text used on a couple of key headlines only. */
.grad {
  background: linear-gradient(100deg, var(--c-white) 4%, #AFC8FF 42%, var(--c-signal) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- 4. layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.band {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--band-y);
}
.band--tight { padding-block: calc(var(--band-y) * .62); }
.band--flush-top { padding-top: 0; }

/* Hairlines between adjacent bands of the same colour. */
.band--ruled { border-top: 1px solid var(--rule); }
.band--ruled-b { border-bottom: 1px solid var(--rule); }

.band__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 1.5rem + 2.5vw, 4rem); }
.band__head h2 + .lead,
.cta-band h2 + .lead { margin-top: 1.1rem; }
.band__head--wide { max-width: 80ch; }

.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); grid-template-columns: minmax(0, 1fr); }

/* Explicit column counts rather than auto-fit: a 4-card row should read as
   2 x 2 on a wide screen, not reflow to 3 + 1 as the wrap width changes. */
@media (min-width: 52rem) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 42rem) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (min-width: 34rem) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--sticky > :first-child { position: sticky; top: 7rem; }
  .split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.flow > * + * { margin-top: 1.1em; }

/* Skip link - first focusable element on every page. */
.skip {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: .75rem 1.1rem;
  background: var(--c-signal);
  color: var(--c-ink-950);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top .18s var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- 5. header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(5, 11, 26, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(140, 170, 230, 0.16);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
  transition: min-height .35s var(--ease);
}
.site-header.is-stuck .site-header__inner { min-height: 4rem; }

/* wordmark ------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff;
  flex: none;
}
/* The supplied logo is a square disc, and it carries its own lettering, so it
   sits a little larger than a bare glyph would to keep that legible. */
.brand__mark {
  width: 3rem;
  height: 3rem;
  flex: none;
  transition: transform .4s var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.06); }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1;
}

/* primary nav ---------------------------------------------------------- */
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: .55rem .85rem;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 450;
  color: rgba(226, 236, 255, .8);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--c-signal);
}

.nav__cta { margin-left: .6rem; display: flex; gap: .5rem; }

/* mobile ---------------------------------------------------------------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 1.1rem; height: .7rem; }
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle__bars span:nth-child(3) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(.34rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-.34rem) rotate(-45deg); }

@media (max-width: 60rem) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 4.75rem 0 auto 0;
    margin: 0;
    background: rgba(5, 11, 26, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter) 2rem;
    display: grid;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.75rem);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 1rem .25rem;
    font-size: 1.15rem;
    font-family: var(--font-display);
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--c-signal); }
  .nav__cta { margin: 1.35rem 0 0; flex-direction: column; }
  .btn--nav { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------- 6. buttons */

.btn {
  --btn-bg: var(--c-blue);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s;
}
.btn::after {
  /* sheen that sweeps across on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.28) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(30, 91, 214, .65); color: var(--btn-fg); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: linear-gradient(120deg, var(--c-blue) 0%, var(--c-navy-600) 100%); }
.btn--accent  { --btn-bg: var(--c-signal); --btn-fg: var(--c-ink-950); }
.btn--accent:hover { box-shadow: 0 12px 28px -10px rgba(0, 212, 160, .6); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--rule);
}
.btn--ghost:hover { background: rgba(255,255,255,.07); box-shadow: none; }
.surface-light .btn--ghost:hover { background: rgba(5, 38, 112, .06); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.03rem; }
.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* Text link with an arrow that slides on hover. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 550;
  font-size: .97rem;
  text-decoration: none;
  color: var(--link);
}
.arrow-link svg { transition: transform .25s var(--ease); flex: none; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ 7. hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(94svh, 58rem);
  display: grid;
  align-items: center;
  padding-top: 9rem;
  padding-bottom: clamp(4rem, 2rem + 6vw, 7rem);
  overflow: hidden;
  background: var(--c-ink-900);
}

/* layered background: aurora blobs + hex lattice + vignette --------------- */
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}
.hero__aurora--1 {
  width: 46rem; height: 46rem;
  top: -16rem; right: -12rem;
  background: radial-gradient(circle at 40% 40%, rgba(30, 91, 214, .95), transparent 62%);
  animation: drift-a 26s var(--ease-io) infinite alternate;
}
.hero__aurora--2 {
  width: 38rem; height: 38rem;
  bottom: -14rem; left: -10rem;
  background: radial-gradient(circle at 60% 50%, rgba(0, 212, 160, .55), transparent 64%);
  animation: drift-b 32s var(--ease-io) infinite alternate;
}
.hero__aurora--3 {
  width: 30rem; height: 30rem;
  top: 30%; left: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(5, 38, 112, .9), transparent 66%);
  animation: drift-c 22s var(--ease-io) infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(-5rem, 4rem, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(5rem, -3.5rem, 0) scale(1.09); } }
@keyframes drift-c { to { transform: translate3d(-3rem, -5rem, 0) scale(.9); } }

/* Hexagonal lattice - the motif that ties back to the Hex product line. */
.hex-lattice {
  position: absolute;
  inset: -2px;
  z-index: -1;
  background-image: url("/img/hex-lattice.svg");
  background-size: 68px 118px;
  opacity: .5;
  mask-image: radial-gradient(ellipse 120% 78% at 50% 34%, #000 18%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 120% 78% at 50% 34%, #000 18%, transparent 74%);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,11,26,.62) 0%, transparent 28%, transparent 62%, var(--c-ink-900) 100%);
}

.hero__inner { position: relative; z-index: 1; max-width: 62rem; margin-inline: 0; }

.hero h1 { margin-bottom: 1.6rem; }

/* verb rotator ----------------------------------------------------------- */
.rotator {
  position: relative;
  display: inline-grid;
  vertical-align: bottom;
  text-align: left;
  /* --rot-w is set by site.js to the active verb's width, so the line breathes
     rather than sitting in a gap as wide as the longest word. */
  width: var(--rot-w, auto);
  transition: width .5s var(--ease);
}
.rotator__item {
  grid-area: 1 / 1;
  justify-self: start;
  background: linear-gradient(96deg, var(--c-blue-400) 8%, var(--c-signal) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.42em) rotateX(-55deg);
  transform-origin: 50% 0;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  white-space: nowrap;
}
.rotator__item.is-in  { opacity: 1; transform: none; }
.rotator__item.is-out { opacity: 0; transform: translateY(-0.42em) rotateX(55deg); }
/* No-JS fallback: the sizer holds the cell open at the longest verb. */
.rotator__sizer { grid-area: 1 / 1; justify-self: start; visibility: hidden; pointer-events: none; }
.js-rotator .rotator__sizer { display: none; }

.hero__lead { margin-bottom: 2.4rem; max-width: 46rem; font-size: var(--step-1); }

.hero__actions { margin-bottom: 3.5rem; }

/* quick facts strip ------------------------------------------------------ */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.fact { display: grid; gap: .3rem; }
.fact__k {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.fact__v { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; color: var(--fg); }

/* scroll cue ------------------------------------------------------------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-decoration: none;
  z-index: 2;
}
.scroll-cue__line {
  width: 1px; height: 2.6rem;
  background: linear-gradient(var(--c-signal), transparent);
  animation: cue 2.4s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(2.6rem); opacity: 0; }
}
@media (max-width: 48rem) { .scroll-cue { display: none; } }

/* ------------------------------------------------------------------ 8. cards */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  background: var(--card-bg);
  border: 1px solid var(--card-rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card--link { text-decoration: none; color: inherit; }
.card:hover { border-color: rgba(120, 165, 250, .4); }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: inherit; }

/* Pointer-tracked spotlight. --mx/--my are set in site.js. */
.card--spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%),
              rgba(30, 91, 214, .22), transparent 62%);
  transition: opacity .35s var(--ease);
}
.card--spot:hover::before { opacity: 1; }
.surface-light .card--spot::before {
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%),
              rgba(30, 91, 214, .13), transparent 62%);
}

.card__title { font-size: var(--step-1); }
.card__body { color: var(--fg-muted); font-size: .97rem; }
.card__foot { margin-top: auto; padding-top: .5rem; }

/* icon tile ------------------------------------------------------------- */
.icon-tile {
  display: grid;
  place-items: center;
  width: 3rem; height: 3.35rem;
  flex: none;
  color: var(--c-signal);
  margin-bottom: .35rem;
}
.icon-tile svg { width: 100%; height: 100%; }
.icon-tile .hex-plate { fill: rgba(0, 212, 160, .1); stroke: rgba(0, 212, 160, .38); }
.surface-light .icon-tile .hex-plate { fill: rgba(6, 165, 126, .09); stroke: rgba(6, 165, 126, .4); }
.card:hover .icon-tile .hex-plate { fill: rgba(0, 212, 160, .18); }

/* Every glyph in the set is drawn as open strokes and inherits its colour from
   context. This must stay unscoped - the same glyphs appear inside icon tiles,
   in buttons, in links and in the contact list. */
.glyph {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyph-wrap { flex: none; vertical-align: middle; }

/* numbered service card -------------------------------------------------- */
.svc-card { --stack-gap: .8rem; }
.svc-card__index {
  position: absolute;
  top: 1.15rem; right: 1.4rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--fg-faint);
}
.svc-card__eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* tick list -------------------------------------------------------------- */
.ticks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ticks li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--fg-muted);
  font-size: .97rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .75rem; height: .42rem;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------- 9. lifecycle track */

/* The signature graphic: one continuous line from architecture to operations. */
.lifecycle { position: relative; margin-top: 1rem; }
/* left/right/top are set by site.js to span first dot centre -> last dot centre. */
.lifecycle__rail {
  position: absolute;
  left: 1.45rem; right: 1.45rem; top: 1.45rem;
  height: 2px;
  background: var(--rule);
  overflow: hidden;
}
.lifecycle__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--c-blue), var(--c-signal));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 1.6s var(--ease);
}
.lifecycle__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 46rem) { .lifecycle__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .lifecycle__steps { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* align-content:start matters: the steps stretch to a common height, and the
   default (stretch) would spread the slack across the rows, pushing the
   shorter steps' labels out of line with their neighbours. */
.lifecycle__step { display: grid; gap: .7rem; justify-items: start; align-content: start; }
.lifecycle__dot {
  position: relative;
  width: 2.9rem; height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  /* opaque, so the rail passes behind the dot rather than through the numeral */
  background: var(--bg);
  border: 1px solid var(--card-rule);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.lifecycle__step.is-on .lifecycle__dot {
  border-color: var(--c-signal);
  /* tint layered over an opaque base - a bare translucent fill lets the rail show through */
  background:
    linear-gradient(140deg, rgba(0, 212, 160, .18), rgba(30, 91, 214, .14)),
    var(--bg);
  transform: scale(1.06);
}
.lifecycle__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.lifecycle__desc { color: var(--fg-muted); font-size: .9rem; line-height: 1.5; }

/* ------------------------------------------------------------- 10. marquee */

.marquee {
  --gap: 2.75rem;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  padding-block: 1.1rem;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--gap);
  padding-right: var(--gap);
  flex: none;
  min-width: 100%;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .86rem;
  letter-spacing: .04em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.marquee__item::before {
  content: "";
  width: .4rem; height: .45rem;
  background: var(--accent);
  opacity: .7;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* --------------------------------------------------------- 11. group cards */

.venture {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.15rem);
  border: 1px solid var(--card-rule);
  border-radius: var(--r-lg);
  background: var(--card-bg);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.venture:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.venture::after {
  /* accent wash, tinted per venture via --vent */
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 22rem; height: 22rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--vent, rgba(30,91,214,.3)), transparent 66%);
  opacity: .5;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.venture:hover::after { opacity: .85; transform: scale(1.12); }

.venture[data-accent="insurance"] { --vent: rgba(30, 91, 214, .42); }
.venture[data-accent="hex"]       { --vent: rgba(0, 212, 160, .38); }
.venture[data-accent="sensors"]   { --vent: rgba(91, 147, 245, .38); }
.venture[data-accent="retail"]    { --vent: rgba(155, 120, 255, .34); }

.venture__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.venture__name { font-size: var(--step-2); }
.venture__sector {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .45rem;
  display: block;
}
.venture__tagline { font-family: var(--font-display); font-size: 1.06rem; color: var(--fg); }
.venture__desc { color: var(--fg-muted); font-size: .96rem; }
.venture__tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; }
.venture__tags li {
  font-size: .78rem;
  padding: .3rem .7rem;
  border: 1px solid var(--card-rule);
  border-radius: 100px;
  color: var(--fg-muted);
}
.venture__foot { margin-top: auto; padding-top: .6rem; }

.pill {
  flex: none;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .32rem .7rem;
  border-radius: 100px;
  border: 1px solid currentColor;
}
.pill--live { color: var(--c-signal); }
.pill--soon { color: var(--fg-faint); }

/* ------------------------------------------------------------- 12. accordion */

.accordion { border-top: 1px solid var(--rule); }
.accordion__item { border-bottom: 1px solid var(--rule); }
.accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  transition: color .2s;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary:hover { color: var(--accent); }
.accordion__sign {
  position: relative;
  flex: none;
  width: 1.15rem; height: 1.15rem;
}
.accordion__sign::before,
.accordion__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.6px;
  background: var(--accent);
  transition: transform .3s var(--ease);
}
.accordion__sign::after { transform: rotate(90deg); }
.accordion__item[open] .accordion__sign::after { transform: rotate(0); }
.accordion__body { padding-bottom: 1.5rem; color: var(--fg-muted); max-width: var(--measure); }

/* ------------------------------------------------------------------ 13. form */

.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field label { font-size: .88rem; font-weight: 550; letter-spacing: .01em; }
.field .hint { font-size: .82rem; color: var(--fg-faint); }

.input, .textarea, .select {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-rule);
  border-radius: var(--r-md);
  color: var(--fg);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.surface-light .input,
.surface-light .textarea,
.surface-light .select { background: #fff; }
.input::placeholder, .textarea::placeholder { color: var(--fg-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--c-signal);
  box-shadow: 0 0 0 3px rgba(0, 212, 160, .16);
}
.textarea { min-height: 9rem; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237E9BD0' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.field-error { color: #FF8A8A; font-size: .84rem; }
.surface-light .field-error { color: #C22C2C; }
.input.input-validation-error,
.textarea.input-validation-error { border-color: #FF8A8A; }

.alert {
  padding: 1.1rem 1.35rem;
  border-radius: var(--r-md);
  border: 1px solid;
  margin-bottom: 1.5rem;
}
.alert--ok { border-color: rgba(0,212,160,.45); background: rgba(0,212,160,.1); }
.alert--bad { border-color: rgba(255,138,138,.45); background: rgba(255,138,138,.1); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------------------------------------- 14. contact aside */

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.contact-line:first-child { border-top: 1px solid var(--rule); }
.contact-line__icon { flex: none; color: var(--accent); width: 1.4rem; margin-top: .2rem; }
.contact-line__k {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: block;
  margin-bottom: .2rem;
}
.contact-line__v { font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; }
a.contact-line:hover .contact-line__v { color: var(--accent); }

/* ---------------------------------------------------------------- 15. footer */

.site-footer {
  background: var(--c-ink-950);
  border-top: 1px solid rgba(140, 170, 230, .14);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 2.75rem;
}
.footer__brand { max-width: 26rem; }
@media (min-width: 40rem) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 66rem) {
  /* brand, then the four link columns, all on one row */
  .footer__grid { grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: auto; }
}
.footer__h {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(200, 214, 245, .62);
  margin-bottom: 1rem;
}
.footer__list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer__list a { color: rgba(216,227,250,.76); text-decoration: none; }
.footer__list a:hover { color: var(--c-signal); }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.75rem;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(140,170,230,.13);
  color: rgba(200, 214, 245, .64);
  font-size: .85rem;
}
.footer__bar a { color: inherit; text-decoration: none; }
.footer__bar a:hover { color: var(--c-signal); }
.footer__legal-links { display: flex; gap: 1.25rem; margin-left: auto; }
@media (max-width: 40rem) { .footer__legal-links { margin-left: 0; } }

/* --------------------------------------------------------------- 16. photo */

.figure { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--card-rule); }
.figure img { width: 100%; object-fit: cover; }
.figure figcaption {
  padding: .8rem 1.1rem;
  font-size: .8rem;
  color: var(--fg-faint);
  background: var(--card-bg);
}
.figure figcaption a { color: inherit; }

/* ------------------------------------------------------------- 17. page head */

.page-head {
  position: relative;
  isolation: isolate;
  padding-top: 10.5rem;
  padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
  background: var(--c-ink-900);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 46rem;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 55% at 22% 40%, rgba(30, 91, 214, .5), transparent 65%),
    radial-gradient(ellipse 50% 50% at 82% 30%, rgba(0, 212, 160, .22), transparent 66%);
  filter: blur(30px);
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/img/hex-lattice.svg");
  background-size: 68px 118px;
  opacity: .34;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
}
.page-head__inner { max-width: 54rem; }
.page-head h1 { font-size: var(--step-5); margin-bottom: 1.25rem; }

/* breadcrumb ------------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--fg-faint);
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--c-signal); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* --------------------------------------------------------------- 18. cta band */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-ink-800) 62%, var(--c-ink-900) 100%);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 40rem; height: 40rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,160,.3), transparent 62%);
  filter: blur(40px);
}
.cta-band__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 58rem) {
  .cta-band__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
  .cta-band__actions { justify-self: end; }
}
.cta-band h2 { font-size: var(--step-4); margin-bottom: .9rem; }

/* ----------------------------------------------------- 19. reveal + motion */

/* Scoped to .js (set by an inline script in <head>) so that with scripting
   disabled the content is never hidden in the first place - nothing here
   depends on JavaScript to become readable. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.35rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .rotator__item { transition: none; }
  .marquee__track { animation: none; }
  .lifecycle__rail::after { transform: scaleX(1); }
}

/* ------------------------------------------------------------- 20. utilities */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.center .eyebrow, .center .lead { margin-inline: auto; }
.center .eyebrow::before { display: none; }

@media print {
  .site-header, .site-footer, .scroll-cue, .cta-band, .hero__bg, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .band { padding-block: 1rem; }
}
