:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #70706b;
  --line: rgba(17, 17, 17, 0.12);
  --accent: rgba(17, 17, 17, 0.42);
  --panel: #ffffff;
  --service-bg: #ffffff;
  --service-fg: #111111;
  --service-muted: rgba(17, 17, 17, 0.58);
  --service-copy: rgba(17, 17, 17, 0.68);
  --service-strong: rgba(17, 17, 17, 0.84);
  --service-line: rgba(17, 17, 17, 0.1);
  --service-line-strong: rgba(17, 17, 17, 0.28);
  --logo-count: 5;
  --logo-width: 460px;
  --logo-gap: 44px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
}

.brand-header {
  position: absolute;
  inset: clamp(30px, 6svh, 68px) 0 auto;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.brand-wordmark {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.8vw, 5.75rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
}

.logo-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-block: 4svh;
}

.logo-stage {
  width: 100%;
  padding: 0;
}

.logo-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-block: 0;
  padding: 24px 0;
  mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}

.logo-track {
  display: flex;
  width: max-content;
  gap: var(--logo-gap);
  padding-left: var(--logo-gap);
  animation: logo-scroll 30s linear infinite;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

.logo-item {
  width: var(--logo-width);
  height: 200px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  padding: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.logo-item:hover,
.logo-item:focus-visible {
  opacity: 0.72;
  outline: none;
  transform: translateY(-1px);
}

.logo-item img {
  display: block;
  max-width: 78%;
  max-height: 154px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transform: translateZ(0);
}

.logo-item--mark img {
  max-width: 166px;
  max-height: 166px;
}

.logo-item--lockup {
  display: flex;
  gap: 22px;
  justify-content: flex-start;
  padding-inline: 44px;
}

.logo-item--lockup img {
  max-width: 126px;
  max-height: 126px;
}

.logo-item--lockup span {
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.66rem;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.logo-item--alysis img {
  max-width: 132px;
  max-height: 132px;
}

.logo-item--alysis span {
  text-transform: uppercase;
}

.logo-item--sylliptor {
  gap: 16px;
}

.logo-item--sylliptor img {
  max-width: 124px;
  max-height: 124px;
}

.logo-item--sylliptor span {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 1.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.logo-item--synesis img {
  max-width: 120px;
  max-height: 120px;
}

.logo-item--synesis span {
  color: var(--ink);
  display: grid;
  gap: 4px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.logo-item--synesis strong {
  display: block;
  font-size: 1.62rem;
  line-height: 1;
  text-transform: uppercase;
}

.logo-item--synesis small {
  display: block;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.logo-item--wide img {
  max-width: 84%;
  max-height: 142px;
}

.logo-img--pixel {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.services-cta {
  display: flex;
  justify-content: center;
  margin-top: 78px;
}

.services-button {
  min-width: 176px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  padding: 13px 22px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.services-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.services-button:hover,
.services-button:focus-visible {
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.services-button:hover svg,
.services-button:focus-visible svg {
  transform: translateX(3px);
}

.services-section {
  min-height: 100svh;
  scroll-margin-top: 0;
  background: var(--service-bg);
  color: var(--service-fg);
  padding: clamp(78px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

.services-inner {
  width: min(1320px, 100%);
  margin-inline: auto;
}

.services-heading {
  display: grid;
  grid-template-columns: 190px minmax(0, 840px);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
  margin-bottom: clamp(42px, 5.5vw, 68px);
}

.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.services-heading h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4.8vw, 4.85rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
}

.services-intro {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--service-muted);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.55;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--service-line);
  border-left: 1px solid var(--service-line);
}

.service-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--service-line);
  border-bottom: 1px solid var(--service-line);
  border-radius: 0;
  padding: clamp(24px, 3vw, 34px);
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.service-index {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1;
}

.service-mark {
  width: 34px;
  height: 34px;
  color: var(--accent);
  fill: none;
  opacity: 0.5;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
  flex: 0 0 auto;
}

.service-card h2 {
  margin: 54px 0 0;
  font-size: clamp(1.28rem, 1.75vw, 1.55rem);
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.08;
}

.service-card p {
  margin: 22px 0 0;
  color: var(--service-copy);
  font-size: 0.96rem;
  line-height: 1.55;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 34px 0 0;
  list-style: none;
}

.service-card li {
  color: var(--service-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.services-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(34px, 5vw, 58px);
}

.services-footer > span {
  max-width: 660px;
  color: var(--service-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.services-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--service-line-strong);
  border-radius: 999px;
  color: var(--service-fg);
  padding: 12px 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.services-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.services-link:hover,
.services-link:focus-visible {
  background: var(--service-fg);
  color: var(--service-bg);
  outline: none;
  transform: translateY(-1px);
}

.services-link:hover svg,
.services-link:focus-visible svg {
  transform: translateX(3px);
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * ((var(--logo-width) + var(--logo-gap)) * var(--logo-count))));
  }
}

@media (max-width: 1120px) and (min-width: 761px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 340px;
  }

  .service-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  :root {
    --logo-width: 318px;
    --logo-gap: 22px;
  }

  .logo-page {
    display: block;
    padding-block: 27svh 8svh;
  }

  .brand-header {
    inset-block-start: clamp(42px, 8svh, 76px);
  }

  .brand-wordmark {
    font-size: clamp(2.35rem, 13vw, 3.25rem);
  }

  .logo-stage {
    padding: 0;
  }

  .logo-carousel {
    padding: 12px 0;
  }

  .services-cta {
    margin-top: 124px;
  }

  .services-button {
    min-width: 156px;
    min-height: 48px;
    padding-inline: 20px;
    font-size: 0.76rem;
  }

  .logo-item {
    height: 130px;
    padding: 0;
  }

  .logo-item--mark img {
    max-width: 92px;
    max-height: 92px;
  }

  .logo-item--lockup {
    gap: 12px;
    padding-inline: 22px;
  }

  .logo-item--lockup img {
    max-width: 84px;
    max-height: 84px;
  }

  .logo-item--lockup span {
    font-size: 1.16rem;
  }

  .logo-item--sylliptor span {
    font-size: 1.24rem;
  }

  .logo-item--synesis strong {
    font-size: 1.14rem;
  }

  .logo-item--synesis small {
    font-size: 0.74rem;
  }

  .logo-item--wide img {
    max-width: 84%;
    max-height: 90px;
  }

  .services-section {
    min-height: auto;
    padding: 72px 18px 82px;
  }

  .services-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 40px;
  }

  .services-heading h1 {
    font-size: clamp(2.1rem, 9.6vw, 3rem);
    line-height: 1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: auto;
  }

  .service-card {
    min-height: 0;
    padding: 28px 24px 30px;
  }

  .service-mark {
    width: 32px;
    height: 32px;
  }

  .service-card h2 {
    margin-top: 42px;
  }

  .service-card ul {
    padding-top: 28px;
  }

  .services-footer {
    display: grid;
    gap: 24px;
  }

  .services-link {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}
