/* Homepage light palette, scoped to the landing page and its shared components. */
html.home-document { color-scheme: light; background: #ffffff; }
body.home-page {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-surface: #f7f7fa;
  --color-surface-alt: #f8f8fb;
  --color-surface-raised: #ffffff;
  --color-ink: #202026;
  --color-text: #34343e;
  --color-muted: #5f5f6b;
  --color-subtle: #646470;
  --color-line: #dedee6;
  --color-border-strong: #858591;
  --color-accent: #6255d6;
  --color-accent-hover: #5145bc;
  --color-accent-light: #5749c3;
  --color-link-hover: #4536a7;
  --color-accent-soft: #f0edfc;
  --color-accent-surface: #eeebfa;
  --color-accent-surface-hover: #e9e5f8;
  --color-success: #28623c;
  --color-error: #a22e3d;
  --color-bg-rgb: 255, 255, 255;
  --color-surface-rgb: 247, 247, 250;
  --color-ink-rgb: 32, 32, 38;
  --home-bg: var(--color-bg);
  --home-surface: var(--color-surface);
  --home-ink: var(--color-ink);
  --home-muted: var(--color-muted);
  --home-line: var(--color-line);
  --home-accent: var(--color-accent);
  --home-accent-light: var(--color-accent-light);
  --home-font: var(--font-body);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.home-page { margin: 0; background: var(--home-bg); color: var(--home-ink); font-family: var(--home-font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.home-page img { display: block; max-width: 100%; }
.home-page a { color: inherit; text-decoration: none; }
.home-page button { font: inherit; }
.home-page h1, .home-page h2, .home-page h3, .home-page p { margin: 0; }
.home-page h1, .home-page h2, .home-page h3 { font-family: var(--home-font); font-weight: 700; }
.home-page h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.14; letter-spacing: -.045em; text-wrap: balance; }
.home-page h3 { font-size: 1.3rem; line-height: 1.35; letter-spacing: -.025em; }
.home-page p { color: var(--home-muted); }
.home-page .container { width: min(var(--content-width), calc(100% - var(--page-gutter))); margin-inline: auto; }
.home-page .section { position: relative; padding: 100px 0; }
.home-page :is(section[id], .anchor) { scroll-margin-top: 32px; }
.home-page .anchor { position: absolute; top: 0; }
.home-page .section-heading { margin-bottom: 56px; }
.home-page .centered { text-align: center; }
.home-page .split-heading { display: block; }
.home-page .split-heading > p { max-width: 52ch; margin-top: 20px; }
.home-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 52px; padding: 14px 22px; border: 1px solid transparent; border-radius: 4px; background: var(--color-accent); color: var(--color-on-accent); font-size: .9375rem; font-weight: 600; line-height: 1.4; transition: background-color 180ms ease, transform 180ms ease; }
.home-page .btn:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.home-page .btn:active { transform: translateY(1px); }
.home-page .btn > span { font-size: 1.2rem; }
.home-page .text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--home-accent-light); font-size: .9375rem; font-weight: 500; text-underline-offset: 5px; }
.home-page .text-link:hover { color: var(--color-link-hover); text-decoration: underline; }
.home-page :focus-visible { outline: 2px solid var(--home-accent-light); outline-offset: 5px; }
.home-page .skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 18px; transform: translateY(-160%); background: var(--home-ink); color: var(--home-bg); border-radius: 4px; }
.home-page .skip-link:focus { transform: none; }

