/* Section rhythm based on the reference, adapted to DOM HUB's longer copy. */
#sobre { padding-top: clamp(180px, 19.7917vw, 330px); padding-bottom: 110px; }
#sobre > .container, #servicos > .container { max-width: none; padding-inline: 4.947917vw; }
#sobre .prose { margin-top: 44px; }
#sobre .links-row { margin-top: 62px; }
#servicos { padding-block: 110px; }
#video { padding-block: 110px; }
.marquee-section { padding-block: 100px; }
.testimonial { padding-top: 120px; padding-bottom: 100px; }
.cta-final__inner { gap: 0; }
.cta-final__inner > .label { margin-bottom: 32px; }
.cta-final__inner > .lead { margin-top: 53px; }
.cta-final__inner > .goo-btn { margin-top: 48px; }
@media (max-width: 980px) {
  #sobre .two-col { gap: 64px; }
  #sobre .two-col__left .label { margin-bottom: 0; }
}
@media (max-width: 720px) {
  #sobre { padding-top: 142px; padding-bottom: 64px; }
  #sobre > .container, #servicos > .container { padding-inline: 16px; }
  #sobre .prose { margin-top: 32px; }
  #sobre .links-row { margin-top: 28px; }
  #servicos { padding-top: 76px; padding-bottom: 64px; }
  #video, .marquee-section { padding-block: 64px; }
  .testimonial { padding-top: 80px; padding-bottom: 64px; }
  .cta-final__inner > .label { margin-bottom: 24px; }
  .cta-final__inner > .lead { margin-top: 20px; }
  .cta-final__inner > .goo-btn { margin-top: 42px; }
  .footer__wrap { padding-inline: 16px; gap: 28px; }
  .footer__card { padding: 32px 22px; border: 0; }
  .footer__top { gap: 44px; }
}

/* Diagnostic modal */
.cta-final__diagnostic { color: var(--text-dim); }
.cta-final__diagnostic-trigger {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.cta-final__diagnostic-trigger:hover { color: var(--gold); border-color: var(--gold); }

body.modal-open { overflow: hidden; }
body.modal-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(18, 18, 18, .35);
  -webkit-backdrop-filter: blur(14px) saturate(.75);
  backdrop-filter: blur(14px) saturate(.75);
}

