:root {
  --public-ink: #251e2c;
  --public-muted: #5f5667;
  --public-accent: #643b8b;
  --public-line: #e7e0eb;
  --public-soft: #f8f6f9;
  --public-radius: 18px;
  --public-gutter: clamp(18px, 5vw, 72px);
  --public-width: min(1320px, calc(100% - 2 * var(--public-gutter)));
  --public-display: clamp(2.25rem, 4.2vw, 4.25rem);
  --public-heading: clamp(1.85rem, 3.15vw, 3.2rem);
  --public-section: clamp(48px, 6vw, 90px);
}

/* Shared navigation and footer */
body .pastel:has(> .product-header),
.homepage .home-masthead {
  background: #fff;
  border-bottom: 1px solid var(--public-line);
}
.site-header.product-header,
.homepage .site-header.product-header {
  --nav-highlight: #f1e9f6;
  --nav-highlight-ink: #4e2b70;
  width: var(--public-width);
  max-width: none;
  color: var(--public-ink);
}
.site-header.product-header .wordmark { font-weight: 750; }
.product-header :is(nav > a:not(.header-start), .employee-menu > a, .employee-menu-toggle, .mobile-menu-toggle) {
  border-radius: 8px;
}
.product-header :is(.employee-menu-toggle, .mobile-menu-toggle)[aria-expanded="true"],
.product-header :is(nav > a:not(.header-start), .employee-menu > a, .employee-menu-toggle, .mobile-menu-toggle):focus-visible {
  background-color: var(--nav-highlight);
  color: var(--nav-highlight-ink);
}
.product-header :is(nav a, nav button, .mobile-menu-toggle):focus-visible {
  outline: 2px solid var(--public-accent);
  outline-offset: 3px;
}
@media (hover: hover) {
  .product-header :is(nav > a:not(.header-start), .employee-menu > a, .employee-menu-toggle, .mobile-menu-toggle):hover,
  .product-header :is(.employee-mega-links a, .development-menu-panel > a):hover {
    background-color: var(--nav-highlight);
    color: var(--nav-highlight-ink);
  }
  .product-header :is(nav > a:not(.header-start), .employee-menu > a):hover {
    box-shadow: 0 0 0 4px var(--nav-highlight);
  }
}
.site-header.product-header nav>a.header-start {
  display: inline-flex !important;
  gap: 9px;
  min-height: 44px;
  padding-inline: 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--public-accent);
  box-shadow: 0 3px 9px #643b8b26;
  color: #fff;
  font-weight: 700;
  transition: background-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
