:root {
  --bg: #0c0f14;
  --bg-elevated: #141a24;
  --bg-card: #1a2230;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f6;
  --text-muted: #a8b2c1;
  --accent: #d4a054;
  --accent-dim: rgba(212, 160, 84, 0.15);
  --accent-hover: #e4b46a;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --radius: 12px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.narrow { max-width: 640px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.logo-semper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.brand-product-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
  background: #fff;
}

.page-semper {
  --accent: #5cc8f0;
  --accent-dim: rgba(92, 200, 240, 0.15);
  --accent-hover: #7ad4f5;
}

/* YardGauge by IndicVision lockup */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  line-height: 1;
}

.brand-by {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
}

.brand-parent {
  line-height: 0;
  display: flex;
  align-items: center;
}

.brand-parent-logo {
  height: 1rem;
  width: auto;
  display: block;
}

.eyebrow-sub {
  color: var(--text-muted);
  font-weight: 500;
}

.logo-company span { color: var(--accent); }

.logo-img {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo-img img,
.logo-header-wordmark {
  height: 1.5rem;
  width: auto;
  display: block;
}

.built-by-brand {
  line-height: 0;
  flex-shrink: 0;
}

.built-by-logo {
  height: 1rem;
  width: auto;
  display: block;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover { color: var(--accent-hover); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 3.5rem;
  overflow: hidden;
}

.hero-photo .hero-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 15, 20, 0.92) 0%,
    rgba(12, 15, 20, 0.78) 45%,
    rgba(12, 15, 20, 0.55) 100%
  );
}

.hero-photo .hero-content {
  position: relative;
  z-index: 1;
}

.hero-content { position: relative; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--accent);
  white-space: nowrap;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Founder trust strip */
.trust-strip {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}

.trust-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.trust-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.trust-name strong {
  color: var(--text);
}

.trust-name a {
  color: inherit;
  text-decoration: none;
}

.trust-name a:hover strong {
  color: var(--accent);
}

.trust-tagline {
  font-size: 1rem;
  color: var(--text);
}

.trust-creds {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.5;
}

.trust-creds-secondary {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.72;
}

/* Built-by band (YardGauge page) */
.built-by {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.built-by-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.built-by-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.built-by-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.55;
}

.built-by-text strong { color: var(--text); }

.built-by-text a {
  color: inherit;
  text-decoration: none;
}

.built-by-text a:hover strong {
  color: var(--accent);
}

.built-by-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.built-by-link:hover { color: var(--accent-hover); }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 520px;
}

