/* ============================================
   Condevex — SAP Consulting Website
   ============================================ */

:root{
  --navy-950:#0e1e30;
  --navy-900:#132a42;
  --navy-800:#1a3958;
  --blue-700:#245a8c;
  --blue-600:#2f6ba3;
  --orange-700:#a83a24;
  --orange-600:#c1442b;
  --orange-500:#d9552f;
  --sand-100:#f6efe3;
  --sand-50:#faf6ee;
  --ink-900:#161d27;
  --ink-700:#374252;
  --ink-500:#5c6675;
  --line:#e4ded0;
  --white:#ffffff;

  --radius:10px;
  --radius-lg:16px;
  --shadow-sm:0 1px 2px rgba(14,30,48,0.06), 0 1px 1px rgba(14,30,48,0.04);
  --shadow-md:0 12px 28px -12px rgba(14,30,48,0.28);
  --shadow-lg:0 24px 60px -20px rgba(14,30,48,0.35);
  --ease:cubic-bezier(.4,0,.2,1);

  --font-head:'Sora', 'Segoe UI', Arial, sans-serif;
  --font-body:'Inter', 'Segoe UI', Arial, sans-serif;

  --maxw:1180px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--orange-600); color:var(--white); }
:focus-visible{ outline:2px solid var(--blue-600); outline-offset:2px; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--navy-950);
  line-height:1.15;
  margin:0 0 .6em;
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; color:var(--ink-700); }
ul{ margin:0; padding:0; list-style:none; }

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 28px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding:14px 26px;
  border-radius:999px;
  font-family:var(--font-head);
  font-weight:600;
  font-size:.95rem;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .22s var(--ease), box-shadow .22s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); transition-duration:.08s; }
.btn-accent{
  background:var(--orange-600);
  color:var(--white);
  box-shadow:var(--shadow-sm);
}
.btn-accent:hover{ background:var(--orange-700); box-shadow:var(--shadow-md); }
.btn-primary{
  background:var(--navy-900);
  color:var(--white);
}
.btn-primary:hover{ background:var(--navy-950); }
.btn-ghost{
  background:transparent;
  color:var(--navy-900);
  border-color:var(--line);
}
.btn-ghost:hover{ border-color:var(--navy-900); }
.btn-ghost-light{
  background:transparent;
  color:var(--white);
  border-color:rgba(255,255,255,0.5);
}
.btn-ghost-light:hover{ border-color:var(--white); background:rgba(255,255,255,0.08); }
.full-width{ width:100%; }

/* ---------- Topbar ---------- */
.topbar{
  background:var(--navy-950);
  color:#cfe0ef;
  font-size:.82rem;
}
.topbar-inner{
  padding:8px 28px;
  text-align:center;
  letter-spacing:.01em;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  box-shadow:0 0 0 rgba(14,30,48,0);
  transition:box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.scrolled{
  box-shadow:0 8px 24px -16px rgba(14,30,48,0.25);
  border-bottom-color:transparent;
}
.header-inner{
  display:flex;
  align-items:center;
  gap:28px;
  padding:14px 28px;
}
.brand{ display:flex; align-items:center; margin-inline-end:auto; flex:none; }
.brand-logo{ height:34px; width:auto; }

.lang-switch{
  display:flex;
  gap:4px;
  background:var(--sand-100);
  border:1px solid var(--line);
  border-radius:999px;
  padding:3px;
}
.lang-btn{
  display:inline-block;
  text-decoration:none;
  border:0;
  background:transparent;
  color:var(--ink-500);
  font-family:var(--font-head);
  font-weight:700;
  font-size:.76rem;
  letter-spacing:.03em;
  padding:6px 11px;
  border-radius:999px;
  cursor:pointer;
  transition:background-color .15s ease, color .15s ease;
}
.lang-btn:hover{ color:var(--navy-900); }
.lang-btn.active{
  background:var(--navy-950);
  color:var(--white);
}
.main-nav{
  display:flex;
  gap:28px;
  font-weight:600;
  font-size:.94rem;
}
.main-nav a{
  position:relative;
  color:var(--ink-700);
  padding-bottom:3px;
  transition:color .18s var(--ease);
}
.main-nav a::after{
  content:"";
  position:absolute;
  inset-inline-start:0; inset-inline-end:100%; bottom:0;
  height:2px;
  background:var(--orange-600);
  border-radius:2px;
  transition:inset-inline-end .22s var(--ease);
}
.main-nav a:hover{ color:var(--orange-600); }
.main-nav a:hover::after, .main-nav a.active::after{ inset-inline-end:0; }
.main-nav a.active{ color:var(--navy-950); }
.header-cta{ padding:10px 20px; font-size:.88rem; }
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:0;
  cursor:pointer;
  padding:6px;
}
.nav-toggle span{
  width:22px; height:2px; background:var(--navy-950); border-radius:2px;
}

