/* =====================================================
   KaaS Design System
   Windchill PLM Consultancy
   ===================================================== */

/* =====================================================
   CSS Variables
   ===================================================== */

:root {
  --navy:         #0F1F3A;
  --navy-mid:     #1A3254;
  --steel:        #2A6096;
  --accent-brand: #2596be; /* teal — hero diagram mix, engineering tone */
  --accent-warm:  #e07a3a; /* warm orange — visible UI accent sitewide */
  --accent-soft:  rgba(37, 150, 190, 0.11);
  --accent-soft-warm: rgba(224, 122, 58, 0.13);
  --hero-plm-flow-stroke: #5f8fb0;
  --hero-plm-spine-stroke: #7a8ea0;
  --white:        #FFFFFF;
  --off-white:    #F5F7FA;
  --border:       #D8E2EC;
  --border-light: #E8EEF5;
  --text:         #0F1F3A;
  --text-sec:     #4D6070;
  --text-muted:   #7A8EA0;

  --font-sans:    'Outfit', system-ui, -apple-system, sans-serif;

  --accent:       var(--accent-warm);
  --max-w: 1140px;
  --shadow:       0 1px 3px rgba(15,31,58,.06), 0 6px 24px rgba(15,31,58,.08);
  --shadow-lg:    0 4px 14px rgba(15,31,58,.08), 0 20px 48px rgba(15,31,58,.12);
  --shadow-card:  0 1px 3px rgba(15,31,58,.05), 0 4px 20px rgba(15,31,58,.07);
  --shadow-hover: 0 4px 12px rgba(15,31,58,.09), 0 16px 40px rgba(15,31,58,.13);
  --radius:    4px;
  --radius-lg: 8px;
  --ease:      240ms cubic-bezier(.25,.46,.45,.94);

  /* layout rhythm — minimal token set */
  --space-section-y:         96px;
  --space-section-y-sm:      72px;
  --space-section-y-compact: 64px;
  --space-section-y-sm-mobile: 52px;
  --space-container-x:         40px;
  --space-container-x-tablet:  32px;
  --space-container-x-mobile:  20px;
  --space-section-header-mb:   56px;
  --space-grid-gap:            24px;
  --space-cta-block-mt:        48px;
  --space-label-mb:            16px;
  --space-partners-stack:      32px;
}

/* =====================================================
   Reset & Base
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; padding: 0; margin: 0; }
p    { margin: 0; }

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

.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--navy);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-to-content:focus {
  left: 16px;
  top: 16px;
}

/* =====================================================
   Typography
   ===================================================== */

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: var(--space-label-mb);
}

/* =====================================================
   Layout
   ===================================================== */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-container-x);
}

.section         { padding: var(--space-section-y) 0; }
.section--grey   { background: var(--off-white); }
.section--sm     { padding: var(--space-section-y-sm) 0; }

/* Mid-page primary CTAs (home) */
.section-cta-after-block {
  margin-top: var(--space-cta-block-mt);
  text-align: center;
}
.section-cta-after-block .btn { min-width: 220px; }

/* Homepage — What we do (phase flow) */
.service-scope-section .section-header {
  margin-bottom: 48px;
}
.service-scope-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-sec);
  max-width: 640px;
  margin-top: 12px;
}
.phase-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}
.phase-column {
  background: var(--off-white);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.phase-column__label {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.phase-column__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.phase-service {
  margin: 0 0 18px;
  padding: 0;
}
.phase-service:last-child {
  margin-bottom: 0;
}
.phase-expand {
  margin: 0;
  padding: 0;
  border: 0;
}
.phase-expand__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 2px 0;
  margin: 0;
}
.phase-expand__summary::-webkit-details-marker {
  display: none;
}
/* FAQ uses summary::after chevron globally; phase-expand uses SVG only */
.phase-expand .phase-expand__summary::after {
  display: none;
  content: none;
}
.phase-expand__summary::marker {
  content: none;
}
.phase-expand__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--navy);
  transition: color var(--ease);
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
.phase-expand__summary:hover .phase-expand__title {
  color: var(--accent-warm);
}
.phase-expand__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text-muted);
  transition: transform 220ms cubic-bezier(.25,.46,.45,.94), color 220ms ease;
  transform: rotate(-90deg);
}
.phase-expand[open] .phase-expand__chevron {
  transform: rotate(0deg);
  color: var(--accent-warm);
}
.phase-expand__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.phase-expand__summary:focus-visible .phase-expand__title {
  color: var(--navy);
}
.phase-expand__body {
  padding-top: 14px;
  margin-top: 4px;
}
.phase-expand__lead {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-sec);
}
.phase-expand__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.phase-expand__list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-sec);
}
.phase-expand__list li:last-child {
  margin-bottom: 0;
}
.phase-expand__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent-warm);
  opacity: 0.55;
}
.phase-flow__connector {
  display: flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  width: clamp(36px, 4.5vw, 56px);
  padding: 0 4px;
}
.phase-flow__line {
  flex: 1;
  min-width: 6px;
  height: 1px;
  background: rgba(15, 31, 58, 0.085);
}
.phase-flow__glyph {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  color: rgba(15, 31, 58, 0.2);
  padding: 0 1px;
  user-select: none;
}
.service-scope-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 15px;
  color: var(--text-sec);
}
.service-scope-footer a {
  color: var(--accent-warm);
  font-weight: 600;
  text-decoration: none;
}
.service-scope-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--navy);
}