.diagnostic-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, visibility .4s ease;
}
.diagnostic-modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.diagnostic-modal__dialog {
  position: relative;
  width: min(780px, 100%);
  max-height: min(880px, calc(100svh - 48px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: clamp(28px, 4vw, 48px);
  background: rgba(38, 40, 39, .88);
  color: #fff;
  box-shadow: 0 32px 90px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  transform: translateY(24px) scale(.97);
  transition: transform .5s cubic-bezier(.215,.61,.355,1);
}
.diagnostic-modal.is-open .diagnostic-modal__dialog { transform: translateY(0) scale(1); }
.diagnostic-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font: 300 30px/1 "Neue Haas Display", sans-serif;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.diagnostic-modal__close:hover { background: #fff; color: #555; transform: rotate(90deg); }
.diagnostic-modal__eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.diagnostic-modal__eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--gold); }
.diagnostic-modal h2 {
  max-width: 650px;
  margin: 0;
  font: 400 clamp(38px, 5vw, 66px)/.98 "Neue Haas Display", sans-serif;
  letter-spacing: -.045em;
}
.diagnostic-modal h2 em { font-family: Georgia, serif; font-weight: 400; }
.diagnostic-modal__intro { max-width: 560px; margin: 22px 0 32px; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.45; }
.diagnostic-form, .diagnostic-form label { display: flex; flex-direction: column; }
.diagnostic-form { gap: 24px; }
.diagnostic-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.diagnostic-form label, .diagnostic-form legend { gap: 8px; color: rgba(255,255,255,.76); font-size: 13px; }
.diagnostic-form input, .diagnostic-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 15px;
  outline: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 14px 16px;
  font: 400 16px/1.3 "Neue Haas Display", sans-serif;
  transition: border-color .25s ease, background .25s ease;
}
.diagnostic-form textarea { resize: vertical; min-height: 92px; }
.diagnostic-form input:focus, .diagnostic-form textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.12); }
.diagnostic-form input::placeholder, .diagnostic-form textarea::placeholder { color: rgba(255,255,255,.42); }
.diagnostic-form fieldset { margin: 0; padding: 0; border: 0; }
.diagnostic-form legend { margin-bottom: 12px; }
.diagnostic-form__services { display: flex; flex-wrap: wrap; gap: 9px; }
.diagnostic-form__services label { display: block; cursor: pointer; }
.diagnostic-form__services input { position: absolute; opacity: 0; pointer-events: none; }
.diagnostic-form__services span {
  display: block;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.diagnostic-form__services input:checked + span { border-color: var(--gold); background: var(--gold); color: #161817; }
.diagnostic-form__submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  padding: 4px 4px 4px 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(196,196,196,.7);
  color: #fff;
  font: 500 16px/1 "Neue Haas Display", sans-serif;
  cursor: pointer;
}
.diagnostic-form__submit-arrow { position: relative; width: 52px; height: 52px; overflow: hidden; border-radius: 50%; background: #fff; color: #6f6f6f; }
.diagnostic-form__submit-arrow::before, .diagnostic-form__submit-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 16h20M18 9l7 7-7 7' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / 27px 27px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 16h20M18 9l7 7-7 7' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / 27px 27px no-repeat;
  transition: transform .4s cubic-bezier(.215,.61,.355,1);
}
.diagnostic-form__submit-arrow::after { transform: translateX(-100%); }
.diagnostic-form__submit:hover .diagnostic-form__submit-arrow::before { transform: translateX(100%); }
.diagnostic-form__submit:hover .diagnostic-form__submit-arrow::after { transform: translateX(0); }

@media (max-width: 620px) {
  .diagnostic-modal { padding: 10px; align-items: end; }
  .diagnostic-modal__dialog { max-height: calc(100svh - 20px); padding: 34px 20px 24px; border-radius: 28px; }
  .diagnostic-modal__close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .diagnostic-modal h2 { padding-right: 30px; font-size: clamp(36px, 11vw, 48px); }
  .diagnostic-modal__intro { margin: 18px 0 24px; }
  .diagnostic-form__grid { grid-template-columns: 1fr; gap: 14px; }
  .diagnostic-form { gap: 20px; }
  .diagnostic-form__services { gap: 7px; }
  .diagnostic-form__services span { padding: 9px 12px; }
  .diagnostic-form__submit { width: 100%; justify-content: space-between; }
}

/* Night CTA variation: black capsule, lime directional accent. */
:root:not([data-theme="light"]) :is(.goo-btn, .about-mobile__button, #processo .expertise__card__explore) {
  --ref-cta-bg: rgba(9,9,9,.92);
  --ref-cta-bg-hover: rgba(20,20,20,.98);
  border: 1px solid rgba(255,255,255,.16);
  color: #f4f4f1;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
:root:not([data-theme="light"]) :is(.goo-btn__node, .about-mobile__arrow, #processo .expertise__card__explore .reference-arrow) {
  --ref-cta-circle: var(--gold);
  background: var(--gold);
  color: #090909;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
:root:not([data-theme="light"]) :is(.goo-btn, .about-mobile__button, #processo .expertise__card__explore):hover {
  border-color: rgba(185,255,71,.36);
  box-shadow: 0 16px 38px rgba(0,0,0,.25);
}

/* Day CTA variation: light capsule, same lime directional accent as night. */
[data-theme="light"] :is(.goo-btn, .about-mobile__button, #processo .expertise__card__explore) {
  --ref-cta-bg: rgba(255,255,255,.72);
  --ref-cta-bg-hover: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.12);
  color: #2b2b2b;
  box-shadow: 0 10px 28px rgba(0,0,0,.07);
}
[data-theme="light"] :is(.goo-btn__pill, .about-mobile__button > span:first-child) {
  background: transparent;
  color: #2b2b2b;
}
[data-theme="light"] :is(.goo-btn__node, .about-mobile__arrow, #processo .expertise__card__explore .reference-arrow) {
  --ref-cta-circle: var(--gold);
  background: var(--gold);
  color: #090909;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
[data-theme="light"] .goo-btn:hover :is(.goo-btn__pill) { background: transparent; }
[data-theme="light"] :is(.goo-btn, .about-mobile__button, #processo .expertise__card__explore):hover {
  border-color: rgba(165,230,63,.6);
  box-shadow: 0 14px 34px rgba(0,0,0,.1);
}

:root:not([data-theme="light"]) #processo .expertise__card__explore {
  background: #090909 !important;
  color: #f4f4f1 !important;
  border: 1px solid rgba(255,255,255,.16);
}
:root:not([data-theme="light"]) #processo .expertise__card__explore:hover {
  background: #141414 !important;
  border-color: rgba(185,255,71,.4);
}
:root:not([data-theme="light"]) #processo .expertise__card__explore .reference-arrow {
  background: var(--gold) !important;
  color: #090909 !important;
}

