/* Shared typography and palette, based on the home page. */
:root {
  --sc-font-body: "Noto Sans", Arial, sans-serif;
  --sc-font-heading: "Chivo", Arial, sans-serif;
  --sc-title: clamp(40px, 4.65vw, 68px);
  --sc-heading: clamp(30px, 3.2vw, 42px);
  --sc-card-title: 22px;
  --sc-surface: #f0f3eb;
}
body, input, textarea, select, button { font-family: var(--sc-font-body); }
main h1, main h2, main h3, main h4 { font-family: var(--sc-font-heading); color: var(--sc-ink); font-weight: 400; }
main h1, .sc-home .sc-hero h1, .sc-contact h1, .sc-partner-hero h1, .sc-case-header h1, .sc-case-index-header h1 {
  font-size: var(--sc-title); line-height: 1.1; letter-spacing: -.045em; font-weight: 400;
}
main h2, .sc-section h2, .sc-section-heading h2, .sc-partner-reasons h2, .sc-partner-faq h2, .sc-article-body h2, .sc-case-related h2, .sc-case-preview h2, .sc-cta h2, .sc-case-cta h2 {
  font-size: var(--sc-heading); line-height: 1.2; letter-spacing: -.035em; font-weight: 400;
}
main h3, .sc-service-card h3, .sc-process-grid h3, .sc-partner-card h3, .sc-partner-proof h3, .sc-case-card-copy h3, .sc-case-grid-editorial .sc-case-card h3 {
  font-size: var(--sc-card-title); line-height: 1.3; letter-spacing: -.02em; font-weight: 400;
}
main p:not(.sc-eyebrow):not(.sc-form-note), .sc-section-heading > p, .sc-service-card p, .sc-process-grid p, .sc-case-card-copy > p:not(.sc-eyebrow), .sc-case-deck > p, .sc-article-body p:not(.sc-eyebrow), .sc-case-index-header > div > p {
  font-size: 16px; line-height: 1.85; color: var(--sc-muted);
}
main .sc-eyebrow { font-family: var(--sc-font-body); color: var(--sc-green); font-size: 10px; line-height: 1.6; letter-spacing: 1.7px; }
.sc-services, .sc-process, .sc-partner-proof, .sc-article-summary, .sc-case-grid-editorial .sc-case-card:first-child { background: var(--sc-surface); }
.sc-cta, .sc-case-cta { background: var(--sc-ink); }
.sc-cta h2, .sc-case-cta h2 { color: var(--sc-paper); }
.sc-cta .sc-eyebrow, .sc-case-cta .sc-eyebrow, .sc-case-cta p:not(.sc-eyebrow) { color: #dce3d9; }
.sc-hero h1 em, .sc-cta h2 em, .sc-case-index-header h1 em { font-family: Georgia, serif; color: #618155; }
.sc-cta h2 em { color: var(--sc-lime); }
.sc-page-hero { padding-block: 75px; }
.sc-page-hero h1 { max-width: 950px; margin-bottom: 28px; }
.sc-page-hero .sc-intro { max-width: 680px; }
.sc-page-hero .sc-actions { margin-top: 32px; }
.sc-message-page { min-height: 60vh; }
.sc-service-detail { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.sc-service-detail h2 { margin-bottom: 25px; }
.sc-service-detail p { margin-bottom: 22px; }
.sc-service-detail img { width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: cover; border-radius: 10px; }
.sc-contact-form input, .sc-contact-form textarea { font-size: 16px; }
.sc-form-note { font-size: 13px; line-height: 1.6; }
.sc-form-feedback { padding: 18px; border: 1px solid var(--sc-green); border-radius: 8px; background: var(--sc-surface); margin-bottom: 24px; }
.sc-form-feedback ul { list-style: disc; padding-left: 22px; }
.sc-field-error { display: block; color: #8b302b; font-size: 13px; margin-top: 8px; }
.sc-contact-form [aria-invalid="true"] { border-color: #8b302b; }
.sc-contact-form button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 767px) {
  .sc-page-hero { padding-block: 45px; }
  .sc-service-detail { grid-template-columns: 1fr; gap: 30px; }
  .sc-button { white-space: normal; }
  .sc-contact h1 br { display: none; }
}
/* Decorative text retains its contrast inside the home illustration. */
.sc-hero-art .sc-code p { color: #f4f7ed; font-family: monospace; font-size: 15px; line-height: 1.7; }
.sc-contact-layout > div, .sc-contact-form { min-width: 0; }
.sc-contact h1 { overflow-wrap: break-word; }
@media (max-width: 480px) { .sc-hero-art .sc-code p { font-size: 13px; } }

/* A quiet editorial timeline: the story remains readable without JavaScript. */
.sc-history { background: var(--sc-surface); border-block: 1px solid var(--sc-line); }
.sc-history-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.sc-history-intro { position: sticky; top: 135px; }
.sc-history-intro h2 { margin-bottom: 28px; }
.sc-history-intro h2 em { font-family: Georgia, serif; color: #618155; font-weight: 400; }
.sc-history-intro p:not(.sc-eyebrow) { margin-bottom: 22px; }
.sc-history-intro .sc-text-link { margin-top: 6px; }
.sc-history-signature { display: flex; align-items: center; gap: 14px; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--sc-line); color: var(--sc-muted); font-size: 12px; }
.sc-history-signature > span { font-size: 42px; color: var(--sc-green); line-height: 1; }
.sc-timeline { position: relative; list-style: none; padding: 0 0 0 32px; margin: 0; --sc-timeline-progress: 0; }
.sc-timeline::before, .sc-timeline::after { content: ""; position: absolute; left: 5px; top: 34px; bottom: 34px; width: 1px; background: #cbd7c3; }
.sc-timeline::after { background: var(--sc-green); transform: scaleY(var(--sc-timeline-progress)); transform-origin: top; }
.sc-timeline-item { position: relative; padding-bottom: 30px; scroll-margin-top: 125px; }
.sc-timeline-item:last-child { padding-bottom: 0; }
.sc-timeline-dot { position: absolute; left: -32px; top: 29px; width: 11px; height: 11px; border: 2px solid #99ad8c; border-radius: 50%; background: var(--sc-surface); z-index: 1; transition: background .4s ease, border-color .4s ease, box-shadow .4s ease; }
.sc-timeline-item.is-reached .sc-timeline-dot { background: var(--sc-green); border-color: var(--sc-green); box-shadow: 0 0 0 5px #28634410; }
.sc-timeline-card { padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--sc-line); border-radius: 12px; background: var(--sc-paper); }
.sc-timeline-card > header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 25px; }
.sc-timeline-card time { font: 400 clamp(30px, 3vw, 42px)/1 var(--sc-font-heading); letter-spacing: -.04em; color: var(--sc-ink); }
.sc-timeline-label { font-family: var(--sc-font-body); font-size: 11px; color: var(--sc-green); }
.sc-timeline-card h3 { margin-bottom: 18px; }
.sc-timeline-card p { margin-bottom: 18px; }
.sc-timeline-card p:last-child { margin-bottom: 0; }
.sc-timeline-card strong { font-weight: 700; color: var(--sc-ink); }
.sc-timeline-milestone { border-color: #9eb58e; background: #f6f9ef; }
.sc-timeline-partners { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sc-timeline-partners a { border: 1px solid var(--sc-line); border-radius: 5px; padding: 9px 12px; font-size: 12px; color: var(--sc-ink); }
.sc-history-closing { border-top: 1px solid var(--sc-line); padding-top: 22px; margin-top: 25px; }
@media (max-width: 1000px), (max-height: 780px) {
  .sc-history-intro { position: static; }
}
@media (max-width: 767px) {
  .sc-history-layout { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .sc-history-signature { display: none; }
  .sc-timeline { padding-left: 25px; }
  .sc-timeline-dot { left: -25px; }
  .sc-timeline-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sc-button { transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
  .sc-button:hover { box-shadow: 0 7px 20px #183d3114; }
  .sc-text-link > span { transition: transform .25s ease; }
  .sc-text-link:hover > span { transform: translate(3px, -2px); }
  .sc-partner-card, .sc-timeline-partners a { transition: border-color .25s ease, box-shadow .25s ease; }
  .sc-partner-card:hover, .sc-timeline-partners a:hover { border-color: #9eb58e; box-shadow: 0 8px 24px #183d3108; }
  .sc-navigation > a:not(.sc-button) { transition: color .25s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-timeline::after { transform: none; }
  .sc-timeline-dot { transition: none; }
  .sc-button:hover, .sc-service-card:hover, .sc-case-card:hover img, .sc-case-card:hover .sc-case-arrow { transform: none; }
}
@media print {
  .sc-history-intro { position: static; }
  .sc-history-layout { display: block; }
  .sc-timeline { margin-top: 30px; }
  .sc-timeline-card { break-inside: avoid; }
}


/* Client marks retain their identity with a quiet, consistent presentation. */
.sc-clients { display: block; padding-block: 16px 32px; border-top: 0; }
.sc-client-panel {
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--sc-line);
  border-radius: 16px;
  background: linear-gradient(120deg, #f0f3eb, #f7f9f2);
}
.sc-client-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 36px;
  padding-bottom: 32px;
}
.sc-client-heading .sc-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.sc-client-mark { color: var(--sc-green); font-size: 22px; line-height: 1; }
.sc-client-heading h2 { margin: 0; text-wrap: balance; }
.sc-client-context { max-width: 360px; justify-self: end; }
.sc-client-context p { margin: 0 0 16px; }
.sc-client-context .sc-text-link { color: var(--sc-ink); }
.sc-client-panel .sc-client-logos { padding-top: 20px; border-top: 1px solid var(--sc-line); }
.sc-client-logo::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 35%;
  bottom: 35%;
  width: 1px;
  background: var(--sc-line);
}
.sc-client-logo:first-child::before { display: none; }
.sc-client-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sc-client-logo {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 24px 0;
  isolation: isolate;
}
.sc-client-logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: .72;
}
.sc-client-logo::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 35%;
  right: 35%;
  height: 1px;
  background: var(--sc-green);
  opacity: 0;
  transform: scaleX(.4);
}
@media (hover: hover) and (pointer: fine) {
  .sc-client-logo:hover img { opacity: 1; }
  .sc-client-logo:hover::after { opacity: .5; transform: scaleX(1); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sc-client-logo img { transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; }
  .sc-client-logo::after { transition: transform .4s ease, opacity .3s ease; }
  .sc-client-logo:hover img { transform: translateY(-4px) scale(1.04); }
}
@media (max-width: 1000px) {
  .sc-client-logo::before { display: none; }
  .sc-client-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 20px; }
  .sc-client-logo { grid-column: span 2; }
  .sc-client-logo:nth-last-child(2) { grid-column: 2 / span 2; }
}
@media (max-width: 767px) {
  .sc-client-heading { grid-template-columns: 1fr; gap: 20px; padding-bottom: 26px; }
  .sc-client-context { max-width: 440px; justify-self: start; }
}
@media (max-width: 600px) {
  .sc-client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .sc-client-logo, .sc-client-logo:nth-last-child(2) { grid-column: auto; padding-block: 20px; }
  .sc-client-logo:last-child { grid-column: 1 / -1; width: calc((100% - 16px) / 2); justify-self: center; }
}

.sc-language-picker { display: flex; align-items: center; gap: 3px; margin-left: 8px; }
.sc-language-picker a { display: inline-flex; align-items: center; gap: 4px; padding: 7px 8px; border: 1px solid transparent; border-radius: 5px; color: var(--sc-muted); font-size: 10px; font-weight: 700; line-height: 1; }
.sc-language-picker a:hover, .sc-language-picker a:focus-visible, .sc-language-picker a.is-active { color: var(--sc-ink); border-color: var(--sc-line); background: var(--sc-paper); }
@media (max-width: 1000px) { .sc-language-picker { margin-left: auto; margin-right: 8px; } }
@media (max-width: 480px) { .sc-language-picker a { padding: 9px 5px; } }
.sc-language-picker { flex-shrink: 0; }
@media (min-width: 1001px) and (max-width: 1200px) { .sc-nav { gap: 12px; } .sc-navigation { gap: 14px; } .sc-navigation .sc-button-small { padding: 12px; } }
@media (max-width: 1000px) { .sc-menu-toggle { order: 3; } }
@media (max-width: 480px) {
  .sc-nav { gap: 8px; }
  .sc-nav .sc-brand-image { width: 112px; }
  .sc-menu-toggle { padding: 10px; }
  .sc-menu-label { display: none; }
  .sc-language-picker { margin-right: 0; }
}
