/* ---------- Design tokens ---------- */
:root {
  /* Brand accent (from VIS logo orange). Kept as --blue/--blue-dark so all
     existing accent rules pick up the new color without edits. */
  --blue: #f26322;
  --blue-dark: #c94e14;
  --navy: #141c2b;
  --ink: #141c2b;
  --muted: #5b6577;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --line: #e6e8ec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 28, 43, 0.10);
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-1px); }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; margin-top: 8px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: 13px;
  font-weight: 700; color: var(--blue); margin: 0 0 12px;
}
.accent { color: var(--blue); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #c6d3ea; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar__links a { margin-right: 18px; opacity: .9; }
.topbar__links a:hover { color: #fff; }
.topbar__region select {
  background: transparent; border: 0; color: #c6d3ea; font: inherit; cursor: pointer;
}
.topbar__region { display: flex; align-items: center; gap: 6px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo__img { height: 52px; width: auto; display: block; }
.logo__mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: conic-gradient(from 140deg, var(--blue), #ffa066, var(--blue-dark));
}
.logo__text { font-size: 22px; letter-spacing: -.02em; }
.logo__text--light { color: #fff; }
.logo__dot { color: var(--blue); }

/* Logo image on dark backgrounds (footer): sit it on a white chip since the
   source JPG has a light, non-transparent background. */
.logo__img--chip {
  height: 48px; background: #fff; padding: 6px 10px; border-radius: 10px;
}

.nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__item a { font-weight: 500; color: var(--ink); padding: 8px 0; position: relative; }
.nav__item a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--blue); transition: width .2s ease;
}
.nav__item a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { background: transparent; border: 0; font-size: 18px; cursor: pointer; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: 0; border: 0; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

.mobile-menu { display: none; flex-direction: column; gap: 6px; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: 10px 0; font-weight: 500; }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 440px at 82% -10%, rgba(242,99,34,.14), transparent),
    radial-gradient(900px 360px at 0% 10%, rgba(20,28,43,.05), transparent),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: 72px 0 64px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 18px; }
.hero__tagline { font-size: 18px; font-weight: 700; color: var(--blue); margin: 0 0 16px; letter-spacing: -.01em; }
.hero__text { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual { position: relative; min-height: 360px; }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; }
.orb--1 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #ffa066, var(--blue)); top: 0; right: 20px; }
.orb--2 { width: 150px; height: 150px; background: radial-gradient(circle at 30% 30%, #3a4a63, var(--navy)); bottom: 10px; left: 10px; }
.hero__card {
  position: relative; z-index: 2; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); padding: 24px; max-width: 340px; margin-left: auto;
}
.hero__card-row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.hero__card-row strong { color: var(--blue); }
.hero__card-bar { height: 10px; background: var(--bg-alt); border-radius: 999px; margin: 10px 0; overflow: hidden; }
.hero__card-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--blue), #ffa066); border-radius: 999px; }

/* ---------- Logos ---------- */
.logos { padding: 36px 0; border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px; }
.logos__row span { font-weight: 800; letter-spacing: .05em; color: #9aa8c2; font-size: 18px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin: 0 0 12px; }
.section__sub { color: var(--muted); font-size: 17px; margin: 0; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--service { padding: 28px; }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(242,99,34,.12), rgba(242,99,34,.04));
  border: 1px solid rgba(242,99,34,.18); border-radius: 14px; color: var(--blue);
}
.card__icon svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.service-row__icon svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card__link { color: var(--blue); font-weight: 600; }
.card__link:hover { text-decoration: underline; }

.card--post { padding: 0; }
.card__media { height: 170px; background: linear-gradient(135deg, hsl(var(--hue) 90% 60%), hsl(var(--hue) 80% 40%)); }
.card__body { padding: 22px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); background: rgba(242,99,34,.10); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.feature h3 { font-size: 24px; margin: 0 0 10px; }
.feature p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 600; transition: .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; padding: 56px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: #a9bbe0; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 64px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 8px; }
.cta p { margin: 0; opacity: .9; }

/* ---------- Footer ---------- */
.footer { background: #081429; color: #c6d3ea; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0; }
.footer__brand p { color: #93a6c9; margin-top: 14px; max-width: 280px; }
.footer__col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer__col a { display: block; padding: 6px 0; color: #a9bbe0; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 13px; }
.footer__legal a { margin-left: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 260px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  /* Hide only the header CTA on phones (hamburger menu carries it).
     Scoped to header so form/CTA buttons stay visible. */
  .header__actions .btn { display: none; }
  .mobile-menu .btn { display: inline-flex; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; gap: 10px; }
}

/* ---------- Value props (replaces logo strip) ---------- */
.valueprops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.valueprop { text-align: center; padding: 8px; }
.valueprop strong { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.valueprop span { color: var(--muted); font-size: 14px; }

/* ---------- Careers note ---------- */
.careers__note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 16px; }
.careers__note a { color: var(--blue); font-weight: 600; }
.careers__note a:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact { padding: 84px 0; background: var(--bg-alt); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact__intro h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -.02em; }
.contact__intro p { color: var(--muted); font-size: 17px; margin: 0 0 20px; max-width: 420px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact__list li { font-weight: 500; }
.contact__list a { color: var(--blue); }
.contact__list a:hover { text-decoration: underline; }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; }

.form__status { margin: 14px 0 0; font-size: 14px; font-weight: 500; min-height: 20px; }
.form__status--ok { color: #0a8f4e; }
.form__status--error { color: #d23b3b; }

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

/* ---------- Inner / child pages ---------- */
.page-hero {
  background:
    radial-gradient(1000px 360px at 85% -20%, rgba(10,102,255,.12), transparent),
    linear-gradient(180deg, #f7faff, #ffffff);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { margin: 0 8px; opacity: .6; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; margin: 0 0 14px; line-height: 1.05; }
.page-hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0; }

/* Prose / content blocks for detail pages */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 26px; letter-spacing: -.02em; margin: 36px 0 12px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p { color: var(--muted); margin: 0 0 16px; }
.prose ul { color: var(--muted); margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

/* List of services as linked rows */
.service-list { display: grid; gap: 16px; }
.service-row {
  display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ffd0b8; }
.service-row__icon {
  width: 52px; height: 52px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(242,99,34,.12), rgba(242,99,34,.04));
  border: 1px solid rgba(242,99,34,.18); border-radius: 13px; color: var(--blue);
}
.service-row__body { flex: 1; }
.service-row__body h3 { margin: 0 0 4px; font-size: 19px; }
.service-row__body p { margin: 0; color: var(--muted); font-size: 15px; }
.service-row__arrow { color: var(--blue); font-weight: 700; font-size: 20px; }

/* Two-column detail layout */
.detail { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.detail__aside {
  position: sticky; top: 90px; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.detail__aside h4 { margin: 0 0 12px; font-size: 16px; }
.detail__aside ul { list-style: none; margin: 0 0 18px; padding: 0; }
.detail__aside li { padding: 6px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line); }
.detail__aside li:last-child { border-bottom: 0; }

/* Values grid (about page) */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value h3 { margin: 0 0 8px; font-size: 19px; }
.value p { margin: 0; color: var(--muted); }

/* Roles list (careers page) */
.roles { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.role {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
}
.role__info h3 { margin: 0 0 4px; font-size: 18px; }
.role__info p { margin: 0; color: var(--muted); font-size: 14px; }
.role__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: rgba(242,99,34,.10); padding: 5px 10px; border-radius: 999px; }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
  .values { grid-template-columns: 1fr; }
}

/* ============================================================
   MODERNIZATION LAYER
   ============================================================ */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), #ffa066);
  z-index: 100; transition: width .08s linear;
}

/* ---- Gradient hero headline ---- */
.hero__title {
  background: linear-gradient(120deg, var(--ink) 40%, var(--blue) 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title .accent { -webkit-text-fill-color: var(--blue); }

/* ---- Refined card hover (lift + orange glow) ---- */
.card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card--service:hover { border-color: rgba(242,99,34,.35); box-shadow: 0 14px 36px rgba(242,99,34,.12); }
.card--service:hover .card__icon { transform: translateY(-2px) scale(1.05); transition: transform .22s ease; }

/* ---- Button sheen ---- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: transform .5s ease;
}
.btn--primary:hover::after { transform: translateX(120%); }

/* ---- Value prop icons ---- */
.valueprop__icon {
  width: 46px; height: 46px; margin: 0 auto 12px; display: grid; place-items: center;
  border-radius: 12px; background: linear-gradient(135deg, rgba(242,99,34,.12), rgba(242,99,34,.04));
  border: 1px solid rgba(242,99,34,.18);
}
.valueprop__icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; }

/* ---- Process timeline (How we work) ---- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--blue), #ffa066); opacity: .35; z-index: 0;
}
.tstep { position: relative; z-index: 1; text-align: center; }
.tstep__num {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 8px 20px rgba(242,99,34,.30); border: 4px solid var(--bg);
}
.tstep h3 { font-size: 18px; margin: 0 0 8px; }
.tstep p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---- Client logos (social proof) ---- */
.clients { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.clients__label { text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .04em; margin: 0 0 20px; }
.clients__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; }
.client-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  font-weight: 800; letter-spacing: .02em; font-size: 20px; color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.client-chip:hover { transform: translateY(-2px); border-color: rgba(242,99,34,.35); box-shadow: var(--shadow); }
.client-chip small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---- Testimonial ---- */
.quote {
  max-width: 820px; margin: 36px auto 0; text-align: center;
  font-size: clamp(20px, 2.6vw, 26px); line-height: 1.5; letter-spacing: -.01em; color: var(--ink);
}
.quote__mark { color: var(--blue); font-size: 44px; line-height: 0; display: block; margin-bottom: 8px; font-weight: 800; }
.quote cite { display: block; margin-top: 18px; font-size: 15px; font-style: normal; color: var(--muted); font-weight: 600; }

/* ---- Founder card ---- */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 32px; }
.founder__avatar {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; font-weight: 800; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.founder__name { margin: 0 0 2px; font-size: 20px; }
.founder__role { margin: 0 0 10px; color: var(--blue); font-weight: 600; font-size: 14px; }
.founder p { margin: 0; color: var(--muted); }

/* ---- Fact strip ---- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.fact { text-align: center; }
.fact strong { display: block; font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.fact span { color: var(--muted); font-size: 14px; }

/* ---- Accessibility: visible focus ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(242,99,34,.45); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder__avatar { margin: 0 auto; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ============================================================
   DARK MODE (prefers-color-scheme)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ebf0;
    --muted: #9aa6b8;
    --bg: #0e1420;
    --bg-alt: #151c2b;
    --line: #26303f;
    --navy: #0a0f18;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
  body { background: var(--bg); color: var(--ink); }
  .header { background: rgba(14,20,32,.85); }
  .hero {
    background:
      radial-gradient(1200px 440px at 82% -10%, rgba(242,99,34,.18), transparent),
      linear-gradient(180deg, var(--bg-alt), var(--bg));
  }
  .card, .feature, .value, .role, .service-row, .contact__form, .client-chip, .founder, .hero__card {
    background: var(--bg-alt); border-color: var(--line);
  }
  .chip { background: var(--bg-alt); border-color: var(--line); }
  .btn--light { background: var(--bg-alt); color: var(--ink); }
  .btn--ghost { color: var(--ink); }
  .field input, .field textarea { background: #0e1420; color: var(--ink); border-color: var(--line); }
  .logos, .clients { background: var(--bg); }
  .tstep__num { border-color: var(--bg); }
  /* Keep the hero headline readable in dark mode */
  .hero__title { background: linear-gradient(120deg, var(--ink) 45%, #ffa066 120%);
    -webkit-background-clip: text; background-clip: text; }
  /* Footer already dark; nudge to match */
  .footer { background: #070b12; }
}

/* ============================================================
   MOBILE REFINEMENTS (phones & small tablets)
   ============================================================ */
@media (max-width: 600px) {
  .container { padding: 0 18px; }

  /* Tighter vertical rhythm on phones */
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 44px; }
  .contact { padding: 56px 0; }
  .section__head { margin-bottom: 32px; }

  /* Topbar: drop the quick links, keep the email; prevent overflow */
  .topbar__links { display: none; }
  .topbar__inner { justify-content: flex-end; }

  /* Hero: give the headline room, shrink visual */
  .hero__inner { gap: 28px; }
  .hero__visual { min-height: 220px; }
  .hero__card { max-width: 100%; margin: 0 auto; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; }

  /* Logo a touch smaller so it never crowds the hamburger */
  .logo__img { height: 42px; }

  /* Clients / testimonial */
  .client-chip { width: 100%; justify-content: center; }
  .quote { font-size: 20px; }

  /* CTA band stacks and left-aligns */
  .cta__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta__inner .btn { width: 100%; }

  /* Roles (careers) stack cleanly */
  .role { flex-direction: column; align-items: flex-start; }

  /* Breadcrumbs wrap instead of overflowing */
  .breadcrumbs { line-height: 2; }
}

/* Small-tablet tune: 2-up value props already set; make services 2-up readable */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .page-hero { padding: 44px 0 36px; }
}

/* Guard against horizontal scroll on any device */
html, body { overflow-x: hidden; }
img, svg { max-width: 100%; }