@media (max-width: 900px) {
  .phase-flow {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }
  .phase-flow__connector {
    display: none;
  }
}

.section-header {
  max-width: 620px;
  margin-bottom: var(--space-section-header-mb);
}
.section-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-sec);
}
.section-header--label-only {
  margin-bottom: 48px;
}
.section-header--label-only .section-label { margin-bottom: 0; }
.section-header--solo h2 { margin-bottom: 0; }
.section-header--solo p { margin-top: 16px; }
/* =====================================================
   Buttons
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(15,31,58,.22);
}
.btn-white {
  background: white;
  color: var(--navy);
  border-color: white;
  font-weight: 600;
}
.btn-white:hover {
  background: var(--off-white);
  border-color: var(--off-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* =====================================================
   Navigation
   ===================================================== */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--ease);
}
.site-nav.scrolled {
  box-shadow: 0 2px 24px rgba(15,31,58,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 8px;
}
.nav-logo {
  margin-right: auto;
  line-height: 0;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 52px);
}
.nav-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-right: 24px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-sec);
  transition: color var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent-warm); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all var(--ease);
}

/* =====================================================
   Hero — Home
   ===================================================== */

.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(180,205,225,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,205,225,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 52% 1fr;
  align-items: center;
  gap: 60px;
}
.hero-inner > * {
  min-width: 0;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: var(--accent-soft-warm);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 24px;
}
.hero h1 .hero-h1-sub {
  display: block;
  margin-top: 0.2em;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-sec);
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-text-link {
  font-size: 14px;
  color: var(--text-sec);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--ease), gap var(--ease);
}
.hero-text-link:hover { color: var(--accent-warm); gap: 10px; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual svg { max-width: 100%; height: auto; }

/* ========== Hero PLM lifecycle diagram ========== */
.hero-plm-svg {
  display: block;
  overflow: visible;
}
.hero-plm-svg--mobile { display: none; }

.hero-plm-svg .hero-line {
  stroke-linecap: square;
  stroke-linejoin: miter;
}
/* Primary lifecycle axis: CAD → Windchill → ERP → Windchill → CAD */
.hero-plm-svg .hero-line-flow {
  stroke: var(--hero-plm-flow-stroke);
  stroke-opacity: 0.82;
  stroke-width: 2;
  transition: stroke 180ms ease, stroke-width 180ms ease, stroke-opacity 180ms ease;
}
.hero-plm-svg .hero-line-sec {
  stroke: #E2E8EF;
  stroke-width: 0.85;
  fill: none;
  opacity: 0;
  animation: heroPlmSecLineIn 0.45s ease forwards;
}
.hero-plm-svg .hero-sec-lines .hero-line-sec:nth-child(1) { animation-delay: 0.34s; }
.hero-plm-svg .hero-sec-lines .hero-line-sec:nth-child(2) { animation-delay: 0.38s; }
.hero-plm-svg .hero-sec-lines .hero-line-sec:nth-child(3) { animation-delay: 0.42s; }
.hero-plm-svg .hero-sec-lines .hero-line-sec:nth-child(4) { animation-delay: 0.46s; }

/* Faint spine — no motion (motion = dot only) */
.hero-plm-svg .hero-line-flow-dash--static {
  fill: none;
  pointer-events: none;
  stroke: var(--hero-plm-spine-stroke);
  stroke-opacity: 0.36;
  stroke-width: 1;
  opacity: 1;
}

.hero-plm-svg .hero-flow-dot {
  pointer-events: none;
  fill: var(--accent-warm);
  filter: drop-shadow(0 0 5px rgba(224, 122, 58, 0.48));
}

.hero-plm-svg .hero-node-rect {
  transition: stroke 180ms ease, stroke-width 180ms ease;
}

/* Load order: CAD → Windchill → ERP → supporting nodes & links */
.hero-plm-svg .hero-node-cad {
  opacity: 0;
  animation: heroPlmNodeIn 0.18s ease forwards;
}
.hero-plm-svg .hero-windchill {
  opacity: 0;
  animation: heroPlmNodeIn 0.18s ease 0.08s forwards;
}
.hero-plm-svg .hero-node-erp {
  opacity: 0;
  animation: heroPlmNodeIn 0.18s ease 0.16s forwards;
}

.hero-plm-svg .hero-wc-glow {
  fill: none;
  stroke: var(--accent-warm);
  stroke-width: 1;
  stroke-opacity: 0.22;
  animation: heroPlmWcCorePulse 8s linear infinite;
}

.hero-plm-svg .hero-sec-node {
  opacity: 0;
  animation: heroPlmSecNodeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-plm-svg .hero-sec-node rect {
  stroke: #D8E2EC;
}
.hero-plm-svg .hero-sec-node text {
  fill: #7A8EA0;
}
.hero-plm-svg .hero-sec-parts { animation-delay: 0.34s; }
.hero-plm-svg .hero-sec-bom   { animation-delay: 0.4s; }
.hero-plm-svg .hero-sec-docs  { animation-delay: 0.46s; }
.hero-plm-svg .hero-sec-eng   { animation-delay: 0.52s; }

.hero-plm-svg .hero-node,
.hero-plm-svg .hero-windchill {
  cursor: default;
}

/* Hover: path highlighting */
.hero-plm-svg--desktop:has(#hero-windchill:hover) .hero-line-flow,
.hero-plm-svg--desktop:has(#hero-windchill:hover) .hero-flow-seg {
  stroke: #5f8fb0;
  stroke-opacity: 0.95;
  stroke-width: 2.25;
}
.hero-plm-svg--desktop:has(#hero-windchill:hover) .hero-line-sec {
  stroke: #C5D3E0;
  stroke-opacity: 0.95;
}
.hero-plm-svg--desktop:has(.hero-node-cad:hover) .hero-flow-seg--left {
  stroke: #5f8fb0;
  stroke-opacity: 0.95;
}
.hero-plm-svg--desktop:has(.hero-node-erp:hover) .hero-flow-seg--right {
  stroke: #5f8fb0;
  stroke-opacity: 0.95;
}

.hero-plm-svg--mobile:has(#hero-windchill-m:hover) .hero-line-flow,
.hero-plm-svg--mobile:has(#hero-windchill-m:hover) .hero-flow-seg {
  stroke: #5f8fb0;
  stroke-opacity: 0.95;
  stroke-width: 2.25;
}
.hero-plm-svg--mobile:has(.hero-node-cad:hover) .hero-flow-seg--left {
  stroke: #5f8fb0;
  stroke-opacity: 0.95;
}
.hero-plm-svg--mobile:has(.hero-node-erp:hover) .hero-flow-seg--right {
  stroke: #5f8fb0;
  stroke-opacity: 0.95;
}

@keyframes heroPlmSecLineIn {
  to { opacity: 0.48; }
}
@keyframes heroPlmSecNodeIn {
  from { opacity: 0; }
  to { opacity: 0.78; }
}
@keyframes heroPlmNodeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Glow peaks when dot passes Windchill (~25% and ~75% of 8s round-trip) */
@keyframes heroPlmWcCorePulse {
  0%, 100% { stroke-opacity: 0.16; stroke-width: 1; }
  11%, 39% { stroke-opacity: 0.34; stroke-width: 1.18; }
  25% { stroke-opacity: 0.84; stroke-width: 1.72; }
  50% { stroke-opacity: 0.18; stroke-width: 1.04; }
  61%, 89% { stroke-opacity: 0.34; stroke-width: 1.18; }
  75% { stroke-opacity: 0.84; stroke-width: 1.72; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-plm-svg .hero-flow-dot {
    animation: none !important;
  }
  .hero-plm-svg .hero-flow-dot { opacity: 0; }
  .hero-plm-svg .hero-wc-glow {
    animation: none !important;
  }
  .hero-plm-svg .hero-wc-glow { stroke-opacity: 0.3; }
  .hero-plm-svg .hero-line-flow-dash--static { opacity: 0.5; }
  .hero-plm-svg .hero-line-sec { opacity: 0.48; animation: none; }
  .hero-plm-svg .hero-sec-node {
    opacity: 0.78;
    animation: none;
  }
  .hero-plm-svg .hero-node-cad,
  .hero-plm-svg .hero-windchill,
  .hero-plm-svg .hero-node-erp {
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 768px) {
  .hero-plm-svg--desktop { display: none; }
  .hero-plm-svg--mobile { display: block; }
}

/* =====================================================
   Intro Paragraph
   ===================================================== */

.intro-para {
  padding: 80px 0;
}
.intro-who-heading {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-align: center;
  margin: 0 0 20px;
}
.intro-para-text {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-sec);
}
/* =====================================================
   Client Logos
   ===================================================== */

.logos-section {
  padding: var(--space-section-y-compact) 0;
}
.logos-section--clients {
  padding: 56px 0 72px;
}
.logos-section--clients .logos-eyebrow {
  color: var(--accent-warm);
  font-size: 12px;
  letter-spacing: 0.11em;
}
.logos-section--clients .logos-sub {
  color: var(--navy);
  opacity: 0.72;
  max-width: 520px;
}
.logos-section--clients .logo-item {
  color: rgba(15, 31, 58, 0.45);
  font-weight: 600;
}
.logos-section--clients .logo-item:hover {
  color: var(--navy);
  opacity: 1;
}
.logos-header {
  text-align: center;
  margin-bottom: 40px;
}
.logos-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 8px;
}
.logos-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.logo-item {
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--border);
  text-transform: uppercase;
  transition: color var(--ease);
  white-space: nowrap;
}
.logo-item:hover { color: var(--text-muted); }

/* =====================================================
   Cards
   ===================================================== */

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-grid-gap); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-grid-gap); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-grid-gap); }
.cards-3 > *,
.cards-4 > *,
.cards-2 > * {
  min-width: 0;
}

