:root {
  --paper: #ffffff;
  --paper-deep: #f2f4f5;
  --ink: #292b50;
  --muted: #a6adb4;
  --line: #e4e8eb;
  --accent: #ff4f68;
  --accent-dark: #292b50;
  --cyan: #21b7df;
  --purple: #351246;
  --teal: #106f7b;
  --warm: #ffffff;
  --dark: #20163e;
  --dark-soft: #195e74;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.menu-toggle {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  min-height: 104px;
  padding: 34px clamp(34px, 5.5vw, 96px) 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.touch-link {
  display: inline-flex;
  align-items: center;
}

.brand {
  width: fit-content;
  gap: 10px;
  color: #9aa2aa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -1px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 4px;
  background: #161c1d;
  box-shadow: 0 8px 16px rgba(16, 18, 20, 0.14);
  overflow: hidden;
}

.brand-mark .logo-shell {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-width: 0;
  aspect-ratio: 1 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-mark .motion-logo {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  transform: scale(1.02) !important;
}

.brand-mark #motionLayers,
.brand-mark #originalLogo {
  opacity: 0 !important;
}

.brand-mark #exactFinalLogo {
  opacity: 1 !important;
}

.menu-trigger {
  position: relative;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: #2f3338;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-trigger i {
  position: absolute;
  top: 43px;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(24, 32, 40, 0.1);
}

.menu-trigger i::before,
.menu-trigger i::after {
  content: "";
  position: absolute;
  left: 15px;
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: #b6bdc4;
  box-shadow: 0 8px 0 #b6bdc4;
}

.menu-trigger i::before {
  top: 16px;
}

.menu-trigger i::after {
  display: none;
}

#menu-toggle:checked + .topbar .menu-trigger i::before,
.menu-trigger.is-open i::before {
  top: 24px;
  box-shadow: none;
  transform: rotate(45deg);
}

#menu-toggle:checked + .topbar .menu-trigger i::after,
.menu-trigger.is-open i::after {
  display: block;
  top: 24px;
  transform: rotate(-45deg);
}

