/* Velocity.AI — Apple-inspired one-page site */

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-dark: #a1a1a6;
  --cream: #F7F5F1;
  --grey: #f5f5f7;
  --white: #ffffff;
  --black: #000000;
  --tile-dark: #161617;
  --yellow: #F9E900;
  --yellow-hover: #FFF23D;
  --light-blue: #64D2FF;
  --whatsapp: #25D366;
  --whatsapp-hover: #3BE27A;
  --viber: #7360F2;
  --viber-hover: #8A7BF5;
  --line: rgba(0, 0, 0, .1);
  --line-dark: rgba(255, 255, 255, .14);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --gutter: 22px;
  --radius: 28px;
  --nav-h: 52px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Type ---------- */

.display {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.headline {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.headline--left { text-align: left; }
.lede {
  max-width: 680px;
  margin: 20px auto 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.38;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.015em;
}
.section--black .lede { color: var(--muted-dark); }
.eyebrow {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.eyebrow--accent { color: var(--yellow); }
.eyebrow--muted { color: var(--muted); }
.accent { color: var(--yellow); }
.accent-blue { color: var(--light-blue); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--sm { padding: 6px 15px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 19px; }
.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:hover { background: var(--yellow-hover); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--whatsapp { background: var(--whatsapp); color: var(--black); }
.btn--whatsapp:hover { background: var(--whatsapp-hover); }
.btn--viber { background: var(--viber); color: var(--white); }
.btn--viber:hover { background: var(--viber-hover); }
.btn:focus-visible, .link-more:focus-visible, .carousel__btn:focus-visible, .nav a:focus-visible, .nav__toggle:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

.link-more {
  font-size: 19px;
  color: #0066cc;
  text-decoration: none;
}
.link-more::after { content: " ›"; }
.link-more:hover { text-decoration: underline; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(247, 245, 241, .92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .3s ease;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wordmark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { color: #c9bb00; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 13px;
  color: rgba(29, 29, 31, .8);
  text-decoration: none;
}
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__inner { gap: 12px; }
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav__toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .25s ease; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(247, 245, 241, .97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__links a { padding: 12px 0; font-size: 24px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--cream);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  max-width: 1440px;
  min-height: min(calc(100vh - var(--nav-h)), 760px);
  margin: 0 auto;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.hero__copy { padding: 72px 0; position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(56px, 8.4vw, 116px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.hero__sub {
  margin-top: 22px;
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero__media { align-self: end; }
.hero__media img {
  width: 100%;
  /* feather the top and left edges so the photo's background melts into the section */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%), linear-gradient(to bottom, transparent, #000 6%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 4%), linear-gradient(to bottom, transparent, #000 6%);
  mask-composite: intersect;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
    text-align: center;
  }
  .hero__copy { padding: 56px var(--gutter) 28px; }
  .hero__ctas { justify-content: center; }
  .hero__media { padding-left: 4%; }
}

/* ---------- Sections ---------- */

.section { padding: 128px 0; }
.section--black { background: var(--black); color: var(--white); }
.section--grey { background: var(--grey); }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }

.statement { padding: 160px 0; }
.statement .lede { color: var(--white); font-weight: 500; }

@media (max-width: 760px) {
  .section { padding: 88px 0; }
  .statement { padding: 112px 0; }
}

/* ---------- Approach ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 72px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 40px 36px 36px;
  background: var(--white);
  border-radius: var(--radius);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}
.step__icon {
  position: absolute;
  top: 36px;
  right: 34px;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step h3 { margin-top: 40px; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.step p { margin-top: 8px; font-size: 19px; color: var(--muted); }
.step__owner {
  display: block;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}

.system {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 20px;
  padding: 32px 36px;
  background: var(--white);
  border-radius: var(--radius);
}
.system__title { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; }
.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.5 11.5 3 3 6-6.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; margin-top: 48px; }
  .system { padding: 28px; }
}

/* ---------- Bento tiles ---------- */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.chips span {
  padding: 8px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
}
.chips--light span { border-color: var(--line); }

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 72px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
}
.tile--wide { grid-column: 1 / -1; }
.tile__copy { padding: 44px 44px 28px; }
.tile h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.tile p { margin-top: 10px; max-width: 520px; font-size: 19px; line-height: 1.4; }
.tile > img { width: 100%; margin-top: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tile--wide > img { aspect-ratio: 21 / 9; }

.tile--dark { background: var(--tile-dark); }
.tile--dark p { color: var(--muted-dark); }
.tile--light { background: var(--grey); color: var(--ink); }
.tile--light p { color: var(--muted); }
.tile--wide .tile__copy { text-align: center; }
.tile--wide .tile__copy p { margin-left: auto; margin-right: auto; }

.tile--photo { background: var(--grey); min-height: 420px; }
.tile--photo > img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; margin: 0; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile--photo:hover > img { transform: scale(1.03); }
.tile--photo.tile--wide { min-height: 520px; }
.tile--tall { min-height: 620px; }
.tile__caption {
  position: relative;
  margin-top: auto;
  padding: 120px 40px 36px;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
}
.tile__caption p { margin-top: 4px; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; gap: 14px; margin-top: 48px; }
  .tile__copy { padding: 32px 28px 20px; }
  .tile--wide > img { aspect-ratio: 16 / 10; }
  .tile--photo, .tile--photo.tile--wide { min-height: 380px; }
  .tile--tall { min-height: 480px; }
  .tile__caption { padding: 96px 28px 28px; }
}

/* ---------- Numbers ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}
.stat { padding: 16px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-dark); }
.stat dt {
  font-size: clamp(64px, 9vw, 120px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat dd { margin-top: 16px; font-size: 19px; color: var(--muted-dark); }

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 32px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* ---------- Industries carousel ---------- */

.carousel { margin-top: 56px; }
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2));
  padding: 8px max(var(--gutter), calc((100% - var(--max)) / 2)) 24px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid #0071e3; outline-offset: -2px; }
.card {
  position: relative;
  flex: 0 0 auto;
  width: 372px;
  height: 500px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  scroll-snap-align: start;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, .08);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* hides the website header baked into screenshot-style images */
.card img.crop-top { inset: auto 0 0 0; height: 116%; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 45%);
}
.card__copy { position: relative; z-index: 1; padding: 30px; }
.card__kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.card h3 { margin-top: 6px; font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
.carousel__controls { display: flex; justify-content: flex-end; gap: 14px; margin-top: 8px; }
.carousel__btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(210, 210, 215, .64);
  color: rgba(0, 0, 0, .56);
  font-size: 26px;
  line-height: 1;
  padding-bottom: 3px;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}
.carousel__btn:hover { background: rgba(223, 223, 227, .9); }
.carousel__btn:disabled { opacity: .42; cursor: default; }

@media (max-width: 760px) {
  .card { width: 80vw; max-width: 340px; height: 440px; }
}

/* ---------- Brands ---------- */

.brands__wall {
  width: 100%;
  max-width: 365px;
  margin: 56px auto 0;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .12);
}

/* ---------- Contact ---------- */

.contact { padding-bottom: 96px; }
.contact__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.person {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 32px 40px;
  margin-top: 112px;
  padding: 40px;
  background: var(--tile-dark);
  border-radius: var(--radius);
}
.person__photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--light-blue); }
.person__name { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.person__role { margin-top: 8px; font-size: 16px; color: var(--muted-dark); }
.person__links { display: grid; gap: 12px; font-size: 16px; }
.person__links li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; color: var(--muted-dark); }
.person__links span { color: var(--white); font-weight: 600; }
.person__links a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.person__links a:hover { color: var(--yellow); }

@media (max-width: 960px) {
  .person { grid-template-columns: auto 1fr; }
  .person__links { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
  .person { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 32px 24px; margin-top: 80px; }
  .person__links { justify-items: stretch; width: 100%; text-align: left; }
  .person__links li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Footer ---------- */

.footer { background: var(--grey); padding: 20px 0; font-size: 12px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile--photo > img, .nav__links, .nav__toggle span { transition: none; }
  .tile--photo:hover > img { transform: none; }
}