.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-num {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 600;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-sec);
  overflow-wrap: break-word;
}
.card p a {
  color: var(--accent-warm);
  font-weight: 600;
  text-decoration: none;
}
.card p a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--navy);
}

.intro-services-cta {
  margin-top: 20px;
  text-align: center;
  overflow-wrap: break-word;
}
.intro-services-cta .hero-text-link {
  font-size: 16px;
}

/* Who We Work With */
.client-card {
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 32px 28px;
  background: white;
  transition: border-left-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.client-card:hover {
  border-left-color: var(--accent-warm);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.client-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}
.client-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-sec);
  overflow-wrap: break-word;
}

/* =====================================================
   How It Works
   ===================================================== */

.steps-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-top: 16px;
}
.steps-wrap::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step {
  padding: 0 32px;
  padding-top: 60px;
  position: relative;
  text-align: center;
}
.step-dot {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-dot-fill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--ease);
}
.step:hover .step-dot-fill { background: var(--accent-warm); }

.step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-sec);
}

/* =====================================================
   Team
   ===================================================== */

.team-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.team-avatar {
  width: 68px;
  height: 68px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.team-home-wrap {
  max-width: 440px;
}
.team-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}
.team-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 400;
}
.team-bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-sec);
  margin-bottom: 20px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 2px;
  background: var(--accent-soft-warm);
  color: var(--accent-warm);
  letter-spacing: 0.02em;
}
/* =====================================================
   FAQ / Accordion
   Chevron disclosure matches .phase-expand / services accordion affordance.
   ===================================================== */