/* ---------- Eyebrow / section headers ---------- */
.eyebrow{
  font-family:var(--font-head);
  font-weight:700;
  font-size:.8rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--orange-600);
  margin:0 0 .8em;
}
.eyebrow-light{ color:#f2b79f; }
.section-head{
  max-width:760px;
  margin:0 0 48px;
}
.section-lead{ font-size:1.08rem; color:var(--ink-500); }

.section{ padding:96px 0; }
.section-alt{ background:var(--sand-50); }
.section-dark{
  background:var(--navy-950);
  color:var(--white);
}
.section-dark h2, .section-dark p{ color:var(--white); }
.section-dark .contact-copy p{ color:#c9d6e3; }

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--blue-700) 130%);
  color:var(--white);
  padding:76px 0 90px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:56px;
  align-items:center;
}
.hero h1{
  color:var(--white);
  font-size:clamp(2.1rem, 3.6vw, 3rem);
  margin-bottom:.5em;
}
.hero-lead{
  color:#d7e2ee;
  font-size:1.08rem;
  max-width:56ch;
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin:28px 0 32px;
}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,0.15);
}
.hero-badges li{
  font-size:.85rem;
  color:#e7edf3;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.18);
  padding:8px 14px;
  border-radius:999px;
}
.hero-media img{
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  width:100%;
  height:auto;
  border:1px solid rgba(255,255,255,0.12);
}

/* ---------- Why Condevex / audience cards ---------- */
.why-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:18px;
  counter-reset:why;
}
.audience-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.why-card, .audience-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:26px 22px;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.why-card:hover, .audience-card:hover{
  box-shadow:var(--shadow-md);
  transform:translateY(-3px);
  border-color:rgba(193,68,43,0.25);
}
.why-card{ counter-increment:why; }
.why-card::before{
  content:counter(why, decimal-leading-zero);
  display:block;
  font-family:var(--font-head);
  font-weight:800;
  font-size:.8rem;
  letter-spacing:.06em;
  color:var(--orange-600);
  margin-bottom:12px;
}
.why-card h3, .audience-card h3{
  font-size:1.02rem;
  margin-bottom:.5em;
}
.why-card p, .audience-card p{ font-size:.93rem; margin:0; }
.audience-card{ border-inline-start:3px solid var(--orange-600); }
.audience-pills{ margin-top:44px; }
.audience-pills h3{ font-size:1rem; margin-bottom:0; color:var(--ink-700); }
.audience-pills .company-pills{ margin-top:14px; }

/* ---------- Solution ---------- */
.solution-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:56px;
  align-items:center;
}
.solution-media img{
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
}
.solution-steps{
  margin-top:32px;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.step{
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.step-num{
  flex:none;
  width:32px; height:32px;
  border-radius:50%;
  background:var(--orange-600);
  color:var(--white);
  font-family:var(--font-head);
  font-weight:700;
  font-size:.9rem;
  display:flex; align-items:center; justify-content:center;
}
.step h4{ font-size:1rem; margin-bottom:.25em; }
.step p{ font-size:.92rem; margin:0; }

/* ---------- Services ---------- */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.service-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:30px 26px;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); border-color:rgba(193,68,43,0.25); }
.service-card[role="button"]{ cursor:pointer; }
.service-card[role="button"]:focus-visible{
  outline:2px solid var(--blue-600);
  outline-offset:2px;
}
.service-hint{
  display:inline-block;
  margin-top:4px;
  font-family:var(--font-head);
  font-weight:700;
  font-size:.82rem;
  color:var(--orange-600);
}
.service-index{
  font-family:var(--font-head);
  font-weight:800;
  font-size:.85rem;
  color:var(--orange-600);
  letter-spacing:.05em;
}
.service-card h3{
  font-size:1.08rem;
  margin:.5em 0 .5em;
}
.service-card p{ font-size:.93rem; margin:0; }
.service-card-cta{
  background:var(--navy-950);
  color:var(--white);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.service-card-cta h3{ color:var(--white); }
.service-card-cta p{ color:#cfd9e4; }
.service-card-cta .btn{ margin-top:14px; align-self:flex-start; }

/* ---------- Team ---------- */
.team-media{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-md);
  margin-bottom:56px;
}
.team-media img{ transition:transform .5s var(--ease); }
.team-media:hover img{ transform:scale(1.035); }
.impressions{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  margin-bottom:56px;
}
.impressions img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  transition:box-shadow .25s var(--ease), transform .25s var(--ease);
}
.impressions img:hover{
  box-shadow:var(--shadow-md);
  transform:translateY(-3px);
}