/* Hero: preserve the original vertical centering with refined internal spacing. */
.hero--giant .hero__content { top: 0; gap: 0; }
.hero--giant .eyebrow--hero { margin-bottom: 24px; font-size: 14px; }
.hero--giant .hero__title.hero__title--giant { line-height: .93; }
.hero--giant .hero__foot { margin-top: 32px; }
@media (max-width: 720px) {
  .hero--giant .hero__foot { width: min(100%, 290px); }
}
/* Let short viewports scroll instead of overlapping navigation or logos. */
@media (min-width: 721px) and (max-height: 760px) {
  .hero.hero--giant { height: 800px; min-height: 800px; }
}
@media (max-width: 720px) and (max-height: 620px) {
  .hero.hero--giant { height: 660px; min-height: 660px !important; }
}

/* Keep the enlarged closing statement on mobile only. */
@media (max-width: 720px) {
  .footer__giant {
    max-width: none;
    width: 100%;
    font-size: clamp(26px, 9.2vw, 62px);
    line-height: 1.02;
    padding-top: 64px;
    padding-bottom: 40px;
  }
  .footer__giant > span { display: block; }
}

.hero--giant .hero__foot .hero__sub { font-size: clamp(17px, 1.35vw, 20px); }

@media (min-width: 981px) {
  .nav.is-scrolled .nav__logo-mono { width: 60.8px; height: 47.2px; }
}

/* About composition: large opening and an inset, open-line panel. */
.about-mobile { display: none; }
#sobre > .two-col { display: none; }
#sobre .about-mobile { display: block; padding-inline: 4.947917vw; position: relative; }
:is(#sobre, #servicos) .about-mobile__title {
  font-family: "Neue Haas Display", sans-serif;
  font-weight: 400;
  letter-spacing: -.025em;
  margin: 0;
  color: var(--text);
}
:is(#sobre, #servicos) .about-mobile__title em {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-style: italic;
}
.about-mobile__subtitle {
  position: relative;
  color: var(--text);
  letter-spacing: -.025em;
}
.about-mobile__subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  background: currentColor;
}
.about-mobile__panel { position: relative; color: var(--text); }
.about-mobile__label {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about-mobile__description { margin-top: 32px; letter-spacing: -.025em; }
.about-mobile__button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 4px 4px 4px 20px;
  min-height: 56px;
  border-radius: 40px;
  background: rgba(255,255,255,.25);
  font-size: 16px;
  line-height: 1.2;
  color: inherit;
}
.about-mobile__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #979797;
  font-size: 30px;
}
[data-theme="light"] .about-mobile__button { background: #D7D7D4; }
[data-theme="light"] .about-mobile__arrow { color: #353535; }

/* Desktop: side-by-side with curved separator */
@media (min-width: 721px) {
  #sobre .about-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  :is(#sobre, #servicos) .about-mobile__title {
    font-size: clamp(48px, 5.2vw, 100px);
    line-height: 1.05;
    grid-column: 1;
  }
  .about-mobile__subtitle {
    grid-column: 1;
    margin-top: 28px;
    padding-left: 30px;
    font-size: clamp(18px, 1.4vw, 24px);
    line-height: 1.4;
  }
  .about-mobile__subtitle::before {
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
  }
  .about-mobile__panel {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
    margin: 0;
    padding: 0 0 0 clamp(40px, 4vw, 80px);
  }
  .about-mobile__description { font-size: clamp(18px, 1.35vw, 22px); line-height: 1.5; }
  .about-mobile__button { margin-top: 32px; }
  /* Curved separator: right edge → curve ↓ vertical ↓ curve → left edge */
  #sobre .about-mobile::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    right: -4.947917vw;
    height: calc(50% + 30px);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-top-left-radius: 30px;
    pointer-events: none;
  }
  #sobre .about-mobile::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: -4.947917vw;
    right: 50%;
    height: calc(50% + 30px);
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom-right-radius: 30px;
    pointer-events: none;
  }
}