.faq-wrap { max-width: 760px; }

details {
  border-bottom: 1px solid var(--border-light);
}
details:first-of-type { border-top: 1px solid var(--border-light); }

/* Phase cards in “What we do”: FAQ `details` borders / details:first-of-type override .phase-expand */
.service-scope-section details.phase-expand {
  border: none;
}

summary {
  list-style: none;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: color var(--ease);
  user-select: none;
  min-width: 0;
  overflow-wrap: break-word;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin-top: 6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--ease), border-color var(--ease), margin var(--ease);
}
details[open] summary {
  color: var(--accent-warm);
}
details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 10px;
  border-color: var(--accent-warm);
}
.faq-body {
  padding-bottom: 24px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-sec);
  overflow-wrap: break-word;
}
.faq-body a {
  color: var(--accent-warm);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.faq-body a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--navy);
}

/* =====================================================
   Partners
   ===================================================== */

.partners-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 0;
}
.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 80px;
  min-width: min(160px, 100%);
  max-width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.partner-logo-card:hover {
  border-color: var(--accent-warm);
  box-shadow: var(--shadow-card);
}
.partner-logo-card img {
  display: block;
  max-height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.partner-logo-card--inneo img {
  max-height: 52px;
  max-width: 100%;
}

/* =====================================================
   CTA Section
   ===================================================== */

.cta-section {
  background: var(--navy);
  padding: var(--space-section-y) 0;
}
.cta-inner { max-width: 580px; }
.cta-section h2 {
  color: white;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta-section p {
  color: rgba(255,255,255,.62);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-grid-gap);
  flex-wrap: wrap;
}
.cta-phone {
  color: rgba(255,255,255,.55);
  font-size: 15px;
  transition: color var(--ease);
}
.cta-phone:hover { color: rgba(255,255,255,.9); }

/* =====================================================
   Page Hero (Inner Pages)
   ===================================================== */

.page-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 4px;
  align-items: center;
}
.breadcrumb a { transition: color var(--ease); }
.breadcrumb a:hover { color: var(--accent-warm); }
.breadcrumb-sep { color: var(--border); font-size: 16px; }

