/* ============================================================
   theme.css - NistantriTech sober theme
   Loaded after styles.css. Flat surfaces, one accent, quiet motion.
   ============================================================ */
/* ---- Design tokens ---- */
:root {
  --ink: #0f1b2d;
  --ink-2: #26344a;

  --bg-primary: #ffffff;
  --bg-secondary: #f6f7f9;
  --bg-tertiary: #eef1f5;
  --bg-dark: #0f1b2d;
  --bg-card: #ffffff;

  --accent: #0b5fd9;
  --accent-hover: #094fb5;
  --accent-light: #eaf2fd;
  --accent-dim: #f3f7fe;
  --accent-violet: var(--accent);
  --bg-glass: var(--bg-secondary);
  --bg-glass-hover: var(--bg-tertiary);
  --border-glow: var(--border-strong);

  --text-primary: #0f1b2d;
  --text-secondary: #46536a;
  --text-muted: #6b7587;
  --text-light: #9aa3b2;

  --border: #e3e7ed;
  --border-light: #eef1f5;
  --border-strong: #cfd6e0;

  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.05);
  --shadow-md: 0 4px 14px -4px rgba(15, 27, 45, 0.10);
  --shadow-lg: 0 12px 32px -12px rgba(15, 27, 45, 0.16);
  --shadow-xl: 0 20px 48px -16px rgba(15, 27, 45, 0.20);
  --shadow-accent: var(--shadow-md);

  /* Gradients retired: keep names so old rules resolve to flat colour */
  --gradient-primary: linear-gradient(var(--accent), var(--accent));
  --gradient-accent: linear-gradient(var(--accent), var(--accent));
  --gradient-hero: none;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 600ms;

  --header-h: 72px;
  --site-header-anchor-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
  --site-main-min-height: calc(100dvh - var(--header-h));
}

/* ---- Base ---- */
html {
  scroll-padding-top: var(--site-header-anchor-offset);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

::selection {
  background: #cfe0fb;
  color: var(--ink);
}

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

a {
  color: var(--accent);
}

/* Retired effects from the previous theme */
.iot-spotlight-orb {
  display: none !important;
}

main {
  min-height: var(--site-main-min-height);
}

.container {
  max-width: 1200px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 600px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ---- Eyebrow / section heads ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: left;
  margin: 0 0 1rem;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text-primary);
}

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-head p:not(.eyebrow) {
  color: var(--text-secondary);
  font-size: 1.075rem;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }
}

section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

/* ---- Header ---- */
header {
  padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s var(--ease);
}

header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(15, 27, 45, 0.04);
}

.logo:hover {
  transform: none;
}

.logo img {
  height: 44px;
}

nav ul {
  gap: 1.85rem;
}

nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.925rem;
}

nav a::after,
.nav-dropdown>a::before {
  bottom: -6px;
  height: 1.5px;
  background: var(--accent);
}

nav a:hover,
nav a.active,
.nav-dropdown:hover>a,
.nav-dropdown>a.active {
  color: var(--text-primary);
}

nav a.active {
  font-weight: 500;
}

.dropdown-menu {
  top: calc(100% + 0.9rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 0.4rem;
  transform: translateY(-4px);
}

.nav-dropdown:hover .dropdown-menu {
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  transform: none;
}

.dropdown-menu a.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
}