.touch-link {
  justify-self: end;
  color: #2f3338;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

body.menu-open {
  overflow: hidden;
}

.menu-panel {
  position: fixed;
  inset: 104px 0 0;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(360px, 52vw) minmax(420px, 1fr);
  height: calc(100vh - 104px);
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  visibility: hidden;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0s linear 0.24s;
}

#menu-toggle:checked ~ .menu-panel,
body.menu-open .menu-panel,
.menu-panel.is-open {
  opacity: 1 !important;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible !important;
  transition-delay: 0s;
}

.menu-panel-nav {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(18px, 3vh, 28px);
  padding: 50px clamp(36px, 6vw, 96px);
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.menu-panel-nav a {
  color: #bac1c7;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.menu-panel-nav a:hover,
.menu-panel-nav a:focus {
  color: var(--accent);
}

.menu-contact {
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 64px clamp(42px, 8vw, 132px);
  color: #fff;
  background: linear-gradient(135deg, #2c1244, #24365e 54%, #0d8991);
}

.menu-contact p {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 950;
}

.menu-contact h2 {
  max-width: 580px;
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}

.menu-contact span {
  display: block;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.7;
}

.side-nav {
  position: fixed;
  top: 50%;
  left: 36px;
  z-index: 20;
  display: grid;
  gap: 26px;
  transform: translateY(-35%);
  font-size: 13px;
  font-weight: 900;
}

.side-nav a {
  color: var(--muted);
}

.side-nav a.active,
.side-nav a:hover {
  color: var(--accent);
}

.side-nav a.active {
  position: relative;
}

.panel {
  min-height: 72vh;
  padding: clamp(92px, 11vw, 150px) clamp(34px, 6vw, 96px) clamp(68px, 8vw, 110px) clamp(174px, 17vw, 305px);
  border-bottom: 1px solid var(--line);
}

.intro {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(410px, 0.48fr) minmax(520px, 1fr);
  align-items: stretch;
  gap: clamp(38px, 5vw, 80px);
  padding-top: 104px;
  padding-right: 0;
  padding-bottom: 0;
}

.eyebrow,
.section-title p {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 950;
}

.intro-copy h1 {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(44px, 4.2vw, 68px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: 0;
}

.intro-copy h1 span {
  color: var(--accent);
}

.intro-copy p,
.section-body p,
.wide-copy,
.contact-card p {
  max-width: 880px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 23px);
}

.intro-copy {
  align-self: center;
  padding-bottom: 5vh;
}

.intro-art {
  position: relative;
  min-height: calc(100vh - 104px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple), #252a58 45%, var(--teal));
}

.art-blob {
  position: absolute;
  right: -8%;
  top: -15%;
  width: 78%;
  height: 48%;
  border-bottom-left-radius: 55% 70%;
  background: rgba(58, 14, 76, 0.88);
}

.art-line {
  position: absolute;
  border: 4px solid transparent;
  border-top-color: #9e85ff;
  border-radius: 50%;
  opacity: 0.8;
}

.art-line.one {
  left: -6%;
  top: 23%;
  width: 70%;
  height: 34%;
  transform: rotate(-9deg);
}

.art-line.two {
  left: -18%;
  bottom: 4%;
  width: 78%;
  height: 30%;
  border-top-color: var(--cyan);
  transform: rotate(-12deg);
}

.art-device {
  position: absolute;
  left: 50%;
  top: 9%;
  width: min(30vw, 360px);
  aspect-ratio: 0.72;
  z-index: 2;
  border: 12px solid #d7b2ff;
  border-radius: 28px;
  background: linear-gradient(135deg, #365a82, #203451);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.art-device .hero-motion {
  position: absolute;
  inset: 8%;
  display: grid;
  place-items: center;
}

.art-device .suaveforge-logo-motion .logo-shell {
  width: 100%;
  max-width: 360px;
  background: transparent;
  box-shadow: none;
}

.art-device .suaveforge-logo-motion .motion-logo {
  width: 100%;
  height: 100%;
}

.art-device .suaveforge-logo-motion .status,
.art-device .suaveforge-logo-motion .controls {
  display: none;
}

.art-device .suaveforge-logo-motion .wordmark {
  position: absolute;
  left: 50%;
  top: 77%;
  z-index: 2;
  display: flex;
  column-gap: 0.18em;
  justify-content: center;
  width: max-content;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 950;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.art-device .suaveforge-logo-motion .wordmark-part {
  display: inline-block;
  flex: 0 0 auto;
  opacity: 1;
  will-change: opacity, transform;
}

.platform-tags {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 3;
  display: flex;
  width: min(88%, 250px);
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  transform: translate(-50%, -50%);
}

.platform-tags span {
  display: inline-flex;
  min-width: 70px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
}

.art-platform {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 22%;
  background: #21516b;
  border-top: 6px solid #ff4f68;
}

.split-section,
.team-section,
.stats-section,
.background-section,
.services-section,
.clients-section,
.process-section,
.work-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(200px, 0.32fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.stats-grid,
.logo-list,
.service-grid,
.process-grid,
.featured-work,
.contact-card {
  grid-column: 2;
}

.section-title h2 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: keep-all;
}

.team-section {
  grid-template-columns: 1fr;
  gap: 34px;
}

.team-section .section-title {
  max-width: 860px;
}

.team-section .section-title h2 {
  max-width: 820px;
}

.team-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.team-board article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  padding: 20px;
  background: #fffaf0;
}

.avatar {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  background: var(--paper-deep);
  color: var(--accent-dark);
  font-size: clamp(48px, 5.4vw, 88px);
  font-weight: 950;
}

.team-board h3,
.service-grid h3,
.process-grid h3,
.featured-work h3 {
  margin: 20px 0 8px;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.05;
}

.team-board p,
.service-grid li,
.client-grid p,
.process-grid p,
.featured-work span {
  color: var(--muted);
}

.featured-work span a {
  color: var(--accent);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.featured-work span a:hover {
  text-decoration: underline;
}

.dark {
  background: var(--dark);
  color: var(--paper);
}

.dark .section-title p {
  color: #8ee5cb;
}

.dark .stats-grid p,
.dark .contact-card p {
  color: rgba(245, 241, 232, 0.72);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 1px;
  background: rgba(245, 241, 232, 0.18);
}

.stats-grid article {
  min-height: 250px;
  min-width: 0;
  padding: clamp(22px, 2vw, 30px);
  background: var(--dark);
}

.stats-grid strong {
  display: block;
  margin-bottom: 16px;
  max-width: 100%;
  font-size: clamp(34px, 3.1vw, 52px);
  line-height: 0.96;
  overflow-wrap: normal;
  word-break: keep-all;
}

.stats-grid h3 {
  margin: 0 0 12px;
}

.background-section {
  background: var(--paper-deep);
}

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

.logo-list a {
  min-height: 170px;
  display: grid;
  place-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px;
  background: rgba(255, 250, 240, 0.42);
}

.logo-emblem {
  width: 54px;
  height: 54px;
  display: block;
  border-radius: 14px;
  background: var(--logo-url) center / contain no-repeat;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.86;
}

.logo-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.service-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-grid article,
.process-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: 20px 24px;
  background: rgba(255, 250, 240, 0.48);
}

.service-grid span,
.process-grid span {
  color: var(--accent-dark);
  font-weight: 950;
}

ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.service-grid li,
.process-grid p {
  overflow-wrap: break-word;
  word-break: keep-all;
}

.process-grid p {
  margin: 0;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.client-grid article {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 19, 0.08);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 240, 0.58)),
    var(--accent-soft);
  box-shadow: 0 16px 34px rgba(18, 24, 32, 0.08);
}

.client-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--aqua));
}