.page-hero-text {
  max-width: 760px;
}
.page-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 20px;
  max-width: 720px;
}
.page-hero-text h1 {
  max-width: none;
}
.page-hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-sec);
  max-width: 560px;
  margin: 0;
}
.page-hero-text .page-hero-sub {
  line-height: 1.55;
  max-width: none;
}
.page-hero-proof {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.page-hero-proof::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent-warm);
  opacity: 0.55;
  margin-bottom: 14px;
  border-radius: 1px;
}

/* =====================================================
   Answer-First Intro (inner pages)
   ===================================================== */

.case-studies-intro a {
  color: var(--accent-warm);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.case-studies-intro a:hover {
  color: var(--navy);
}
/* Anchor offset: fixed nav only (sticky jump bar removed on Services) */
.page-services #compare,
.page-services #consulting,
.page-services #implementation,
.page-services #augmentation,
.page-services #industry,
.page-services #case-studies,
.page-services #case-migration,
.page-services #case-erp,
.page-services #case-governance,
.page-services #faq {
  scroll-margin-top: 88px;
}

/* =====================================================
   Service Blocks (services page)
   ===================================================== */

.service-rule {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

.service-block {
  padding: var(--space-section-y-compact) 0;
  border-bottom: 1px solid var(--border-light);
}
.service-block:last-of-type { border-bottom: none; }
.service-block--tail {
  border-bottom: none;
  padding-bottom: 48px;
}
.service-block h2 {
  font-size: clamp(24px, 2.5vw, 30px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.service-section-head {
  margin-bottom: 0;
}
.service-section-head h2 {
  margin-bottom: 12px;
}
.service-section-head .service-desc {
  margin-top: 0;
}
.service-desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-sec);
  max-width: 720px;
  margin-bottom: 24px;
}
/* Capability groups (services page) — replaces tag clouds */
.service-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-grid-gap) 32px;
  margin-top: 16px;
  max-width: 800px;
}
.service-capability-group-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.service-capability-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-capability-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-sec);
  overflow-wrap: break-word;
}
.service-capability-list li:last-child { margin-bottom: 0; }
.service-capability-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--navy);
  opacity: 0.22;
}
.service-diff-block {
  margin-top: 28px;
  max-width: 720px;
  padding: 20px 22px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.service-diff-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-diff-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--navy);
}
.service-diff-list li:last-child { margin-bottom: 0; }
.service-diff-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent-warm);
  opacity: 0.5;
}
/* Services page — section rhythm & prose width */
.page-services .page-hero {
  padding-bottom: 40px;
  border-bottom: none;
}
.page-services .section {
  padding: 88px 0;
}
.page-services .service-compare-section.section {
  padding-top: 36px;
  padding-bottom: 72px;
}
.page-services .section--sm {
  padding-top: 72px;
  padding-bottom: 72px;
}
.page-services .service-block,
.page-services .service-block--tail {
  padding: 0;
  border-bottom: none;
}
.page-services .service-case-teaser {
  max-width: 720px;
}
/* PLM foundation — forward-looking (light) */
.industry-forward {
  max-width: 720px;
}
.industry-forward h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--navy);
}
.industry-forward-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-sec);
}
.industry-forward-text p {
  margin: 0 0 12px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.industry-forward-text p:last-child {
  margin-bottom: 0;
}
.case-result-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.case-result-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-sec);
}
.case-result-list li:last-child { margin-bottom: 0; }
.case-result-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent-warm);
  opacity: 0.45;
}
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.area-tag {
  font-size: 13px;
  padding: 5px 13px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-sec);
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Case Study */
.case-study {
  background: var(--off-white);
  border-left: 3px solid var(--steel);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 32px 36px;
  margin: 36px 0;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.case-meta-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.case-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 12px;
}
.case-study h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 600;
}
.case-row {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-sec);
}
.case-row:last-child { margin-bottom: 0; }
.case-row strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.case-studies-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-sec);
  max-width: 720px;
  margin-top: 12px;
}
.page-services .section--case-studies .section-header {
  max-width: 720px;
  margin-bottom: 64px;
}
.section--case-studies {
  background: var(--white);
  border-top: 1px solid var(--border-light);
}
.section--case-studies .case-study {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--steel);
  box-shadow: none;
}
.section--case-studies .case-study:first-of-type { margin-top: 0; }

/* Services page: case-study teaser links under service blocks */
.service-case-teaser {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-sec);
  max-width: 680px;
}
.service-case-teaser a {
  color: var(--accent-warm);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.service-case-teaser a:hover { color: var(--navy); }

/* Service comparison — decision cards */
.service-compare-section {
  background: var(--off-white);
}
.service-compare-intro {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}
.page-services .service-compare-intro {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
  text-align: left;
}
.service-compare-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.service-compare-heading {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}
.service-compare-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-sec);
}
.service-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-grid-gap);
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  align-items: stretch;
}

