/* MERRIWEATHER BLACK */

@font-face {
    font-family: 'Merriweather';
    src: url('../assets/fonts/merriweather-black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* MERRIWEATHER BOLD */

@font-face {
    font-family: 'Merriweather';
    src: url('../assets/fonts/merriweather-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* LIBRE FRANKLIN */

@font-face {
    font-family: 'Libre Franklin';
    src: url('../assets/fonts/libre-franklin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --red: #d52e24;
    --blue: #3058a6;
    --cream: #faf7f2;
    --yellow: #f2b134;
    --whatsapp: #25d366;
    --ink: #20221f;
    --line: #cdcac3;
    --ease: cubic-bezier(.16, 1, .3, 1);
    color-scheme: light;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

::selection {
    color: var(--cream);
    background: var(--blue);
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--cream);
}

body::-webkit-scrollbar-thumb {
    background: var(--red);
    border: 2px solid var(--cream);
    border-radius: 5px;
}

button,
input,
textarea {
    font: inherit;
}

input,
textarea {
    caret-color: var(--red);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: default;
    opacity: .55;
}

button,
a,
input,
textarea,
summary {
    outline-offset: 6px;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid currentColor;
}

input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--blue);
}

p {
    margin: 0 0 1.2em;
    max-width: 65ch;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 900;
    line-height: 1.12;
    text-wrap: balance;
}

h1,
h2 {
    font-family: Merriweather, serif;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(3rem, 5.5vw, 6rem);
}

h2 {
    font-size: clamp(2.35rem, 3.75vw, 4.8rem);
}

h3 {
    font-size: 1.45rem;
}

em {
    font-style: normal;
    color: var(--blue);
}

.blue-surface em {
    color: var(--yellow);
}

.red-surface em {
    color: var(--yellow);
}

.yellow-surface em {
    color: var(--red);
}

.wrap {
    width: min(1440px, calc(100% - 112px));
    margin-inline: auto;
}

.section {
    padding-block: 112px;
}

.red-surface {
    background: var(--red);
    color: var(--cream);
}

.blue-surface {
    background: var(--blue);
    color: var(--cream);
}

.yellow-surface {
    background: var(--yellow);
    color: var(--ink);
}

.skip-link {
    position: fixed;
    left: 18px;
    top: -80px;
    background: var(--cream);
    color: var(--ink);
    padding: 12px 20px;
    z-index: 100;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    height: 100px;
    padding-inline: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: var(--red);
    color: var(--cream);
    position: relative;
    z-index: 20;
}

.brand {
    width: 207px;
    flex-shrink: 0;
}

.brand img {
    width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a {
    padding-block: 8px;
    position: relative;
}

.main-nav a:not(.nav-contact)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.main-nav a:hover::after,
.main-nav a[aria-current=page]::after {
    transform: scaleX(1);
}

.nav-contact {
    border: 1px solid currentColor;
    border-radius: 100px;
    padding: 11px 19px!important;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: background .2s, color .2s;
}

.nav-contact:hover {
    background: var(--cream);
    color: var(--red);
}

.nav-contact .icon {
    width: 18px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    color: inherit;
    padding: 10px;
}

.header-blue {
    background: var(--blue);
}

.header-yellow {
    background: var(--yellow);
    color: var(--ink);
}

.header-yellow .brand img {
    filter: brightness(0) saturate(100%);
}

.header-blue .nav-contact:hover {
    color: var(--blue);
}

.header-yellow .nav-contact:hover {
    color: var(--ink);
}

.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    border: 0;
    border-radius: 100px;
    padding: 17px 25px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
    transition: transform .35s var(--ease), background .25s, color .25s;
}

.button:hover {
    transform: translateY(-3px);
}

.button .icon {
    transition: transform .35s var(--ease);
}

.button:hover .icon {
    transform: translateX(4px);
}

.button-cream {
    background: var(--cream);
    color: var(--ink);
}

.button-blue {
    background: var(--blue);
    color: var(--cream);
}

.button-ink {
    background: var(--ink);
    color: var(--cream);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    font-weight: 650;
    padding-bottom: 8px;
    border-bottom: 1px solid currentColor;
    font-size: 15px;
}

.text-link:hover .icon {
    transform: translateX(5px);
}

.text-link .icon {
    transition: transform .35s var(--ease);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    transition: background .2s, color .2s;
}

.icon-button:hover {
    background: var(--ink);
    color: var(--cream);
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    padding-top: 30px;
    padding-bottom: 90px;
    min-height: 680px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 670px;
}

.hero h1 {
    font-size: clamp(3.6rem, 5.3vw, 6rem);
    line-height: 1.04;
}

.hero-heading-tail {
    display: block;
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.25;
    margin-top: 24px;
}

.hero-copy p {
    margin-top: 26px;
    max-width: 450px;
    font-size: 15px;
    line-height: 1.7;
}

.hero-copy .button {
    margin-top: 4px;
}

.hero-art {
    position: relative;
    width: 115%;
    margin-left: -5%;
    align-self: center;
    transform: none;
    transition: transform 1s var(--ease);
    will-change: transform;
}

.care-art {
    width: 100%;
    height: auto;
    max-height: 625px;
    object-fit: contain;
    transform-origin: 50% 80%;
    animation: care-arrive 1.4s var(--ease) both;
}

.art-note {
    position: absolute;
    bottom: 10%;
    left: 10%;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    transform: rotate(-8deg);
    background: var(--blue);
    padding: 13px 16px;
    color: var(--cream);
}

.hero-scroll {
    position: absolute;
    left: 56px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}

.hero-scroll .icon {
    height: 20px;
    width: 20px;
}

.hero-scroll:hover .icon {
    transform: translateY(4px);
}

.section-lead {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 8%;
    align-items: end;
    margin-bottom: 64px;
}

.section-lead>div {
    max-width: 410px;
}

.intro-description p:first-child {
    font-weight: 650;
}

.intro-description .text-link {
    margin-top: 12px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 45px;
}

.stats-row>div {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stats-row strong {
    font-family: Merriweather, serif;
    color: var(--red);
    font-size: clamp(3rem, 4.4vw, 5.5rem);
    line-height: 1;
    letter-spacing: -.035em;
}

.stats-row p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.work-section {
    background: #f2eee7;
    overflow: hidden;
}

.compact-lead {
    align-items: center;
}

.rail-navigation {
    justify-self: end;
}

.rail-controls {
    display: flex;
    gap: 12px;
}

.work-rail {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 6px 56px 12px;
    scroll-snap-type: x proximity;
    cursor: grab;
    touch-action: auto;
}

.work-rail::-webkit-scrollbar,
.client-rail::-webkit-scrollbar {
    display: none;
}

.work-rail.dragging {
    scroll-snap-type: none;
    cursor: grabbing;
}

.work-card {
    flex: 0 0 clamp(310px, 33vw, 500px);
    scroll-snap-align: start;
    user-select: none;
}

.work-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1 / 1.1;
    background: var(--blue);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transition: transform .8s var(--ease);
}

.work-action {
    position: absolute;
    bottom: 22px;
    right: 22px;
    display: flex;
    background: var(--cream);
    color: var(--ink);
    border-radius: 50%;
    padding: 14px;
    transition: transform .35s var(--ease);
}

.work-card:hover .work-action {
    transform: rotate(-40deg);
}

.work-caption {
    padding-top: 22px;
}

.work-caption h3 {
    font-family: Merriweather, serif;
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.work-caption p {
    font-size: 12px;
}

.vivabem-case img,
.anima-case img {
    object-position: 50% 47%;
}

.rail-hint {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    margin-top: 30px;
}

.rail-hint p {
    margin: 0;
}

.rail-hint .icon {
    width: 19px;
    height: 19px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 9%;
    align-items: center;
    margin-bottom: 30px;
}

.solution-art {
    background: var(--yellow);
    border-radius: 50% 48% 40% 44%;
    max-width: 500px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.solution-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    transition: transform 1s var(--ease);
}

.solutions-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid var(--line);
    padding: 24px 0;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.3;
}

.solutions-list a:last-child {
    border-bottom: 1px solid var(--line);
}

.solutions-list a:hover {
    color: var(--blue);
}

.solutions-list a:hover .icon {
    transform: translateX(5px);
}

.solutions-list .icon {
    transition: transform .35s var(--ease);
}

.solutions-section>.button {
    margin-left: 54%;
}

.purpose-section {
    overflow: hidden;
}

.purpose-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5%;
    align-items: center;
}

.purpose-copy h2 {
    font-size: clamp(2.8rem, 4vw, 5rem);
    line-height: 1.18;
}

.purpose-copy p {
    max-width: 430px;
    margin-top: 32px;
    font-size: 15px;
}

.purpose-art img {
    width: 115%;
    margin-left: -5%;
    transform: none;
    transition: transform 1s var(--ease);
}

.trust-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    border-top: 1px solid #91a8d4;
    margin-top: 72px;
    padding-top: 42px;
}

.trust-block h3 {
    font-family: Merriweather, serif;
    font-size: clamp(1.65rem, 2.2vw, 2.5rem);
    line-height: 1.4;
}

.trust-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-block li {
    border-bottom: 1px solid #91a8d4;
    padding: 13px 0;
    font-size: 14px;
}

.trust-block li::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
    margin-right: 15px;
}

