:root {
  --paper: #f2eee6;
  --ink: #161310;
  --white: #ffffff;
  --accent: #ff5a1f;
  --blue: #2e5bff;
  --frontier: #1f7a4d;
  --alcance: #e0218a;
  --turivo: #0a8e92;
  --adpilots: #6b3ae0;
  --text-muted: #4a443c;
  --text-subtle: #6b645a;
  --on-dark: #f2eee6;
  --on-dark-muted: #b8b2a8;
  --on-dark-soft: #d8d2c8;
  --border-light: rgba(22, 19, 16, 0.08);
  --border-mid: rgba(22, 19, 16, 0.16);
  --border-strong: rgba(22, 19, 16, 0.22);
  --border-dark: rgba(255, 255, 255, 0.1);
  --surface-dark: rgba(255, 255, 255, 0.04);
  --surface-dark-2: rgba(255, 255, 255, 0.07);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Hanken Grotesque", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --max-home: 1280px;
  --max-sub: 1180px;
  --max-doc: 1100px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(56px, 9vw, 130px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-dark {
  background: var(--ink);
  color: var(--on-dark);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.seo-fallback {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}

.seo-fallback-dark {
  color: var(--on-dark);
}

.seo-fallback h1,
.seo-fallback h2 {
  font-family: var(--font-display);
  line-height: 1.05;
}

.seo-fallback h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 8vw, 72px);
}

.seo-fallback h2 {
  margin-top: 34px;
  font-size: 28px;
}

.seo-fallback a {
  color: var(--accent);
  font-weight: 700;
}

@keyframes aq-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(6%, -8%) scale(1.12);
  }
  66% {
    transform: translate(-7%, 5%) scale(0.92);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes aq-blob2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-9%, 7%) scale(1.15);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes aq-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes aq-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes aq-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 122, 77, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(31, 122, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 122, 77, 0);
  }
}

@keyframes aq-ring {
  from {
    stroke-dashoffset: 264;
  }
  to {
    stroke-dashoffset: 58;
  }
}

@keyframes aq-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes aq-wave {
  0%,
  100% {
    transform: scaleY(0.44);
  }
  50% {
    transform: scaleY(1);
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--border-light);
  background: rgba(242, 238, 230, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-dark .nav,
.nav.nav-dark {
  border-bottom-color: var(--border-dark);
  background: rgba(22, 19, 16, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
}

.brand-mark::before {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: currentColor;
  content: "";
}

.brand-dot {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  animation: aq-float 3s ease-in-out infinite;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(14px, 2.4vw, 34px);
}

.nav-link {
  color: #3b352e;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-dark .nav-link,
.page-dark .nav-link {
  color: var(--on-dark-muted);
}

.nav-link:hover {
  color: var(--accent);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(22, 19, 16, 0.18);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
}

.page-dark .lang-toggle,
.nav-dark .lang-toggle {
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-toggle button {
  min-width: 38px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.page-dark .lang-toggle button,
.nav-dark .lang-toggle button {
  color: var(--on-dark-muted);
}

.lang-toggle button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.page-dark .lang-toggle button.is-active,
.nav-dark .lang-toggle button.is-active {
  background: var(--paper);
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.pill-primary {
  background: var(--ink);
  color: var(--paper);
}

.pill-primary:hover {
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-2px);
}

.pill-accent {
  background: var(--accent);
  color: var(--ink);
}

.pill-accent:hover {
  transform: translateY(-2px);
}

.nav-cta {
  padding: 11px 18px;
  font-size: 14px;
  white-space: nowrap;
}

.hero {
  position: relative;
  max-width: var(--max-home);
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(64px, 11vw, 140px) var(--gutter) clamp(40px, 6vw, 72px);
}

.hero-blob,
.dark-blob {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(8px);
}

.hero-blob-one {
  top: -12%;
  right: -6%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 90, 31, 0.42), rgba(255, 90, 31, 0) 70%);
  animation: aq-blob 16s ease-in-out infinite;
}

.hero-blob-two {
  bottom: -20%;
  left: -8%;
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle at 60% 40%, rgba(46, 91, 255, 0.34), rgba(46, 91, 255, 0) 70%);
  animation: aq-blob2 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  max-width: 100%;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(22px, 3.5vw, 34px);
  padding: 7px 14px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.page-dark .eyebrow-pill {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--frontier);
  animation: aq-pulse 2.4s infinite;
}

.status-dot.orange {
  background: var(--accent);
  animation: none;
}

.hero h1,
.section-title,
.sub-hero h1,
.legal-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: min(15ch, 100%);
  font-size: clamp(38px, 7.2vw, 92px);
  line-height: 0.98;
  text-wrap: balance;
}

.accent-text {
  color: var(--accent);
}

.blue-text {
  color: var(--blue);
}

.hero-lead {
  max-width: min(50ch, 100%);
  margin: clamp(20px, 3vw, 30px) 0 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: clamp(26px, 3.5vw, 38px);
}

.hero-actions .pill {
  padding: 15px 26px;
  font-size: 15.5px;
}

.pill-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
}

.pill-outline:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 90px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: aq-marquee 26s linear infinite;
}