/* Services — engagement accordion (stacked list, one panel open at a time) */
.service-accordion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  align-items: stretch;
}

/* Single container-wide shell: one surface, row dividers */
.service-accordion-shell {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}
.service-accordion-shell .service-accordion-grid {
  max-width: none;
  width: 100%;
  margin: 0;
  gap: 0;
}
.service-accordion-shell .service-accordion-col {
  min-width: 0;
}
.service-accordion-shell .service-accordion-col:not(:last-child) .service-accordion-card {
  border-bottom: 1px solid var(--border-light);
}
.service-accordion-shell .service-accordion-card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 28px 22px;
  min-height: 0;
  background: transparent;
  transition: background 180ms ease;
}
.service-accordion-shell .service-compare-card:hover {
  transform: none;
  box-shadow: none;
}
.service-accordion-shell .service-accordion-toggle .service-compare-card-head,
.service-accordion-shell .service-accordion-summary-row .service-compare-body {
  max-width: 720px;
}
.service-accordion-summary-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.service-accordion-summary-row .service-compare-body {
  flex: 1;
  min-width: 0;
  gap: 0;
}
.service-accordion-shell .service-accordion-panel-inner {
  max-width: 720px;
  padding-left: 0;
  padding-right: 0;
}
.service-accordion-shell .service-accordion-panel-wrap.is-open .service-accordion-panel-inner {
  margin-top: 0;
  border-top: none;
  background: transparent;
  padding-top: 16px;
  padding-bottom: 22px;
}
.service-accordion-shell .service-accordion-card .service-compare-card-head {
  border-bottom: none;
  margin-bottom: 10px;
  padding-bottom: 0;
}

.service-accordion-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.service-accordion-card {
  display: flex;
  flex-direction: column;
}
.service-accordion-toggle {
  cursor: pointer;
  text-align: left;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.service-accordion-toggle:focus {
  outline: none;
}
.service-accordion-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}
.service-accordion-card .service-compare-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.service-accordion-controls {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.service-accordion-chevron {
  flex-shrink: 0;
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 2px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 180ms ease, border-color var(--ease);
}
.service-accordion-card.is-expanded .service-accordion-chevron {
  transform: rotate(-135deg);
  margin-top: 2px;
  border-color: var(--navy);
}
.service-accordion-card:not(.is-expanded):hover .service-accordion-chevron {
  border-color: var(--accent-warm);
}
.service-accordion-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease;
}
.service-accordion-panel-wrap.is-open {
  grid-template-rows: 1fr;
}
.service-accordion-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 22px;
  overflow-wrap: break-word;
}
.service-accordion-panel-wrap.is-open .service-accordion-panel-inner {
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.88);
}
.service-accordion-panel-inner .service-accordion-intro {
  margin-bottom: 14px;
  max-width: none;
  font-weight: 500;
  color: var(--text);
}
.service-accordion-key-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.service-accordion-key-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-sec);
}
.service-accordion-key-list li:last-child {
  margin-bottom: 0;
}
.service-accordion-key-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--navy);
  opacity: 0.35;
}

.service-accordion-panel-inner .service-capability-grid {
  max-width: none;
}
.service-accordion-panel-inner .service-capability-grid--deep {
  margin-top: 20px;
  gap: 16px 22px;
}
.service-capability-group-title--deep {
  color: var(--text-muted);
}
@media (max-width: 520px) {
  .service-capability-grid--deep {
    grid-template-columns: 1fr;
  }
}
.service-capability-list--deep li {
  font-size: 14px;
  line-height: 1.48;
}
.service-diff-block--subtle {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--off-white);
  max-width: 100%;
  overflow-wrap: break-word;
}
.service-diff-list--subtle li {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-sec);
  padding-left: 14px;
  margin-bottom: 8px;
}
.service-diff-list--subtle li:last-child {
  margin-bottom: 0;
}
.service-diff-list--subtle li::before {
  width: 4px;
  height: 4px;
  top: 0.52em;
  opacity: 0.4;
}
.service-accordion-more-links {
  margin: 18px 0 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
}
.service-accordion-more-links .hero-text-link {
  font-size: inherit;
}
.service-accordion-cta-sep {
  color: var(--border);
}
.page-services .service-accordion-shell .service-accordion-card.is-expanded {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 3px 0 0 var(--navy);
}
@media (prefers-reduced-motion: reduce) {
  .service-accordion-panel-wrap {
    transition: none;
  }
  .service-accordion-chevron {
    transition: none;
  }
}
.service-compare-card {
  margin: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.service-compare-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}