.client-rail {
    display: flex;
    gap: 38px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding: 30px 24px;
    touch-action: auto;
    cursor: grab;
    background: var(--blue);
    border-radius: 16px;
}

.client-logo {
    flex: 0 0 175px;
    scroll-snap-align: start;
    min-height: 95px;
    display: grid;
    place-items: center;
}

.client-logo img {
    width: 160px;
    height: 90px;
    object-fit: contain;
    filter: none;
    mix-blend-mode: normal;
    pointer-events: none;
}

.clients-section .section-lead .rail-controls {
    margin-top: 20px;
}

.closing-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 8%;
    align-items: center;
}

.closing-grid>div {
    max-width: 390px;
}

.closing-grid p {
    font-size: 20px;
    line-height: 1.6;
}

.closing-grid .button {
    margin-top: 8px;
}

.site-footer {
    background: var(--red);
    color: var(--cream);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.15fr .8fr 1.15fr;
    gap: 8%;
    margin-bottom: 70px;
}

.footer-heading {
    font-family: Merriweather, serif;
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 22px;
}

.footer-contact {
    font-size: 13px;
}

.footer-contact p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-contact>a {
    display: block;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    margin-top: 24px;
}

.social-links a,
.footer-nav a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.newsletter-form label {
    font-size: 12px;
    display: block;
    margin-top: 12px;
}

.newsletter-form input:not([type=checkbox]) {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--cream);
    border-radius: 0;
    background: transparent;
    color: var(--cream);
    padding: 7px 0;
}

.newsletter-form input::placeholder {
    color: var(--cream);
}

.newsletter-form input:focus-visible {
    outline-color: var(--cream);
}

.consent {
    display: flex!important;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    margin: 20px 0;
}

.consent input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
    accent-color: var(--blue);
}

.consent a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.newsletter-form .button {
    padding: 12px 18px;
    font-size: 13px;
    margin-top: 2px;
}

.form-status {
    font-size: 12px;
    margin-top: 15px;
    line-height: 1.5;
}

.footer-logo {
    width: 100%;
    height: auto;
    margin-bottom: 45px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    font-size: 11px;
    border-top: 1px solid #ef998c;
    padding-top: 22px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.motion-toggle {
    border: 0;
    border-bottom: 1px solid currentColor;
    background: none;
    padding: 0 0 3px;
    color: inherit;
    font-size: 11px;
}

.team-hero-grid,
.services-hero-grid,
.contact-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5%;
    align-items: center;
}

.team-hero p,
.services-hero p,
.contact-hero p {
    margin-top: 25px;
    max-width: 550px;
}

.team-hero p+p,
.services-hero p+p {
    font-size: 15px;
    margin-top: 0;
}

.team-hero-grid>img,
.services-hero-grid>img,
.contact-hero-grid>img {
    width: 100%;
    transform: none;
    transition: transform 1s var(--ease);
}

.team-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8%;
    align-items: center;
}

.team-intro p {
    font-size: 18px;
}

.directory-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8%;
    padding-top: 0;
}

.directory-sidebar {
    align-self: start;
    position: sticky;
    top: 40px;
}

.directory-sidebar h2 {
    font-size: 2.5rem;
    margin-bottom: 26px;
}