/* Mobile: stacked with L-shape on panel */
@media (max-width: 720px) {
  #sobre .about-mobile { padding-inline: 16px; }
  :is(#sobre, #servicos) .about-mobile__title {
    font-size: clamp(38px, 12.3vw, 78px);
    line-height: 1.1;
  }
  .about-mobile__subtitle {
    margin-top: 20px;
    padding-left: 25px;
    font-size: 18px;
    line-height: 1.4;
  }
  .about-mobile__subtitle::before { top: 16px; width: 11px; height: 11px; }
  .about-mobile__panel {
    margin-top: 52px;
    margin-left: 14vw;
    padding: 52px 0 52px 9vw;
  }
  .about-mobile__panel::before {
    content: "";
    position: absolute;
    inset: 0 -16px 30px 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-top-left-radius: 30px;
    pointer-events: none;
  }
  .about-mobile__panel::after {
    content: "";
    position: absolute;
    left: calc(-14vw - 16px);
    right: calc(100% - 1px);
    bottom: 0;
    height: 31px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-bottom-right-radius: 30px;
    pointer-events: none;
  }
  .about-mobile__description { font-size: 18px; line-height: 1.4; }
  .about-mobile__button { margin-top: 28px; }
}

@media (max-width: 720px) {
  #servicos .expertise__head { display: none; }
  #servicos .operations-mobile { display: block; margin-bottom: 64px; }
  #servicos .about-mobile__button { gap: 10px; padding-left: 16px; font-size: 15px; }
}

/* Mobile legal details: one readable item per row. */
@media (max-width: 720px) {
  .footer__legal { margin-top: 24px; padding-bottom: 72px; }
  .footer__legal .footer__legal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-inline: 24px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }
  .footer__legal-inner > .footer__legal-brand,
  .footer__legal-inner > .footer__legal-spacer,
  .footer__legal-inner > .dot-sep { display: none; }
  .footer__legal-inner > .muted { max-width: 290px; margin-top: 4px; }
  .footer__legal-inner > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* Anchor mobile logos inside the first visible screen, above browser chrome. */
@media (max-width: 720px) {
  .hero__clients {
    top: calc(100svh - clamp(76px, 20vw, 108px) - 32px - max(24px, env(safe-area-inset-bottom, 0px)));
    bottom: auto;
  }
}

/* Reference arrow: 14px shaft and a 10px, 2px-stroke angled head. */
.goo-btn__node, .about-mobile__arrow, .reference-arrow { position: relative; }
.goo-btn__node svg { display: none; }
.goo-btn__node::before, .about-mobile__arrow::before, .reference-arrow::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  left: calc(50% - 7px);
  top: calc(50% - 1px);
  background: currentColor;
}
.goo-btn__node::after, .about-mobile__arrow::after, .reference-arrow::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  left: calc(50% - 3px);
  top: calc(50% - 5px);
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.goo-btn:hover .goo-btn__node { transform: none; }