@media (hover: hover) {
  .site-header.product-header nav>a.header-start:hover {
    background: var(--nav-highlight-ink);
    box-shadow: 0 4px 12px #4e2b7033;
    color: #fff;
  }
}
.site-header.product-header nav>a.header-start:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .site-header.product-header nav>a.header-start { transition: none; }
}
.site-header.product-header nav>a.header-start::before {
  content: '';
  box-sizing: border-box;
  flex: 0 0 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor) center 3px / 100% 1px no-repeat,
    radial-gradient(circle, currentColor 1px, transparent 1.2px) center 6px / 4px 4px repeat-x;
}
.product-header .employee-mega-panel {
  border-color: var(--public-line);
  background: #fff;
  box-shadow: 0 16px 44px #251e2c1a;
}
.site-footer,
.workflows-home > .site-footer {
  background: #211a29;
  padding-inline: max(var(--public-gutter), calc((100% - 1320px) / 2));
}
.site-footer .footer-top .footer-tagline,
.site-footer .footer-bottom { color: #ccc3d1; }
.site-footer .footer-columns h3 { color: #cfc5d4; font-weight: 650; }
.site-footer .footer-bottom { border-color: #43394b; }
@media (min-width: 961px) {
  .site-header.product-header,
  .homepage .site-header.product-header {
    min-height: 86px;
  }
}
@media (min-width: 961px) and (max-width: 1280px) {
  .site-header.product-header,
  .homepage .site-header.product-header { width: calc(100% - 40px); }
  .site-header.product-header nav { gap: 10px; }
  .site-header.product-header nav>a.header-start,
  .homepage .site-header.product-header nav>a.header-start { padding-inline: 12px; }
  .site-header.product-header nav>a,
  .product-header .development-menu-toggle { font-size: 14px; }
}
@media (min-width: 961px) and (max-width: 1000px) {
  .site-header.product-header,
  .homepage .site-header.product-header { gap: 12px; }
  .site-header.product-header nav { gap: 6px; }
  .site-header.product-header nav>a.header-start { font-size: 13px; }
}
@media (max-width: 960px) {
  .site-header.product-header nav,
  .product-header .mobile-menu-toggle {
    border-color: var(--public-line);
    background: #fff;
  }
}

/* Service and industry pages */
.homepage,
.ai-employees-page.ae-refined,
.service-page.ae-refined,
.real-estate-page {
  --home-ink: var(--public-ink);
  --ae-ink: var(--public-ink);
  --home-muted: var(--public-muted);
  --ae-muted: var(--public-muted);
  --home-section-width: var(--public-width);
  --ae-content-width: var(--public-width);
  --ae-line: var(--public-line);
}
.service-page.ae-refined .ai-employees-page { --ae-content-width: var(--public-width); }
.homepage .home-hero.clarity-hero .hero-content {
  width: var(--public-width);
  max-width: none;
  min-height: 0;
  padding-block: var(--public-section);
}
.homepage .home-hero.clarity-hero .hero-copy h1,
.ae-refined .ae-hero .ae-hero-copy h1,
.service-page.ae-refined .mcp-hero .ae-hero-copy h1,
.service-page.ae-refined .workflow-hero .ae-hero-copy h1,
.real-estate-page .real-estate-hero h1 {
  font-size: var(--public-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.053em;
  text-wrap: balance;
}
.homepage .home-hero.clarity-hero .hero-copy h1 span,
.ae-refined .ae-hero h1 span { color: #716479; }
.homepage .home-hero.clarity-hero .hero-copy .hero-primary,
.ae-refined .ae-hero .ae-cta {
  background: var(--public-ink);
  box-shadow: none;
}
.homepage .home-hero.clarity-hero .hero-services .home-service-banner,
.service-page.ae-refined .mcp-hero .ae-hero-image,
.real-estate-page .real-estate-hero .real-estate-preview,
.service-page.ae-refined .workflow-editor {
  border: 1px solid var(--public-line);
  border-radius: var(--public-radius);
  box-shadow: 0 14px 36px #251e2c0c;
}
.homepage .home-hero.clarity-hero .hero-services .home-service-controls button {
  min-width: 44px;
  min-height: 44px;
}
.homepage .dark-page>.section,
.ae-refined .ae-landing .ae-section,
.service-page.ae-refined :is(.wf-section, .process, .featured-work) {
  padding-block: var(--public-section);
}
.homepage .dark-page .center-copy h2,
.ae-refined .ae-landing h2,
.service-page.ae-refined .wf-heading h2,
.real-estate-page main h2 {
  font-size: var(--public-heading);
  font-weight: 600;
  letter-spacing: -.042em;
  line-height: 1.12;
}
.homepage :is(#workflow, #questions),
.ae-refined .ae-landing :is(.ae-trust, #employees),
.service-page.ae-refined :is(.wf-white, .wf-lavender) {
  border-color: var(--public-line);
  background: var(--public-soft);
}
.home-tools { background: #fff; color: var(--public-ink); }
.home-tools-intro { margin-bottom: clamp(24px, 4vw, 44px); }
.home-tools-intro h2 {
  margin: 0 0 12px;
  font-size: var(--public-heading);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.042em;
}
.home-tools-intro p {
  max-width: 66ch;
  margin: 0;
  color: var(--public-muted);
  line-height: 1.65;
}
.home-tools-group + .home-tools-group { margin-top: clamp(24px, 3vw, 36px); }
.home-tools-group h3 { margin: 0 0 12px; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.3; }
.home-tools-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 10px;
}
.home-tools-group-heading h3 { margin: 0; }
.home-tools-group-heading a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--public-accent);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-tools-models .home-tools-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-tools-grid a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--public-line);
  border-radius: 12px;
  background: var(--public-soft);
}
.home-tools-grid a:hover { border-color: #b9a3ca; background: #f2ebf6; }
.home-tools-grid :is(strong, small) { display: block; line-height: 1.35; }
.home-tools-grid strong { font-size: .875rem; }
.home-tools-grid small { margin-top: 3px; color: var(--public-muted); font-size: .75rem; }
.home-tool-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--public-line);
  border-radius: 9px;
  background: #fff;
}
.home-tool-icon img { display: block; width: 27px; height: 27px; object-fit: contain; }
.home-tool-folder {
  position: relative;
  width: 21px;
  height: 15px;
  margin-top: 4px;
  border: 2px solid #387063;
  border-radius: 4px;
  background: #e5f4ee;
}
.home-tool-folder::before {
  position: absolute;
  top: -6px;
  left: -2px;
  width: 10px;
  height: 5px;
  border: 2px solid #387063;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #e5f4ee;
  content: '';
}
@media (max-width: 1100px) {
  .home-tools .home-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .home-tools .home-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 380px) {
  .home-tools-grid a { gap: 7px; padding: 8px; }
  .home-tool-icon { width: 33px; height: 33px; }
  .home-tool-icon img { width: 23px; height: 23px; }
}
.ai-employees-page .ae-landing #featured-work {
  border-block: 1px solid var(--public-line);
  background: var(--public-soft);
  color: var(--public-ink);
}
.ai-employees-page #featured-work :is(.featured-work-heading>p, .featured-work-copy p) {
  color: var(--public-muted);
  line-height: 1.7;
}
.homepage #how-it-works .process-milestone,
.ae-refined .ae-start.process .process-milestone {
  border-color: var(--public-line);
  border-radius: var(--public-radius);
  box-shadow: 0 8px 23px #251e2c0b;
}
.homepage #how-it-works .process-milestone figcaption,
.ae-refined .ae-start.process .process-milestone figcaption {
  border-color: var(--public-line);
  background: var(--public-soft);
}
.service-page.ae-refined .workflow-hero { padding-block: clamp(38px, 5vw, 72px) var(--public-section); }
.service-page.ae-refined .workflow-hero .ae-hero-grid { gap: clamp(26px, 4vw, 48px); }
.service-page.ae-refined .workflow-hero .ae-hero-copy { max-width: 1040px; }
.service-page.ae-refined .workflow-editor { background: #fff; }
.real-estate-page .real-estate-jump-nav,
.development-page .development-section-nav { border-color: var(--public-line); }
.real-estate-page .real-estate-how-steps li {
  border-color: var(--public-line);
  border-radius: 14px;
  background: var(--public-soft);
}
@media (max-width: 800px) {
  .homepage .home-hero.clarity-hero .hero-copy h1 br { display: none; }
  .homepage .home-hero.clarity-hero .hero-copy h1 { text-wrap: pretty; }
}

/* Development and company pages */
.development-page {
  --dev-ink: var(--public-ink);
  --dev-muted: var(--public-muted);
}
.development-page .development-wrap,
.company-main .company-wrap { width: var(--public-width); max-width: none; }
.development-page .development-hero,
.company-main .company-hero {
  background: #fff;
  padding-block: var(--public-section);
}
.development-page .development-hero-pitch,
.company-main .company-hero h1 {
  font-size: var(--public-display);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.055em;
}
.development-page .development-hero-art,
.company-main .company-hero img {
  border: 1px solid var(--public-line);
  border-radius: var(--public-radius);
  box-shadow: 0 14px 36px #251e2c12;
}
.development-page .development-section { padding-block: var(--public-section); }
.development-page .development-section h2,
.company-main h2 {
  font-size: var(--public-heading);
  font-weight: 600;
}
.development-page .development-offerings { gap: 12px; }
.development-page .development-offerings article,
.company-main .company-service-grid>a {
  padding: clamp(16px, 2.25vw, 29px);
  border: 1px solid var(--public-line);
  border-radius: var(--public-radius);
  background: var(--public-soft);
}
.development-page .development-work-section,
.company-main .company-details { background: var(--public-soft); }
.development-page .development-gallery a { border-color: var(--public-line); }
.company-main .company-hero p {
  max-width: 42ch;
  color: var(--public-muted);
}
.company-main .company-service-grid { gap: 14px; }
.company-main .company-service-grid>a:hover { border-color: var(--public-accent); }
.development-directory h1 {
  margin: 0 0 12px;
  color: var(--public-ink);
  font-size: var(--public-display);
  letter-spacing: -.05em;
  line-height: 1.05;
}
.development-directory ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}
.development-directory li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 0 12px;
  height: 100%;
  border: 1px solid var(--public-line);
  border-radius: 14px;
  background: var(--public-soft);
  color: var(--public-ink);
  font-weight: 650;
  text-decoration: none;
}
.development-directory li img {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 13px 13px 0 0;
}
.development-directory li span { padding: 16px 0 16px 16px; }
.development-directory li a:hover { border-color: var(--public-accent); color: var(--public-accent); }
.development-directory li a::after { content: '↗' / ''; padding-inline-end: 16px; }
@media (max-width: 760px) {
  .development-directory ul { grid-template-columns: 1fr; }
}