.team-filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.team-filters button {
    border: 0;
    border-radius: 0;
    padding: 12px 0;
    text-align: left;
    background: none;
    color: var(--ink);
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

.team-filters button.active {
    color: var(--blue);
    font-weight: 750;
    border-bottom-color: var(--blue);
}

.team-filters button:hover {
    color: var(--blue);
}

.directory-count {
    font-size: 12px;
    margin-top: 24px;
}

.team-directory {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    align-items: start;
}

.person {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    min-height: 158px;
}

.person summary {
    list-style: none;
    cursor: pointer;
}

.person summary::-webkit-details-marker,
.service-detail summary::-webkit-details-marker {
    display: none;
}

.person-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.person h3 {
    font-family: Merriweather, serif;
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.person-role {
    font-size: 13px;
    line-height: 1.6;
}

.person .icon {
    width: 20px;
    height: 20px;
    color: var(--blue);
}

.person[open] .icon {
    transform: rotate(45deg);
}

.person-bio {
    font-size: 13px;
    padding-top: 24px;
    line-height: 1.8;
}

.person-area {
    display: block;
    font-size: 11px;
    color: var(--blue);
    margin: 14px 0 0;
    font-weight: 600;
}

.team-directory.switching {
    animation: directory-switch .45s var(--ease);
}

.service-directory>h2 {
    margin-bottom: 72px;
}

.service-family {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 10%;
    margin-bottom: 66px;
    scroll-margin-top: 35px;
}

.service-family>h3 {
    font-family: Merriweather, serif;
    font-size: 26px;
    color: var(--blue);
    line-height: 1.4;
}

.service-detail {
    border-top: 1px solid var(--line);
    scroll-margin-top: 35px;
}

.service-detail:last-child {
    border-bottom: 1px solid var(--line);
}

.service-detail summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    list-style: none;
    padding: 22px 0;
    font-size: 20px;
    font-weight: 550;
    cursor: pointer;
    line-height: 1.4;
}

.service-detail summary:hover {
    color: var(--blue);
}

.service-detail[open] .icon {
    transform: rotate(45deg);
}

.service-detail .icon {
    transition: transform .3s var(--ease);
    width: 20px;
    height: 20px;
    color: var(--blue);
}

.service-detail p {
    padding-bottom: 25px;
    margin: 0;
    font-size: 15px;
    max-width: 60ch;
}

.service-detail .text-link {
    margin-bottom: 30px;
}

.video-section .section-lead h2 {
    font-size: clamp(2rem, 3.3vw, 4rem);
}

.video-container {
    margin-top: 45px;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 12px;
    display: block;
}

.video-container[hidden] {
    display: none;
}

.contact-hero .text-link {
    font-size: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.contact-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 12%;
    align-items: start;
}

.contact-section>div>p {
    margin-top: 28px;
    max-width: 430px;
}

.contact-section form>label:not(.consent) {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin: 0 0 9px;
}

.contact-section input:not([type=checkbox]),
.contact-section textarea {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    border-radius: 0;
    color: var(--ink);
    margin-bottom: 26px;
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: #53574f;
}

.contact-section textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-section .button {
    width: 100%;
}

img {
    height: auto;
}

.section-lead>*,
.hero-inner>*,
.purpose-grid>*,
.closing-grid>*,
.team-hero-grid>*,
.services-hero-grid>*,
.contact-hero-grid>*,
.directory-section>*,
.service-family>*,
.team-intro>*,
.contact-section>* {
    min-width: 0;
}

.team-filters {
    max-width: 100%;
}

.work-card {
    flex-basis: clamp(340px, 40vw, 580px);
}

.purpose-line {
    display: block;
    transition: color .7s var(--ease);
}

.purpose-line.read {
    color: var(--yellow);
}

.purpose-line.read em {
    color: var(--cream);
}

@keyframes care-arrive {
    from {
        transform: translateY(24px) rotate(2deg);
        filter: blur(3px);
    }
    to {
        transform: translateY(0) rotate(0);
        filter: blur(0);
    }
}

@keyframes directory-switch {
    from {
        transform: translateY(8px);
    }
    to {
        transform: translateY(0);
    }
}

@media(min-width:1600px) {
    .hero-inner {
        min-height: 790px;
    }
    .hero-art {
        max-width: 780px;
    }
    .care-art {
        max-height: 750px;
    }
}

@media(max-width:1100px) {
    .wrap {
        width: calc(100% - 72px);
    }
    .site-header {
        padding-inline: 36px;
        height: 90px;
    }
    .main-nav {
        gap: 20px;
        font-size: 12px;
    }
    .brand {
        width: 170px;
    }
    .hero-inner {
        min-height: 620px;
        padding-top: 24px;
        padding-bottom: 85px;
    }
    .hero-copy p {
        font-size: 14px;
        max-width: 380px;
    }
    .hero-art {
        width: 120%;
        margin-left: -10%;
    }
    .hero-scroll {
        left: 36px;
    }
    .stats-row>div {
        display: block;
    }
    .stats-row p {
        margin-top: 18px;
    }
    .section {
        padding-block: 85px;
    }
    .work-rail {
        padding-inline: 36px;
    }
    .footer-top {
        gap: 5%;
    }
    .solutions-list a {
        font-size: 19px;
    }
    .hero h1 {
        font-size: clamp(3.2rem, 5.4vw, 4.5rem);
    }
    .art-note {
        left: 10%;
        bottom: 6%;
    }
}

@media(max-width:760px) {
    .wrap {
        width: calc(100% - 40px);
    }
    .site-header {
        height: 82px;
        padding-inline: 20px;
    }
    .brand {
        width: 163px;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: inherit;
        padding: 24px 20px 30px;
        align-items: stretch;
        font-size: 17px;
        gap: 12px;
        box-shadow: 0 12px 20px #00000014;
    }
    .main-nav.open {
        display: flex;
        flex-direction: column;
    }
    .nav-contact {
        align-self: flex-start;
        margin-top: 10px;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 30px;
        padding-bottom: 85px;
        min-height: 0;
    }
    .hero h1 {
        font-size: clamp(3.5rem, 11.5vw, 5rem);
    }
    .hero-heading-tail {
        font-size: 1.65rem;
        margin-top: 18px;
    }
    .hero-copy p {
        font-size: 14px;
        margin-top: 22px;
        max-width: 95%;
    }
    .hero-copy .button {
        font-size: 13px;
        padding: 15px 20px;
    }
    .hero-art {
        width: 95%;
        max-width: 480px;
        margin: 25px auto 0;
    }
    .care-art {
        max-height: 470px;
    }
    .hero-scroll {
        left: 20px;
        bottom: 24px;
    }
    .art-note {
        font-size: 10px;
        bottom: 8%;
        left: 3%;
        padding: 10px 12px;
    }
    .section {
        padding-block: 65px;
    }
    h2 {
        font-size: clamp(2.15rem, 7.6vw, 3rem);
    }
    h1 {
        font-size: clamp(2.7rem, 9vw, 4rem);
    }
    .section-lead,
    .closing-grid,
    .trust-block,
    .team-intro,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .section-lead {
        margin-bottom: 40px;
    }
    .section-lead>div {
        max-width: none;
    }
    .intro-description p {
        font-size: 14px;
    }
    .stats-row {
        gap: 15px;
        padding-top: 26px;
    }
    .stats-row strong {
        font-size: clamp(2rem, 7vw, 3rem);
    }
    .stats-row p {
        font-size: 10px;
        line-height: 1.5;
        margin-top: 13px;
    }
    .compact-lead {
        grid-template-columns: 1fr auto;
        gap: 20px;
    }
    .rail-navigation {
        justify-self: end;
    }
    .rail-navigation>p {
        display: none;
    }
    .icon-button {
        width: 42px;
        height: 42px;
    }
    .work-rail {
        gap: 18px;
        padding-inline: 20px;
    }
    .work-card {
        flex-basis: 78vw;
        max-width: 410px;
    }
    .work-image {
        aspect-ratio: 1/1.08;
    }
    .work-caption h3 {
        font-size: 1.3rem;
    }
    .work-caption p {
        font-size: 11px;
    }
    .rail-hint {
        margin-top: 18px;
        font-size: 11px;
    }
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .solution-art {
        max-width: 290px;
        margin-inline: auto;
    }
    .solutions-list a {
        font-size: 19px;
        padding: 19px 0;
    }
    .solutions-section>.button {
        margin-left: 0;
    }
    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .purpose-copy h2 {
        font-size: clamp(2.6rem, 8.6vw, 3.5rem);
    }
    .purpose-copy p {
        font-size: 14px;
    }
    .purpose-art {
        max-width: 360px;
        margin-inline: auto;
    }
    .purpose-art img {
        width: 100%;
        margin-left: 0;
    }
    .trust-block {
        margin-top: 34px;
        padding-top: 32px;
        gap: 25px;
    }
    .trust-block h3 {
        font-size: 1.7rem;
    }
    .trust-block li {
        font-size: 13px;
    }
    .client-rail {
        gap: 20px;
        padding-block: 14px;
    }
    .client-logo {
        flex-basis: 145px;
    }
    .client-logo img {
        width: 130px;
        height: 75px;
    }
    .closing-grid p {
        font-size: 16px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 38px;
        margin-bottom: 45px;
    }
    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 17px;
    }
    .site-footer {
        padding-top: 55px;
    }
    .footer-heading {
        font-size: 23px;
    }
    .newsletter-form {
        max-width: 460px;
    }
    .footer-logo {
        margin-bottom: 30px;
    }
    .footer-bottom {
        font-size: 10px;
        gap: 20px;
    }
    .footer-legal {
        gap: 13px;
    }
    .team-hero-grid,
    .services-hero-grid,
    .contact-hero-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .team-hero-grid>img,
    .services-hero-grid>img,
    .contact-hero-grid>img {
        max-width: 360px;
        margin-inline: auto;
    }
    .team-hero p,
    .services-hero p,
    .contact-hero p {
        font-size: 14px;
        margin-top: 20px;
    }
    .team-intro p {
        font-size: 16px;
    }
    .directory-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 0;
    }
    .directory-sidebar {
        position: static;
    }
    .directory-sidebar h2 {
        font-size: 2.2rem;
    }
    .team-filters {
        flex-direction: row;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 8px;
    }
    .team-filters button {
        flex: 0 0 auto;
        font-size: 12px;
        white-space: nowrap;
    }
    .directory-count {
        margin-top: 12px;
    }
    .team-directory {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .person {
        min-height: 0;
        padding-block: 24px;
    }
    .person h3 {
        font-size: 21px;
    }
    .person-role {
        font-size: 13px;
    }
    .service-directory>h2 {
        margin-bottom: 45px;
    }
    .service-family {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 45px;
    }
    .service-family>h3 {
        font-size: 22px;
    }
    .service-detail summary {
        font-size: 17px;
    }
    .service-detail p {
        font-size: 14px;
    }
    .video-section .section-lead h2 {
        font-size: 2rem;
    }
    .contact-section {
        gap: 40px;
    }
    .contact-hero .text-link {
        font-size: 14px;
    }
    .contact-section .text-link {
        font-size: 14px;
    }
}

