
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 18px; margin-left: 24px; }
.legal-links button { padding: 0; border: 0; background: transparent; color: #777; font: inherit; cursor: pointer; }
.legal-links button:hover, .legal-links button:focus { color: #4057E8; }
.legal-modal { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; padding: 24px; }
.legal-modal.is-open { display: flex; }
.legal-modal__backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .72); }
.legal-modal__dialog { position: relative; width: min(100%, 820px); max-height: min(86vh, 820px); overflow: auto; padding: clamp(22px, 4vw, 42px); background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.25); outline: none; }
.legal-modal__eyebrow { display: block; margin-bottom: 12px; color: #4057E8; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.legal-modal__dialog h2 { margin: 0 48px 18px 0; color: #111827; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.25; }
.legal-modal__content { color: #525A6A; font-size: 14px; line-height: 1.65; }
.legal-modal__content h3 { margin: 18px 0 5px; color: #18213B; font-size: 15px; line-height: 1.4; }
.legal-modal__content p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; }
.legal-modal__close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border: 0; background: transparent; color: #111827; font-size: 32px; line-height: 1; cursor: pointer; }
body.legal-modal-open { overflow: hidden; }
@media (max-width: 767px) {
  .legal-links { margin: 12px 0 0; gap: 12px; }
  .legal-modal { padding: 14px; }
  .legal-modal__dialog { max-height: 90vh; padding: 24px 20px; }
  .legal-modal__content, .legal-modal__content p { font-size: 13px; }
  .legal-modal__content h3 { font-size: 14px; }
}

/* Progressive, accessible scroll reveals; content stays visible without JS support. */
.site-reveals-enabled .site-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--site-reveal-delay, 0ms);
}
.site-reveals-enabled .site-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .site-reveals-enabled .site-reveal,
  .site-reveals-enabled .site-reveal.is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* EMBRACE LABS wordmark */
