:root {
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --muted-dark: #a1a1a6;
  --line: #d2d2d7;
  --gray: #f5f5f7;
  --blue: #0071e3;
  --link: #0066cc;
  --link-dark: #2997ff;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
input, textarea, select, button { font-family: inherit; }
section[id], header[id] { scroll-margin-top: 48px; }
p { margin: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nav__inner {
  max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand {
  color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  white-space: nowrap; text-decoration: none;
}
.nav__brand:hover { text-decoration: none; }
.nav__brand span { font-weight: 300; }
.nav__links {
  display: flex; gap: 28px; font-size: 12px; position: relative;
  align-self: stretch; align-items: center;
}
.nav__links a { color: var(--ink); opacity: .8; transition: opacity .3s; white-space: nowrap; }
.nav__indicator {
  position: absolute; bottom: 0; left: 0; height: 2px; width: 0;
  background: var(--ink); border-radius: 2px; opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}

/* ---------- Hero ---------- */
.hero {
  background: #000; color: #f5f5f7; text-align: center;
  padding: 120px 22px 0; overflow: hidden;
}
.hero__eyebrow { margin: 0 0 12px; font-size: 19px; font-weight: 600; color: var(--muted-2); }
.hero__title {
  margin: 0 auto; max-width: 900px;
  font-size: clamp(44px, 8vw, 88px); line-height: 1.05; font-weight: 700;
  letter-spacing: -.035em; text-wrap: balance;
}
.hero__lead {
  margin: 24px auto 0; max-width: 620px;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--muted-dark);
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.btn-pill {
  background: var(--blue); color: #fff; padding: 12px 24px; border-radius: 980px;
  font-size: 17px; text-decoration: none;
}
.btn-pill:hover { text-decoration: none; background: #0077ed; }
.link-more { color: var(--link-dark); padding: 12px 8px; font-size: 17px; }
.hero__media {
  max-width: 1000px; height: clamp(240px, 42vw, 480px);
  margin: 72px auto 0; position: relative;
  border-radius: 24px 24px 0 0; overflow: hidden;
  background: #111;
}
/* Demo photos from Unsplash (Unsplash License):
   hero-dark by Arnold Francisca, hero-light by Christopher Gower. */
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Light hero variant */
body[data-hero="light"] .hero { background: var(--gray); color: var(--ink); }
body[data-hero="light"] .hero__eyebrow,
body[data-hero="light"] .hero__lead { color: var(--muted); }
body[data-hero="light"] .link-more { color: var(--link); }
body[data-hero="light"] .hero__media { border-radius: 24px; background: #e8e8ed; }

/* ---------- Sections ---------- */
.section { padding: 140px 22px; background: #fff; }
.section--flush-top { padding-top: 0; }
.section--gray { background: var(--gray); }
.section--dark { background: #000; color: #f5f5f7; }
.section--stack { padding: 120px 22px; }
.container { max-width: 980px; margin: 0 auto; }
.container--wide { max-width: 1024px; }
.container--narrow { max-width: 860px; }

.eyebrow { margin: 0 0 16px; font-size: 17px; font-weight: 600; color: var(--blue); }
.h2 {
  margin: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.1;
  font-weight: 700; letter-spacing: -.03em;
}
.section__lead { margin: 16px auto 0; text-align: center; font-size: 21px; color: var(--muted); max-width: 600px; }
.section__lead--wide { max-width: 640px; text-wrap: pretty; }

/* About */
.about__title { max-width: 820px; text-wrap: balance; }
.about__lead {
  margin-top: 28px; font-size: 21px; line-height: 1.5; color: var(--muted);
  max-width: 720px; text-wrap: pretty;
}
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
  margin-top: 80px; border-top: 1px solid var(--line); padding-top: 40px;
}
.stats__num { font-size: 48px; font-weight: 700; letter-spacing: -.03em; }
.stats__label { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* Mission / vision / values */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pillar { background: var(--gray); border-radius: 28px; padding: 44px 40px; }
.pillar__label {
  margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.pillar__text { font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; }

/* Cards (services + cloud) */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 64px;
}
.card {
  background: #fff; border-radius: 28px; padding: 40px; min-height: 260px;
  display: flex; flex-direction: column; gap: 14px;
}
.card--cloud { min-height: 240px; }
.card__num { font-size: 13px; font-weight: 600; color: var(--blue); }
.card__title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.card--cloud .card__title { font-size: 28px; }
.card__desc { font-size: 17px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.card__tags { margin-top: auto; font-size: 13px; color: var(--muted-2); }

/* Process */
.process__title { max-width: 700px; }
.process__title span { color: var(--muted-2); }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2px;
  margin-top: 72px; background: var(--ink); border-radius: 24px; overflow: hidden;
}
.step {
  background: #000; padding: 36px 28px; display: flex; flex-direction: column; gap: 12px;
  outline: 1px solid var(--ink);
}
.step__n { font-size: 40px; font-weight: 300; color: var(--link-dark); letter-spacing: -.02em; }
.step__title { font-size: 19px; font-weight: 600; }
.step__desc { font-size: 15px; line-height: 1.5; color: var(--muted-dark); }

/* Tech stack */
.stack__title { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.025em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px; }
.chip { padding: 10px 20px; border-radius: 980px; background: var(--gray); font-size: 15px; font-weight: 500; }

/* Testimonials */
.quote__text {
  font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; font-weight: 600;
  letter-spacing: -.02em; text-wrap: balance;
}
.quote__name { margin-top: 32px; font-size: 17px; font-weight: 600; }
.quote__role { margin-top: 4px; font-size: 15px; color: var(--muted); }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--line); transition: background .3s;
}
.dot.is-active { background: var(--ink); }

/* Contact */
.contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 64px; align-items: start;
}
.contact__title {
  margin: 0; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.05;
  font-weight: 700; letter-spacing: -.035em;
}
.contact__lead { margin-top: 24px; font-size: 19px; line-height: 1.5; color: var(--muted-dark); max-width: 400px; }
.contact__list { display: flex; flex-direction: column; gap: 18px; margin-top: 48px; font-size: 17px; }
.contact__label { font-size: 13px; color: var(--muted-2); margin-bottom: 4px; }
.contact a { color: var(--link-dark); }
.contact a[href^="tel:"] { color: inherit; }
.contact address { font-style: normal; }

/* Footer */
.footer { background: var(--gray); padding: 32px 22px; font-size: 12px; color: var(--muted); }
.footer__inner {
  max-width: 980px; margin: 0 auto; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px;
}
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--ink-soft); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .nav__inner { gap: 16px; padding: 0 16px; }
  .nav__brand span { display: none; }
  .nav__links {
    gap: 18px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
    padding-right: 16px;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .section, .hero { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 88px; }
  .section { padding-top: 96px; padding-bottom: 96px; }
  .section--flush-top { padding-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .card, .pillar { padding: 32px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