/* Guides, policy and access pages */
.workflows-home main:has(> :is(.blog-index, .blog-article, .legal-copy)) {
  background: #fff;
  color: var(--public-ink);
}
.workflows-home :is(.blog-index, .blog-article, .legal-copy .wf-section) {
  background: transparent;
}
.workflows-home .blog-index.wf-section {
  width: var(--public-width);
  max-width: none;
  padding-block: var(--public-section);
}
.workflows-home .blog-heading { margin-bottom: clamp(24px, 4vw, 48px); }
.workflows-home .blog-index .blog-heading p { color: var(--public-muted); }
.workflows-home .blog-heading h1,
.workflows-home .blog-article h1,
.workflows-home main>.utility-hero h1,
.marketplace-main h1 {
  font-size: var(--public-display);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.052em;
  color: var(--public-ink);
}
.workflows-home .blog-index :is(.blog-grid, .blog-pagination) { max-width: none; }
.workflows-home .blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}
.workflows-home .blog-card:not([hidden]) {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid var(--public-line);
  border-radius: var(--public-radius);
  background: var(--public-soft);
  color: var(--public-ink);
  box-shadow: none;
}
.workflows-home .blog-index .blog-card h2 { color: var(--public-ink); font-size: 1.4rem; font-weight: 650; }
.workflows-home .blog-index .blog-card p { color: var(--public-muted); }
.workflows-home .blog-index .blog-card p.eyebrow { color: var(--public-accent); }
.workflows-home .blog-card>p:last-child { margin-top: auto; margin-bottom: 0; }
.workflows-home .blog-card .pill-button {
  justify-content: flex-start;
  min-height: 44px;
  padding: 8px 0;
  background: none;
  box-shadow: none;
  color: var(--public-accent);
  font-weight: 700;
}
.workflows-home .blog-card .pill-button:hover { text-decoration: underline; transform: none; }
.workflows-home .blog-pagination button {
  min-height: 44px;
  border-color: var(--public-line);
  border-radius: 10px;
}
.workflows-home :is(.blog-article, .legal-copy) { width: min(760px, var(--public-width)); }
.workflows-home .blog-article :is(h2, h3),
.workflows-home .legal-copy :is(h2, h3) { color: var(--public-ink); }
.workflows-home .blog-article :is(p, li),
.workflows-home .legal-copy :is(p, li) { color: var(--public-muted); line-height: 1.7; }
.workflows-home :is(.blog-article, .legal-copy) a:not(.pill-button) { color: var(--public-accent); }
.workflows-home .blog-article .wf-card {
  border-color: var(--public-line);
  background: var(--public-soft);
  color: var(--public-ink);
}
.workflows-home .blog-article .wf-card :is(h2, h3) { color: var(--public-ink); }
.workflows-home .blog-article .wf-card :is(p, ul) { color: var(--public-muted); }
.workflows-home .blog-article .eyebrow { color: var(--public-accent); }
.workflows-home main>.utility-hero {
  width: var(--public-width);
  max-width: none;
  padding: var(--public-section) 0;
  background: transparent;
}
.workflows-home main:has(>.utility-hero) { background: var(--public-soft); color: var(--public-ink); }
.workflows-home main>.utility-hero p { color: var(--public-muted); }
.workflows-home main:has(>.legal-copy) { background: #fff; }
.workflows-home .legal-copy .wf-section p { color: var(--public-muted); }
@media (max-width: 760px) {
  .workflows-home .blog-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Marketplace and standalone role detail */
.marketplace-main {
  width: var(--public-width);
  max-width: none;
  padding-block: clamp(32px, 5vw, 72px);
}
.marketplace-main h1,
.marketplace-main .marketplace-intro { text-align: left; }
.marketplace-main .marketplace-intro { margin: 10px 0 22px; color: var(--public-muted); }
.marketplace-main .marketplace-tabs { justify-content: flex-start; }
.marketplace-bundle { border-color: var(--public-line); box-shadow: 0 8px 24px #251e2c0b; }
@media (max-width: 600px) {
  .marketplace-listings {
    margin-inline: calc(-1 * var(--public-gutter));
    padding-inline: calc((100% + 2 * var(--public-gutter) - var(--marketplace-card-width)) / 2);
  }
}
.social-hero { background: linear-gradient(115deg, #fff 25%, #f8f3fa 100%); }
.social-hero .social-copy h1 {
  font-size: var(--public-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.05em;
}

/* Public service previews use the same form and card surfaces. */
body.service-preview:not(.page-employee) main,
.service-preview .no-script {
  background: var(--public-soft);
  color: var(--public-ink);
}
.service-preview main>h1,
.service-preview .hero-copy h1 {
  font-size: var(--public-display);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -.048em;
}
.service-preview main :is(.card, .trial-panel) {
  border-color: var(--public-line);
  border-radius: var(--public-radius);
}
.service-preview main .card { background: #fff; }
.service-preview .no-script a { color: var(--public-accent); }
.service-preview .site-footer { margin-top: 0; }