.experience-block{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:36px;
}
.experience-block h3{ font-size:1.15rem; }
.company-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 20px;
}
.company-pills li{
  font-family:var(--font-head);
  font-weight:600;
  font-size:.88rem;
  color:var(--navy-900);
  background:var(--sand-100);
  border:1px solid var(--line);
  padding:9px 16px;
  border-radius:999px;
}
.disclaimer{
  font-size:.82rem;
  color:var(--ink-500);
  border-top:1px dashed var(--line);
  padding-top:16px;
  margin:0;
}

/* ---------- Cost table ---------- */
.cost-grid{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:56px;
  align-items:center;
}
.cost-table{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:8px;
  box-shadow:var(--shadow-sm);
  overflow-x:auto;
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:.9rem;
  min-width:520px;
}
thead th{
  text-align:start;
  font-family:var(--font-head);
  font-size:.82rem;
  color:var(--ink-500);
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
tbody td{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  color:var(--ink-700);
  transition:background-color .18s var(--ease);
}
tbody tr:hover td{ background:var(--sand-50); }
tbody tr:last-child td{ border-bottom:none; }
tbody th.row-label{
  text-align:start;
  font-weight:600;
  color:var(--navy-900);
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
tbody tr:last-child th.row-label{ border-bottom:none; }
tbody tr:hover th.row-label{ background:var(--sand-50); }
#costTable{ min-width:0; }
#costTable td{ line-height:1.45; }
.highlight{
  color:var(--orange-700);
  font-weight:700;
  background:rgba(193,68,43,0.06);
}
th.highlight{ color:var(--orange-600); background:transparent; }
.table-note{
  font-size:.78rem;
  color:var(--ink-500);
  padding:14px 16px 8px;
  margin:0;
}

/* ---------- Contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:56px;
  align-items:start;
}
.contact-details{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:24px;
  font-weight:600;
}
.contact-details a{ color:var(--white); }
.contact-details a:hover{ color:var(--orange-500); }
.contact-details span{ color:#aebdcd; font-weight:400; }

.contact-form{
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:32px;
  box-shadow:var(--shadow-lg);
}
.form-row{
  margin-bottom:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.form-row label{
  font-size:.85rem;
  font-weight:600;
  color:var(--ink-700);
}
.form-row input, .form-row select, .form-row textarea{
  font-family:var(--font-body);
  font-size:.95rem;
  padding:11px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--sand-50);
  color:var(--ink-900);
  resize:vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline:2px solid var(--blue-600);
  outline-offset:1px;
  background:var(--white);
}
.form-note{
  font-size:.78rem;
  color:var(--ink-500);
  margin-top:12px;
  text-align:center;
}
.form-status{
  font-size:.85rem;
  font-weight:600;
  text-align:center;
  margin:10px 0 0;
  min-height:1.2em;
}
.form-status-success{ color:#1a7f4b; }
.form-status-error{ color:var(--orange-700); }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-950);
  color:#c9d6e3;
  padding-top:56px;
}
.footer-inner{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:32px;
  padding-bottom:36px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-word{
  font-family:var(--font-head);
  font-weight:700;
  font-size:1.3rem;
  color:var(--white);
}
.footer-word .accent{ color:var(--orange-500); }
.footer-brand p{ color:#aebdcd; margin-top:10px; font-size:.9rem; }
.footer-nav{ display:flex; flex-direction:column; gap:10px; font-size:.92rem; }
.footer-nav a, .footer-contact a{
  display:inline-block;
  width:fit-content;
  transition:color .18s var(--ease), transform .18s var(--ease);
}
.footer-nav a:hover, .footer-contact a:hover{ color:var(--orange-500); transform:translateX(3px); }
.footer-contact{ display:flex; flex-direction:column; gap:10px; font-size:.92rem; }
.footer-bottom{
  padding:20px 28px 26px;
  font-size:.78rem;
  color:#8ea0b3;
  text-align:center;
}

/* ---------- Service detail modal ---------- */
body.modal-open{ overflow:hidden; }

.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(14,30,48,0.62);
  backdrop-filter:blur(3px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:1000;
  opacity:0;
  visibility:hidden;
  transition:opacity .22s var(--ease), visibility .22s var(--ease);
}
.modal-overlay.open{
  opacity:1;
  visibility:visible;
}
.modal{
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:38px;
  max-width:560px;
  width:100%;
  max-height:85vh;
  overflow-y:auto;
  box-shadow:var(--shadow-lg);
  position:relative;
  transform:translateY(14px) scale(.97);
  transition:transform .28s var(--ease);
}
.modal-overlay.open .modal{ transform:translateY(0) scale(1); }
.modal:focus{ outline:none; }
.modal-close{
  position:absolute;
  top:16px; inset-inline-end:16px;
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--sand-50);
  color:var(--ink-700);
  font-size:1.3rem;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background-color .15s ease;
}
.modal-close:hover{ background:var(--sand-100); }
.modal-index{
  font-family:var(--font-head);
  font-weight:800;
  font-size:.85rem;
  color:var(--orange-600);
  letter-spacing:.05em;
}
.modal h3{
  font-size:1.35rem;
  margin:.4em 0 .5em;
  padding-inline-end:30px;
}
.modal > p{ color:var(--ink-700); }
.modal-bullets{
  margin:18px 0 26px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.modal-bullets li{
  position:relative;
  padding-inline-start:26px;
  font-size:.95rem;
  color:var(--ink-700);
}
.modal-bullets li::before{
  content:"";
  position:absolute;
  inset-inline-start:0; top:7px;
  width:8px; height:8px;
  border-radius:50%;
  background:var(--orange-600);
}

/* ---------- Careers page ---------- */
.job-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:32px;
  box-shadow:var(--shadow-sm);
  margin-bottom:24px;
}
.job-card h3{ font-size:1.25rem; margin:0 0 .6em; }
.job-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}
.job-tag{
  font-family:var(--font-head);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.02em;
  color:var(--orange-700);
  background:rgba(193,68,43,0.08);
  border:1px solid rgba(193,68,43,0.2);
  padding:5px 12px;
  border-radius:999px;
}
.job-note{
  font-size:.85rem;
  color:var(--ink-500);
  margin-top:-6px;
}
.job-card .btn{ margin-top:10px; }
.careers-other{
  background:var(--navy-950);
  color:var(--white);
  border-radius:var(--radius-lg);
  padding:32px;
  text-align:center;
}
.careers-other h3{ color:var(--white); margin-bottom:.4em; }
.careers-other p{ color:#cfd9e4; }
.careers-other .btn{ margin-top:14px; }

/* ---------- 404 page ---------- */
.not-found-box{
  text-align:center;
  max-width:560px;
  margin:0 auto;
  padding:80px 0;
}
.not-found-box h1{ font-size:clamp(1.8rem, 4vw, 2.6rem); }
.not-found-box .eyebrow{ justify-content:center; }
.not-found-box .btn{ margin-top:12px; }

/* ---------- Legal / privacy page ---------- */
.legal-section{ margin-bottom:32px; }
.legal-section h3{ font-size:1.05rem; margin-bottom:.5em; }
.legal-section p{ font-size:.95rem; }
.legal-section .modal-bullets{ margin-top:12px; }

/* ---------- Scroll reveal (classes applied at runtime via script.js, no markup changes) ---------- */
.reveal-target{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-target.in-view{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal-target{ opacity:1; transform:none; }
}

/* ---------- Scrollbar polish ---------- */
::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-track{ background:var(--sand-50); }
::-webkit-scrollbar-thumb{
  background:var(--line);
  border-radius:999px;
  border:3px solid var(--sand-50);
}
::-webkit-scrollbar-thumb:hover{ background:var(--ink-500); }

/* ============ Responsive ============ */
@media (max-width:960px){
  .hero-grid, .solution-grid, .cost-grid, .contact-grid{
    grid-template-columns:1fr;
  }
  .hero-media{ order:-1; }
  .solution-media{ order:-1; }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .audience-grid{ grid-template-columns:repeat(2,1fr); }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-inner{ grid-template-columns:1fr 1fr; }
}

@media (max-width:720px){
  .main-nav{
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--white);
    flex-direction:column;
    padding:18px 28px;
    gap:16px;
    border-bottom:1px solid var(--line);
    display:none;
  }
  .main-nav.open{ display:flex; }
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .why-grid, .audience-grid{ grid-template-columns:1fr; }
  .services-grid, .services-grid-core{ grid-template-columns:1fr; }
  .impressions{ grid-template-columns:1fr; }
  .section{ padding:64px 0; }
  .footer-inner{ grid-template-columns:1fr; }
  .topbar-inner{ font-size:.74rem; }
  .header-inner{ gap:12px; }
  .lang-btn{ padding:6px 9px; font-size:.72rem; }
  .modal{ padding:28px 22px; }
}

/* ============================================================
   International positioning additions
   ============================================================ */

/* Skip link (keyboard accessibility) */
.skip-link{
  position:absolute;
  inset-inline-start:12px;
  top:-60px;
  z-index:2000;
  background:var(--navy-950);
  color:var(--white);
  padding:10px 16px;
  border-radius:8px;
  font-weight:600;
  font-size:.9rem;
  transition:top .15s var(--ease);
}
.skip-link:focus{ top:12px; }

/* Hero refinements: technical grid backdrop, focus line, languages */
.hero{ position:relative; overflow:hidden; }
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 70% 90% at 15% 35%, #000 0%, transparent 75%);
          mask-image:radial-gradient(ellipse 70% 90% at 15% 35%, #000 0%, transparent 75%);
  pointer-events:none;
}
.hero .wrap{ position:relative; }
.hero-tagline{
  display:inline-block;
  font-family:var(--font-head);
  font-weight:600;
  font-size:.92rem;
  letter-spacing:.02em;
  color:#f2b79f;
  margin:2px 0 0;
  padding-block:8px;
  padding-inline-start:14px;
  border-inline-start:3px solid var(--orange-500);
}
.hero-badges{ margin-bottom:0; }
.hero-langs{
  display:flex;
  flex-wrap:wrap;
  gap:6px 0;
  margin:18px 0 0;
  font-size:.82rem;
  color:#aebdcd;
}
.hero-langs span + span::before{ content:"·"; margin:0 10px; color:rgba(255,255,255,0.35); }

/* Services: two priority tiers */
.services-grid-core{ grid-template-columns:repeat(2, 1fr); }
.services-grid-core .service-card{
  padding:34px 32px;
  border-top:3px solid var(--orange-600);
}
.services-grid-core .service-card h3{ font-size:1.22rem; }
.services-grid-core .service-card p{ font-size:.97rem; margin-bottom:12px; }
.services-cta{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:36px 0 0;
}
.services-extra{
  margin-top:72px;
  padding-top:44px;
  border-top:1px solid var(--line);
}
.services-extra h3{ font-size:1.25rem; margin-bottom:.4em; }
.services-extra .section-lead{ max-width:760px; margin-bottom:28px; }
.services-grid-extra{ grid-template-columns:repeat(4, 1fr); }
.service-card-extra{ padding:24px 22px; background:var(--sand-50); }
.service-card-extra h3{ font-size:1.02rem; margin:.35em 0 .45em; }
.service-card-extra p{ font-size:.88rem; margin-bottom:10px; }
.service-card-extra .service-index{
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--ink-500);
}
.service-card-extra:hover{ background:var(--white); }
.services-grid-extra .service-card-cta{ padding:24px 22px; }
.services-grid-extra .service-card-cta h3{ font-size:1.02rem; }
.service-hint::after{ content:" →"; }