.red-surface em {
    color: var(--cream);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: .055em;
    text-underline-offset: .14em;
}

.blue-surface em,
.purpose-line.read {
    color: #ffd166;
}

.yellow-surface em {
    color: #163975;
}

.purpose-line.read em {
    color: var(--cream);
}

.person-area {
    font-size: 12px;
}

.footer-bottom,
.motion-toggle {
    font-size: 12px;
}

.hero-art {
    transform: translate3d(0, var(--sy, 0px), 0);
}

@media(max-width:760px) {
    .stats-row p,
    .art-note,
    .work-caption p,
    .rail-hint,
    .footer-bottom {
        font-size: 12px;
    }
    .art-note {
        line-height: 1.4;
    }
    .stats-row {
        gap: 10px;
    }
    .stats-row strong {
        font-size: clamp(2rem, 6.8vw, 3rem);
    }
}

@media(prefers-reduced-motion:reduce) {
     :root {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none!important;
        transition: none!important;
    }
    .hero-art {
        transform: none!important;
    }
}

html.motion-paused {
    scroll-behavior: auto;
}

html.motion-paused *,
html.motion-paused *::before,
html.motion-paused *::after {
    animation: none!important;
    transition: none!important;
}

html.motion-paused .hero-art {
    transform: none!important;
}


/* User-directed revision: primary mark, authored writing and scientific care. */

:root {
    --brand-red: #e03c31;
}

.site-header {
    height: 112px;
}

.brand {
    width: 182px;
}

.brand img {
    width: 100%;
    height: auto;
}