/* Shared navigation has explicit light-on-dark colors; adapt these on the homepage. */
body.home-page .site-nav.site-navigation :is(.nav-logo, .nav-links, .nav-links a, .nav-dropdown-toggle, .nav-menu-toggle) { color: var(--color-text); }
body.home-page .site-nav.site-navigation :is(.nav-links a:hover, .nav-links a:focus-visible, .nav-dropdown-toggle:hover) { color: var(--color-accent-light); }
body.home-page .site-nav.site-navigation .nav-links .nav-button { color: var(--color-on-accent); background: var(--color-accent); border-color: var(--color-accent); }
body.home-page .site-nav.site-navigation .nav-links .nav-button:hover,
body.home-page .site-nav.site-navigation .nav-links .nav-button:focus-visible { color: var(--color-on-accent); background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
/* Match the navigation logo's artwork framing and original colors. */
body.home-page .footer .site-brand-logo {
  --nav-logo-art-height: 56px;
  width: calc(var(--nav-logo-art-height) * 2.8472727273 + 4px);
  height: calc(var(--nav-logo-art-height) + 4px);
}
body.home-page .footer .site-brand-logo img {
  left: calc(2px - var(--nav-logo-art-height) * .34);
  top: calc(2px - var(--nav-logo-art-height) * .2272727273);
  width: calc(var(--nav-logo-art-height) * 3.5309090909);
  max-width: none;
  height: calc(var(--nav-logo-art-height) * 1.4709090909);
  object-fit: contain;
  filter: none;
  mix-blend-mode: normal;
}
body.home-page .site-nav.site-navigation .nav-logo img { filter: none; mix-blend-mode: normal; }


.home-page .services .section-heading { margin-bottom: 36px; }
.home-page .services h2 { color: var(--home-accent-light); font-size: clamp(1.8rem, 3.1vw, 2.6rem); font-weight: 500; line-height: 1.25; letter-spacing: -.03em; text-wrap: balance; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--home-line); background: var(--home-line); }
.home-page .service-item { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 260px; padding: 30px 22px; background: var(--home-bg); text-align: center; transition: background-color 180ms ease; }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; }
.service-icon img { filter: brightness(0) saturate(100%) invert(33%) sepia(53%) saturate(1643%) hue-rotate(220deg) brightness(92%) contrast(93%); }
.home-page .service-item h3 { display: flex; align-items: center; justify-content: center; min-height: 2.8em; margin: 18px 0 10px; color: var(--home-accent-light); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.home-page .service-item p { max-width: 29ch; font-size: .875rem; line-height: 1.65; }
.home-page .service-item:hover, .home-page .service-item:focus-visible { background: var(--color-surface-alt); }
.home-page .service-item:hover h3, .home-page .service-item:focus-visible h3 { color: var(--color-link-hover); }
.home-page .service-item:focus-visible { outline-offset: -3px; }
.home-page .business-facts { margin-top: 44px; padding: 36px 0; border-block: 1px solid var(--home-line); }
.home-page .business-facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.home-page .business-fact { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 8px 24px; text-align: center; }
.home-page .business-fact + .business-fact { border-left: 1px solid var(--home-line); }
.home-page .business-fact dt { order: 1; color: var(--home-muted); font-size: .6875rem; font-weight: 500; line-height: 1.6; letter-spacing: .09em; text-transform: uppercase; }
.home-page .business-fact dd { margin: 0; color: var(--home-ink); font-size: clamp(2.5rem, 4.3vw, 3.75rem); font-weight: 750; line-height: 1.1; letter-spacing: -.065em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-page .business-fact dd span { color: var(--home-accent-light); }
.home-page .business-fact .business-fact-star { display: inline-block; width: .8em; height: .8em; margin-left: 4px; vertical-align: -.04em; }
.home-page .business-fact-star svg { width: 100%; height: 100%; fill: currentColor; }
.home-page .services { padding-top: 80px; padding-bottom: 72px; }
.work { background: var(--home-bg); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.project { min-width: 0; }
.project:nth-child(2) { padding-top: 34px; }
.project:nth-child(3) { padding-top: 68px; }
.project-image { display: block; padding: 14px; border: 1px solid var(--home-line); border-radius: 10px; background: var(--color-surface); overflow: hidden; }
.project-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 5px; transition: transform 240ms ease; }
.project-image:hover img { transform: scale(1.025); }
.home-page .project-category { margin: 22px 0 8px; color: var(--color-muted); font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.project h3 { margin-bottom: 10px; }
.project > p:not(.project-category) { font-size: .9375rem; }
.home-page .project-case-link { margin-top: 14px; font-size: .875rem; }
.home-page .industry-note { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--home-line); font-size: .875rem; }
.industry-note a { display: inline-block; min-height: 44px; padding-block: 10px; margin-left: 8px; color: var(--home-accent-light); }
.industry-note a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-page .testimonials { padding: 80px 0; background: var(--color-accent); }
.testimonials-heading { max-width: 820px; margin-inline: auto; text-align: center; }
.home-page .testimonials-eyebrow { margin-bottom: 20px; color: var(--color-on-accent); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.home-page .testimonials h2 { color: var(--color-on-accent); font-size: clamp(2.2rem, 4vw, 3.5rem); }
.home-page .testimonials-intro { max-width: 65ch; margin: 22px auto 0; color: var(--color-on-accent); font-size: 1rem; line-height: 1.75; }
.testimonials-panel { max-width: 1056px; margin: 40px auto 0; padding: 28px; border: 1px solid var(--home-line); border-radius: 12px; background: var(--home-bg); }
.testimonials-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 28px; padding: 0 8px; }
.home-page .testimonials-panel h3 { color: var(--home-ink); font-size: 1.25rem; }
.testimonials-rating { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.testimonials-rating strong { color: var(--home-ink); font-size: 2.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.testimonials-rating > div { display: grid; gap: 5px; }
.testimonials-rating > div > span { color: var(--home-muted); font-size: .6875rem; line-height: 1.5; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.review { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--home-line); border-radius: var(--radius-panel); background: var(--home-bg); box-shadow: 0 3px 10px rgba(var(--color-shadow-rgb), .06); }
.review-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.review-score { color: var(--home-accent-light); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.review-stars { display: inline-flex; color: var(--home-accent-light); }
.review-stars svg { display: block; width: 90px; height: 18px; fill: currentColor; }
.review blockquote { margin: 0 0 28px; color: var(--color-text); font-size: .9375rem; line-height: 1.8; }
.review figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; color: var(--home-ink); font-size: .8125rem; }
.review figcaption small { display: block; margin-top: 2px; color: var(--home-muted); font-size: .6875rem; }
.review-initial { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--color-accent-surface); color: var(--color-accent-light); font-size: .75rem; font-weight: 600; }
.review figcaption > img { flex: 0 0 auto; margin-left: auto; }
.home-page .questions { padding-top: 80px; border-top: 1px solid var(--home-line); background: var(--color-surface-alt); }
.questions-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; }
.questions-grid > div:first-child > .text-link { margin-top: 24px; }
.question-list details { border-bottom: 1px solid var(--home-line); }
.question-list details:first-child { border-top: 1px solid var(--home-line); }
.question-list summary { position: relative; padding: 23px 32px 23px 0; color: var(--color-text); font-size: 1rem; font-weight: 500; line-height: 1.5; list-style: none; cursor: pointer; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary::after { content: '+'; position: absolute; right: 4px; top: 19px; color: var(--home-accent-light); font-size: 1.5rem; font-weight: 400; }
.question-list details[open] summary::after { transform: rotate(45deg); }
.question-list summary:hover { color: var(--home-accent-light); }
.question-list details > p { padding: 0 28px 24px 0; font-size: .9375rem; }
.question-list p a { color: var(--home-accent-light); text-decoration: underline; text-underline-offset: 4px; }
.contact-cta { padding: 90px 0 96px; background: var(--color-surface); }
.contact-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 80px; }
.contact-grid h2 { max-width: 780px; }
.contact-grid p { max-width: 50ch; margin-top: 22px; font-size: .9375rem; }
.footer { padding: 48px 0 28px; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-top nav, .footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a:not(.footer-brand) { display: inline-flex; align-items: center; min-height: 44px; color: var(--home-muted); font-size: .8125rem; }
.footer a:hover { color: var(--home-accent-light); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--home-line); }
.footer-bottom p, .footer-bottom a:not(.footer-brand) { color: var(--color-subtle); font-size: .75rem; }

/* Motion stays within the landing-page content, apart from the shared navigation. */
.home-page main .text-link { transition: color 180ms ease; }
.home-page main :is(.text-link, .btn) > span { display: inline-block; transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }
.home-page main .service-icon { transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }
.home-page .question-list summary { transition: color 180ms ease; }
.home-page .question-list summary::after { transition: transform 220ms ease; }
@media (hover: hover) and (pointer: fine) {
  .home-page main .text-link:hover > span { transform: translateX(4px); }
  .home-page main .btn:hover > span { transform: translate(2px, -2px); }
  .home-page .service-item:hover .service-icon { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-page .question-list details[open] > p { animation: home-answer-in 240ms ease-out; }
  @keyframes home-answer-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1100px) {
  .questions-grid { gap: 64px; }
  .contact-grid { gap: 40px; }
}
@media (max-width: 1020px) {
  .home-page .business-fact { padding-inline: 16px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { gap: 20px; }
  .home-page .split-heading { gap: 32px; }
}
@media (max-width: 760px) {
  .home-page .business-facts { margin-top: 32px; padding-block: 12px; }
  .home-page .business-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .business-fact { padding: 24px 12px; gap: 10px; }
  .home-page .business-fact:nth-child(3) { border-left: 0; }
  .home-page .business-fact:nth-child(n+3) { border-top: 1px solid var(--home-line); }
  .home-page .business-fact dd { font-size: clamp(2.1rem, 8vw, 3rem); }
  .home-page .business-fact dt { max-width: 19ch; align-self: center; font-size: .625rem; }
  .home-page .container { width: calc(100% - var(--page-gutter)); }
  .home-page .section { padding: 64px 0; }
  .home-page h2 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .home-page .section-heading { margin-bottom: 36px; }
  .home-page .split-heading { display: block; }
  .home-page .split-heading > p { max-width: 42ch; margin-top: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .home-page .service-item { min-height: 0; padding: 28px 24px; }
  .home-page .service-item h3 { min-height: 0; margin-top: 18px; font-size: 1.125rem; }
  .home-page .service-item p { max-width: 36ch; font-size: .9375rem; }
  .home-page .services { padding-top: 48px; padding-bottom: 48px; }
  .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .project:nth-child(2), .project:nth-child(3) { padding-top: 0; }
  .project-image { padding: 12px; }
  .home-page .project-category { margin-top: 18px; }
  .home-page .industry-note { margin-top: 32px; }
  .industry-note a { margin-left: 0; }
  .questions-grid { grid-template-columns: 1fr; gap: 36px; }
  .home-page .testimonials { padding-block: 56px; }
  .home-page .testimonials h2 { font-size: clamp(2rem, 7.5vw, 2.75rem); }
  .home-page .testimonials-intro { margin-top: 18px; font-size: .9375rem; }
  .testimonials-panel { margin-top: 28px; padding: 20px 16px; }
  .testimonials-panel-heading { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 24px; padding-inline: 4px; }
  .home-page .testimonials-panel h3 { font-size: 1.0625rem; }
  .testimonials-rating strong { font-size: 2rem; }
  .reviews { grid-template-columns: 1fr; gap: 16px; }
  .review { padding: 22px 20px; }
  .home-page .questions { padding-top: 48px; }
  .contact-cta { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid .btn { justify-self: start; }
  .footer { padding-top: 36px; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; gap: 22px; }
  .footer-top nav, .footer-bottom nav { gap: 20px; }
  .footer-bottom { margin-top: 24px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-page *, .home-page *::before, .home-page *::after { transition: none !important; animation: none !important; }
}