.nav-cta-header {
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.nav-cta-header:hover {
  background: var(--accent);
  transform: none;
  box-shadow: none;
}

@media (max-width: 1000px) {
  .main-nav {
    box-shadow: var(--shadow-xl);
  }

  .main-nav a {
    font-size: 1rem;
  }

  .nav-dropdown .dropdown-menu {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
  }

  body.nav-open::before {
    background: rgba(15, 27, 45, 0.35);
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.35rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.975rem;
  line-height: 1.2;
  box-shadow: none;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.btn .bi-arrow-right {
  transition: transform 0.25s var(--ease);
}

.btn:hover .bi-arrow-right {
  transform: translateX(3px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ============================================================
   HOME
   ============================================================ */
.home-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.home-hero-title {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1.25rem;
}

.home-hero-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 2rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.home-hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding: 1.25rem 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.home-hero-facts strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Showcase: edge-to-cloud diagram with service tabs.
   Nodes are positioned in % of a 4:3 frame; .dg-links uses the matching 400x300 viewBox. */
.showcase-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
  background-image: radial-gradient(circle, #d9dee6 1px, transparent 1.2px);
  background-size: 18px 18px;
  container-type: inline-size;
}

.diagram {
  position: absolute;
  inset: 0;
  --dg-dim: 0.28;
}

.dg-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dg-links path {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3 4;
  transition: stroke 0.4s ease, opacity 0.4s ease;
}

.dg-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0 0.6em;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.05);
  font-size: clamp(9px, 2.55cqw, 13px);
  line-height: 1.25;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--ease);
}

.dg-node i {
  color: var(--accent);
  font-size: 1.1em;
  flex-shrink: 0;
}

.dg-value {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.dg-stack {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3em;
  padding: 0.5em 0.7em;
}

.dg-head {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
}

.dg-sub {
  font-size: 0.85em;
  color: var(--text-muted);
}

.dg-tag {
  font-family: var(--font-mono);
  font-size: 0.75em;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
}

.dg-platform {
  justify-content: flex-start;
  gap: 0.45em;
  padding-top: 0.8em;
  border-color: var(--border-strong);
}

.dg-platform .dg-head {
  margin-bottom: 0.25em;
}

.dg-row {
  width: 100%;
  font-size: 0.85em;
  color: var(--text-secondary);
  padding: 0.3em 0.5em;
  border-radius: 4px;
  background: var(--bg-secondary);
}

.dg-spark {
  width: 100%;
  height: 1.6em;
}

.dg-spark polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.dg-zone {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(8px, 2cqw, 11px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Focus state: the active tab's part of the system stays, the rest steps back */
.diagram[data-active="ai"] :is(.dg-node, .dg-links path):not([data-parts~="ai"]),
.diagram[data-active="thingsboard"] :is(.dg-node, .dg-links path):not([data-parts~="thingsboard"]),
.diagram[data-active="mobile"] :is(.dg-node, .dg-links path):not([data-parts~="mobile"]),
.diagram[data-active="firmware"] :is(.dg-node, .dg-links path):not([data-parts~="firmware"]) {
  opacity: var(--dg-dim);
}

.diagram[data-active="ai"] .dg-node[data-parts~="ai"],
.diagram[data-active="thingsboard"] .dg-node[data-parts~="thingsboard"],
.diagram[data-active="mobile"] .dg-node[data-parts~="mobile"],
.diagram[data-active="firmware"] .dg-node[data-parts~="firmware"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 95, 217, 0.08);
}

.diagram[data-active="iot"] .dg-links path,
.diagram[data-active="ai"] .dg-links path[data-parts~="ai"],
.diagram[data-active="thingsboard"] .dg-links path[data-parts~="thingsboard"],
.diagram[data-active="mobile"] .dg-links path[data-parts~="mobile"],
.diagram[data-active="firmware"] .dg-links path[data-parts~="firmware"] {
  stroke: var(--accent);
  animation: dg-flow 1.4s linear infinite;
}

@keyframes dg-flow {
  to {
    stroke-dashoffset: -14;
  }
}

.dg-value.is-updating {
  color: var(--accent);
  transition: color 0.2s ease;
}

.showcase-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  min-height: 2.5rem;
}

.showcase-caption-text {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--text-secondary);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.showcase-caption-text.is-swapping {
  opacity: 0;
  transform: translateY(4px);
}

.showcase-caption-link {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.showcase-caption-link i {
  transition: transform 0.25s var(--ease);
}

.showcase-caption-link:hover i {
  transform: translateX(3px);
}

@media (max-width: 420px) {
  .dg-value,
  .dg-sub,
  .dg-tag,
  .dg-platform .dg-head i {
    display: none;
  }
}

.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: 0.85rem;
}

.showcase-tab {
  position: relative;
  appearance: none;
  background: none;
  border: 0;
  padding: 0.75rem 0.25rem 0.5rem;
  font: 500 0.82rem/1.25 var(--font-sans);
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.showcase-tab::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--border);
}

.showcase-tab-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.showcase-tab:hover {
  color: var(--text-primary);
}

.showcase-tab.is-active {
  color: var(--text-primary);
}

.showcase-tab.is-active .showcase-tab-progress {
  transform: scaleX(1);
  transition: transform var(--showcase-interval, 6500ms) linear;
}

.showcase.is-paused .showcase-tab.is-active .showcase-tab-progress,
.showcase.is-static .showcase-tab.is-active .showcase-tab-progress {
  transition: none;
  transform: scaleX(1);
}

@media (max-width: 960px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-lead {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .showcase-tabs {
    grid-template-columns: repeat(5, auto);
    overflow-x: auto;
    gap: 0.25rem 1rem;
    scrollbar-width: none;
  }

  .showcase-tab {
    white-space: nowrap;
  }

  .showcase-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Services ---- */
.services {
  background: var(--bg-primary);
  box-shadow: none;
}

.services-overview {
  max-width: none;
  margin: 0;
  text-align: left;
}

.services-overview p {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.services-overview a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.35s var(--ease);
}

.service-card::before {
  height: 2px;
  background: var(--accent);
  transform-origin: left;
}

.service-card-link:hover .service-card,
.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card-link:hover .service-card::before {
  transform: scaleX(1);
}

.service-card-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-light);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  border: 0;
  color: var(--accent);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: none;
}

.service-card-icon::before {
  display: none;
}

.service-card:hover .service-card-icon {
  transform: none;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.service-card-link-text {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card-link-text i {
  transition: transform 0.25s var(--ease);
}

.service-card-link:hover .service-card-link-text i {
  transform: translateX(3px);
}

/* ---- Engagement models ---- */
.engagement-models {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.engagement-intro {
  text-align: left;
  max-width: none;
  margin: 0;
}

.engagement-grid {
  gap: 1rem;
}

.engagement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.engagement-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: none;
}

.engagement-card::before {
  display: none;
}

.engagement-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.engagement-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.engagement-best-for {
  font-size: 0.925rem;
  color: var(--text-secondary);
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-light);
}

.engagement-list li {
  font-size: 0.935rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.engagement-list li::before {
  content: '';
  top: 0.78em;
  width: 10px;
  height: 1.5px;
  background: var(--accent);
}

.engagement-includes {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- About ---- */
.about {
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-content {
  max-width: none;
  margin: 0;
  text-align: left;
}

.about-content p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: left;
}

.about-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.core-team {
  margin-top: 0;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.core-team-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  margin: 0 0 1rem;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: none;
  margin: 0;
}

.team-member {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.1rem;
  text-align: left;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: none;
  height: auto;
  transition: border-color 0.25s ease;
}

.team-member:hover {
  border-color: var(--border-strong);
  transform: none;
  box-shadow: none;
}

.team-photo {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.team-member:hover .team-photo img {
  filter: none;
}

.team-info {
  padding: 0;
  text-align: left;
  align-items: flex-start;
  height: auto;
}

.team-name {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.1rem;
}

.team-designation {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 0.3rem;
}

.team-expertise {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.team-linkedin {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.team-linkedin:hover {
  color: var(--accent);
  background: none;
  transform: none;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .core-team {
    position: static;
  }
}

/* ---- Contact ---- */
.contact {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.contact-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.contact-header .section-title {
  text-align: left;
}

.contact-intro {
  text-align: left;
  margin: 0;
  max-width: 620px;
}

.contact-inner {
  gap: 1.25rem;
}

.contact-form-wrap,
.contact .contact-form-wrap form.nt-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.contact .contact-form-wrap form.nt-form {
  border: 0;
}

.nt-form-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.contact-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 0.5rem 1.5rem;
}

.contact-detail-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.contact-detail-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 0;
}

.contact-detail-row>i {
  font-size: 1.05rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.contact-detail-card h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-detail-card a {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-detail-card a:hover {
  color: var(--accent);
}

.contact-detail-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
}

.contact-map-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: none;
  overflow: hidden;
}

.contact-map-wrap iframe {
  filter: grayscale(0.85) contrast(1.02);
  transition: filter 0.4s ease;
}

.contact-map-wrap:hover iframe {
  filter: none;
}

/* ---- Forms ---- */
.form-input,
.form-textarea,
.iti__tel-input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  box-shadow: none;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:hover,
.form-textarea:hover {
  border-color: var(--text-light);
}

.form-input:focus,
.form-textarea:focus,
.iti__tel-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 95, 217, 0.12);
  outline: none;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-submit-btn {
  border-radius: var(--radius-sm);
}

/* ============================================================
   CTA band + footer (shared)
   ============================================================ */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band .eyebrow {
  color: #8db4f5;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  max-width: 22ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-band .btn {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.cta-band .btn:hover {
  background: #e8eef7;
  border-color: #e8eef7;
  color: var(--ink);
}

.cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

footer.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 0;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.75rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  max-width: 34ch;
  margin: 0 0 1rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-social:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.4rem 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-col li,
.footer-col a {
  font-size: 0.925rem;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.5;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--border-light);
}

footer.site-footer .footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-tagline {
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-head {
  padding: 0 0 2.5rem;
  margin: 0 0 3rem;
  border-bottom: 1px solid var(--border);
  max-width: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--text-light);
}

.page-head-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.page-head-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

.page-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0;
}

/* Inner page section spacing (fixed header clearance) */
section.services-content,
.services-content:has(.main-service) {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

section.services-content+section.services-content {
  padding-top: 2rem;
}

/* Service banners */
.service-banner {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  margin-bottom: 1.25rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-banner:hover {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.service-banner-visual {
  background: #071027;
}

.service-banner-image {
  transition: transform 1.2s var(--ease);
}

.service-banner:hover .service-banner-image {
  transform: scale(1.03);
}

.service-banner-content {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.service-banner-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-banner-description,
.service-banner-note {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.7;
}

.chipset-card,
.integration-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.chipset-card:hover,
.integration-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-strong);
}

.chipset-card h5,
.integration-card h5 {
  color: var(--text-primary);
  font-weight: 600;
}

.protocol-badge {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  box-shadow: none;
}

.protocol-badge:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  transform: none;
}

.firmware-feature,
.usecase-examples li,
.service-banner-content .usecase-examples li {
  color: var(--text-secondary);
}

.firmware-feature::before {
  color: var(--accent);
}

.usecase-category {
  margin-bottom: 3.5rem;
}

.usecase-category-title {
  font-size: 1.35rem;
  font-weight: 600;
  text-align: left;
  padding-bottom: 0.9rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.usecase-category-title::after {
  display: none;
}

.usecase-blocks {
  gap: 1rem;
}

.usecase-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.usecase-block:hover {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.usecase-block h4 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
}

.usecase-block p {
  font-size: 0.935rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ---- Career ---- */
section.services-content:has(.career-content) .container {
  max-width: 1200px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.career-list-item,
.job-card:not(.career-list-detail),
.career-empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.career-list-title {
  font-weight: 600;
  color: var(--text-primary);
}

.career-list-count,
.job-description,
.job-requirements li {
  color: var(--text-secondary);
}

.job-requirements h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.job-requirements li::before {
  background: var(--accent);
  color: var(--accent);
}

/* ============================================================
   Popups and session banners: flatten colour
   ============================================================ */
.iot-popup-card,
.iot-spotlight {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xl) !important;
  color: var(--text-primary);
}

.iot-spotlight {
  box-shadow: none !important;
}

.iot-spotlight-bg,
.iot-spotlight-grid {
  display: none !important;
}

.iot-popup-title,
.iot-spotlight-title {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.iot-popup-primary,
.iot-spotlight-btn,
.iot-banner-submit {
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
  font-weight: 500;
}

.iot-popup-primary:hover,
.iot-spotlight-btn:hover,
.iot-banner-submit:hover {
  background: var(--accent-hover) !important;
  transform: none !important;
}

.iot-spotlight-icon,
.iot-spotlight-icon-ring,
.iot-spt-card-icon {
  background: var(--accent-light) !important;
  color: var(--accent) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}

.iot-spt-card {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
}

.iot-spt-card:hover {
  transform: none !important;
  border-color: var(--border-strong) !important;
}

.iot-spt-card-title {
  color: var(--text-primary) !important;
}

.iot-spt-card-desc,
.iot-spotlight-subtitle,
.iot-popup-subtitle,
.iot-popup-description {
  color: var(--text-secondary) !important;
}

.iot-spt-badge {
  background: #fff !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--ink-2) !important;
  box-shadow: none !important;
}

.iot-spotlight-register-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.iot-spt-card-tags li {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0;
}

/* "Free career boost sessions below" nudge: quiet, no pulsing */
.sessions-nudge-label {
  color: var(--text-muted);
  text-shadow: none;
  animation: none;
  font-family: var(--font-mono);
  font-weight: 500;
}

.sessions-nudge-arrow {
  color: var(--text-light);
  opacity: 1;
  animation: none;
}

.sessions-scroll-nudge:hover {
  transform: none;
}

.iot-popup-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 999px;
}

.iot-popup-schedule {
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-weight: 500;
  box-shadow: none;
}

.iot-popup-schedule:hover,
.iot-popup-schedule:focus-visible {
  background: var(--accent-light);
  color: var(--accent);
  transform: none;
  box-shadow: none;
}

.iot-popup-secondary {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 500;
}

.iot-popup-secondary:hover,
.iot-popup-secondary:focus-visible {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
}

.iot-popup-form .form-label {
  color: var(--text-primary);
}

.iot-popup-or {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.iot-popup-overlay {
  background: rgba(15, 27, 45, 0.45) !important;
  backdrop-filter: blur(3px);
}

/* ============================================================
   Motion: quiet reveal on scroll
   ============================================================ */
.js-loaded [data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-loaded [data-animate="fade-in"] {
  transform: none;
}

.js-loaded [data-animate="stagger"] {
  opacity: 1;
  transform: none;
}

.js-loaded [data-animate="stagger"]>* {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js-loaded [data-animate].animate-in,
.js-loaded [data-animate="stagger"].animate-in>* {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-loaded [data-animate],
  .js-loaded [data-animate="stagger"]>* {
    opacity: 1;
    transform: none;
  }
}