.client-grid article:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, #263f5c, #46d9f2);
}

.client-grid article:nth-child(3n)::before {
  background: linear-gradient(180deg, #ff5b6e, #ffbd35);
}

.client-grid span {
  display: block;
  margin-bottom: 10px;
  color: #17202a;
  font-size: 20px;
  font-weight: 950;
}

.client-grid p {
  margin: 0;
  color: #5b636b;
  font-size: 15px;
  line-height: 1.68;
}

.client-grid.company-only article {
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 24px 28px;
}

.client-grid.company-only span {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0;
}

.featured-work {
  display: grid;
  gap: 20px;
}

.featured-work article {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.featured-work p {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.featured-work h3 {
  margin: 0;
}

.contact-card {
  max-width: 920px;
}

.noinfo-mode .contact-card .actions,
.noinfo-mode .contact-card .actions * {
  display: none !important;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 950;
}

.button.light {
  background: var(--paper);
  color: var(--dark);
}

.button.outline {
  border: 1px solid rgba(245, 241, 232, 0.72);
  color: var(--paper);
}

.build-version {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 40;
  border: 1px solid rgba(17, 19, 19, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(245, 241, 232, 0.9);
  color: rgba(17, 19, 19, 0.68);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  backdrop-filter: blur(12px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .top-nav {
    display: none;
  }

  .side-nav {
    display: none;
  }

  .panel {
    padding-inline: clamp(28px, 7vw, 86px);
  }

  .intro {
    grid-template-columns: minmax(320px, 0.44fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 44px);
  }

  .intro-art {
    min-width: 0;
  }

  .team-board,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .background-section,
  .services-section,
  .clients-section,
  .process-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }

  .stats-grid,
  .logo-list,
  .service-grid,
  .process-grid,
  .featured-work,
  .contact-card {
    grid-column: auto;
  }

  .logo-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-panel {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .menu-panel-nav {
    min-height: 52vh;
  }

  .menu-contact {
    min-height: 48vh;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .side-nav {
    display: none;
  }

  .intro,
  .split-section,
  .team-section,
  .stats-section,
  .background-section,
  .services-section,
  .clients-section,
  .process-section,
  .work-section,
  .contact-section,
  .featured-work article {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
    gap: 0;
    padding: 120px 0 0;
  }

  .intro-copy {
    width: 100%;
    min-width: 0;
    padding: 48px clamp(24px, 7vw, 44px) 58px;
  }

  .intro-copy h1 {
    max-width: 100%;
    font-size: clamp(40px, 10.8vw, 52px);
    line-height: 1.05;
  }

  .intro-copy p {
    max-width: 34rem;
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.62;
  }

  .intro-art {
    min-height: 540px;
  }

  .art-device {
    left: 50%;
    top: 38px;
    width: min(62vw, 255px);
    border-width: 10px;
    border-radius: 26px;
    transform: translateX(-50%);
  }

  .art-device .suaveforge-logo-motion .wordmark {
    top: 80%;
    font-size: clamp(22px, 6vw, 28px);
  }

  .art-platform {
    left: 0;
    right: 0;
    height: 24%;
  }

  .platform-tags {
    left: 50%;
    top: 50%;
    width: min(78vw, 250px);
  }

  .platform-tags span {
    min-width: 64px;
    min-height: 32px;
    padding: 8px 13px;
    font-size: 11px;
  }

  .menu-panel-nav {
    gap: 18px;
    padding: 42px 24px;
  }

  .menu-contact {
    padding: 42px 24px 70px;
  }

  .team-board,
  .stats-grid,
  .service-grid,
  .process-grid,
  .client-grid,
  .logo-list {
    grid-template-columns: 1fr;
  }

  .actions,
  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 14px 18px;
  }

  .touch-link {
    font-size: 13px;
  }

  .brand span:last-child {
    display: none;
  }

  .intro-copy h1 {
    font-size: clamp(40px, 10.8vw, 52px);
  }
}
