/* =========================================================
   Kineos Labs — Home
   Design reference: KineosLabs_HP_1.1.pdf (1366px artboard)
   ========================================================= */

:root {
  --font: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;

  --black: #000;
  --white: #fff;
  --gray-bg: #f5f5f5;
  --gray-line: #dddbd9;
  --text-muted: #6d6c6b;
  --text-soft: #787776;
  --text-legal: #898e97;
  --blue: #62aced;
  --blue-light: #b6dcf8;
  --gradient: linear-gradient(90deg, var(--blue-light) 0%, #8dc4f3 30%, var(--blue) 62%);

  --container: 1232px;
  --gutter: 24px;
  --radius: 14px;
  --section-gap: 120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.35;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.center { text-align: center; }
.muted { color: var(--text-muted); }

.section { padding-block: var(--section-gap) 0; }

.h2 {
  font-size: clamp(26px, 3.2vw, 35px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.h2--split span { display: block; }
.h2--split { line-height: 0.98; }

.lead {
  margin-top: 28px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-soft);
  max-width: 820px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 21px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}
.btn--gradient { background: var(--gradient); color: var(--white); }
.btn--gradient:hover { filter: brightness(1.04) saturate(1.1); box-shadow: 0 6px 18px rgba(98, 172, 237, .35); }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.btn--soft { background: #f3f0ee; color: var(--black); height: 43px; padding: 0 14px; }
.btn--soft:hover { background: #e9e5e2; }
.btn:active { transform: translateY(1px); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e2e6ec;
}
.header__inner {
  max-width: 1366px;
  height: 82px;
  margin-inline: auto;
  padding: 0 67px 0 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img { width: 89px; height: auto; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 41px;
  margin-left: 98px; /* centers links like the design (What We Do starts at x=453) */
}
.header__nav a:not(.btn) {
  font-size: 14.5px;
  position: relative;
}
.header__nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.header__nav a:not(.btn):hover::after { transform: scaleX(1); }
.header__cta-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 41px; }
.header__cta { width: 155px; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: #62646e;
  padding: 6px 0;
}
.lang svg { color: #4a4c55; }
.lang:hover { color: var(--black); }

.burger { display: none; width: 32px; height: 32px; position: relative; }
.burger span {
  position: absolute; left: 6px; right: 6px; height: 1.5px; background: var(--black);
  transition: transform .25s ease, top .25s ease;
}
.burger span:first-child { top: 12px; }
.burger span:last-child { top: 19px; }
.burger[aria-expanded="true"] span:first-child { top: 15.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 15.5px; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding-top: 93px;
  overflow: hidden;
}
.hero__dots {
  position: absolute;
  inset: 6px 0 auto 0;
  height: 730px;
  background-image: radial-gradient(circle, #e5e5e8 1.05px, transparent 1.25px);
  background-size: 12.5px 12.5px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(#000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 70%, transparent 100%);
  pointer-events: none;
}
.hero__title {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
  font-size: clamp(34px, 5.2vw, 50px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* Positions are percentages of the 1366 × 415 design area */
.hero__stage {
  position: relative;
  max-width: 1366px;
  margin: 48px auto 0;
  aspect-ratio: 1366 / 415;
}
.hero__sub {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 100%);
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
}
.hero__win { position: absolute; width: 18.3%; }
.hero__win--1 { left: 5.86%;  top: 0; }
.hero__win--2 { left: 29.28%; top: 36.14%; }
.hero__win--3 { left: 52.71%; top: 36.14%; }
.hero__win--4 { left: 75.84%; top: 0; width: 18.6%; }

@media (prefers-reduced-motion: no-preference) {
  .hero__win { animation: float 7s ease-in-out infinite; }
  .hero__win--2 { animation-delay: -1.7s; }
  .hero__win--3 { animation-delay: -3.4s; }
  .hero__win--4 { animation-delay: -5.1s; }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.clients {
  position: relative;
  max-width: 1255px;
  margin: 131px auto 0;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
}
.clients img { width: auto; height: 25px; }
.clients li:nth-child(3) img,
.clients li:nth-child(5) img { height: 21px; }

/* =========================================================
   Structured approach
   ========================================================= */
.steps__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step__num {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 10px;
  margin-bottom: 28px;
  font-size: 25px;
  color: var(--text-soft);
}
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--gray-line); }
.step__card {
  background: var(--gray-bg);
  border-radius: 4px;
  padding: 10px 10px 18px;
}
.step__card img { width: 100%; border-radius: 3px; }
.step__card h3 {
  margin-top: 14px;
  padding-left: 20px;
  font-size: 20px;
  font-weight: 400;
}
.step > p {
  margin-top: 10px;
  padding: 0 5px 0 25px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-soft);
}

/* =========================================================
   Case study
   ========================================================= */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 21px;
  font-size: 15px;
}
.link-arrow svg { transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(5px); }

.case__grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: 906fr 317fr;
  gap: 10px;
  align-items: stretch;
}
.case__dash { width: 100%; }
.case__photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* =========================================================
   Services (Limitless possibilities)
   ========================================================= */
.services__grid {
  display: grid;
  grid-template-columns: 503fr 688fr;
  gap: 41px;
}
.services__text { padding-left: 41px; padding-top: 0; }
.svc { margin-top: 128px; max-width: 406px; }
.svc__item + .svc__item { margin-top: 12px; }
.svc__item button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 20px;
  font-weight: 500;
  padding: 4px 0;
  transition: color .2s ease;
}
.svc__item:not(.is-active) button:hover { color: var(--text-muted); }
.svc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s ease;
}
.svc__body > div { min-height: 0; overflow: hidden; }
.svc__item.is-active .svc__body { grid-template-rows: 1fr; }
.svc__body p {
  padding-top: 10px;
  max-width: 270px;
  font-size: 15px;
  line-height: 20px;
}
.svc__bar {
  margin: 22px 0 8px;
  height: 2px;
  background: linear-gradient(var(--gray-line), var(--gray-line)) center / 100% 1px no-repeat;
}
.svc__bar i {
  display: block;
  height: 2px;
  width: 0;
  background: var(--blue);
}
.svc__item.is-active .svc__bar i { animation: progress var(--svc-duration, 6s) linear forwards; }
.svc.is-paused .svc__bar i { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.services__visual img { width: 100%; }

/* =========================================================
   Banner
   ========================================================= */
.section--tight { padding-top: 130px; }
.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 185px;
  background: var(--gray-bg);
  border-radius: 12px;
  overflow: hidden;
}
.banner__text { padding: 40px 43px; max-width: 640px; }
.banner__text h3 { font-size: 20px; font-weight: 500; }
.banner__text p {
  margin-top: 13px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-muted);
}
.banner__art {
  position: relative;
  align-self: stretch;
  flex: 0 0 36%;
  max-width: 444px;
}
.banner__art img {
  position: absolute;
  right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}
.banner__btn {
  position: absolute;
  left: 47%;
  top: 43.8%;
  width: 43%;
  height: 35px;
  padding: 0;
  font-size: 14.5px;
}

/* =========================================================
   Dark section
   ========================================================= */
.dark {
  margin-top: 128px;
  padding: 73px 0 95px;
  background: var(--black);
  color: var(--white);
}
.dark__grid {
  margin-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature img { width: 100%; border-radius: var(--radius); }
.feature h3 {
  margin-top: 19px;
  padding-inline: 43px;
  font-size: 20px;
  font-weight: 500;
}
.feature p {
  margin-top: 13px;
  padding-inline: 43px;
  max-width: 590px;
  font-size: 15px;
  line-height: 20px;
}

/* =========================================================
   Architecture
   ========================================================= */
.arch__wrap { position: relative; }
.arch__text {
  position: absolute;
  top: 0;
  left: 43px;
  z-index: 1;
}
.arch__curve { width: 100%; }

.stats {
  margin-top: 104px;
  margin-left: 17px;
  display: grid;
  grid-template-columns: 190px auto;
  row-gap: 26px;
}
.stat--wide { grid-column: 1 / -1; }
.stat {
  border-left: 2px solid #5d9efe;
  padding-left: 8px;
}
.stat dt { font-size: 28.6px; line-height: 1.1; }
.stat dd { margin-top: 4px; font-size: 15px; color: #505967; }

/* =========================================================
   Proof + testimonials
   ========================================================= */
.proof { padding-top: 117px; }
.proof__eyebrow { font-size: 20px; color: var(--text-muted); }
.proof__title {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.proof .btn { margin-top: 24px; }

.marquee {
  max-width: calc(var(--container) + 4px);
  margin: 58px auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: 19px;
  width: max-content;
  padding: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track.is-running { animation: marquee var(--marquee-duration, 40s) linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(var(--marquee-shift, -50%)); } }

.quote {
  flex: 0 0 330px;
  min-height: 205px;
  padding: 24px 26px;
  border: 1px solid #e6e6e6;
  border-radius: var(--radius);
  background: var(--white);
}
.quote header { display: flex; align-items: center; gap: 15px; }
.quote header img {
  width: 42px; height: 42px;
  padding: 0;
  border-radius: 8px;
  object-fit: contain;
}
.quote header img[src*="xinco"] {
  padding: 8px;
  border: 1px solid #e6e6e6;
}
.quote h4 { font-size: 18px; font-weight: 400; }
.quote header span { display: block; margin-top: 2px; font-size: 14px; color: var(--text-muted); }
.quote p {
  margin-top: 22px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-soft);
}

/* =========================================================
   Final CTA + email form
   ========================================================= */
.final { padding-bottom: 130px; }
.final__title {
  max-width: 420px;
  margin-inline: auto;
  font-size: clamp(26px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.07;
}

.email {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 523px;
  height: 63px;
  margin: 50px auto 0;
  padding: 4px 3px 4px 0;
  background: #f8f8f8;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
}
.email input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 16px 0 26px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
}
.email input::placeholder { color: var(--text-muted); opacity: 1; }
.email:focus-within { border-color: #cfe5fa; box-shadow: 0 0 0 4px rgba(98, 172, 237, .12); }
.email .btn {
  height: 100%;
  width: 186px;
  flex: 0 0 auto;
  font-size: 18px;
  border-radius: 6px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 100px 0 70px;
}
.footer__top {
  display: grid;
  grid-template-columns: 235px 1fr;
}
.footer__logo { width: 110px; margin-top: 3px; }
.footer__cols {
  display: grid;
  grid-template-columns: 166px 240px 180px 169px auto;
}
.footer__cols h5 { font-size: 14.5px; font-weight: 400; margin-bottom: 22px; }
.footer__cols a {
  display: block;
  width: fit-content;
  font-size: 12px;
  color: var(--text-muted);
  padding-block: 6px;
  transition: color .2s ease;
}
.footer__cols a:hover { color: var(--white); }

.footer__legal {
  margin-top: 92px;
  padding-top: 85px;
  border-top: 1px solid #dddbd9;
  max-width: 100%;
}
.footer__legal > p {
  max-width: 600px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-legal);
}
.footer__legal > p + p { margin-top: 8px; }
.footer__terms { display: flex; gap: 13px; margin-bottom: 12px; }
.footer__terms a { text-decoration: underline; text-underline-offset: 3px; }
.footer__terms a:hover { color: var(--white); }

.email--dark {
  margin: 82px 0 0;
  max-width: 525px;
  background: #3d3d3d;
  border: 1px solid #4a4a4a;
}
.email--dark input { color: var(--white); }
.email--dark input::placeholder { color: #e5e6e5; }
.email--dark .btn { background: var(--blue); color: var(--white); }
.email--dark .btn:hover { filter: brightness(1.06); }

/* =========================================================
   Scroll reveal
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .header__inner { padding-inline: var(--gutter); }
  .header__nav { margin-left: 0; gap: 28px; }
  .header__actions { gap: 24px; }
  .footer__top { grid-template-columns: 1fr; row-gap: 48px; }
  .footer__cols { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .services__text { padding-left: 0; }
}

@media (max-width: 960px) {
  :root { --section-gap: 88px; }

  /* Header → burger */
  .header__inner { height: 64px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .header__actions { gap: 12px; }
  .header__nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid #e2e6ec;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .header__nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .header__nav a:not(.btn) { width: 100%; padding: 14px 0; font-size: 17px; border-bottom: 1px solid #f0f0f0; }
  .header__nav a:not(.btn)::after { display: none; }
  .header__cta-mobile { display: inline-flex; margin-top: 18px; height: 44px; width: 100%; font-size: 16px; }

  /* Hero → grid of windows */
  .hero { padding-top: 64px; }
  .hero__stage {
    aspect-ratio: auto;
    margin-top: 20px;
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    max-width: 640px;
  }
  .hero__sub { position: static; transform: none; grid-column: 1 / -1; margin: 0 auto 16px; font-size: 15px; }
  .hero__win { position: static; width: 100% !important; }
  .hero__win--4 { order: 1; }
  .hero__win--2, .hero__win--3 { order: 2; }
  .clients { margin-top: 64px; grid-template-columns: repeat(3, 1fr); row-gap: 32px; }

  .steps__grid { grid-template-columns: 1fr; gap: 48px; max-width: 560px; margin-inline: auto; }
  .case__grid { grid-template-columns: 1fr; }
  .case__photo { max-height: 420px; object-position: center 30%; }

  .services__grid { grid-template-columns: 1fr; gap: 48px; }
  .svc { margin-top: 40px; max-width: none; }
  .svc__body p { max-width: 420px; }

  .banner { flex-direction: column; align-items: stretch; }
  .banner__text { padding: 32px 28px 8px; }
  .banner__art { flex: none; align-self: flex-end; width: 100%; max-width: 444px; aspect-ratio: 444 / 187; }

  .dark { margin-top: 88px; padding: 64px 0 72px; }
  .dark__grid { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .feature h3, .feature p { padding-inline: 8px; }

  .arch__text { position: static; }
  .arch__curve { margin-top: -40px; }
  .stats { margin-top: 48px; }

  .proof { padding-top: 88px; }
  .final { padding-bottom: 96px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --section-gap: 72px; }

  .clients { grid-template-columns: repeat(2, 1fr); }
  .clients li:last-child { grid-column: 1 / -1; }

  .footer { padding-top: 64px; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer__legal { margin-top: 56px; padding-top: 48px; }

  .quote { flex-basis: 290px; }

  .email { height: auto; flex-direction: column; padding: 6px; gap: 6px; }
  .email input { width: 100%; height: 50px; padding: 0 14px; font-size: 16px; }
  .email .btn { width: 100%; height: 50px; font-size: 17px; }

  .stats { grid-template-columns: 1fr 1fr; margin-left: 0; }
  .arch__text { padding-left: 0; }
  .arch__curve { margin-top: 0; }
}