.brand-wordmark {
  display: inline-flex !important;
  align-items: baseline;
  gap: 6px;
  width: auto;
  max-width: none !important;
  color: #111827 !important;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .075em;
  white-space: nowrap;
  text-decoration: none !important;
}
.brand-wordmark:hover, .brand-wordmark:focus { color: #111827 !important; }
.brand-wordmark__embrace { color: #111827; font-weight: 700; }
.brand-wordmark__labs { color: #4057E8; font-weight: 600; letter-spacing: .11em; }
.site-header .navbar-header .navbar-brand.brand-wordmark { padding-top: 24px; padding-bottom: 24px; }
.site-footer .brand-wordmark--footer { margin-bottom: 20px; font-size: 19px; }
@media (max-width: 767px) {
  .site-header .navbar-header .navbar-brand.brand-wordmark { padding-top: 29px; padding-bottom: 29px; font-size: 20px; }
}

/* Keep the mobile header controls clear of the full-width wordmark. */
@media (max-width: 991px) {
  .site-header .quote-btn .theme-btn { padding: 9px 16px; font-size: 13px; line-height: 1.2; }
  .site-header .header-style-1 .quote-btn,
  .site-header.header-style-1 .quote-btn { top: 50%; transform: translateY(-50%); }
  .site-header .navbar-header button { top: 50%; transform: translateY(-50%); }
}

@media (max-width: 480px) {
  .site-header.header-style-1 { padding: 8px 0; }
  .site-header .navbar-header { min-height: 44px; }
  .site-header .navbar-header .navbar-brand.brand-wordmark { padding: 13px 0; font-size: 17px; }
  .site-header.header-style-1 .quote-btn { display: none; }
}

/* Accessible, responsive business enquiry form */
.cta-section .cta-text.contact-panel { background-color: #F7F8FC; }
.contact-form-layout { display: grid; grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr); gap: 42px; align-items: start; }
.contact-form-intro h2 { margin: 0 0 18px; color: #111827; }
.contact-form-intro p { margin: 0 0 16px; color: #374151; line-height: 1.75; }
.contact-direct a { color: #4057E8; font-weight: 600; text-decoration: underline; }
.embrace-contact-form { min-width: 0; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-field { min-width: 0; }
.contact-field--full { grid-column: 1 / -1; }
.contact-field label { display: block; margin: 0 0 7px; color: #111827; font-size: 14px; font-weight: 600; }
.contact-field input, .contact-field select, .contact-field textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cbd2e1; border-radius: 4px;
  background: #FFFFFF; color: #111827; font: inherit; line-height: 1.45; box-sizing: border-box;
}
.contact-field textarea { min-height: 126px; resize: vertical; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { outline: 3px solid rgba(83,109,254,.22); border-color: #536DFE; }
.contact-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; color: #374151; font-size: 14px; line-height: 1.55; }
.contact-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #4057E8; cursor: pointer; }
.contact-consent label { margin: 0; font-weight: 400; cursor: pointer; }
.contact-consent button { display: inline; padding: 0; border: 0; background: none; color: #4057E8; font: inherit; text-decoration: underline; cursor: pointer; }
.cta-section .contact-consent,
.cta-section .contact-consent label { color: #D5DCF4; }
.cta-section .contact-consent button { color: #8AF2D1; }
.cta-section .cta-text .contact-submit { position: static; transform: none; margin-top: 18px; border: 0; background: #536DFE; color: #000000; cursor: pointer; }
.contact-submit:hover, .contact-submit:focus { background: #4057E8; color: #FFFFFF; }
.contact-submit:disabled { opacity: .72; cursor: wait; }
.contact-form-notice, .preview-form-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 4px; line-height: 1.55; }
.contact-form-notice--success { border: 1px solid #78c9a3; background: #B9F3DB; color: #111827; }
.contact-form-notice--error { border: 1px solid #536DFE; background: #FFFFFF; color: #111827; }
.preview-form-note { margin: 12px 0 0; color: #374151; background: #FFFFFF; }
.contact-honeypot { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 991px) { .contact-form-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
@media (max-width: 767px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .contact-field--full { grid-column: auto; }
  .cta-section .cta-text.contact-panel { padding: 34px 20px; }
  .contact-form-intro h2 { font-size: 25px; line-height: 1.3; }
  .contact-submit { width: 100%; white-space: normal; }
}


/* Consistent capability-card crops across wide and narrow viewports */
.portfolio-section .portfolio-grids .img-holder {
  aspect-ratio: 6 / 5;
  overflow: hidden;
  background: #F7F8FC;
}
.portfolio-section .portfolio-grids .img-holder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.portfolio-section .portfolio-grids .img-holder img[src*="capability-native-media"],
.portfolio-section .portfolio-grids .img-holder img[src*="capability-email-engagement"] {
  object-position: center 38%;
}

/* Accessible controls for the capability carousel */
.capability-carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.capability-carousel-controls button {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid #4057E8; border-radius: 50%; background: #FFFFFF; color: #4057E8; cursor: pointer;
  font: inherit; font-size: 30px; line-height: 1; transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.capability-carousel-controls button:hover:not(:disabled), .capability-carousel-controls button:focus-visible {
  background: #4057E8; color: #FFFFFF;
}
.capability-carousel-controls button:focus-visible { outline: 3px solid rgba(83,109,254,.3); outline-offset: 3px; }
.capability-carousel-controls button:disabled { opacity: .38; cursor: default; }
@media (max-width: 767px) {
  .capability-carousel-controls { margin-top: 22px; }
  .capability-carousel-controls button { width: 44px; height: 44px; }
}

/* Accessible FAQ accordion using native details/summary controls */
.faq-section { background: #FFFFFF; }
.faq-section__inner { max-width: 900px; margin: 0 auto; }
.faq-section .section-title { text-align: center; }
.faq-list { border-top: 1px solid #E4E7EF; }
.faq-item { border-bottom: 1px solid #E4E7EF; }
.faq-item summary {
  position: relative; display: block; padding: 22px 54px 22px 0; color: #111827; cursor: pointer;
  font-size: 18px; font-weight: 600; line-height: 1.45; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; top: 50%; right: 4px; width: 32px; height: 32px; border: 1px solid #D9DEEC;
  border-radius: 50%; color: #4057E8; font-size: 22px; font-weight: 400; line-height: 29px; text-align: center;
  transform: translateY(-50%);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 3px solid rgba(83,109,254,.3); outline-offset: 3px; }
.faq-answer { max-width: 780px; padding: 0 54px 22px 0; }
.faq-answer p { margin: 0; color: #525A6A; line-height: 1.75; }
@media (max-width: 767px) {
  .faq-item summary { padding: 19px 44px 19px 0; font-size: 16px; }
  .faq-item summary::after { right: 0; width: 28px; height: 28px; font-size: 20px; line-height: 25px; }
  .faq-answer { padding: 0 0 19px; }
}

/* Reduce oversized section gaps while preserving the existing layouts. */
.section-padding { padding-top: 92px; padding-bottom: 92px; }
.features-section { padding-bottom: 72px; }
.about-section .right-content { padding-top: 132px; padding-bottom: 132px; }
.service-section, .service-section-s2,
.fun-fact-section, .fun-fact-section-s2 { padding-bottom: 68px; }
.portfolio-section, .portfolio-section-s2 { padding-bottom: 72px; }
.cta-section { padding-bottom: 64px; }
.cta-section .cta-text { padding-top: 68px; padding-bottom: 68px; }
.site-footer { padding-top: 30px; }
.site-footer .upper-footer { padding-bottom: 20px; }
.site-footer .upper-footer .row { display: grid; grid-template-columns: 1.15fr .9fr 1fr; gap: clamp(28px, 4vw, 64px); margin: 0; }
.site-footer .upper-footer .row::before,
.site-footer .upper-footer .row::after { display: none; }
.site-footer .upper-footer .row > .col { float: none; width: auto; padding-right: 0; padding-left: 0; }
.site-footer .widget-title { margin-bottom: 14px; }
.site-footer .about-widget p { line-height: 1.65; }
.site-footer .link-widget ul > li + li { margin-top: 10px; }
.site-footer .lower-footer .row { padding: 14px 0; }
.site-footer .lower-footer .col { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.site-footer .lower-footer .copyright { float: none; }
.site-footer .lower-footer .copyright { color: #D5DCF4; font-weight: 500; }
.site-footer .lower-footer .social-icons { display: flex; align-items: center; margin-left: auto; }
.site-footer .lower-footer .social-icons ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.site-footer .lower-footer .social-icons ul li { float: none; }
.site-footer .lower-footer .social-icons ul a { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(213, 220, 244, .32); border-radius: 50%; color: #D5DCF4; font-size: 16px; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.site-footer .lower-footer .social-icons ul a:hover,
.site-footer .lower-footer .social-icons ul a:focus-visible { border-color: var(--embrace-aqua); background: rgba(138, 242, 209, .1); color: var(--embrace-aqua); }
.site-footer .lower-footer .social-icons ul a:focus-visible { outline: 2px solid var(--embrace-aqua); outline-offset: 3px; }
.site-footer .legal-links { margin: 0 0 0 auto; }

@media (max-width: 1199px) {
  .about-section .right-content { padding-top: 88px; padding-bottom: 88px; }
  .cta-section .cta-text { padding-top: 58px; padding-bottom: 58px; }
}
@media (max-width: 991px) {
  .section-padding { padding-top: 76px; padding-bottom: 76px; }
  .features-section { padding-bottom: 58px; }
  .about-section .right-content { padding: 0 0 68px; }
  .service-section, .service-section-s2,
  .fun-fact-section, .fun-fact-section-s2 { padding-bottom: 54px; }
  .portfolio-section, .portfolio-section-s2 { padding-bottom: 56px; }
  .cta-section { padding-bottom: 48px; }
  .cta-section .cta-text { padding-top: 44px; padding-bottom: 44px; }
  .site-footer .upper-footer { padding-bottom: 10px; }
  .site-footer .upper-footer .col { min-height: 0; margin-bottom: 0; }
  .site-footer .upper-footer .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; }
}
@media (max-width: 767px) {
  .section-padding { padding-top: 60px; padding-bottom: 60px; }
  .features-section { padding-bottom: 42px; }
  .about-section .right-content { padding: 0 0 44px; }
  .service-section, .service-section-s2,
  .fun-fact-section, .fun-fact-section-s2 { padding-bottom: 42px; }
  .portfolio-section, .portfolio-section-s2 { padding-bottom: 44px; }
  .cta-section { padding-bottom: 36px; }
  .cta-section .cta-text { padding-top: 34px; padding-bottom: 34px; }
  .site-footer .upper-footer { padding-bottom: 4px; }
  .site-footer .upper-footer .col { margin-bottom: 0; }
  .site-footer .upper-footer .row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .site-footer .widget-title { margin-bottom: 14px; }
  .site-footer .lower-footer .row { padding: 12px 0; }
  .site-footer .lower-footer .col { justify-content: center; }
  .site-footer .lower-footer .copyright { margin: 0; }
  .site-footer .lower-footer .social-icons { margin: 0; }
  .site-footer .legal-links { justify-content: center; margin: 0; }
}

/* Keep the semantic hero heading visually consistent with the original design. */
.hero-static-image h1 {
  margin: 0 0 0.63em;
  font-size: 48px;
  font-size: 3rem;
  line-height: 1.3em;
}
.hero-static-image h1 span { color: #4057E8; }
@media (max-width: 1199px) {
  .hero-static-image h1 { font-size: 40px; font-size: 2.5rem; }
}
@media (max-width: 991px) {
  .hero-static-image h1 { font-size: 35px; font-size: 2.1875rem; }
}
@media (max-width: 767px) {
  .hero-static-image h1 { font-size: 30px; font-size: 1.875rem; }
}

/* Stronger EMBRACE LABS palette: vivid cobalt, deep ink and clear aqua accents.
   Color-only overrides keep the existing section layouts and responsive rules. */
:root {
  --embrace-cobalt: #354CEB;
  --embrace-ink: #121B3A;
  --embrace-aqua: #66E7BD;
  --embrace-lavender: #EEF1FF;
  --embrace-mist: #EAF7F3;
}

.section-title > span, .section-title-s2 > span,
.section-title-s3 > span, .section-title-s4 > span,
.features-section .more, .contact-direct a,
.portfolio-section .details .cat {
  color: var(--embrace-cobalt);
}

.theme-btn, .theme-btn-s2, .theme-btn-s3, .theme-btn-s4,
.site-header .quote-btn .theme-btn {
  background-color: var(--embrace-cobalt);
  color: #fff;
  box-shadow: 0 8px 22px rgba(53, 76, 235, .2);
}
.theme-btn:hover, .theme-btn-s2:hover, .theme-btn-s3:hover, .theme-btn-s4:hover,
.site-header .quote-btn .theme-btn:hover {
  background-color: #2438C8;
  color: #fff;
}

.features-section { background-color: var(--embrace-lavender); }
.features-section .grid {
  background-color: #fff;
  box-shadow: 0 12px 28px rgba(27, 42, 105, .1);
}
.features-section .grid:hover { background-color: #fff; }
.features-section .grid:hover .shape:before { background: #fff; }
.features-section .shape { background-color: var(--embrace-cobalt); }

.service-section { background-color: var(--embrace-mist); }
.service-section .service-grids .grid {
  background-color: #fff;
  box-shadow: 0 12px 28px rgba(22, 77, 67, .1);
}
.service-section .icon svg { fill: #E9EDFF; }
.service-section .icon i:before { color: var(--embrace-cobalt); }

.portfolio-section {
  background-color: var(--embrace-ink);
}
.portfolio-section .section-title-s2 h2 { color: #fff; }
.portfolio-section .section-title-s2 > span { color: var(--embrace-aqua); }
.portfolio-section .capability-carousel-controls button {
  border-color: var(--embrace-aqua);
  color: var(--embrace-ink);
}
.portfolio-section .capability-carousel-controls button:hover:not(:disabled),
.portfolio-section .capability-carousel-controls button:focus-visible {
  background: var(--embrace-aqua);
  color: var(--embrace-ink);
}

.testimonials-section {
  background-color: var(--embrace-ink);
}
.testimonials-section .section-title h2,
.testimonials-section .section-title p,
.testimonials-section .testimonials-grids .quote p,
.testimonials-section .testimonials-grids .info h5 {
  color: #fff;
}
.testimonials-section .section-title > span,
.testimonials-section .testimonials-grids .info span {
  color: var(--embrace-aqua);
}
.testimonials-section .testimonials-grids .grid,
.testimonials-section .testimonials-grids .grid:before {
  background-color: #202C54;
}
/* These principle cards reuse testimonial markup whose inner quote is floated.
   Contain that float so each card grows to fit its text instead of overlapping. */
.testimonials-section .testimonials-grids .grid {
  display: flow-root;
  margin-bottom: 22px;
}
.testimonials-section .testimonials-grids .grid:last-child { margin-bottom: 0; }

.faq-section { background-color: var(--embrace-lavender); }
.faq-section .faq-list { border-color: #C9D1FF; }
.faq-section .faq-item { border-color: #C9D1FF; }
.faq-section .faq-item summary::after {
  border-color: var(--embrace-cobalt);
  background-color: #fff;
}

.cta-section .cta-text.contact-panel {
  background-color: var(--embrace-ink);
}
.cta-section .contact-form-intro h2,
.cta-section .contact-form-intro p,
.cta-section .contact-field label {
  color: #fff;
}
.cta-section .contact-direct a { color: var(--embrace-aqua); }
.cta-section .contact-submit {
  background-color: var(--embrace-aqua) !important;
  color: var(--embrace-ink) !important;
  box-shadow: none;
}
.cta-section .contact-submit:hover,
.cta-section .contact-submit:focus {
  background-color: #8AF2D1 !important;
  color: var(--embrace-ink) !important;
}

.site-footer {
  background-color: var(--embrace-ink);
  background-blend-mode: multiply;
}
.site-footer p, .site-footer li, .site-footer .link-widget ul a,
.site-footer .lower-footer .social-icons ul a {
  color: #D5DCF4;
}
.site-footer .widget-title h3,
.site-footer .brand-wordmark__embrace {
  color: #fff;
}
.site-footer .brand-wordmark__labs,
.site-footer .link-widget ul a:hover,
.site-footer .lower-footer .social-icons ul a:hover {
  color: var(--embrace-aqua);
}
.site-footer .legal-links button { color: #D5DCF4; }
.site-footer .legal-links button:hover,
.site-footer .legal-links button:focus { color: var(--embrace-aqua); }
.site-footer .footer-imprint-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--embrace-aqua);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.site-footer .footer-imprint-link:hover,
.site-footer .footer-imprint-link:focus { color: #fff; }
.site-footer .lower-footer .row .separator { background: rgba(213, 220, 244, .24); }