.hero {
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/img/inicial/brand-texture.jpg') center/cover;
    opacity: .1;
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-scroll {
    z-index: 2;
}

.hero-heading-tail {
    margin-top: 10px;
}

.hero-art {
    isolation: isolate;
}

.care-art {
    position: relative;
    z-index: 1;
}

.hero-writing {
    position: absolute;
    z-index: 0;
    top: 4%;
    left: -10%;
    color: var(--cream);
    font-family: Merriweather, serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 4.4vw, 4.8rem);
    line-height: 1;
    letter-spacing: -.035em;
    transform: rotate(-6deg);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.hero-write-line {
    display: block;
    width: max-content;
    max-width: 100%;
    clip-path: none;
}

.hero-write-line:nth-child(2) {
    font-style: italic;
}

.hero-write-line:nth-child(4) {
    margin-left: 3%;
}

html.loops-ready .hero-write-line {
    animation: write-first 9s steps(22, end) infinite;
    animation-play-state: paused;
}

html.loops-ready .hero-write-line:nth-child(2) {
    animation-name: write-second;
}

html.loops-ready .hero-write-line:nth-child(3) {
    animation-name: write-third;
}

html.loops-ready .hero-write-line:nth-child(4) {
    animation-name: write-fourth;
}

.hero-art.is-in-view .hero-write-line {
    animation-play-state: running;
}

@keyframes write-first {
    0%,
    2% {
        clip-path: inset(0 100% 0 0);
    }
    18%,
    74% {
        clip-path: inset(0 0 0 0);
    }
    84%,
    100% {
        clip-path: inset(0 100% 0 0);
    }
}

@keyframes write-second {
    0%,
    14% {
        clip-path: inset(0 100% 0 0);
    }
    30%,
    76% {
        clip-path: inset(0 0 0 0);
    }
    86%,
    100% {
        clip-path: inset(0 100% 0 0);
    }
}

@keyframes write-third {
    0%,
    26% {
        clip-path: inset(0 100% 0 0);
    }
    42%,
    78% {
        clip-path: inset(0 0 0 0);
    }
    88%,
    100% {
        clip-path: inset(0 100% 0 0);
    }
}

@keyframes write-fourth {
    0%,
    38% {
        clip-path: inset(0 100% 0 0);
    }
    54%,
    80% {
        clip-path: inset(0 0 0 0);
    }
    90%,
    100% {
        clip-path: inset(0 100% 0 0);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.stats-row>div {
    display: block;
}

.stats-row strong {
    display: block;
    font-size: clamp(4.4rem, 6.5vw, 7.5rem);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stats-row p {
    margin-top: 20px;
    font-size: 14px;
}

.solutions-section h2 em {
    color: var(--brand-red);
}

.purpose-line.read {
    color: var(--yellow);
}

.purpose-line.read em {
    color: var(--yellow);
}

.closing-section h2 em {
    color: var(--brand-red);
    background: var(--cream);
    padding-inline: .08em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.trust-section {
    background: var(--cream);
    overflow: hidden;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 8%;
    align-items: center;
}

.trust-art img {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    transform: none;
    transition: transform 1s var(--ease);
}

.trust-copy h2 {
    font-size: clamp(2.3rem, 3.2vw, 4rem);
    line-height: 1.2;
}

.trust-list {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.trust-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.trust-list strong {
    display: block;
    font-size: 16px;
    font-weight: 650;
}

.trust-list span {
    display: block;
    font-size: 14px;
    margin-top: 3px;
}

.client-rail {
    display: block;
    overflow: hidden;
    padding: 30px 0;
    cursor: default;
    scroll-snap-type: none;
    mask-image: none;
}

.client-track {
    display: flex;
    width: max-content;
    gap: 0;
}

.client-group {
    display: flex;
    gap: 38px;
    padding-right: 38px;
}

.client-logo {
    flex: 0 0 175px;
}

html.loops-ready .client-track {
    animation: clients-flow var(--client-loop-duration, 38s) linear infinite;
    animation-play-state: paused;
}

.client-rail.is-in-view .client-track {
    animation-play-state: running;
}

.client-rail:hover .client-track,
.client-rail:focus-within .client-track {
    animation-play-state: paused;
}

@keyframes clients-flow {
    to {
        transform: translateX(-50%);
    }
}

html.document-hidden .hero-write-line,
html.document-hidden .client-track {
    animation-play-state: paused!important;
}

html.motion-static .hero-write-line {
    animation: none!important;
    clip-path: none;
}

html.motion-static .client-track {
    animation: none!important;
    transform: none;
    display: block;
    width: auto;
}

html.motion-static .client-group {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 24px;
    gap: 20px;
}

html.motion-static .client-group[aria-hidden=true] {
    display: none;
}

html.motion-static .client-logo {
    flex-basis: 130px;
}

html.motion-static .client-rail {
    mask-image: none;
}

@media(max-width:1100px) {
    .brand {
        width: 170px;
    }
    .stats-row strong {
        font-size: clamp(4rem, 6.5vw, 6rem);
    }
}

@media(max-width:760px) {
    .site-header {
        height: 98px;
    }
    .brand {
        width: 152px;
    }
    .main-nav {
        top: 98px;
    }
    .hero-heading-tail {
        margin-top: 10px;
    }
    .hero-writing {
        font-size: clamp(1.6rem, 6.9vw, 2.5rem);
        left: 0;
        top: 4%;
    }
    .stats-row {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 0;
    }
    .stats-row>div {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        gap: 20px;
        align-items: center;
        padding: 24px 0;
        border-bottom: 1px solid var(--line);
    }
    .stats-row strong {
        font-size: clamp(3.2rem, 14vw, 4.5rem);
    }
    .stats-row p {
        margin: 0;
        font-size: 13px;
    }
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .trust-art img {
        max-width: 390px;
    }
    .trust-copy h2 {
        font-size: 2.35rem;
    }
    .trust-list strong {
        font-size: 15px;
    }
    .trust-list span {
        font-size: 13px;
    }
    .client-rail {
        padding-block: 18px;
    }
    .client-group {
        gap: 24px;
        padding-right: 24px;
    }
    .client-logo {
        flex-basis: 145px;
    }
}


/* Second feedback round, including the supplied care_v2 composition. */

body:is([data-page=home],
[data-page=contact],
[data-page=team],
[data-page=services]) .site-header {
    isolation: isolate;
}

body:is([data-page=home],
[data-page=contact],
[data-page=team],
[data-page=services]) .site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/img/inicial/brand-texture.jpg') center/cover;
    opacity: .1;
    pointer-events: none;
    z-index: 0;
}

body:is([data-page=home],
[data-page=contact],
[data-page=team],
[data-page=services]) .site-header .brand,
body:is([data-page=home],
[data-page=contact],
[data-page=team],
[data-page=services]) .site-header .menu-toggle {
    position: relative;
    z-index: 1;
}

body:is([data-page=home],
[data-page=contact],
[data-page=team],
[data-page=services]) .site-header .main-nav {
    z-index: 1;
}

.hero-art {
    container-type: inline-size;
    aspect-ratio: 1;
    width: 110%;
    max-width: 650px;
    margin-left: -3%;
}

.care-art {
    width: 100%;
    height: auto;
    max-height: none;
}

.hero-writing {
    inset: 0;
    z-index: 2;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 900;
    letter-spacing: -.035em;
    transform: none;
    font-size: 4.6rem;
    line-height: 1;
}

.hero-write-line {
    position: absolute;
    width: max-content;
    max-width: none;
    transform: rotate(-8deg);
    margin: 0!important;
    font-style: normal!important;
}

.hero-write-line:nth-child(1) {
    left: 22%;
    top: 27%;
    font-size: 12cqw;
}

.hero-write-line:nth-child(2) {
    left: 11%;
    top: 40%;
    font-size: 27cqw;
}

.hero-write-line:nth-child(3) {
    left: 54%;
    top: 62%;
    font-size: 12cqw;
}

.hero-write-line:nth-child(4) {
    left: 35%;
    top: 76%;
    font-size: 24cqw;
}

.stats-row>div {
    text-align: center;
}

.stats-row p {
    text-align: center;
    margin-inline: auto;
}

.solutions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: center;
}

.solution-art {
    background: none;
    border-radius: 0;
    aspect-ratio: 2/3;
    max-width: 550px;
    width: 100%;
    margin-inline: auto;
}

.solution-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.purpose-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: center;
}

.purpose-art {
    width: 100%;
    max-width: 550px;
    margin-inline: auto;
}

.purpose-art img {
    width: 100%;
    height: auto;
    margin-left: 0;
}

.purpose-line {
    transition: color .25s ease;
}

.purpose-line.read {
    transition: color .6s var(--ease);
}

.trust-copy h2 {
    font-size: clamp(2.6rem, 3.8vw, 4.4rem);
}

.trust-copy h2 em {
    color: var(--brand-red);
}

.trust-grid>.trust-list {
    margin: 0;
}

.client-rail {
    -webkit-mask-image: none;
    mask-image: none;
}

@media(max-width:760px) {
    .hero-art {
        width: 100%;
        max-width: 360px;
        margin: 26px auto 0;
    }
    .hero-writing {
        inset: 0;
        font-size: 2.8rem;
    }
    .stats-row>div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .stats-row p {
        margin: 0;
    }
    .solutions-grid,
    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .solution-art {
        max-width: 360px;
    }
    .purpose-art {
        max-width: 360px;
    }
    .trust-copy h2 {
        font-size: 2.35rem;
    }
    .trust-grid {
        gap: 32px;
    }
}


/* Third feedback round: calmer images, compact purpose scene and aligned service copy. */

.hero-heading-tail em {
    text-decoration: none;
}

.hero-write-line {
    text-shadow: 0 2px 7px rgb(32 34 31 / 22%);
}

.hero-write-line:nth-child(1) {
    font-size: 10.8cqw;
}

.hero-write-line:nth-child(2) {
    font-size: 24.3cqw;
}

.hero-write-line:nth-child(3) {
    font-size: 10.8cqw;
    top: 61%;
}

.hero-write-line:nth-child(4) {
    font-size: 21.6cqw;
    top: 70%;
    left: 37%;
}

.solutions-section>.section-lead {
    grid-template-columns: 1fr 1fr;
    gap: 8%;
}

.solutions-section>.section-lead>div {
    max-width: none;
    width: 100%;
}

.purpose-section {
    padding-top: 64px;
    padding-bottom: 0;
}

.purpose-grid {
    align-items: end;
}

.purpose-copy {
    align-self: center;
    padding-bottom: 48px;
}

.purpose-copy p {
    margin-bottom: 0;
}

.purpose-art {
    position: relative;
    isolation: isolate;
    max-width: none;
    width: calc(100% + 96px);
    margin-left: -40px;
    margin-right: -56px;
    align-self: end;
}

.purpose-art img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    transform: none;
    transition: none;
}

.purpose-cloud {
    position: absolute;
    z-index: 0;
    width: 46%;
    aspect-ratio: 5/3;
    background: url('assets/clouds-white.png') no-repeat;
    background-size: 200% 200%;
    pointer-events: none;
}

.purpose-cloud-one {
    left: 0;
    top: 15%;
    background-position: 0 0;
}

.purpose-cloud-two {
    right: -1%;
    top: 32%;
    width: 44%;
    background-position: 0 0;
    transform: scaleX(-1);
}

.clients-section {
    background: #f6e8d2;
}

@media(max-width:760px) {
    .solutions-section>.section-lead {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .purpose-section {
        padding-top: 48px;
    }
    .purpose-grid {
        gap: 24px;
    }
    .purpose-copy {
        padding-bottom: 0;
    }
    .purpose-art {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }
}


/* Fourth revision: centered brand, fixed icon navigation and separate scroll artwork. */

.site-header {
    justify-content: center;
    height: 112px;
    padding: 12px 0;
    gap: 0;
}

.brand {
    width: 190px;
}

.main-nav,
.menu-toggle {
    display: none!important;
}

.side-nav {
    position: fixed;
    z-index: 60;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 32px;
    box-shadow: 0 7px 24px rgb(32 34 31 / 18%);
}

.side-nav>a {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    transition: background .2s, color .2s;
}

.side-nav>a>svg {
    width: 30px;
    height: 30px;
    display: block;
}

.side-nav>a:hover {
    background: var(--blue);
}

.side-nav>a[aria-current=page] {
    background: var(--yellow);
    color: var(--ink);
}

.side-nav>a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.side-tooltip {
    position: absolute;
    left: calc(100% + 22px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 14px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s;
}

.side-nav>a:hover .side-tooltip,
.side-nav>a:focus-visible .side-tooltip {
    opacity: 1;
    visibility: visible;
}

.side-short-label {
    display: none;
}

.wrap {
    width: min(1440px, calc(100% - 184px));
    margin-left: max(128px, calc((100% - 1440px)/2));
    margin-right: auto;
}

.hero-scroll {
    left: 128px;
}

.work-rail {
    padding-left: 128px;
    padding-right: 56px;
}

.care-art {
    position: relative;
    z-index: 1;
}

.hero-flower {
    position: absolute;
    z-index: 0;
    left: 37%;
    top: -1%;
    width: 35%;
    height: auto;
    transform: rotate(13deg);
    pointer-events: none;
}

.stats-row {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 300px;
    padding: 48px 36px;
    gap: 32px;
    border: 0;
    background: var(--blue) url('assets/cutting-mat-blue.png') center bottom/cover no-repeat;
    color: var(--cream);
}

.stats-row::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgb(18 48 105 / 25%), rgb(18 48 105 / 80%) 14%, rgb(18 48 105 / 78%) 32%, rgb(18 48 105 / 45%) 50%, rgb(18 48 105 / 78%) 68%, rgb(18 48 105 / 80%) 86%, rgb(18 48 105 / 25%));
    pointer-events: none;
}

.stats-row>div {
    position: relative;
    z-index: 1;
    align-self: center;
}

.stats-row strong {
    color: var(--yellow);
}

.stats-row p {
    color: var(--cream);
    font-size: 14px;
    line-height: 1.55;
}

.work-card {
    flex-basis: clamp(170px, 20vw, 290px);
    max-width: 290px;
}

.work-caption h3 {
    font-size: 1.2rem;
}

.work-action {
    padding: 10px;
}

.work-action .icon {
    width: 20px;
    height: 20px;
}

.solution-art {
    position: relative;
    isolation: isolate;
}

.solution-art .solution-rays {
    position: absolute;
    z-index: 0;
    left: 6%;
    top: 9%;
    width: 88%;
    height: auto;
    aspect-ratio: 1;
    transform: rotate(var(--ray-turn, 0deg));
    transform-origin: center;
    pointer-events: none;
}

.solution-art .statue-foreground {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    transform: none;
}

.purpose-cloud-one {
    transform: translate3d(var(--cloud-one-shift, 0px), 0, 0);
}

.purpose-cloud-two {
    transform: translate3d(var(--cloud-two-shift, 0px), 0, 0) scaleX(-1);
}

html.motion-static .solution-rays {
    transform: none;
}

html.motion-static .purpose-cloud-one {
    transform: none;
}

html.motion-static .purpose-cloud-two {
    transform: scaleX(-1);
}

@media(max-width:1100px) {
    .site-header {
        height: 104px;
    }
    .brand {
        width: 176px;
    }
}

@media(max-width:760px) {
    .site-header {
        height: 98px;
        padding: 12px 0;
    }
    .brand {
        width: 152px;
    }
    .side-nav {
        left: 6px;
        padding: 5px;
        gap: 4px;
        border-radius: 28px;
    }
    .side-nav>a {
        width: 44px;
        height: 48px;
        border-radius: 22px;
        grid-template-rows: 28px 13px;
        gap: 0;
    }
    .side-nav>a>svg {
        width: 25px;
        height: 25px;
    }
    .side-short-label {
        display: block;
        font-size: 9px;
        line-height: 1.1;
        font-weight: 600;
    }
    .side-tooltip {
        left: calc(100% + 12px);
    }
    .wrap {
        width: calc(100% - 100px);
        margin-left: 80px;
        margin-right: 20px;
    }
    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.6rem);
    }
    .hero-heading-tail {
        font-size: 1.4rem;
    }
    .hero-scroll {
        left: 80px;
    }
    .work-rail {
        padding-left: 80px;
        padding-right: 20px;
    }
    .work-card {
        flex-basis: 39vw;
        max-width: 205px;
    }
    .work-caption h3 {
        font-size: 1.08rem;
    }
    .work-caption p {
        font-size: 11px;
    }
    .work-action {
        padding: 8px;
    }
    .work-action .icon {
        width: 16px;
        height: 16px;
    }
    .stats-row {
        min-height: 630px;
        padding: 32px 16px;
        gap: 0;
        background-position: center;
        background-size: auto 100%;
    }
    .stats-row>div {
        padding: 24px 0;
        border-bottom: 1px solid rgb(250 247 242 / 35%);
    }
    .stats-row>div:last-child {
        border: 0;
    }
    .stats-row p {
        font-size: 13px;
    }
    .stats-row::before {
        background: rgb(18 48 105 / 74%);
    }
    .purpose-art {
        width: calc(100% + 20px);
        margin-left: 0;
        margin-right: -20px;
    }
}