/* Reference CTA system — neutral capsule with a two-arrow reveal. */
:is(.goo-btn, .about-mobile__button, #processo .expertise__card__explore) {
  --ref-cta-bg: rgba(196, 196, 196, .70);
  --ref-cta-bg-hover: rgba(214, 214, 214, .88);
  --ref-cta-circle: #fff;
  --ref-cta-ink: #6f6f6f;
  border: 0;
  border-radius: 999px;
  background: var(--ref-cta-bg);
  color: #fff;
  overflow: hidden;
  transition: background-color .4s ease, color .4s ease, transform .4s cubic-bezier(.215,.61,.355,1);
}

.goo-btn {
  filter: none;
  gap: 0;
  padding: 4px;
  padding-left: 25px;
}

.goo-btn__pill,
.goo-btn__node {
  background: transparent;
  color: inherit;
}

.goo-btn__pill {
  height: 52px;
  padding: 0 20px 0 0;
}

.goo-btn__node {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  margin-left: 0;
  overflow: hidden;
  background: var(--ref-cta-circle);
  color: var(--ref-cta-ink);
}

/* Prevent the former hover skin from drawing a second capsule behind the label. */
.goo-btn:hover .goo-btn__pill {
  background: transparent;
  color: inherit;
}

.goo-btn:hover .goo-btn__node {
  margin-left: 0;
  background: var(--ref-cta-circle);
  color: var(--ref-cta-ink);
}

.goo-btn--lg { padding-left: 30px; }
.goo-btn--lg .goo-btn__pill { height: 60px; padding: 0 24px 0 0; }
.goo-btn--lg .goo-btn__node { width: 60px; height: 60px; flex-basis: 60px; }