.service-compare-card-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.service-compare-title {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
  overflow-wrap: break-word;
}
.service-compare-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.service-compare-one-liner {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-sec);
  overflow-wrap: break-word;
}
.service-compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-compare-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sec);
}
.service-compare-list li:last-child { margin-bottom: 0; }
.service-compare-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--navy);
  opacity: 0.25;
}
/* Capacity callout */
.capacity-callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 20px;
  background: var(--accent-soft-warm);
  border-left: 3px solid var(--accent-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  overflow-wrap: break-word;
}

/* =====================================================
   About Page — Company Story
   ===================================================== */

.story-text {
  max-width: 720px;
  overflow-wrap: break-word;
}
.story-text p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-sec);
  margin-bottom: 24px;
}
.story-text p:last-child { margin-bottom: 0; }
.story-text a {
  overflow-wrap: anywhere;
}

/* About — Where we work (two-column, text-only) */
.about-where-inner {
  max-width: 960px;
}
.about-where-header {
  max-width: 720px;
  margin-bottom: 0;
}
.about-where-lead {
  margin: 16px 0 24px;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-sec);
}
.about-where-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-where-grid > * {
  min-width: 0;
}
.about-where-col-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.about-where-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-where-list li {
  font-size: 16px;
  line-height: 1.65;
  color: #475569;
}
.about-where-list li + li {
  margin-top: 10px;
}

/* =====================================================
   Contact Page
   ===================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
  padding: var(--space-section-y-compact) 0;
}
.contact-layout > * {
  min-width: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row > * {
  min-width: 0;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 15px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 3px rgba(224, 122, 58, 0.12);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
/* Honeypot — leave empty; hidden from users */
.privacy-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--navy);
  overflow-wrap: break-word;
}
.privacy-heading:first-child { margin-top: 0; }
.privacy-meta { margin-top: 1.5rem; color: var(--text-muted); }

.form-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.form-sent-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--accent-soft-warm);
  border-left: 3px solid var(--accent-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.form-sent-banner[hidden] {
  display: none;
}

.form-error-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy);
  background: #fef2f2;
  border-left: 3px solid #b91c1c;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.form-error-banner[hidden] {
  display: none;
}

.contact-sidebar h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  margin-top: 28px;
}
.contact-sidebar h3:first-child { margin-top: 0; }
.contact-sidebar p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0 0 14px;
}
.contact-sidebar p:last-of-type { margin-bottom: 0; }
.contact-details-lead {
  margin: 0 0 12px !important;
  font-size: 15px;
  color: var(--text-sec);
}
.contact-details-lead strong { color: var(--navy); font-weight: 600; }
.contact-sidebar .contact-address {
  font-size: 15px;
  font-style: normal;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0 0 14px;
}
.contact-lang-note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-muted);
}
.contact-lang-note a {
  color: var(--accent-warm);
  font-weight: 600;
  text-decoration: none;
}
.contact-lang-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--navy);
}

.next-section {
  padding: var(--space-section-y-sm) 0;
  background: var(--off-white);
}
.next-layout {
  max-width: 720px;
}
.next-layout h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}
.next-layout p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-sec);
  margin-bottom: 16px;
  overflow-wrap: break-word;
}
.next-layout p:last-child { margin-bottom: 0; }

/* =====================================================
   Footer
   ===================================================== */

footer,
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 48px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px 48px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.footer-brand:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  border-radius: 2px;
}
.footer-brand--full {
  flex: 0 1 auto;
}
.footer-logo-full {
  height: 64px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}