.marquee-group {
  display: flex;
}

.marquee-word {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.marquee-slash {
  color: rgba(22, 19, 16, 0.22);
  font-weight: 400;
}

.section {
  max-width: var(--max-home);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}

.section-kicker,
.mono-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--accent);
}

.section-title {
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.02;
}

.section-intro {
  max-width: 44ch;
  color: var(--text-muted);
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  min-width: 0;
}

.product-card {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 340px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid color-mix(in srgb, var(--card-color) 24%, transparent);
  border-radius: 22px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--card-color) 11%, transparent), color-mix(in srgb, var(--card-color) 3%, transparent));
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.product-card:hover {
  box-shadow: 0 18px 40px rgba(22, 19, 16, 0.14);
  transform: translateY(-6px);
}

.product-top {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.product-head {
  display: flex;
  align-items: center;
  max-width: calc(100% - 112px);
  gap: 10px;
}

.product-logo {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--card-color) 26%, rgba(255, 255, 255, 0.7));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(22, 19, 16, 0.08);
}

.product-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-logo.is-wide img {
  width: 220%;
  height: 100%;
  object-fit: cover;
  object-position: 11% 50%;
}

.product-tag {
  color: var(--card-color);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-copy {
  max-width: 31rem;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.product-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.metrics {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.metric,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.metric {
  padding: 8px 11px;
}

.chip {
  padding: 7px 10px;
}

.metric strong {
  color: var(--card-color);
  font-size: 14px;
}

.visit-link {
  color: var(--card-color);
  font-weight: 800;
  white-space: nowrap;
}

.status-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--frontier);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.status-badge.beta {
  color: var(--card-color);
}

.status-badge.beta .status-dot {
  background: var(--card-color);
  animation: none;
}

.score-ring {
  position: absolute;
  top: 68px;
  right: 24px;
  width: 96px;
  height: 96px;
}

.score-ring .ring-value {
  animation: aq-ring 1.4s var(--ease) 0.2s both;
}

.match-visual {
  margin-top: 22px;
}

.avatar-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.avatar-dot {
  width: 30px;
  height: 30px;
  margin-right: -8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--alcance), #ffb5dc);
}

.match-percent {
  margin-left: 16px;
  color: var(--alcance);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
}

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(224, 33, 138, 0.14);
}

.progress span {
  display: block;
  width: 94%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e0218a, #ff7ac4);
  transform-origin: left;
  animation: aq-bar 1.3s var(--ease) 0.25s both;
}

.equalizer {
  position: absolute;
  top: 70px;
  right: 28px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 58px;
}

.equalizer span {
  display: block;
  width: 8px;
  height: 100%;
  border-radius: 99px;
  background: color-mix(in srgb, var(--card-color) 70%, white);
  transform-origin: bottom;
  animation: aq-wave 1.2s ease-in-out infinite;
}

.equalizer span:nth-child(2) {
  animation-delay: 0.16s;
}

.equalizer span:nth-child(3) {
  animation-delay: 0.32s;
}

.equalizer span:nth-child(4) {
  animation-delay: 0.08s;
}