:is(.about-mobile__arrow, .reference-arrow) {
  overflow: hidden;
  background: var(--ref-cta-circle, #fff);
  color: var(--ref-cta-ink, #6f6f6f);
}

:is(.goo-btn__node, .about-mobile__arrow, .reference-arrow)::before,
:is(.goo-btn__node, .about-mobile__arrow, .reference-arrow)::after {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 16h20M18 9l7 7-7 7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 28px 28px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 16h20M18 9l7 7-7 7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 28px 28px no-repeat;
  transform: translateX(0);
  transition: transform .4s cubic-bezier(.215,.61,.355,1);
}

:is(.goo-btn__node, .about-mobile__arrow, .reference-arrow)::after {
  left: 0;
  top: 0;
  transform: translateX(-100%);
}

:is(.goo-btn, .about-mobile__button, #processo .expertise__card__explore):hover {
  background: var(--ref-cta-bg-hover);
  color: #fff;
}

:is(.goo-btn, .about-mobile__button, #processo .expertise__card__explore):hover
  :is(.goo-btn__node, .about-mobile__arrow, .reference-arrow)::before {
  transform: translateX(100%);
}

:is(.goo-btn, .about-mobile__button, #processo .expertise__card__explore):hover
  :is(.goo-btn__node, .about-mobile__arrow, .reference-arrow)::after {
  transform: translateX(0);
}

#processo .expertise__card__explore {
  padding: 4px 4px 4px 25px;
  gap: 22px;
}

#processo .expertise__card__explore .reference-arrow {
  position: relative;
  display: block;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

[data-theme="light"] :is(.goo-btn, .about-mobile__button, #processo .expertise__card__explore) {
  --ref-cta-bg: rgba(255,255,255,.72);
  --ref-cta-bg-hover: rgba(255,255,255,.95);
  color: #2b2b2b;
}

@media (max-width: 720px) {
  .goo-btn { padding-left: 20px; }
  .goo-btn--lg { padding-left: 22px; }
  .goo-btn--lg .goo-btn__pill { height: 52px; padding-right: 18px; font-size: 16px; }
  .goo-btn--lg .goo-btn__node { width: 52px; height: 52px; flex-basis: 52px; }
  #processo .expertise__card__explore { padding-left: 20px; gap: 16px; }
  #processo .expertise__card__explore .reference-arrow { width: 48px; height: 48px; flex-basis: 48px; }
  :is(.goo-btn__node, .about-mobile__arrow, .reference-arrow)::before,
  :is(.goo-btn__node, .about-mobile__arrow, .reference-arrow)::after {
    -webkit-mask-size: 24px 24px;
    mask-size: 24px 24px;
  }
}

.mobile-menu__theme {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 44px;
  padding: 0 14px;
  color: #555;
  border: 1px solid rgba(85,85,85,.25);
  border-radius: 30px;
  font-size: 14px;
}
.mobile-menu__theme:hover { transform: none; }

.expertise__card__arrow.reference-arrow svg { display: none; }

/* Card typography and controls measured from the reference at 1440px / 391px. */
#processo .expertise__card__title,
#processo .expertise__card:not([data-card="0"]) .expertise__card__title {
  font-size: clamp(46px, 9.375vw, 180px);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
}
#processo .expertise__card__header { min-height: 120px; }
#processo .expertise__card__header__info { padding-block: 18px; }
#processo .expertise__card__num { font-weight: 400; letter-spacing: normal; }
#processo .expertise__card__text {
  font-size: clamp(18px, 2.108vw, 40px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .02em;
}
#processo .expertise__card__explore {
  color: #7C7C7C;
  background: rgba(255,255,255,.7);
  font-size: clamp(16px, 1.302vw, 25px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .03em;
}
#processo .expertise__card__explore span { background: #DDDEDA; color: #555; }
#processo .expertise__card__body,
#processo .expertise__card__arrow { border-color: #CBCBCC; }
#processo .expertise__card[data-card="3"] .expertise__card__face { background: #EEEEEE; }
@media (max-width: 800px) {
  #processo .expertise__card__title,
  #processo .expertise__card:not([data-card="0"]) .expertise__card__title { font-size: 46px; }
  #processo .expertise__card__text { font-size: 18px; }
  #processo .expertise__card__explore { font-size: 16px; }
}

/* Image slot shares the animated card face, so it follows the stacking effect. */
#processo .expertise__card__body { min-height: 0; gap: 30px; }
#processo .expertise__card__body__content { flex: 1 1 45%; min-width: 0; }
#processo .expertise__card__media {
  order: 2;
  flex: 1 1 50%;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
}
#processo .expertise__card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) {
  #processo.expertise { --card-height: min(590px, 85svh); --card-top: max(16px, calc(100svh - var(--card-height) - 16px)); }
  #processo .expertise__card__body { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 0; }
  #processo .expertise__card__media { position: relative; order: 0; flex: 1 1 210px; min-height: 0; height: auto; border-radius: 18px 0 0 0; }
  #processo .expertise__card__media img { position: absolute; inset: 0; }
  #processo .expertise__card__body__content { flex: 0 0 auto; padding: 16px 20px; gap: 14px; }
}