@media (min-width: 768px) {
  .footer-logo-full { height: 88px; }
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
  text-align: right;
}
.footer-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: var(--space-grid-gap);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-sec);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--navy); }
.footer-email {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.footer-email a {
  color: var(--text-sec);
  text-decoration: none;
  transition: color var(--ease);
  overflow-wrap: anywhere;
}
.footer-email a:hover {
  color: var(--navy);
}
.footer-lang {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.footer-lang a,
.footer-lang span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer-lang a:hover { color: var(--accent-warm); }
.footer-lang .active,
.footer-lang span[aria-current="true"] {
  color: var(--accent-warm);
}
.footer-lang .footer-lang-soon {
  cursor: default;
  user-select: none;
}

/* =====================================================
   Scroll Reveal Animations
   Progressive enhancement: hidden state only when html.js-reveal-animate
   (set in <head> when prefers-reduced-motion: no-preference). No JS / reduced
   motion: content stays visible.
   ===================================================== */

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity  680ms cubic-bezier(.16,1,.3,1),
    transform 680ms cubic-bezier(.16,1,.3,1);
}
html.js-reveal-animate .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal-animate .reveal:not(.visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.d1 { transition-delay: 80ms; }
.d2 { transition-delay: 160ms; }
.d3 { transition-delay: 240ms; }
.d4 { transition-delay: 320ms; }

/* Partners — home */
.section-header--partners-tight {
  margin-bottom: var(--space-partners-stack);
}
.section-header--partners-tight .section-partners-lead {
  margin-top: 12px;
}

/* Hero entry animation */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-content { animation: heroFade 900ms cubic-bezier(.16,1,.3,1) both; }
.hero-visual  { animation: heroFade 900ms 200ms cubic-bezier(.16,1,.3,1) both; }
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-visual {
    animation: none;
  }
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1024px) {
  .container { padding: 0 var(--space-container-x-tablet); }
  .hero-inner { gap: 40px; }
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 76px; }

  .container { padding: 0 var(--space-container-x-mobile); }
  .section  { padding: var(--space-section-y-compact) 0; }
  .section--sm { padding: var(--space-section-y-sm-mobile) 0; }

  .btn,
  .btn-lg {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .card,
  .client-card {
    padding: 24px 20px;
  }

  .team-card {
    padding: 28px 22px;
  }

  .intro-para {
    padding: 56px 0;
  }
  .intro-para-text {
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .section-header h2,
  .hero h1 {
    overflow-wrap: break-word;
  }

  .intro-who-heading {
    overflow-wrap: break-word;
  }

  .service-compare-heading,
  .service-compare-lead {
    overflow-wrap: break-word;
  }

  .service-accordion-summary-row {
    align-items: flex-start;
  }

  .logo-item {
    padding: 12px 14px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  .page-hero h1,
  .page-hero-sub {
    overflow-wrap: break-word;
  }

  .service-block {
    padding: 48px 0;
  }
  .service-block--tail {
    padding-bottom: 40px;
  }

  .page-services .section {
    padding: var(--space-section-y-sm) 0;
  }

  .service-capability-grid {
    grid-template-columns: 1fr;
    gap: var(--space-grid-gap);
    max-width: none;
  }

  .service-desc,
  .service-case-teaser {
    overflow-wrap: break-word;
  }

  .case-study h3,
  .case-row {
    overflow-wrap: break-word;
  }

  .contact-sidebar a {
    overflow-wrap: anywhere;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }

  .cta-inner {
    max-width: 100%;
  }

  .hero-text-link {
    white-space: normal;
  }

  /* Nav */
  .nav-links,
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0 0;
    background: white;
    padding: 20px 20px 40px;
    gap: 0;
    z-index: 99;
    overflow-y: auto;
    border-top: 1px solid var(--border-light);
  }
  .nav-links.open li { border-bottom: 1px solid var(--border-light); }
  .nav-links.open a { display: block; padding: 16px 0; font-size: 16px; }

  /* Hero */
  .hero { padding-top: 100px; padding-bottom: 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: min(380px, 100%); margin: 36px auto 0; }
  .hero-sub { font-size: 16px; }

  /* Grids */
  .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .about-where-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Steps */
  .steps-wrap { grid-template-columns: 1fr; gap: 8px; }
  .steps-wrap::before { display: none; }
  .step { padding: 8px 0 24px 44px; text-align: left; }
  .step-dot { left: 8px; top: 12px; transform: none; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  /* Services */
  .page-services .service-compare-section.section {
    padding-top: 28px;
    padding-bottom: 56px;
  }
  .case-study { padding: 24px 24px; }
  .service-compare-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-accordion-grid {
    gap: 16px;
    max-width: none;
  }
  .service-accordion-shell .service-accordion-grid {
    gap: 0;
  }
  .service-accordion-shell .service-accordion-card {
    padding: 22px 20px 20px;
  }
  .service-compare-card {
    padding: 24px 24px 22px;
  }
  .service-compare-intro { margin-bottom: 24px; }

  /* CTA */
  .cta-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-row .btn {
    align-self: stretch;
  }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--space-grid-gap); }
  .footer-col {
    align-items: flex-start;
    text-align: left;
  }
  .footer-links { justify-content: flex-start; }
  .footer-lang { justify-content: flex-start; }

  /* Page hero */
  .page-hero { padding-top: 96px; padding-bottom: 48px; }

  .page-services #compare,
  .page-services #consulting,
  .page-services #implementation,
  .page-services #augmentation,
  .page-services #industry,
  .page-services #case-studies,
  .page-services #case-migration,
  .page-services #case-erp,
  .page-services #case-governance,
  .page-services #faq {
    scroll-margin-top: 108px;
  }
}

@media (max-width: 480px) {
  .nav-logo-img { height: 30px; }
  .footer-logo-full { height: 56px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .partners-row { flex-direction: column; align-items: stretch; }
  .partner-logo-card { min-width: 0; justify-content: center; }
  .logos-row { gap: 0; }

  .service-accordion-panel-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .phase-column {
    padding: 20px;
  }
}