.adp-badge {
  position: absolute;
  top: 70px;
  right: 28px;
  padding: 9px 13px;
  border: 1px solid rgba(107, 58, 224, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #5b2bc4;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.dark-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}

.dark-section-inner {
  position: relative;
  max-width: var(--max-home);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.dark-section .section-intro,
.dark-section p {
  color: var(--on-dark-muted);
}

.dark-blob {
  top: -12%;
  right: -10%;
  width: 44vw;
  height: 44vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(46, 91, 255, 0.32), rgba(46, 91, 255, 0) 70%);
  animation: aq-blob2 22s ease-in-out infinite;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-top: 42px;
}

.role-card,
.dark-card {
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  background: var(--surface-dark);
}

.role-card {
  padding: 30px 26px;
  transition: transform 0.3s, background 0.3s;
}

.role-card:hover {
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-4px);
}

.role-no {
  margin-bottom: 34px;
  color: var(--role-color);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.role-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.role-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
}

.advisory-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.12), rgba(255, 255, 255, 0.04));
}

.advisory-strip h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.advisory-strip p {
  max-width: 62ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.studio-copy p {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.stat-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

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

.stat-value {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.stat-card.dark .stat-label {
  color: var(--on-dark-muted);
}

.footer-cta {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  max-width: var(--max-home);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter) 34px;
}

.footer-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: clamp(44px, 7vw, 86px);
}

.footer-head h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.25fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 36px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-title {
  margin-bottom: 8px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--on-dark-soft);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--border-dark);
  color: var(--text-subtle);
  font-size: 13px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sub-page {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
}

.sub-hero {
  position: relative;
  max-width: var(--max-sub);
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(70px, 9vw, 126px) var(--gutter) 0;
}

.sub-hero-blob {
  top: -16%;
  right: -12%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle at 45% 40%, rgba(255, 90, 31, 0.34), rgba(255, 90, 31, 0) 68%);
  animation: aq-blob2 19s ease-in-out infinite;
}

.sub-hero h1 {
  max-width: 10ch;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 0.96;
}

.sub-lead {
  max-width: 54ch;
  margin: 24px 0 0;
  color: var(--on-dark-muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
}

.price-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(24px, 5vw, 60px);
  max-width: var(--max-sub);
  margin: clamp(46px, 6vw, 70px) auto 0;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(255, 90, 31, 0.45);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.2), rgba(255, 255, 255, 0.04));
}

.price-rate {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.price-rate span {
  display: block;
  margin-top: 10px;
  color: var(--on-dark-muted);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.price-copy {
  max-width: 48ch;
  color: var(--on-dark-muted);
  font-size: 16px;
  line-height: 1.6;
}

.wait-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(22, 19, 16, 0.34);
}

.wait-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.wait-card p {
  margin: 0 0 16px;
  color: var(--on-dark-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.wait-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.wait-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
}

.wait-form input[type="email"]:focus {
  border-color: rgba(255, 90, 31, 0.72);
}

.wait-form button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s;
  white-space: nowrap;
}

.wait-form button:hover {
  transform: translateY(-2px);
}

.wait-note {
  margin-top: 12px;
  color: #8a8278;
  font-size: 12.5px;
}

.wait-success,
.wait-error {
  display: none;
  padding: 15px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.wait-success {
  border: 1px solid rgba(31, 138, 91, 0.42);
  background: rgba(31, 138, 91, 0.14);
  color: #d9ffea;
}

.wait-error {
  margin-top: 12px;
  border: 1px solid rgba(255, 90, 31, 0.35);
  background: rgba(255, 90, 31, 0.12);
  color: #ffd9ca;
}

.wait-card.is-done .wait-form,
.wait-card.is-done .wait-note {
  display: none;
}

.wait-card.is-done .wait-success {
  display: block;
}

.wait-card.has-error .wait-error {
  display: block;
}

.capabilities {
  max-width: var(--max-sub);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) var(--gutter);
}

.capabilities .section-title {
  max-width: 11ch;
}

.capability-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.capability-intro p {
  max-width: 50ch;
  color: var(--on-dark-muted);
  font-size: 16px;
  line-height: 1.6;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr));
  gap: 14px;
}