/* Mobile process cards: match the reference card geometry. */
@media (max-width: 800px) {
  #processo.expertise {
    --card-height: 590px;
    --card-top: 16px;
  }
  #processo .expertise__card__face { padding-left: 30px; }
  #processo .expertise__card__header {
    height: 120px;
    min-height: 120px;
  }
  #processo .expertise__card__header__info { padding: 0; }
  #processo .expertise__card__header__info h3 {
    gap: 19px;
    align-items: baseline;
  }
  #processo .expertise__card__num {
    font-size: 18px;
    font-weight: 300;
    line-height: .75;
    color: #555;
  }
  #processo .expertise__card__title,
  #processo .expertise__card:not([data-card="0"]) .expertise__card__title {
    font-size: 46px;
    font-weight: 300;
    line-height: .82;
    letter-spacing: normal;
    overflow-wrap: normal;
  }
  #processo .expertise__card[data-card="2"] .expertise__card__title {
    font-size: 38px;
    line-height: .9;
  }
  #processo .expertise__card__arrow { height: 120px; }
  #processo .expertise__card__body {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
  }
  #processo .expertise__card__media {
    order: 0;
    position: relative;
    flex: 0 0 clamp(145px, 50.4vw, 197px);
    width: auto;
    height: clamp(145px, 50.4vw, 197px);
    min-height: 0;
    margin: 15px 14px 0 15px;
    border-radius: 16px;
  }
  #processo .expertise__card__media img {
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  #processo .expertise__card__body::before {
    top: calc(15px + clamp(145px, 50.4vw, 197px) - 5px);
    right: auto;
    left: 44px;
  }
  #processo .expertise__card__body__content {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 39px 31px 38px;
    gap: 28px;
  }
  #processo .expertise__card__text {
    max-width: 267px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: .02em;
  }
  #processo .expertise__card__explore {
    height: 56px;
    padding: 0 4px 0 25px;
    gap: 16px;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: .03em;
    background: rgba(255,255,255,.7);
  }
  #processo .expertise__card__explore span {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 800px) and (max-height: 620px) {
  #processo.expertise {
    --card-height: calc(100svh - 32px);
  }
  #processo .expertise__card__header,
  #processo .expertise__card__arrow {
    height: 104px;
    min-height: 104px;
  }
  #processo .expertise__card__title,
  #processo .expertise__card:not([data-card="0"]) .expertise__card__title {
    font-size: 40px;
  }
  #processo .expertise__card__media {
    flex-basis: clamp(125px, 42vw, 165px);
    height: clamp(125px, 42vw, 165px);
  }
  #processo .expertise__card__body::before {
    top: calc(15px + clamp(125px, 42vw, 165px) - 5px);
  }
  #processo .expertise__card__body__content {
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 20px;
  }
}

/* Desktop process cards: reference framing and proportions. */
@media (min-width: 801px) {
  #processo.expertise {
    --card-height: min(702px, 77vh);
    --card-top: clamp(70px, 9.7vh, 96px);
  }
  #processo .expertise__card__header {
    flex: 0 0 240px;
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }
  #processo .expertise__card__header__info {
    padding-block: 0;
    padding-right: 28px;
  }
  #processo .expertise__card__title,
  #processo .expertise__card:not([data-card="0"]) .expertise__card__title {
    font-size: clamp(72px, 7.25vw, 132px);
    line-height: .92;
    letter-spacing: -.025em;
    white-space: nowrap;
  }
  #processo .expertise__card[data-card="1"] .expertise__card__title,
  #processo .expertise__card[data-card="2"] .expertise__card__title,
  #processo .expertise__card[data-card="3"] .expertise__card__title {
    font-size: clamp(64px, 5.4vw, 96px);
    line-height: .95;
  }
  #processo .expertise__card__num {
    font-size: clamp(20px, 2.1vw, 30px);
    font-weight: 300;
  }
  #processo .expertise__card__arrow {
    width: clamp(180px, 17.7vw, 255px);
    height: 240px;
  }
  #processo .expertise__card__arrow.reference-arrow::before,
  #processo .expertise__card__arrow.reference-arrow::after {
    content: none;
  }
  #processo .expertise__card__arrow.reference-arrow svg {
    display: block;
    width: 72px;
    height: 72px;
  }
  #processo .expertise__card__body {
    align-items: flex-end;
    padding: 34px 30px 34px 57px;
    gap: 40px;
  }
  #processo .expertise__card__body::before {
    content: none;
  }
  #processo .expertise__card__body__content {
    flex: 0 0 auto;
    width: 420px;
    max-width: 34%;
    padding: 15px 0;
    gap: 35px;
  }
  #processo .expertise__card__text {
    font-size: clamp(20px, 1.58vw, 30px);
    font-weight: 300;
    line-height: 1.45;
  }
  #processo .expertise__card__explore {
    height: 70px;
    padding: 0 5px 0 30px;
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 300;
    gap: 20px;
  }
  #processo .expertise__card__explore span {
    width: 60px;
    height: 60px;
  }
  #processo .expertise__card__media {
    flex: 1 1 auto;
    height: 100%;
    border-radius: 20px;
  }
  #processo .expertise__card__media img[src*="card-image-placeholder"] {
    opacity: 0;
  }
  #processo .expertise__dots {
    gap: 14px;
  }
  #processo .expertise__dot {
    width: 18px;
    height: 18px;
  }
}
