:root {
  --site-background: #f6f5ef;
}

.brimrix-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  padding: 24px 0;
}
.brimrix-hero-copy { min-width: 0; }
.brimrix-hero-eyebrow { color: #21103e; font-size: clamp(16px, 1.8vw, 24px); font-weight: 600; margin-bottom: 18px; }
.brimrix-hero h1 { color: #21103e; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; text-transform: uppercase; overflow-wrap: break-word; margin: 0 0 28px; }
.brimrix-hero-cta { max-width: 100%; white-space: normal; text-align: center; }
.brimrix-hero-art { min-width: 0; display: flex; justify-content: center; }
.brimrix-hero-art img { width: 100%; height: auto; max-height: 680px; object-fit: contain; }
@media (max-width: 767px) {
  .brimrix-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 16px 0 24px; }
  .brimrix-hero-copy { text-align: center; }
  .brimrix-hero-eyebrow { font-size: clamp(14px, 3.7vw, 18px); margin-bottom: 14px; }
  .brimrix-hero h1 { font-size: clamp(30px, 8vw, 48px); line-height: 1.12; margin-bottom: 24px; }
  .brimrix-hero-art img { width: min(100%, 420px); max-height: 340px; }
}

html,
body,
.bg-site {
  background-color: var(--site-background);
}

/* Brimrix navigation */
.site-header { padding: 20px clamp(20px, 4.5vw, 64px) 26px; }
.site-nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: 1440px; min-height: 76px; margin: 0 auto; padding: 14px 20px; border: 1px solid #e2e0d8; border-radius: 18px; background: #fffef9; box-shadow: 0 3px 15px #28213b04; color: #21103e; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 28px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.site-brand img { width: 38px; height: 38px; object-fit: contain; }
.site-brand-dot { color: #b87932; }
.site-nav-links { display: flex; align-items: center; gap: 30px; }
.site-nav-links a { font-size: 14px; font-weight: 600; color: #655e70; transition: color .15s; }
.site-nav-links a:hover, .site-nav-links a[aria-current] { color: #542b7e; }
.site-nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 26px; padding: 13px 20px; border-radius: 10px; background: #21103e; color: #fffef9; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.site-nav-cta:hover { background: #542b7e; }
.site-nav a:focus-visible, .site-nav summary:focus-visible { outline: 3px solid #b87932; outline-offset: 5px; }
.site-mobile-menu { display: none; }
@media (max-width: 1000px) {
  .site-header { padding: 16px 20px 24px; }
  .site-nav { gap: 16px; padding: 14px 16px; min-height: 70px; border-radius: 14px; }
  .site-brand { font-size: 25px; gap: 8px; }
  .site-brand img { width: 32px; height: 32px; }
  .site-nav-links, .site-nav-cta { display: none; }
  .site-mobile-menu { display: block; }
  .site-mobile-menu summary { display: flex; align-items: center; gap: 9px; min-height: 42px; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
  .site-mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon { display: block; width: 17px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .site-mobile-menu[open] .menu-icon { height: 0; border-bottom: 0; transform: rotate(-45deg); }
  .site-mobile-links { position: absolute; top: calc(100% + 9px); left: 0; right: 0; z-index: 50; display: grid; padding: 12px; border: 1px solid #e2e0d8; border-radius: 14px; background: #fffef9; box-shadow: 0 12px 30px #21103e14; }
  .site-mobile-links a { padding: 13px 14px; font-size: 15px; border-radius: 8px; }
  .site-mobile-links a:hover { background: #f6f5ef; }
  .site-mobile-links .site-mobile-cta { margin-top: 8px; background: #21103e; color: #fffef9; }
}

/* Shared Brimrix design system */
.brimrix-site {
  --brand: #001f3f;
  --ink: #152b3c;
  --muted: #657078;
  --line: #dfe2de;
  --surface: #fffef9;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.65;
}
.brimrix-site h1, .brimrix-site h2, .brimrix-site h3 { color: var(--brand); }
.brimrix-site h1, .brimrix-site h2 { font-weight: 600; letter-spacing: -.045em; line-height: 1.12; }
.brimrix-site h1 { font-size: clamp(38px, 5.2vw, 68px); }
.brimrix-site h2 { font-size: clamp(30px, 3.4vw, 46px); }
.brimrix-site h3 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.brimrix-site a, .brimrix-site button { -webkit-tap-highlight-color: transparent; }
.brimrix-site a:focus-visible, .brimrix-site button:focus-visible { outline: 3px solid #bd8951; outline-offset: 4px; }
.brimrix-site section[id] { scroll-margin-top: 28px; }
.site-content { width: min(100% - 80px, 1280px); margin-inline: auto; }
.home-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(64px, 8vw, 112px); padding-bottom: 90px; }
.home-content > *, .footer-grid > *, .contact-page form, .contact-page label { min-width: 0; }
.section-heading { margin-bottom: 32px; max-width: 680px; }
.section-heading h1, .section-heading h2 { margin: 0 0 18px; }
.section-heading > p:not(.section-kicker) { color: var(--muted); font-size: 17px; }
.brimrix-site .section-kicker { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #7a633e; margin-bottom: 16px; }
.brimrix-site .site-nav { color: var(--brand); }
.brimrix-site .site-brand { color: var(--brand); }
.brimrix-site .site-nav-links { gap: clamp(16px, 2vw, 28px); }
.brimrix-site .site-nav-links a { color: var(--muted); }
.brimrix-site .site-nav-links a:hover, .brimrix-site .site-nav-links a[aria-current] { color: var(--brand); }
.brimrix-site .site-nav-cta { background: var(--brand); gap: 18px; }
.site-nav-cta svg { width: 18px; height: 18px; flex: 0 0 18px; }
.brimrix-site .site-mobile-links .site-mobile-cta { background: var(--brand); }
.brimrix-site .brimrix-hero { padding-top: 30px; }
.brimrix-site .brimrix-hero h1 { color: var(--brand); text-transform: none; font-weight: 600; }
.brimrix-site .brimrix-hero-eyebrow { color: #7a633e; font-size: 11px; letter-spacing: .15em; }
.hero-description { max-width: 450px; color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.primary-button, .brimrix-site .brimrix-hero-cta, .brimrix-site .contact-page a[href*="calendly.com"] { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 22px; border-radius: 9px; font-size: 14px; font-weight: 600; background: var(--brand); color: white; line-height: 1.5; transition: background .15s, transform .15s; }
.brimrix-site .primary-button:hover, .brimrix-site .site-nav-cta:hover, .brimrix-site .brimrix-hero-cta:hover { background: #153c62 !important; color: white; transform: translateY(-1px); }
.service-grid, .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.service-icon { display: inline-flex; padding: 12px; border-radius: 12px; background: #edf0e9; color: var(--brand); font-size: 25px; margin-bottom: 24px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p, .project-copy p, .product-feature p, .about-section p { color: var(--muted); font-size: 15px; }
.project-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.project-card > img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-bottom: 1px solid var(--line); }
.project-copy { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span { font-size: 10px; border-radius: 5px; padding: 4px 8px; background: #edf0e9; color: var(--brand); font-weight: 600; }
.text-link { display: inline-block; color: var(--brand); font-size: 13px; font-weight: 600; margin-top: 16px; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.project-copy .text-link { margin-top: auto; padding-top: 12px; }
.product-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 48px; border-radius: 22px; background: #e9ede3; border: 1px solid #dbe1d3; }
.product-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.product-identity h3 { font-size: 38px; letter-spacing: -.04em; }
.status-badge { border: 1px solid #c7cebf; padding: 5px 10px; border-radius: 30px; font-size: 10px; white-space: nowrap; }
.product-feature p { margin: 14px 0 24px; }
.technology-section { padding: 36px 0; border-block: 1px solid var(--line); }
.technology-section .section-heading h2 { font-size: clamp(25px, 2.5vw, 34px); }
.technology-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.technology-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; flex: 1 1 150px; }
.technology-item img { width: 35px; height: 35px; object-fit: contain; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 80px); }
.about-section h2 { margin-bottom: 24px; }
.about-section p { margin-bottom: 18px; }
.about-section > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 18px; }
.testimonial-card { min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--surface); }
.testimonial-card > img { width: 35px; height: 35px; object-fit: contain; margin-bottom: 20px; }
.testimonial-card small { font-size: 15px; line-height: 1.8; text-align: left; color: var(--muted); }
.testimonial-card > div > div:first-child { width: 48px; height: 48px; font-size: 17px; }
.testimonial-card .text-xl { font-size: 17px; }
.testimonials-section #testimonials-track { margin-bottom: 24px; }
.testimonials-section #testimonials-prev { left: 0; }
.testimonials-section #testimonials-next { right: 0; }
.interior-content { padding: 45px 0 90px; }
.interior-content > .section-heading { margin-bottom: 55px; }
.contact-page input, .contact-page textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 14px; padding: 14px; }
.contact-page input:focus, .contact-page textarea:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.contact-page form { display: grid; gap: 12px; margin-top: 20px; }
.contact-page #contact-submit { background: var(--brand); border-radius: 9px; }
.contact-page .shadow-lg, .contact-page .shadow-md { box-shadow: none; }
.site-cta { width: min(100% - 80px, 1280px); margin: 0 auto 64px; background: var(--brand); color: #fffef9; padding: 52px; border-radius: 22px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brimrix-site .site-cta h2 { color: #fffef9; margin-bottom: 16px; }
.brimrix-site .site-cta .section-kicker { color: #cfb286; }
.site-cta p:not(.section-kicker) { color: #c6d0d8; font-size: 15px; }
.site-cta .primary-button { background: #fffef9; color: var(--brand); white-space: nowrap; }
.site-footer { width: min(100% - 80px, 1280px); margin-inline: auto; border-top: 1px solid var(--line); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-grid p { margin: 20px 0 14px; font-size: 15px; color: var(--muted); }
.footer-grid h3 { font-size: 12px; margin-bottom: 18px; }
.footer-grid > nav > a, .footer-grid > div:not(:first-child) > a { display: block; margin-bottom: 9px; font-size: 14px; color: var(--muted); }
.footer-grid a:hover { color: var(--brand); }
.footer-location, .footer-bottom { font-size: 12px; color: var(--muted); }
.footer-bottom { padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; place-items: center; width: 46px; height: 46px; background: var(--brand); color: white; border: 1px solid #ffffff40; border-radius: 50%; box-shadow: 0 5px 20px #001f3f25; transition: transform .15s; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top[hidden] { display: none; }
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 18px; }
  .product-feature { padding: 32px; gap: 24px; }
}
@media (max-width: 767px) {
  .site-content, .site-cta, .site-footer { width: calc(100% - 40px); }
  .home-content { gap: 60px; padding-bottom: 60px; }
  .brimrix-site .brimrix-hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .hero-description { margin-inline: auto; font-size: 16px; }
  .brimrix-site .brimrix-hero-eyebrow { font-size: 10px; }
  .service-grid, .project-grid, .product-feature, .about-section { grid-template-columns: minmax(0, 1fr); }
  .service-card { padding: 25px; }
  .section-heading { margin-bottom: 26px; }
  .product-feature { padding: 26px; gap: 30px; }
  .product-identity { gap: 12px; }
  .product-identity h3 { font-size: 30px; }
  .product-identity img { width: 56px; height: 56px; }
  .site-cta { padding: 32px 24px; flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .site-cta .primary-button { white-space: normal; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { font-size: 11px; flex-wrap: wrap; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .interior-content { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .brimrix-site { scroll-behavior: auto; }
  html:has(.brimrix-site) { scroll-behavior: auto; }
  .brimrix-site *, .brimrix-site *::before, .brimrix-site *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Featured product with two supporting projects. */
.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.products-layout .loomfit-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 64px;
  padding: clamp(28px, 4vw, 56px);
  min-width: 0;
}
.loomfit-feature-copy { max-width: 480px; }
.loomfit-feature-copy > h3 { font-size: clamp(34px, 4vw, 56px); line-height: 1.1; letter-spacing: -.04em; }
.product-secondary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.product-secondary .project-card > img { aspect-ratio: auto; }
.product-secondary .project-copy { padding: 22px; gap: 10px; }
.product-secondary .project-copy h3 { font-size: 19px; }
.product-secondary .project-copy p { font-size: 13px; }
#testimonials-track { position: relative; min-width: 0; scrollbar-width: none; -ms-overflow-style: none; }
#testimonials-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (max-width: 767px) {
  .products-layout { grid-template-columns: minmax(0, 1fr); }
  .products-layout .loomfit-feature { gap: 44px; }
}

/* Compact service and product sections without clipping content. */
#services .section-heading, #products .section-heading { margin-bottom: 24px; }
#services .section-heading h2, #products .section-heading h2 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 12px; }
#services .section-kicker, #products > .section-heading .section-kicker { margin-bottom: 10px; }
/* Compact service overview; content remains in normal document flow. */
#services .section-heading { max-width: 760px; margin-bottom: 22px; }
#services .section-heading h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; }
#services .section-heading > p:not(.section-kicker) { font-size: 15px; }
#services .ai-services { min-width: 0; padding: 28px; border: 1px solid #dce0d4; border-radius: 22px; background: #eef0e8; }
.ai-services-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 2px 2px 24px; }
.ai-services-intro { display: flex; align-items: flex-start; gap: 16px; max-width: 650px; min-width: 0; }
.ai-service-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid #d4dbc8; border-radius: 14px; background: #e2e7d8; color: var(--brand); font-size: 26px; }
#services .ai-services-heading h3 { color: var(--brand); font-size: 23px; margin-bottom: 8px; }
#services .ai-services-heading p { color: #5e6b6c; font-size: 14px; line-height: 1.55; }
.service-contact-link { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 16px; border: 1px solid #c7cfc0; border-radius: 9px; color: var(--brand); background: #fffef980; font-size: 12px; font-weight: 600; transition: background .15s, border-color .15s; }
.service-contact-link:hover { background: var(--surface); border-color: #8b9a82; }
#services .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 0; }
#services .service-card { min-width: 0; display: flex; align-items: flex-start; gap: 14px; padding: 22px; border-color: #dfe3d9; border-radius: 14px; box-shadow: 0 2px 3px #152b3c03; }
#services .service-icon { display: inline-flex; flex-shrink: 0; padding: 8px; font-size: 20px; margin: 0; border-radius: 9px; }
#services .service-card h3 { font-size: 17px; margin-bottom: 8px; }
#services .service-card p { font-size: 13px; line-height: 1.5; }
.supporting-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.supporting-service { min-width: 0; display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; border: 1px solid #dce1d5; border-radius: 12px; background: #f7f8f2; }
#services .supporting-service h3 { font-size: 16px; margin-bottom: 6px; }
#services .supporting-service p { color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 1000px) {
  #services .service-card { flex-direction: column; padding: 18px; }
  .ai-services-heading { align-items: flex-start; }
  .service-contact-link { max-width: 190px; flex-shrink: 1; }
}
@media (max-width: 767px) {
  #services .section-heading { margin-bottom: 16px; }
  #services .section-heading .section-kicker { margin-bottom: 6px; }
  #services .section-heading > p:not(.section-kicker) { font-size: 13px; }
  #services .ai-services { padding: 16px; border-radius: 16px; }
  .ai-services-heading { flex-direction: column; gap: 14px; padding-bottom: 18px; }
  .ai-services-intro { gap: 12px; }
  .ai-service-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 21px; }
  .service-contact-link { padding: 8px 12px; font-size: 11px; max-width: 100%; }
  #services .ai-services-heading h3 { font-size: 18px; }
  #services .ai-services-heading p { font-size: 13px; }
  #services .service-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 10px; }
  #services .service-card { flex-direction: row; gap: 12px; padding: 12px 14px; border-radius: 12px; }
  #services .service-card h3 { font-size: 15px; margin-bottom: 4px; }
  #services .service-card p, #services .supporting-service p { font-size: 12px; line-height: 1.4; }
  .supporting-services { gap: 8px; margin-top: 8px; }
  .supporting-service { flex-direction: column; gap: 8px; padding: 12px; }
  #services .supporting-service h3 { font-size: 14px; margin-bottom: 4px; }
  #services .supporting-service .service-icon { display: none; }
}
#products .products-layout, #products .product-secondary { gap: 18px; }
#products .loomfit-feature { padding: clamp(26px, 3vw, 40px); gap: 32px; }
#products .product-secondary .project-copy { padding: 18px; gap: 8px; }
#products .product-secondary .project-copy .text-link { padding-top: 6px; font-size: 12px; }
.primary-button svg { width: 18px; height: 18px; flex: 0 0 18px; }
@media (min-width: 768px) {
  #products .product-secondary .project-card { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); }
  #products .product-secondary .project-card > img { height: auto; aspect-ratio: auto; min-height: 0; align-self: center; border-bottom: 0; border-right: 0; object-fit: contain; }
  #products .product-secondary .project-copy h3 { font-size: 17px; }
  #products .product-secondary .project-tags { gap: 4px; }
  #products .product-secondary .project-tags span { font-size: 9px; padding: 3px 6px; }
  #products .product-identity img { width: 56px; height: 56px; }
  #products .product-identity h3 { font-size: 32px; }
  #products .loomfit-feature-copy > h3 { font-size: clamp(32px, 3.5vw, 48px); }
}
.back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-to-top.is-visible:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; transform: none; }
}

/* One optical size for action arrows, independent of font rendering. */
a .action-arrow, button .action-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  flex: 0 0 14px;
  vertical-align: -2px;
  margin: 0;
}
.signup button { align-items: center; }