.problem {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.problem p { color: var(--text-muted); margin-bottom: 1.5rem; }

.problem-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.problem-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.problem-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-header.compact {
  margin-bottom: 2rem;
}

.section-header.compact .section-lead {
  margin-top: 0.5rem;
}

/* Split layouts */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-section-reverse .split-media {
  order: 2;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.split-text .section-lead {
  margin-bottom: 1.25rem;
}

.about-bullets {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.about-bullets li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.about-closing {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* IndicVision company page */
.hero-company {
  min-height: 80vh;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.capability-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.capability-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.capability-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.capability-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.capability-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.fieldwork {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.imaging-gallery {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.fieldwork-item-video video {
  object-fit: contain;
  background: #000;
}

.fieldwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fieldwork-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.fieldwork-item img,
.fieldwork-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #000;
}

.fieldwork-item video {
  object-fit: contain;
}

.fieldwork-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fieldwork-item-wide {
  grid-column: span 2;
}

.fieldwork-item-wide img {
  aspect-ratio: 21 / 9;
}

.product-callout-section {
  padding-top: 0;
}

.product-callout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(212, 160, 84, 0.08) 100%);
  border: 1px solid rgba(212, 160, 84, 0.25);
  border-radius: var(--radius);
}

.product-callout-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-callout-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 46ch;
}

.product-callout-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-callout-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.products-section {
  padding-top: 4.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-card-semper {
  border-color: rgba(92, 200, 240, 0.28);
}

.product-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-card-body p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.hero-content-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.hero-mark {
  justify-self: end;
  width: min(100%, 280px);
}

.hero-mark img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.semper-steps {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  counter-reset: semper-step;
  max-width: 46rem;
}

.semper-steps li {
  counter-increment: semper-step;
  position: relative;
  padding: 1rem 1.15rem 1rem 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.semper-steps li::before {
  content: counter(semper-step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hub-card {
  display: block;
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.hub-card:hover {
  border-color: rgba(92, 200, 240, 0.4);
  transform: translateY(-2px);
}

.hub-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hub-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.page-semper .contact-item-primary {
  border-color: rgba(92, 200, 240, 0.35);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(92, 200, 240, 0.08) 100%);
}

.page-semper .contact-item:hover {
  border-color: rgba(92, 200, 240, 0.4);
}

.spotlight-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.spotlight-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.spotlight-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.spotlight-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.spotlight-body p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 50ch;
}

.spotlight-video {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.spotlight-video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.before-after {
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(212, 160, 84, 0.2);
  border-radius: var(--radius);
}

.before-after h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.before-after-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 1rem;
}

.before-after-card-highlight {
  border-color: rgba(212, 160, 84, 0.35);
}

.before-after-label {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.before-after-card p {
  padding: 0.85rem 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.before-after-card .demo-extra {
  display: inline-block;
  margin: 0.5rem 1rem 0;
}

.before-after-card .demo-media {
  aspect-ratio: 16 / 10;
}

.demo-grid-single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .products-grid,
  .hero-content-split {
    grid-template-columns: 1fr;
  }

  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-mark {
    justify-self: start;
    width: min(100%, 180px);
    order: -1;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .fieldwork-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fieldwork-item-wide {
    grid-column: span 2;
  }

  .product-callout {
    grid-template-columns: 1fr;
  }

  .spotlight-block {
    grid-template-columns: 1fr;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }
}

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

  .fieldwork-grid {
    grid-template-columns: 1fr;
  }

  .fieldwork-item-wide {
    grid-column: span 1;
  }

  .fieldwork-item-wide img {
    aspect-ratio: 4 / 3;
  }
}

/* Visual node cards */
.node-grid-visual {
  grid-template-columns: repeat(5, 1fr);
}

.node-card-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.node-card-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.node-card-caption {
  padding: 1rem;
}

.node-card-caption h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.node-card-caption p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.node-card-visual-highlight {
  border-color: rgba(212, 160, 84, 0.4);
  box-shadow: 0 0 0 1px rgba(212, 160, 84, 0.15);
}

/* Visual pipeline steps */
.steps-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.step-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.step-visual .step-num {
  display: block;
  padding: 0.75rem 1rem 0;
  margin-bottom: 0;
}

.step-visual h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0 1rem;
  margin-bottom: 0.35rem;
}

.step-visual p {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 1rem 1rem;
}

.photo-credit {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.7;
  padding-bottom: 1rem;
  text-align: center;
}

.photo-credit a {
  color: var(--text-muted);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .node-grid-visual {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .split-section,
  .split-section-reverse .split-media {
    grid-template-columns: 1fr;
    order: unset;
  }

  .split-section-reverse .split-media {
    order: -1;
  }

  .node-grid-visual {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-visual {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .node-grid-visual,
  .steps-visual {
    grid-template-columns: 1fr;
  }
}

/* Supply chain */
.supply-chain {
  border-bottom: 1px solid var(--border);
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.node-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.node-card-highlight {
  border-color: rgba(212, 160, 84, 0.35);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(212, 160, 84, 0.06) 100%);
}

.node-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.node-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.persona-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.persona-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.persona-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.how-lead {
  margin-bottom: 2rem;
  max-width: 640px;
}

.steps-four {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 480px) {
  .steps-four {
    grid-template-columns: 1fr;
  }
}

.pipeline-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.erp-callout {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(212, 160, 84, 0.08) 100%);
  border: 1px solid rgba(212, 160, 84, 0.25);
  border-radius: var(--radius);
}

.erp-callout p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.solution-header { margin-bottom: 2.5rem; }

.solution-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.solution-card:hover { border-color: rgba(212, 160, 84, 0.3); }

.solution-card.featured {
  border-color: rgba(212, 160, 84, 0.2);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(212, 160, 84, 0.05) 100%);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.solution-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.solution-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.card-link:hover { color: var(--accent-hover); }

.solution-cards-two {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .solution-cards-two {
    grid-template-columns: 1fr;
  }
}

/* Demos */
.demos {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.demo-block {
  background: var(--bg-card);
  border: 1px solid rgba(212, 160, 84, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.demo-media {
  background: #000;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-media-doc {
  background: var(--bg-elevated);
  min-height: 220px;
}

.demo-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.demo-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.demo-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.demo-extra {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.demo-extra:hover { color: var(--accent-hover); }

.approach-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Projects */
.projects { background: var(--bg-elevated); }

.section-header { margin-bottom: 2.5rem; }

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-card.highlight {
  border-color: rgba(212, 160, 84, 0.25);
}

.project-media {
  background: #000;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 320px;
}

.project-media-pdf { background: var(--bg-elevated); }

.pdf-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.2s;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.pdf-preview:hover { color: var(--accent); }

.pdf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.project-body { padding: 1.75rem 2rem; }

.project-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.project-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tags span {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-pdf {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.project-pdf:hover { color: var(--accent-hover); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about strong { color: var(--text); }

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.credential {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.credential-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.credential span:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 0;
}

.contact p { color: var(--text-muted); }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact-item:hover { border-color: rgba(212, 160, 84, 0.4); }

.contact-item-primary {
  border-color: rgba(212, 160, 84, 0.35);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(212, 160, 84, 0.08) 100%);
}

.contact-item-primary .contact-item-value,
.contact-item-primary span:last-child {
  color: var(--text);
  font-weight: 600;
}

.contact-item-value {
  display: block;
}

.contact-chooser {
  position: relative;
}

.contact-chooser > summary {
  list-style: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  color: inherit;
}

.contact-chooser > summary::-webkit-details-marker {
  display: none;
}

.contact-chooser > summary::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.contact-chooser > summary {
  position: relative;
  padding-right: 2.75rem;
}

.contact-chooser[open] > summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.contact-chooser-panel {
  margin-top: 0.5rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-chooser-prompt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.contact-chooser-panel a,
.contact-chooser-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  margin: 0 0 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-chooser-panel a:last-child,
.contact-chooser-panel button:last-child {
  margin-bottom: 0;
}

.contact-chooser-panel a:hover,
.contact-chooser-panel button:hover {
  border-color: rgba(212, 160, 84, 0.4);
  background: rgba(212, 160, 84, 0.08);
}

.calendly-embed-wrap {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.calendly-inline-widget {
  width: 100%;
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner a {
  color: var(--text-muted);
}

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

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child { border-bottom: none; }

  .nav-cta { text-align: center; margin-top: 0.5rem; }

  .brand-lockup {
    gap: 0.3rem;
  }

  .brand-parent-logo {
    height: 0.85rem;
  }

  .logo-semper {
    font-size: 1.05rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats { gap: 1.5rem; }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* semper docs (manual, learn, support) */
.page-semper-docs .docs-section {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.docs-wrap {
  max-width: 46rem;
}

.docs-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.docs-lead,
.docs-wrap .sub {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.docs-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.docs-toc {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
}

.docs-toc a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
}

.docs-toc a:hover {
  border-color: rgba(92, 200, 240, 0.4);
}

.docs-toc a span {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.crumb {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.crumb a {
  color: var(--text-muted);
}

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

.prose {
  max-width: 42rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.prose h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 1.25rem 0 0.4rem;
}

.prose p {
  margin: 0 0 0.9rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-elevated);
  color: var(--accent);
  font-weight: 600;
}

.prose code {
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.callout {
  background: var(--accent-dim);
  border: 1px solid rgba(92, 200, 240, 0.28);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0 0 1.25rem;
}

.lead-label {
  font-weight: 600;
  color: var(--accent);
}

.prose .plain {
  font-size: 1.08rem;
  margin: 0 0 0.5rem;
}

.prose .plain::before {
  content: "In short: ";
  font-weight: 700;
  color: var(--accent);
}

.prose .detail {
  color: var(--text-muted);
}

.prose .term {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 0.18em;
}

.prose .term:hover {
  color: var(--accent);
  text-decoration-style: solid;
}

.semper-figure {
  margin: 0 0 1.5rem;
}

.semper-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.semper-figure-phone {
  max-width: 17rem;
  margin-inline: auto 0;
}

.semper-figure-wide .semper-figure-scroll {
  overflow-x: auto;
}

.semper-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.semper-figure figcaption strong {
  color: var(--text);
}

.manual-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.manual-pager a {
  color: var(--text-muted);
  max-width: 48%;
}

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

.manual-pager-next {
  margin-left: auto;
  text-align: right;
}

.faq,
.trouble {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.faq-item,
.trouble-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.55rem;
}

.privacy-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0 0 1.75rem;
  list-style: none;
}

.privacy-toc a {
  color: var(--accent);
  font-size: 0.95rem;
}

.trouble-item .msg {
  display: block;
  font-size: 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0.4rem;
  padding: 0.5rem 0.7rem;
  margin: 0 0 0.7rem;
}

.trouble-item .msg-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.trouble-item .why {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.docs-hub {
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  .manual-pager {
    flex-direction: column;
  }

  .manual-pager a,
  .manual-pager-next {
    max-width: none;
    margin-left: 0;
    text-align: left;
  }

  .prose table {
    display: block;
    overflow-x: auto;
  }

  .semper-figure-wide .semper-figure-scroll img {
    min-width: 34rem;
  }
}