/* Experience checklist */
.check-list{
  margin-top:26px;
  display:grid;
  gap:11px;
}
.check-list li{
  position:relative;
  padding-inline-start:32px;
  font-weight:500;
  color:var(--ink-900);
  font-size:.97rem;
}
.check-list li::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:2px;
  width:20px; height:20px;
  border-radius:50%;
  background:var(--orange-600);
}
.check-list li::after{
  content:"";
  position:absolute;
  inset-inline-start:7px;
  top:6px;
  width:5px; height:9px;
  border:solid var(--white);
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

/* Nearshore section */
.steps-title{ font-size:1.05rem; margin:28px 0 18px; }
.nearshore-btn{ margin-top:28px; }
.table-note:empty{ display:none; }
.footer-brand .footer-sub{ font-size:.8rem; color:#8ea0b3; margin-top:6px; }

/* Tablet header: keep everything on one line */
@media (max-width:1180px){
  .header-inner{ gap:18px; }
  .main-nav{ gap:18px; font-size:.88rem; }
  .header-cta{ padding:9px 16px; }
}
@media (max-width:1060px){
  .services-grid-extra{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:960px){
  .main-nav{ display:none; }
  .main-nav.open{
    display:flex;
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--white);
    flex-direction:column;
    padding:18px 28px;
    gap:16px;
    border-bottom:1px solid var(--line);
  }
  .nav-toggle{ display:flex; }
  .services-grid-core{ grid-template-columns:1fr; }
}
@media (max-width:720px){
  .services-grid-extra{ grid-template-columns:1fr; }
  .services-extra{ margin-top:52px; }
  .services-grid-core .service-card{ padding:28px 24px; }
}

/* Refinements after visual review */
.solution-media img{
  width:100%;
  height:100%;
  max-height:580px;
  object-fit:cover;
  object-position:50% 58%;
}
#costTable td.highlight{
  color:var(--navy-900);
  font-weight:600;
  font-size:.93rem;
}

/* Mobile header + hero order */
@media (max-width:960px){
  .hero-media{ order:0; }
  .hero-media img{ max-width:460px; margin-inline:auto; }
}
@media (max-width:520px){
  .header-inner{ gap:8px; padding:12px 16px; }
  .brand-logo{ height:26px; width:auto; }
  .lang-switch{ gap:1px; padding:2px; }
  .lang-btn{ padding:6px 7px; font-size:.66rem; }
  .nav-toggle{ padding:4px; }
  .wrap{ padding:0 20px; }
}
@media (max-width:520px){
  .btn{ white-space:normal; text-align:center; }
  .hero-actions .btn, .services-cta .btn{ width:100%; }
}
.hero-grid > *, .solution-grid > *, .cost-grid > *, .contact-grid > *{ min-width:0; }
.contact-details a, .contact-details span{ overflow-wrap:anywhere; }
.main-nav a{ white-space:nowrap; }
@media (max-width:1100px){ .header-cta{ display:none; } }

/* Multilingual band + audience note */
.section-lang{ padding:64px 0; }
.lang-band{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:48px;
  align-items:center;
}
.lang-band .section-lead{ margin-bottom:0; max-width:46ch; }
.lang-tiles{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}
.lang-tiles li{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:84px;
  background:var(--white);
  border:1px solid var(--line);
  border-bottom:3px solid var(--orange-600);
  border-radius:var(--radius);
  font-family:var(--font-head);
  font-weight:700;
  font-size:1.35rem;
  color:var(--navy-950);
  box-shadow:var(--shadow-sm);
}
.audience-note{ margin:22px 0 0; font-size:.93rem; color:var(--ink-500); max-width:70ch; }
@media (max-width:960px){ .lang-band{ grid-template-columns:1fr; gap:28px; } }
.lang-tiles{ grid-template-columns:repeat(3, 1fr); }
@media (max-width:520px){ .lang-tiles{ grid-template-columns:1fr; } }

/* long words on narrow screens */
.legal-section, .legal-section *, .page-hero *, main p, main li, main h1, main h2, main h3{ overflow-wrap:anywhere; hyphens:manual; }

/* ============================================================
   V2 positioning: pillars, subpages, service pages
   Brand motif: the red X (see logo) returns as a quiet mark.
   ============================================================ */
:root{
  --x-mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M14 8 L86 92 M86 8 L14 92' stroke='%23c1442b' stroke-width='13' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

/* Page hero for subpages */
.page-hero{
  position:relative; overflow:hidden;
  background:linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--blue-700) 150%);
  color:var(--white);
  padding:56px 0 68px;
}
.page-hero::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 70% 100% at 20% 40%, #000 0%, transparent 75%);
          mask-image:radial-gradient(ellipse 70% 100% at 20% 40%, #000 0%, transparent 75%);
  pointer-events:none;
}
.page-hero::after{
  content:""; position:absolute;
  inset-inline-end:-70px; top:50%;
  width:420px; height:420px; transform:translateY(-50%);
  background:var(--x-mark) center/contain no-repeat;
  opacity:.13; pointer-events:none;
}
.page-hero .wrap{ position:relative; z-index:1; }
.page-hero h1{ color:var(--white); font-size:clamp(2rem, 3.4vw, 2.8rem); max-width:24ch; margin-bottom:.5em; }
.page-hero .hero-lead{ max-width:64ch; }
.page-hero .hero-actions{ margin:26px 0 0; }
.crumbs{ display:flex; flex-wrap:wrap; gap:8px; font-size:.82rem; color:#9fb3c8; margin-bottom:22px; }
.crumbs a{ color:#c4d3e2; }
.crumbs a:hover{ color:var(--white); text-decoration:underline; }
.crumbs span:not(:last-child){ opacity:.6; }

/* Positioning pillars under the hero */
.pillars-band{ background:var(--white); padding:0; }
.pillars{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;
  margin-top:-38px; position:relative; z-index:2;
}
.pillar{
  background:var(--white);
  border:1px solid var(--line); border-top:3px solid var(--orange-600);
  border-radius:var(--radius-lg); padding:24px 24px 22px;
  box-shadow:var(--shadow-md);
}
.pillar h3{ font-size:1.05rem; margin:0 0 .45em; display:flex; align-items:center; gap:10px; }
.pillar h3::before{ content:""; flex:none; width:16px; height:16px; background:var(--x-mark) center/contain no-repeat; }
.pillar p{ font-size:.93rem; margin:0; }

/* Experience vs language comparison */
.compare{ display:grid; grid-template-columns:1fr 1.15fr; gap:22px; align-items:start; }
.compare-card{ border-radius:var(--radius-lg); padding:30px 30px 26px; }
.compare-card h3{ font-size:1.12rem; }
.compare-card p{ font-size:.97rem; }
.compare-muted{ background:var(--sand-50); border:1px dashed #cfc7b4; }
.compare-muted h3, .compare-muted p{ color:var(--ink-500); }
.compare-strong{ background:var(--white); border:1px solid var(--line); border-top:3px solid var(--orange-600); box-shadow:var(--shadow-md); }
.compare-strong .check-list{ margin-top:16px; }
.honesty-note{
  margin:26px 0 0; font-size:.93rem; color:var(--ink-500); max-width:84ch;
  padding-inline-start:14px; border-inline-start:3px solid var(--line);
}

/* Services: featured Security block + link cards */
.svc-featured{
  display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center;
  background:linear-gradient(150deg, var(--navy-950), var(--navy-800));
  border-radius:var(--radius-lg); padding:42px 44px; box-shadow:var(--shadow-lg);
  position:relative; overflow:hidden;
}
.svc-featured::after{
  content:""; position:absolute; inset-inline-end:-40px; bottom:-60px; width:260px; height:260px;
  background:var(--x-mark) center/contain no-repeat; opacity:.1; pointer-events:none;
}
.svc-featured > *{ position:relative; z-index:1; }
.svc-badge{
  display:inline-block; background:var(--orange-600); color:var(--white);
  font-family:var(--font-head); font-size:.7rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  padding:5px 12px; border-radius:999px; margin-bottom:16px;
}
.svc-featured h2, .svc-featured h3{ color:var(--white); font-size:clamp(1.4rem, 2.3vw, 1.85rem); }
.svc-featured p{ color:#d7e2ee; max-width:56ch; }
.svc-featured .btn{ margin-top:6px; }
.svc-featured .check-list{ margin-top:0; }
.svc-featured .check-list li{ color:#eef3f8; font-weight:500; }
.mt-xl{ margin-top:28px; }
.services-grid-4, .services-grid-5{ grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); margin-top:28px; }
.service-link{ display:flex; flex-direction:column; color:inherit; }
.service-link .service-hint{ margin-top:auto; padding-top:14px; }
.service-link h3{ font-size:1.08rem; }
.network-box{
  margin-top:36px; background:var(--white);
  border:1px solid var(--line); border-inline-start:4px solid var(--orange-600);
  border-radius:var(--radius-lg); padding:28px 32px;
  display:grid; grid-template-columns:1fr auto; gap:12px 32px; align-items:center;
}
.network-box h3{ font-size:1.15rem; margin:0 0 .3em; grid-column:1; }
.network-box p{ margin:0; grid-column:1; max-width:78ch; }
.network-box .btn{ grid-column:2; grid-row:1 / span 2; }

/* How we work */
.how-steps{ display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; counter-reset:none; }
.how-steps .step{
  display:flex; flex-direction:column; align-items:flex-start; gap:14px;
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:26px 22px; box-shadow:var(--shadow-sm);
}
.how-steps .step h3{ font-size:1.08rem; margin:0 0 .3em; }
.how-steps .step p{ font-size:.93rem; margin:0; }
.how-steps-big{ grid-template-columns:repeat(2, 1fr); gap:22px; }
.how-steps-big .step{ padding:30px 28px; flex-direction:row; }
.how-steps-big .step p{ font-size:.97rem; }
.models-grid{ grid-template-columns:repeat(2, 1fr); }
.faq-wrap{ max-width:860px; }
.faq-item{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); margin-bottom:12px; }
.faq-item summary{
  list-style:none; cursor:pointer; padding:18px 54px 18px 22px; position:relative;
  font-family:var(--font-head); font-weight:600; font-size:1rem; color:var(--navy-950);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; position:absolute; inset-inline-end:22px; top:50%; transform:translateY(-52%);
  font-size:1.4rem; color:var(--orange-600); font-weight:500;
}
.faq-item[open] summary::after{ content:"–"; }
.faq-item p{ padding:0 22px 20px; margin:0; font-size:.96rem; }

/* Question box */
.ask-box{
  margin:36px 0 0; padding:24px 28px; background:var(--sand-100);
  border-inline-start:4px solid var(--orange-600); border-radius:var(--radius-lg);
  font-family:var(--font-head); font-weight:600; font-size:1.08rem; line-height:1.45; color:var(--navy-950);
}

/* Service page blocks */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.split > *{ min-width:0; }
.split-list{ margin-top:8px; }
.list-title{ font-size:1.05rem; margin:6px 0 4px; }
.check-cols{ grid-template-columns:repeat(2, 1fr); column-gap:44px; }
.benefit-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:18px; counter-reset:why; }
.audience-grid{ grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); }
.audience-card{ display:block; }
.cta-band{
  position:relative; overflow:hidden;
  background:linear-gradient(150deg, var(--navy-950), var(--navy-800)); padding:56px 0;
}
.cta-band::after{
  content:""; position:absolute; inset-inline-end:8%; top:50%; width:240px; height:240px; transform:translateY(-50%);
  background:var(--x-mark) center/contain no-repeat; opacity:.08; pointer-events:none;
}
.cta-inner{ position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:28px 40px; flex-wrap:wrap; }
.cta-band h2{ color:var(--white); font-size:clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom:.35em; }
.cta-band p{ color:#cfd9e4; margin:0; max-width:62ch; }

/* About */
.about-grid{ display:grid; grid-template-columns:.8fr 1.2fr; gap:56px; align-items:start; }
.about-grid > *{ min-width:0; }
.about-media img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); width:100%; max-height:620px; object-fit:cover; object-position:50% 58%; }
.prose-block{ margin-bottom:26px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.prose-block:last-child{ border-bottom:0; margin-bottom:0; padding-bottom:0; }
.prose-block h3{ font-size:1.15rem; margin-bottom:.35em; }
.prose-block p{ margin:0; }

@media (max-width:1060px){
  .how-steps{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:960px){
  .pillars{ grid-template-columns:1fr; margin-top:-28px; }
  .compare, .split, .about-grid, .svc-featured{ grid-template-columns:1fr; gap:28px; }
  .network-box{ grid-template-columns:1fr; }
  .network-box .btn{ grid-column:1; grid-row:auto; justify-self:start; margin-top:8px; }
  .check-cols{ grid-template-columns:1fr; }
  .models-grid{ grid-template-columns:1fr; }
  .page-hero::after{ width:300px; height:300px; inset-inline-end:-80px; opacity:.1; }
  .svc-featured{ padding:32px 26px; }
}
@media (max-width:640px){
  .how-steps, .how-steps-big{ grid-template-columns:1fr; }
  .how-steps-big .step{ padding:24px 20px; }
  .page-hero{ padding:40px 0 52px; }
  .cta-inner .btn{ width:100%; }
  .ask-box{ padding:20px 20px; font-size:1rem; }
}
