/* Verseco home page — built from Figma "marketplace" frame 479:2455 (verseco_home, 1920 × 4483).
   Feature block → css/feature-block.css · About our work slider → css/about-slider.css */

:root {
  --red: #e91c21;
  --red-dark: #c4161a;
  --ink: #000000;
  --ink-75: rgba(0, 0, 0, 0.75);
  --ink-65: rgba(0, 0, 0, 0.65);
  --line: #d9d9d9;
  --footer: #1b1b1b;
  --footer-field: #2e2e2e;
  --edge: 53px;                 /* page side margin in the design */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 122px;
  display: flex;
  align-items: stretch;
  background: #fff;
}
.site-header__logo {
  display: flex;
  align-items: center;
  padding: 0 21px 0 50px;
  border-right: 1px solid var(--line);
}
.site-header__logo img { width: 308px; max-width: 100%; height: auto; flex-shrink: 0; }
.site-header__tools {
  display: flex;
  align-items: center;
  gap: 19px;
  padding-left: 31px;
}
.icon-btn {
  display: grid;
  place-items: center;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--ink-75);
  cursor: pointer;
}
.icon-btn:hover { color: var(--red); }
.icon-btn img { display: block; transition: transform 0.2s ease; }
.icon-btn:hover img { transform: scale(1.06); }
/* burger: three 30px lines (Figma 30 × 22); turns red while the menu is open */
.burger { position: relative; width: 42px; height: 34px; padding: 0; }
.burger span {
  position: absolute;
  left: 6px;
  width: 30px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: width 0.3s ease, background 0.3s ease;
}
.burger span:nth-child(1) { top: 6px; }
.burger span:nth-child(2) { top: 16px; }
.burger span:nth-child(3) { top: 26px; }
.burger:hover span:nth-child(2) { width: 22px; }
.menu-open .burger { color: var(--red); }
.burger:focus { outline: none; }
.burger:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.site-header__social {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 54px 0 30px;
  border-left: 1px solid var(--line);
}
.site-header__social a { display: grid; color: #111; }
.site-header__social a:hover { color: var(--red); }
.site-header__social svg { width: 24px; height: 24px; }

/* mega menu — Figma frame 479:4602 (card 947 × 512). Type: Inter 14px / 200%,
   headings + group links Semi Bold, plain links Regular; link rhythm 35px, group rhythm 41px. */
.mega {
  position: absolute;
  top: 85px;
  left: 390px;
  z-index: 60;
  width: 947px;
  max-width: calc(100vw - 390px - var(--edge));
  min-height: 512px;
  padding: 22px 35px 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  display: grid;
  grid-template-columns: 230px 364px 1fr;
  align-items: start;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.menu-open .mega {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}
.mega > div { min-width: 0; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega a {
  display: block;
  padding: 3.5px 0;               /* 28px line + 7px = 35px rhythm */
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.8);
  transition: color 0.2s ease;
}
.mega a:hover { color: var(--red); }
.mega .mega__head { font-weight: 600; color: #000; }
.mega .mega__group { margin-top: 10px; }
.mega .mega__group a { font-weight: 600; color: #000; padding: 6.5px 0; }   /* 41px rhythm */
.mega .mega__group a:hover,
.mega .mega__head:hover { color: var(--red); }
.mega__img {
  display: block;
  width: 286px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 286 / 123;
  object-fit: cover;
  border-radius: 10px;
  margin: 15px 0 15px -10px;
  transition: transform 0.4s ease;
}
.mega a:hover .mega__img { transform: scale(1.02); }
.mega__cases a { padding: 3.5px 0; }

/* ================= HERO ================= */
.hero {
  position: relative;
  height: clamp(440px, 38.125vw, 732px);
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 55%);
}
.hero__slide {
  position: absolute;
  z-index: 1;
  left: var(--edge);
  bottom: 89px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.hero__slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hero__eyebrow {
  margin: 0 0 0 5px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero__title {
  max-width: 1000px;
  margin: -2px 0 8px;
  font-size: 86px;
  font-weight: 200;
  line-height: 104px;
}
.hero__btn {
  display: inline-grid;
  place-items: center;
  width: 216px;
  height: 57px;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.hero__btn:hover { background: #fff; color: #111; }
.hero__nav {
  position: absolute;
  z-index: 2;
  right: 54px;
  bottom: 89px;
  display: flex;
  width: 138px;
  height: 129px;
  border-radius: 10px;
  background: url("../icons/hero-nav.svg") center / 100% 100% no-repeat;
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.hero__nav button {
  flex: 1;
  border: 0;
  background: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hero__nav button:hover { background: rgba(255, 255, 255, 0.08); }

/* ================= WHAT DO WE DO ================= */
.wwd {
  display: grid;
  grid-template-columns: 649px 1fr;
  gap: 50px;
  padding: 87px var(--edge) 70px;
  align-items: start;
}
.wwd > * { min-width: 0; }
.wwd__photo {
  width: 100%;
  aspect-ratio: 649 / 505;
  object-fit: cover;
}
.wwd__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 21px;
  height: 104px;
  margin: 41px 0 34px;
}
.wwd__icon { width: 105px; height: 104px; flex: none; }
.wwd__head h2 {
  margin: 0;
  font-size: 50px;
  font-weight: 300;
  line-height: 74px;
  color: var(--ink-75);
}
.wwd__arrow { position: absolute; top: 0; right: 0; width: 32px; height: 32px; }

.wwd__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  padding: 15px 0;
}
.wwd__cell {
  position: relative;
  padding: 22px 20px 22px 21px;
  min-width: 0;
}
.wwd__cell:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.wwd__cell:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
/* small darker crosses where lines meet */
.wwd__cell:nth-child(2)::after,
.wwd__cell:nth-child(3)::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -1px;
  width: 80px;
  height: 1px;
  background: #9a9a9a;
}
.wwd__cell:nth-child(2)::before,
.wwd__cell:nth-child(3)::before {
  content: "";
  position: absolute;
  left: -1px;
  bottom: -40px;
  width: 1px;
  height: 80px;
  background: #9a9a9a;
  z-index: 1;
}
.wwd__cell h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: var(--ink-75);
}
.wwd__cell p {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-65);
}

/* ================= SOLUTIONS ================= */
.solutions {
  padding: 80px var(--edge) 52px;
  text-align: center;
}
.solutions h2 {
  max-width: 800px;
  margin: 0 auto 70px;
  font-size: 64px;
  font-weight: 400;
  line-height: 85px;
}
.circles {
  display: flex;
  justify-content: center;
}
.circle {
  position: relative;
  flex: none;
  width: 407px;
  height: 407px;
  margin: 0 -59px;
  border-radius: 50%;
  border: 1px solid rgba(233, 28, 33, 0.22);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 30px;
  padding-top: 26px;
  text-decoration: none;
  color: var(--ink);
}
/* red accent arcs, top-left and bottom-right */
.circle::before,
.circle::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.circle::before { border-top-color: var(--red); transform: rotate(-28deg); }
.circle::after { border-bottom-color: var(--red); transform: rotate(-28deg); }
.circle:hover::before,
.circle:hover::after { transform: rotate(152deg); }
.circle img { width: auto; height: 72px; }
.circle span { font-size: 26px; font-weight: 400; line-height: 30px; }

/* logo strip */
.logos {
  overflow: hidden;
  padding: 52px 0 62px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos__track {
  display: flex;
  width: max-content;
  animation: logos 30s linear infinite;
}
.logos__set {
  display: flex;
  align-items: center;
  gap: 120px;
  padding-right: 120px;
  height: 100px;
}
.logos__set span {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #b9b9b9;
  white-space: nowrap;
}
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(-50%); } }

/* ================= FOOTER ================= */
.site-footer {
  display: grid;
  grid-template-columns: 1016px 1fr;
  background: var(--footer);
  color: #fff;
}
.site-footer > * { min-width: 0; }
.footer-cta {
  padding: 85px 50px 70px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-cta h2 {
  max-width: 600px;
  margin: 0 0 22px;
  font-size: 64px;
  font-weight: 400;
  line-height: 77px;
}
.footer-cta p {
  max-width: 460px;
  margin: 0 0 4px 4px;
  font-size: 18px;
  line-height: 23px;
  color: rgba(255, 255, 255, 0.85);
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  margin: 41px 0 0 4px;
  padding: 0 8px 0 13px;
  border-radius: 26px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}
.pill-btn:hover { background: var(--red-dark); }
.pill-btn i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  display: grid;
  place-items: center;
}
.pill-btn svg { width: 7px; height: 12px; }
.footer-cta__logo { width: 487px; max-width: 100%; height: auto; margin: 106px 0 0 3px; }
.footer-cta small { margin: 71px 0 0 4px; font-size: 16px; color: rgba(255, 255, 255, 0.8); }

.footer-right { display: flex; flex-direction: column; }
.footer-query { padding: 85px 54px 38px 54px; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.footer-query h2 {
  margin: 0 0 25px;
  font-size: 48px;
  font-weight: 400;
  line-height: 58px;
}
.query-form { display: grid; gap: 7px; max-width: 796px; }
.query-form input,
.query-form textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--footer-field);
  color: #fff;
  font: inherit;
  font-size: 16px;
  padding: 21px 31px;
}
.query-form textarea { height: 132px; resize: none; padding-right: 80px; }
.query-form ::placeholder { color: rgba(255, 255, 255, 0.55); }
.query-form__msg { position: relative; }
.query-send {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.query-send:hover { background: var(--red-dark); }
.query-send svg { width: 8px; height: 14px; }
.query-ok { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }

.footer-cols {
  display: grid;
  grid-template-columns: 175px 270px 1fr;
  gap: 0;
  padding: 44px 54px 60px;
}
.footer-cols > * { min-width: 0; }
.footer-cols h3 { margin: 0 0 18px; font-size: 24px; font-weight: 500; line-height: 29px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-cols a { font-size: 18px; color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-cols a:hover { color: #fff; }
.footer-address { display: grid; gap: 22px; }
.footer-address div { display: grid; grid-template-columns: 39px 1fr; align-items: start; }
.footer-address svg { width: 20px; height: 22px; fill: #fff; margin-top: 2px; }
.footer-address span { font-size: 16px; line-height: 20px; color: rgba(255, 255, 255, 0.75); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1600px) {
  :root { --edge: 40px; }
  .wwd { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-cta__logo { width: 380px; }
  .circle { width: 340px; height: 340px; margin: 0 -48px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-cols .addr-col { grid-column: 1 / -1; }
}
@media (max-width: 1280px) {
  .site-header { height: 90px; }
  .site-header__logo { padding-left: var(--edge); }
  .site-header__logo img { width: 240px; }
  .site-header__social { padding-right: var(--edge); }
  .hero__title { font-size: 64px; line-height: 76px; }
  .hero__slide, .hero__nav { bottom: 56px; }
  .wwd { grid-template-columns: 1fr; }
  .wwd__photo { max-height: 420px; }
  .wwd__head { margin-top: 0; }
  .solutions h2 { font-size: 48px; line-height: 62px; }
  .circle { width: 280px; height: 280px; margin: 0 -36px; gap: 18px; }
  .circle img { height: 54px; }
  .circle span { font-size: 21px; }
  .footer-cta h2 { font-size: 48px; line-height: 58px; }
  .footer-query h2 { font-size: 38px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-cols .addr-col { grid-column: 1 / -1; }
  .mega { left: var(--edge); max-width: calc(100vw - 2 * var(--edge)); top: 80px; grid-template-columns: 210px 1fr 0.8fr; }
}
@media (max-width: 900px) {
  :root { --edge: 20px; }
  .site-header { height: 72px; }
  .site-header__logo { border-right: 0; padding-right: 8px; }
  .site-header__logo img { width: 190px; }
  .site-header__tools { padding-left: 4px; gap: 4px; }
  .site-header__social { display: none; }
  .burger span { width: 26px; left: 8px; }
  .mega { top: 66px; left: 12px; width: auto; right: 12px; max-width: none; grid-template-columns: 1fr; gap: 6px; padding: 20px 22px; max-height: calc(100vh - 80px); overflow: auto; }
  .mega a, .mega .mega__group a, .mega__cases a { font-size: 14px; line-height: 22px; padding: 6px 0; }
  .mega { min-height: 0; }
  .mega__img { display: none; }
  .mega .mega__group { margin-top: 6px; }
  .hero { height: 460px; }
  .hero__eyebrow { font-size: 14px; }
  .hero__title { font-size: 42px; line-height: 50px; margin-bottom: 18px; }
  .hero__btn { width: 170px; height: 48px; font-size: 14px; }
  .hero__nav { width: 76px; height: 71px; right: var(--edge); bottom: auto; top: 20px; }
  .hero__slide { bottom: 40px; right: var(--edge); }
  .wwd { padding-top: 48px; }
  .wwd__head { height: auto; gap: 14px; margin-bottom: 24px; padding-right: 44px; }
  .wwd__arrow { width: 26px; height: 26px; top: 50%; transform: translateY(-50%); }
  .wwd__icon { width: 64px; height: 63px; }
  .wwd__head h2 { font-size: 32px; line-height: 40px; }
  .wwd__grid { grid-template-columns: 1fr; padding: 0; }
  .wwd__cell, .wwd__cell:not(:nth-child(3n + 1)) { border-left: 0; border-bottom: 1px solid var(--line); }
  .wwd__cell:last-child { border-bottom: 0; }
  .wwd__cell::before, .wwd__cell::after { display: none; }
  .solutions { padding-top: 56px; }
  .solutions h2 { font-size: 32px; line-height: 42px; margin-bottom: 36px; }
  .circles { flex-wrap: wrap; gap: 0; }
  .circle { width: 170px; height: 170px; margin: -6px; gap: 10px; padding-top: 10px; }
  .circle img { height: 40px; }
  .circle span { font-size: 15px; line-height: 20px; }
  .logos__set { gap: 60px; padding-right: 60px; height: 70px; }
  .logos__set span { font-size: 24px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-cta { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding: 48px var(--edge); }
  .footer-cta h2 { font-size: 36px; line-height: 44px; }
  .footer-cta__logo { width: 260px; margin-top: 48px; }
  .footer-cta small { margin-top: 24px; font-size: 13px; }
  .footer-query { padding: 40px var(--edge) 32px; }
  .footer-query h2 { font-size: 30px; line-height: 38px; }
  .footer-cols { padding: 32px var(--edge) 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; }
  .hero__slide, .circle::before, .circle::after { transition: none; }
}

@media (max-width: 600px) {
  .wwd__head { gap: 12px; padding-right: 36px; }
  .wwd__icon { width: 52px; height: 52px; }
  .wwd__head h2 { font-size: 27px; line-height: 34px; }
  .wwd__arrow { width: 22px; height: 22px; }
}

/* mega menu: active page + "piano" hover — the hovered link slides right,
   its neighbours follow a little, and keys ease back as the pointer moves on */
.mega ul a {
  position: relative;
  width: fit-content;
  transition: color 0.25s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mega ul a::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 10px;
  height: 2px;
  margin-top: -1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.mega ul li:hover > a { transform: translateX(14px); color: var(--red); }
.mega ul li:hover > a::before { transform: scaleX(1); }
.mega ul li:has(+ li:hover) > a,
.mega ul li:hover + li > a { transform: translateX(6px); }
.mega ul li:has(+ li + li:hover) > a,
.mega ul li:hover + li + li > a { transform: translateX(2px); }

/* current page */
.mega a.is-active,
.mega .mega__group a.is-active { color: var(--red); }
.mega ul a.is-active { transform: translateX(14px); }
.mega ul a.is-active::before { transform: scaleX(1); }
.mega ul:hover a.is-active:not(:hover) { transform: none; }
.mega ul:hover li:not(:hover) > a.is-active::before { transform: scaleX(0); }
.mega ul:hover li:has(+ li:hover) > a.is-active,
.mega ul:hover li:hover + li > a.is-active { transform: translateX(6px); }

@media (prefers-reduced-motion: reduce) {
  .mega ul a, .mega ul a::before { transition: color 0.2s ease; }
}

/* headings in the mega menu are links too: same slide + red dash */
.mega__head span {
  position: relative;
  display: inline-block;
  transition: color 0.25s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mega__head span::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 10px;
  height: 2px;
  margin-top: -1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.mega__head:hover span,
.mega__head.is-active span { transform: translateX(14px); color: var(--red); }
.mega__head:hover span::before,
.mega__head.is-active span::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .mega__head span, .mega__head span::before { transition: color 0.2s ease; }
}

/* solution circles: fluid so five fit in one row on desktop */
@media (min-width: 901px) {
  .circle {
    --c: min(407px, calc((100vw - 2 * var(--edge)) / 3.9));
    width: var(--c); height: var(--c);
    margin: 0 calc(var(--c) * -0.145);
    gap: calc(var(--c) * 0.07);
    padding-top: calc(var(--c) * 0.06);
  }
  .circle img { height: calc(var(--c) * 0.177); }
  .circle span { font-size: max(16px, calc(var(--c) * 0.064)); line-height: 1.2; }
  .circle { padding-left: calc(var(--c) * 0.12); padding-right: calc(var(--c) * 0.12); }
}
.circle span { text-align: center; }
.solutions { overflow-x: clip; }
@media (min-width: 1281px) { .mega { grid-template-columns: 252px 342px 1fr; } }

/* blocks switched off in the page editor */
html:not(.rv-on) [data-off] { display: none !important; }