/* Keep the moving gallery inside the sidebar clearance, including after swiping. */

.work-rail {
    width: calc(100% - 128px);
    margin-left: 128px;
    padding-left: 0;
}

@media(max-width:760px) {
    .side-short-label {
        font-size: 11px;
    }
    .work-rail {
        width: calc(100% - 80px);
        margin-left: 80px;
        padding-left: 0;
    }
    .stats-row {
        background-position: left bottom;
    }
    .purpose-copy h2 {
        font-size: clamp(2.1rem, 8vw, 3rem);
    }
}


/* Fifth revision: right-hand navigation, authentic brand mark and photographic progress. */

.side-nav {
    left: auto;
    right: 22px;
}

.side-nav>a[aria-current=page],
.side-nav>a:first-child {
    background: var(--brand-red);
    color: #fff;
}

.side-nav .side-brand-symbol {
    width: 30px;
    height: 20px;
    object-fit: contain;
}

.side-tooltip {
    left: auto;
    right: calc(100% + 22px);
}

.wrap {
    margin-left: auto;
    margin-right: max(128px, calc((100% - 1440px)/2));
}

.hero-scroll {
    left: 56px;
}

.work-rail {
    margin-left: 0;
    margin-right: 128px;
    padding-left: 56px;
    padding-right: 0;
}

.purpose-art {
    width: calc(100% + 60px);
    margin-left: -40px;
    margin-right: -20px;
}