.skill-card {
  min-height: 218px;
  padding: 25px 23px;
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  background: var(--surface-dark);
}

.skill-card .role-no {
  margin-bottom: 34px;
}

.skill-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.skill-card p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.consult-footer {
  max-width: var(--max-sub);
  margin: 0 auto;
  padding: 0 var(--gutter) 34px;
  color: #6b645a;
  font-size: 13px;
}

.consult-footer a {
  color: #6b645a;
  text-decoration: none;
}

.consult-footer a:hover {
  color: var(--accent);
}

.legal-page {
  min-height: 100vh;
}

.legal-hero,
.legal-main,
.legal-contact,
.legal-bottom {
  max-width: var(--max-doc);
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.legal-hero {
  padding-top: clamp(42px, 7vw, 76px);
  padding-bottom: clamp(34px, 5vw, 48px);
}

.legal-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.legal-intro {
  max-width: 65ch;
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.45;
}

.entity-line,
.effective-line {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.legal-main {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
  padding-bottom: 58px;
}

.doc-nav {
  position: sticky;
  top: 92px;
  padding: 11px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.doc-tab {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3b352e;
  cursor: pointer;
  text-align: left;
}

.doc-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}

.doc-no {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.74;
}

.doc-label {
  font-size: 14.5px;
  font-weight: 700;
}

.doc-updated {
  margin-top: 14px;
  padding: 4px 10px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.doc-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.doc-updated-main {
  margin: 5px 0 31px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
}

.policy-section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  padding: 23px 0;
  border-top: 1px solid var(--border-light);
}

.policy-section:first-of-type {
  border-top: 0;
}

.policy-no {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.policy-section h3 {
  margin: 0 0 11px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.policy-section p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.58;
}

.legal-contact {
  padding-bottom: 64px;
}

.legal-contact-card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
}

.legal-contact-card p {
  max-width: 64ch;
  margin: 8px 0 18px;
  color: var(--on-dark-muted);
  line-height: 1.6;
}

.legal-contact-card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.legal-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 28px;
  color: var(--text-subtle);
  font-size: 13px;
}

.legal-bottom a {
  color: var(--text-subtle);
  text-decoration: none;
}

.legal-bottom a:hover {
  color: var(--accent);
}

.hide-on-mobile {
  display: inline-flex;
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
  }

  .nav-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hide-on-mobile {
    display: none;
  }

  .section-head,
  .footer-head,
  .capability-intro,
  .advisory-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-grid,
  .price-form,
  .legal-main {
    grid-template-columns: 1fr;
  }

  .doc-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-updated {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .section {
    padding-right: clamp(18px, 5vw, 24px);
    padding-left: clamp(18px, 5vw, 24px);
  }

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

  .product-card {
    min-height: 0;
    padding: 24px 22px 26px;
    border-radius: 18px;
  }

  .product-head {
    max-width: calc(100% - 86px);
    align-items: flex-start;
  }

  .product-logo {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 9px;
  }

  .product-tag {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    line-height: 1.4;
  }

  .product-card h3 {
    margin-top: 22px;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1;
  }

  .product-copy {
    max-width: none;
    padding-right: 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .score-ring,
  .equalizer,
  .adp-badge {
    display: none;
  }

  .status-badge {
    top: 22px;
    right: 22px;
  }

  .product-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 32px;
  }

  .metrics {
    max-width: 100%;
  }

  .metric,
  .chip {
    min-height: 35px;
    white-space: normal;
  }

  .visit-link {
    margin-top: 4px;
  }
}

@media (max-width: 620px) {
  html,
  body,
  #app {
    max-width: 100%;
    overflow-x: hidden;
  }

  .nav {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand-text {
    font-size: 18px;
  }

  .nav-actions {
    max-width: none;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 16.5px;
  }

  .footer-bottom,
  .legal-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-grid,
  .footer-grid,
  .doc-nav,
  .wait-form {
    grid-template-columns: 1fr;
  }

  .wait-form button {
    width: 100%;
  }

  .product-head {
    max-width: calc(100% - 86px);
  }

  .policy-section {
    grid-template-columns: 1fr;
  }
}

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