.purpose-clouds {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.purpose-art>img {
    z-index: 2;
}

.stats-row {
    background-color: #263b2c;
    background-position: center;
}

.stats-row::before {
    background: linear-gradient(90deg, rgb(8 17 12 / 62%), rgb(8 17 12 / 54%) 50%, rgb(8 17 12 / 62%));
}

@media(max-width:760px) {
    .side-nav {
        left: auto;
        right: 6px;
    }
    .side-nav .side-brand-symbol {
        width: 25px;
        height: 18px;
    }
    .side-tooltip {
        left: auto;
        right: calc(100% + 12px);
    }
    .wrap {
        margin-left: 20px;
        margin-right: 80px;
    }
    .hero-scroll {
        left: 20px;
    }
    .work-rail {
        margin-left: 0;
        margin-right: 80px;
        padding-left: 20px;
        padding-right: 0;
    }
    .purpose-art {
        width: calc(100% + 20px);
        margin-left: -20px;
        margin-right: 0;
    }
    .stats-row {
        background-position: 80% center;
    }
    .stats-row::before {
        background: rgb(8 17 12 / 62%);
    }
}


/* User refinement: close monochromatic step pattern, quiet blue depth. */

.stats-row {
    background-color: var(--blue);
}

.stats-row::before {
    background: rgb(12 36 78 / 30%);
}

@media(max-width:760px) {
    .stats-row {
        background-position: center;
    }
    .stats-row::before {
        background: rgb(12 36 78 / 35%);
    }
}


/* Sixth refinement: closer hero, local hair overlay, grounding and cut-paper continuity. */

.hero-inner {
    grid-template-columns: .82fr 1.18fr;
}

.hero-art {
    margin-left: -7%;
}

.care-hair-retouch {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mask-image: url('assets/hair-retouch-mask.svg');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    pointer-events: none;
}

.hero-ground-shadow {
    position: absolute;
    z-index: 0;
    display: block;
    height: 3%;
    border-radius: 50%;
    background: rgb(55 10 7 / 25%);
    filter: blur(7px);
    pointer-events: none;
}

.shadow-doctor {
    left: 10%;
    top: 93%;
    width: 43%;
}

.shadow-girl {
    left: 73%;
    top: 95%;
    width: 24%;
}

#agencia h2 .em-consistency {
    color: var(--brand-red);
}

#agencia h2 .em-scale {
    color: var(--blue);
}

.closing-section {
    position: relative;
    isolation: isolate;
    padding-bottom: 200px;
}

.closing-grid {
    position: relative;
    z-index: 1;
}

.closing-section::after {
    content: '';
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 170px;
    background: url('assets/closing-cut.svg') center bottom/100% 100% no-repeat;
    pointer-events: none;
}

@media(max-width:760px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-art {
        margin-left: auto;
        margin-right: auto;
    }
    .closing-section {
        padding-bottom: 135px;
    }
    .closing-section::after {
        height: 105px;
        background-size: auto 100%;
        background-repeat: repeat-x;
    }
}


/* Seventh refinement: final phrase on its own larger line. */

.closing-section h2 em {
    display: inline-block;
    font-size: 1.25em;
    line-height: 1.08;
    white-space: nowrap;
}

@media(max-width:760px) {
    .closing-section h2 em {
        font-size: 1.15em;
    }
}


/* Emphasize the whole project cover without cropping its artwork. */

.work-rail.is-infinite {
    scroll-snap-type: none;
    padding-top: 32px;
    padding-bottom: 32px;
}

.work-card {
    position: relative;
    transform-origin: center center;
    transition: transform .35s var(--ease);
}

.work-card:focus-visible {
    z-index: 2;
    transform: scale(1.1);
}

@media(hover:hover) and (pointer:fine) {
    .work-rail:not(.dragging) .work-card:hover {
        z-index: 2;
        transform: scale(1.1);
    }
}

.work-rail.is-recentering {
    scroll-behavior: auto!important;
}

@media(max-width:760px) {
    .work-rail.is-infinite {
        padding-top: 18px;
        padding-bottom: 24px;
    }
}


/* Contact invitation and form, without decorative artwork. */

body[data-page=contact] {
    --contact-action: #3d7b4f;
}

body[data-page=contact] .contact-hero {
    position: relative;
    isolation: isolate;
}

body[data-page=contact] .contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/img/inicial/brand-texture.jpg') center/cover;
    opacity: .1;
    pointer-events: none;
    z-index: 0;
}

body[data-page=contact] .contact-hero-grid {
    position: relative;
    z-index: 1;
}

body[data-page=contact] .button-whatsapp {
    background: var(--contact-action);
    color: var(--cream);
}

body[data-page=contact] .contact-hero-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 5%;
}

body[data-page=contact] .contact-hero h1 {
    font-size: clamp(3rem, 4.1vw, 4.6rem);
}

.contact-hero-art {
    position: relative;
    isolation: isolate;
    width: 100%;
}

.contact-hero-art img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    transform: none;
}

.contact-dog-shadow,
.contact-phone-shadow {
    position: absolute;
    z-index: 0;
    display: block;
    border-radius: 50%;
    background: rgb(65 9 5 / 28%);
    filter: blur(10px);
    pointer-events: none;
}

.contact-dog-shadow {
    left: 5%;
    bottom: 9%;
    width: 52%;
    height: 4%;
    transform: rotate(-3deg);
}

.contact-phone-shadow {
    right: 2%;
    bottom: 1%;
    width: 40%;
    height: 4%;
    transform: rotate(-12deg);
}

.contact-intro {
    grid-column: 1;
    grid-row: 1;
}

body[data-page=contact] #contact-form {
    grid-column: 2;
    grid-row: 1;
}

@media(max-width:760px) {
    body[data-page=contact] .contact-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    body[data-page=contact] .contact-hero h1 {
        font-size: clamp(2.7rem, 9vw, 4rem);
    }
    .contact-hero-art {
        max-width: 420px;
        margin-inline: auto;
    }
    .contact-dog-shadow,
    .contact-phone-shadow {
        filter: blur(6px);
    }
    body[data-page=contact] #contact-form {
        grid-column: 1;
        grid-row: 2;
    }
}


/* Portrait directory: upper-body monochrome photographs and compact captions. */

body[data-page=team] .directory-section {
    grid-template-columns: minmax(180px, .72fr) minmax(0, 2.8fr);
    gap: 5%;
}

body[data-page=team] .team-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 22px;
}

body[data-page=team] .person {
    border: 0;
    padding: 0;
    min-height: 0;
}

body[data-page=team] .person-portrait {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--ink);
    border-radius: 12px;
}

body[data-page=team] .person-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

body[data-page=team] .person-caption {
    padding-top: 17px;
}

body[data-page=team] .person h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
}

body[data-page=team] .person-title {
    gap: 10px;
}

body[data-page=team] .person .icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

body[data-page=team] .person-role {
    font-size: 12px;
    line-height: 1.5;
}

body[data-page=team] .person-area {
    font-size: 10px;
    margin-top: 9px;
}

body[data-page=team] .person-bio {
    padding-top: 18px;
    font-size: 12px;
    line-height: 1.7;
}

body[data-page=team] .text-profile {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

body[data-page=team] .text-profile .person-caption {
    padding-top: 0;
}

body[data-page=team] .person summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 6px;
    border-radius: 12px;
}

@media(max-width:1000px) {
    body[data-page=team] .directory-section {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 30px;
    }
    body[data-page=team] .team-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:760px) {
    body[data-page=team] .directory-section {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    body[data-page=team] .team-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
    }
    body[data-page=team] .person h3 {
        font-size: 16px;
    }
    body[data-page=team] .person-role {
        font-size: 11px;
    }
    body[data-page=team] .person .icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }
    body[data-page=team] .person-caption {
        padding-top: 13px;
    }
}

@media(max-width:420px) {
    body[data-page=team] .team-directory {
        grid-template-columns: 1fr;
    }
    body[data-page=team] .person h3 {
        font-size: 21px;
    }
    body[data-page=team] .person-role {
        font-size: 13px;
    }
}

body[data-page=team] .person-portrait-empty {
    display: grid;
    place-items: center;
    background: var(--blue);
    color: var(--cream);
}

body[data-page=team] .person-portrait-empty span {
    font-family: Merriweather, serif;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;
}


/* Approved trio and compact textured opening for Quem somos. */

body[data-page=team] .team-hero {
    position: relative;
    isolation: isolate;
    padding-block: 32px 44px;
}

body[data-page=team] .team-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/img/inicial/brand-texture.jpg") center/cover;
    opacity: .1;
    pointer-events: none;
    z-index: 0;
}

body[data-page=team] .team-hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: .95fr 1.1fr;
    gap: 4%;
}

body[data-page=team] .team-hero h1 {
    color: var(--cream);
}

body[data-page=team] .team-hero h1 em {
    color: var(--yellow);
}

body[data-page=team] .team-hero-grid>.team-renaissance {
    width: 100%;
    max-width: 520px;
    justify-self: center;
}

@media(max-width:760px) {
    body[data-page=team] .team-hero {
        padding-block: 24px 32px;
    }
    body[data-page=team] .team-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    body[data-page=team] .team-hero-grid>.team-renaissance {
        max-width: 360px;
    }
    body[data-page=team] .closing-section h2 em {
        font-size: 1.05em;
    }
}


/* Services opening: brand texture and red editorial emphasis. */

body[data-page=services] .services-hero {
    position: relative;
    isolation: isolate;
}

body[data-page=services] .services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/img/inicial/brand-texture.jpg') center/cover;
    opacity: .1;
    pointer-events: none;
    z-index: 0;
}

body[data-page=services] .services-hero-grid {
    position: relative;
    z-index: 1;
}

body[data-page=services] .services-hero h1 {
    color: var(--ink);
}

.services-heading-highlight {
    background: var(--brand-red);
    color: var(--cream);
    padding: 0 .08em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}


/* Approved digital collage with the soft grounding used in the Home hero. */

.services-hero-art {
    position: relative;
    isolation: isolate;
    width: 118%;
    margin-left: -9%;
}

.services-hero-art img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
}

.services-laptop-shadow {
    left: 19%;
    bottom: 3%;
    width: 62%;
    height: 3%;
    transform: rotate(7deg);
}

@media(max-width:760px) {
    .services-hero-art {
        width: 100%;
        max-width: 400px;
        margin-inline: auto;
    }
}


/* Contact hero emphasis matches the rectangular editorial highlights. */

.contact-heading-highlight {
    background: var(--yellow);
    color: var(--ink);
    padding: 0 .08em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}


/* Service subheadings form a visible third level below editorial section titles. */

.solutions-list h3 {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.015em;
    text-wrap: balance;
    margin: 0;
}


/* A brief WhatsApp vibration every five seconds, respecting motion preferences. */

.side-nav>a.nav-whatsapp {
    background: var(--whatsapp);
    color: var(--cream);
    border-radius: 50%;
    animation: whatsapp-vibrate 5s linear infinite;
    transform-origin: 50% 65%;
}

.nav-whatsapp>img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

@keyframes whatsapp-vibrate {
    0%,
    88%,
    100% {
        transform: translateX(0) rotate(0);
    }
    89%,
    93%,
    97% {
        transform: translateX(-2px) rotate(-5deg);
    }
    91%,
    95%,
    99% {
        transform: translateX(2px) rotate(5deg);
    }
}

.side-nav>a.nav-whatsapp:hover,
.side-nav>a.nav-whatsapp:focus-visible,
html.document-hidden .nav-whatsapp {
    animation-play-state: paused;
}

html.motion-static .side-nav>a.nav-whatsapp {
    animation: none;
}

@media(max-width:760px) {
    .side-nav>a.nav-whatsapp {
        height: 44px;
        grid-template-rows: 1fr;
    }
    .nav-whatsapp>img {
        width: 26px;
        height: 26px;
    }
}


/* Shared visual hierarchy: display, section, then subject. Compact cards and
   footer labels retain their own reading scale. */

:root {
    --type-display: clamp(3.4rem, 6.2vw, 6rem);
    --type-page: clamp(3.1rem, 5.2vw, 5.5rem);
    --type-section: clamp(2rem, 3.1vw, 3.5rem);
}

.hero h1 {
    font-size: var(--type-display);
    line-height: 1.04;
}

.team-hero h1,
.services-hero h1 {
    font-size: var(--type-page);
    line-height: 1.1;
}

body[data-page=contact] .contact-hero h1 {
    font-size: clamp(3.1rem, 4.9vw, 5.5rem);
    line-height: 1.1;
}

main h2,
.purpose-copy h2,
.trust-copy h2,
.directory-sidebar h2,
.video-section .section-lead h2 {
    font-size: var(--type-section);
    line-height: 1.18;
    letter-spacing: -.03em;
}

.service-family>h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
}

.solutions-list a {
    padding-block: 28px;
}

@media(min-width:761px) and (max-width:1000px) {
    .hero h1 {
        font-size: clamp(2.9rem, 5.8vw, 3.6rem);
    }
    .team-hero h1 {
        font-size: clamp(2.4rem, 4.9vw, 3.1rem);
    }
    body[data-page=contact] .contact-hero h1 {
        font-size: clamp(2.6rem, 4.9vw, 3.1rem);
    }
}

@media(max-width:760px) {
     :root {
        --type-section: clamp(1.875rem, 7.4vw, 2.25rem);
    }
    .hero h1 {
        font-size: clamp(2.625rem, 10.8vw, 3.6rem);
    }
    .team-hero h1,
    .services-hero h1,
    body[data-page=contact] .contact-hero h1 {
        font-size: clamp(2.7rem, 9vw, 4rem);
    }
    .solutions-list h3,
    .service-family>h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    .solutions-list a {
        padding-block: 22px;
    }
}


/* Follow the transparent frame contours so the mosaic sits against the blue wall. */

body[data-page=team] .team-hero-grid>.team-renaissance {
    filter: drop-shadow(3px 7px 5px #101a3038);
}

@media(max-width:760px) {
    body[data-page=team] .team-hero-grid>.team-renaissance {
        filter: drop-shadow(2px 5px 4px #101a3038);
    }
}


/* The hero proposition is a distinct reading level above its explanation. */

.team-hero .hero-lead,
.services-hero .hero-lead {
    font-size: 1.375rem;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -.015em;
    max-width: 38ch;
    margin: 28px 0 20px;
    text-wrap: pretty;
}

.team-hero .hero-lead+p,
.services-hero .hero-lead+p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    max-width: 55ch;
    margin: 0 0 24px;
}

@media(max-width:760px) {
    .team-hero .hero-lead,
    .services-hero .hero-lead {
        font-size: 1.25rem;
        margin-top: 24px;
        margin-bottom: 16px;
    }
}

/* FORMULARIO REPOSTA */
#contact-status {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

#contact-status[hidden] {
    display: none;
}

#contact-status:not([hidden]) {
    display: block;
}

#contact-status.success {
    background: #edf8f0;
    color: #216e39;
    border: 1px solid #b8dfc3;
}

#contact-status.error {
    background: #fff0f0;
    color: #c02631;
    border: 1px solid #f0c3c5;
}

#contact-form button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}